/* ============ Tokens ============ */
:root {
  --cream: #FFF8E4;
  --cream-2: #FBEECB;
  --cream-3: #F6E5B8;
  --ink: #2B2320;
  --ink-soft: #55483F;
  --cheese: #F4B942;
  --cheese-dark: #D6962A;
  --pink: #F0A8A0;
  --pink-dark: #E28A82;
  --fur: #C4BAA6;
  --line: rgba(43, 35, 32, 0.14);
  --dot: rgba(214, 150, 42, 0.28);

  --font-display: "Fredoka", "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;

  --max-w: 1120px;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p { max-width: 62ch; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ Polka dot texture ============ */
.polka {
  background-image: radial-gradient(var(--dot) 2.6px, transparent 2.6px);
  background-size: 26px 26px;
}

.polka-band {
  height: 46px;
  background-image: radial-gradient(var(--cheese-dark) 4px, transparent 4px);
  background-size: 30px 30px;
  background-position: 0 10px;
  opacity: 0.55;
}

/* ============ Nav ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 2px dashed var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.brand svg { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover { background: var(--cream-3); }

.nav-links a.active {
  background: var(--ink);
  color: var(--cream);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--cheese);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn.ghost {
  background: transparent;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 60px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.1rem);
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: min(420px, 100%);
  filter: drop-shadow(0 18px 0 rgba(43,35,32,0.06));
}

/* flying cheese ambient decoration */
.flying-cheese {
  position: absolute;
  width: 46px;
  height: auto;
  z-index: 1;
  opacity: 0.9;
  will-change: transform;
}

.fc-1 { top: 8%; left: 4%; animation: fly-a 13s ease-in-out infinite; }
.fc-2 { top: 62%; left: 2%; width: 30px; animation: fly-b 17s ease-in-out infinite; }
.fc-3 { top: 14%; right: 5%; width: 34px; animation: fly-c 15s ease-in-out infinite; }

@keyframes fly-a {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  50% { transform: translate(30px, 26px) rotate(8deg); }
}
@keyframes fly-b {
  0%, 100% { transform: translate(0, 0) rotate(4deg); }
  50% { transform: translate(20px, -30px) rotate(-10deg); }
}
@keyframes fly-c {
  0%, 100% { transform: translate(0, 0) rotate(10deg); }
  50% { transform: translate(-24px, 22px) rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .flying-cheese { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Traits ============ */
.traits {
  padding: 68px 0;
}

.traits-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.trait-card {
  background: var(--cream-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
}

.trait-card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
}

.trait-card h3 { font-size: 1.25rem; }

.trait-card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ============ CTA band ============ */
.cta-band {
  padding: 70px 0 90px;
  text-align: center;
}

.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.cta-band p {
  margin: 0 auto 30px;
  color: var(--ink-soft);
}

/* ============ Footer ============ */
.site-footer {
  border-top: 2px dashed var(--line);
  padding: 34px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============ Gallery page ============ */
.page-head {
  padding: 62px 0 20px;
}

.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.page-head p { color: var(--ink-soft); font-size: 1.08rem; }

.gallery-grid {
  padding: 30px 0 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  background: var(--cream-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 6px 8px 0 var(--line);
}

.gallery-item .media-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-3);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .cap {
  padding: 16px 18px 20px;
}

.gallery-item .cap h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.gallery-item .cap p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.gallery-item.video-card {
  grid-column: span 2;
}

.gallery-item.video-card .media-frame {
  aspect-ratio: 16 / 9;
  position: relative;
}

.play-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--cheese);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(43, 35, 32, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  background: var(--cream);
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  max-width: 780px;
  width: 100%;
  overflow: hidden;
}

.lightbox-inner .media-frame {
  width: 100%;
  background: var(--cream-3);
}

.lightbox-inner img,
.lightbox-inner video {
  width: 100%;
  display: block;
}

.lightbox-cap {
  padding: 18px 22px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.lightbox-close {
  border: 2px solid var(--ink);
  background: var(--cream-2);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  flex: none;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .flying-cheese { display: none; }
  .trait-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.video-card { grid-column: span 2; }
}

@media (max-width: 620px) {
  .site-nav .wrap { height: 66px; }
  .brand span.word { display: none; }
  .hero { padding: 46px 0 40px; }
  .trait-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.video-card { grid-column: span 1; }
  .nav-links a { padding: 8px 12px; font-size: 0.92rem; }
}

:focus-visible {
  outline: 3px solid var(--cheese-dark);
  outline-offset: 2px;
}
