:root {
  --ink: #2f203a;
  --paper: #efe7fb;
  --card: #f8f3ff;
  --purple-wall: #b59ad6;
  --purple-deep: #7a5ea6;
  --lilac: #d9c8f2;
  --perk-cream: #fff4df;
  --couch: #cf6f2f;
  --frame-yellow: #f3c741;
  --accent-red: #d64545;
  --accent-blue: #3474b9;
  --accent-yellow: #f2b63d;
  --accent-green: #2f7455;
  --line: #b89fd6;
  --shadow: 0 20px 45px rgba(53, 31, 79, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Kalam", "Comic Sans MS", cursive;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 17%, rgba(243, 199, 65, 0.16) 0 20%, transparent 21%),
    radial-gradient(circle at 86% 15%, rgba(122, 94, 166, 0.2) 0 19%, transparent 20%),
    linear-gradient(165deg, var(--purple-wall) 0%, var(--paper) 48%, #e8ddfa 100%);
  min-height: 100vh;
}

.bg-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.35;
}

.bg-glow-left {
  left: -10rem;
  top: 5rem;
  background: #eecfa2;
}

.bg-glow-right {
  right: -8rem;
  bottom: -6rem;
  background: #d2b8ff;
}

.hero,
main,
.footer {
  width: min(1000px, 92vw);
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 2.4rem 0 1.4rem;
  animation: fade-up 0.6s ease both;
}

.hero-intro {
  margin-bottom: 0.9rem;
}

.hero-meta {
  padding: 0.2rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.hero-contacts {
  display: flex;
  gap: 0.7rem;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.quote-box {
  width: min(420px, 100%);
  text-align: left;
  background: rgba(255, 248, 234, 0.98);
  border: 2px solid var(--frame-yellow);
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  box-shadow: 0 8px 18px rgba(53, 31, 79, 0.15);
}

.about-quote {
  margin: 0.75rem auto 0.95rem;
}

.quote-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--purple-deep);
}

.quote-text {
  margin: 0.28rem 0;
  font-size: 0.92rem;
  line-height: 1.3;
}

.quote-meta {
  margin: 0;
  font-size: 0.76rem;
  color: #5b4976;
  font-weight: 700;
}

.kicker {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
  font-size: 0.92rem;
}

.logo-title {
  margin: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.word {
  text-shadow: 2px 2px #fff;
}

.dots {
  display: inline-flex;
  gap: 0.4rem;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  display: block;
}

.dot.red {
  background: var(--accent-red);
}

.dot.blue {
  background: var(--accent-blue);
}

.dot.yellow {
  background: var(--accent-yellow);
}

.tagline {
  margin-top: 0.2rem;
}

.social-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff8ea;
  border: 2px solid var(--frame-yellow);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-weight: 700;
  margin-top: 0;
}

.social-top svg {
  width: 18px;
  height: 18px;
}

.insta-shape {
  fill: #fff;
  stroke: var(--purple-deep);
  stroke-width: 1.5;
}

.insta-lens {
  fill: none;
  stroke: var(--purple-deep);
  stroke-width: 1.5;
}

.insta-dot {
  fill: var(--purple-deep);
}

.friends-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.friends-icon {
  border: 1px solid #d7c7ec;
  background: var(--perk-cream);
  padding: 0.28rem;
  border-radius: 999px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.friends-icon svg {
  width: 42px;
  height: 42px;
}

.perk-cup {
  fill: #ffffff;
  stroke: #7a5ea6;
  stroke-width: 2.5;
}

.perk-handle {
  fill: none;
  stroke: #7a5ea6;
  stroke-width: 2.8;
}

.perk-plate {
  fill: #cf6f2f;
}

.perk-steam {
  fill: none;
  stroke: #7a5ea6;
  stroke-width: 2;
  stroke-linecap: round;
}

.couch-main {
  fill: #cf6f2f;
  stroke: #8d471c;
  stroke-width: 2;
}

.couch-cushion {
  fill: #db8447;
}

.couch-leg {
  fill: #734b2e;
}

.frame-shape {
  fill: none;
  stroke: #f3c741;
  stroke-width: 4;
}

.frame-knob {
  fill: #f3c741;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--frame-yellow);
  background: #fff8ea;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-weight: 700;
}

.main-nav a.is-active {
  background: var(--purple-deep);
  color: #fff;
}

.main-nav-link {
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--frame-yellow);
  background: #fff8ea;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-weight: 700;
  display: inline-block;
}

main {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

h2 {
  margin-top: 0;
  font-family: "Lilita One", Impact, sans-serif;
  letter-spacing: 0.03em;
}

h3 {
  margin-bottom: 0.35rem;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-facts article {
  background: #fff;
  border: 1px solid #dbc9f2;
  border-radius: 14px;
  padding: 0.7rem;
}

.section-note {
  margin-top: -0.2rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.7rem;
}

.photo-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #decdf4;
  background: #fff;
}

.photo-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.photo-item figcaption {
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
}

.blog-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.blog-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}

.blog-form input,
.blog-form textarea,
.blog-form button {
  font: inherit;
  border-radius: 10px;
}

.blog-form input,
.blog-form textarea {
  border: 1px solid #ccb4ea;
  padding: 0.55rem;
  background: #fff;
}

.blog-form button {
  border: none;
  background: linear-gradient(110deg, var(--purple-deep), var(--couch));
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.blog-list {
  display: grid;
  gap: 0.8rem;
}

.post {
  border: 1px solid #d9c2f4;
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem;
}

.post-meta {
  color: #6f5e49;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.post-images img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.zoomable-image {
  cursor: zoom-in;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 10, 28, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.17);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.footer {
  text-align: center;
  padding: 0.7rem 0 2rem;
  font-weight: 700;
}

.footer a {
  color: var(--purple-deep);
}

.page-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.explore-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.9rem;
}

.latest-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.latest-image-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dcc8f7;
  background: #fff;
}

.latest-image-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.latest-post-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.latest-post-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed #bea4df;
}

.page-link-card {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid #d5bdf2;
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem;
}

.page-link-title {
  font-family: "Lilita One", Impact, sans-serif;
  letter-spacing: 0.02em;
}

.page-link-copy {
  font-size: 0.95rem;
}

.admin-wrap {
  width: min(760px, 92vw);
  margin: 2rem auto;
}

.admin-card {
  animation-delay: 0s;
}

.admin-title {
  margin-top: 0;
  font-family: "Lilita One", Impact, sans-serif;
}

.admin-actions {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-actions form {
  margin: 0;
}

.delete-button {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font: inherit;
  font-weight: 700;
  background: #b64040;
  color: #fff;
  cursor: pointer;
}

.alert {
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font-weight: 700;
}

.alert-error {
  border: 1px solid #bf5454;
  background: #fbe8e8;
}

.alert-success {
  border: 1px solid #4f8f6f;
  background: #ebf9f1;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.55s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.1s;
}

.reveal:nth-child(3) {
  animation-delay: 0.18s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 750px) {
  .hero-meta {
    padding: 0.6rem;
  }

  .hero-contacts {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-box {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .page-links {
    grid-template-columns: 1fr;
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.7rem;
  }
}
