/* nookwild — a calm, botanical seek-and-find world.
   Palette lifted straight from the artwork: sage and olive from the logo plate, cream paper, dusty
   rose, terracotta and a soft dusk blue from the garden scenes. Nothing saturated: the whole point is
   that looking at this should slow your pulse, not raise it. */

:root {
  --ink:        #232724;   /* the logo's ink */
  --ink-soft:   #4A4F47;
  --body:       #6B6F63;
  --dim:        #8D9184;
  --paper:      #F5F1E6;   /* aged cream paper */
  --paper-warm: #EFE8D6;
  --sage:       #8D9179;   /* the logo plate */
  --sage-deep:  #6E7360;
  --moss:       #565B48;
  --rose:       #C99E96;   /* dusty rose from the flowers */
  --terra:      #BE7C55;   /* terracotta pots */
  --dusk:       #93A8B8;   /* soft blue water */
  --line:       rgba(35,39,36,0.12);
  --line-soft:  rgba(35,39,36,0.07);
  --shadow:     0 30px 70px -40px rgba(35,39,36,0.45);
  /* Fraunces has real SOFT and WONK axes, so headings read hand-cut instead of default-serif.
     Karla keeps the body quiet and slightly humanist. Neither is the usual pairing. */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── the living background: three very slow, very soft gradient blooms.
      120s+ cycles so it never reads as "animation", only as light changing in a room. ── */
.bloom { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bloom::before, .bloom::after, .bloom i {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.bloom::before {
  width: 60vw; height: 60vw; left: -18vw; top: -14vw;
  background: radial-gradient(circle, rgba(141,145,121,0.55), transparent 68%);
  animation: drift-a 140s ease-in-out infinite;
}
.bloom::after {
  width: 52vw; height: 52vw; right: -14vw; top: 28vh;
  background: radial-gradient(circle, rgba(201,158,150,0.42), transparent 68%);
  animation: drift-b 172s ease-in-out infinite;
}
.bloom i {
  width: 46vw; height: 46vw; left: 22vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(147,168,184,0.40), transparent 70%);
  animation: drift-c 196s ease-in-out infinite;
}
@keyframes drift-a { 50% { transform: translate3d(7vw, 5vh, 0) scale(1.12); } }
@keyframes drift-b { 50% { transform: translate3d(-6vw, -7vh, 0) scale(1.09); } }
@keyframes drift-c { 50% { transform: translate3d(4vw, -5vh, 0) scale(1.14); } }

/* paper grain over everything, so gradients never look like flat CSS */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── nav ── */
nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(245,241,230,0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: var(--body); }
.nav-links a { transition: color .25s; }
.nav-links a:hover { color: var(--ink); }
.socials { display: flex; gap: 10px; align-items: center; }
.social {
  width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink-soft); background: rgba(255,255,255,0.35);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), background .28s, color .28s, border-color .28s;
}
.social:hover { transform: translateY(-3px); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.social svg { width: 16px; height: 16px; }

/* ── hero ── */
header.hero { text-align: center; padding: clamp(56px, 9vw, 108px) 0 clamp(30px, 4vw, 46px); }
.hero-logo { max-width: min(560px, 84vw); margin: 0 auto clamp(22px, 3vw, 34px); animation: rise 1.2s cubic-bezier(.2,.8,.2,1) both; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--body);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 17px; margin-bottom: 26px;
  background: rgba(255,255,255,0.32);
  animation: rise 1.2s .1s cubic-bezier(.2,.8,.2,1) both;
}
.leaf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-deep); animation: breathe 5s ease-in-out infinite; }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 100;
  font-size: clamp(38px, 6.4vw, 74px); line-height: 1.06; letter-spacing: -0.02em;
  margin: 0 auto; max-width: 15em;
  animation: rise 1.2s .16s cubic-bezier(.2,.8,.2,1) both;
}
h1 em { font-style: italic; color: var(--moss); }
.lede {
  max-width: 40em; margin: 24px auto 0; font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.7; color: var(--body); font-weight: 400;
  animation: rise 1.2s .24s cubic-bezier(.2,.8,.2,1) both;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; animation: rise 1.2s .32s cubic-bezier(.2,.8,.2,1) both; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px;
  padding: 15px 32px; cursor: pointer; border: none;
  /* the buttons are set in the display serif too, so nothing on the page falls back to a default UI look */
  font-family: var(--serif); font-weight: 500; font-size: 18.5px; letter-spacing: -0.005em;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 32;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s;
}
.btn em { font-style: italic; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 16px 34px -18px rgba(35,39,36,0.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -18px rgba(35,39,36,0.75); }
.btn-ghost { background: rgba(255,255,255,0.4); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,0.7); }

/* ── the game: one scene, find the animal ── */
.stage {
  position: relative; margin: 0 auto; max-width: 780px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper-warm);
  animation: rise 1.3s .4s cubic-bezier(.2,.8,.2,1) both;
}
.stage img { width: 100%; transition: transform 1.4s cubic-bezier(.2,.8,.2,1), filter .8s; }
.stage.found img { transform: scale(1.02); }
.stage-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 18px; border-top: 1px solid var(--line-soft); background: rgba(255,255,255,0.45);
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
}
.timer { font-variant-numeric: tabular-nums; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.ring {
  position: absolute; width: 132px; height: 132px; border-radius: 50%;
  border: 3px solid var(--terra); box-shadow: 0 0 0 6px rgba(190,124,85,0.16);
  transform: translate(-50%, -50%) scale(1.9); opacity: 0;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .5s; pointer-events: none;
}
.ring.on { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* ── sections ── */
section { padding: clamp(56px, 8vw, 104px) 0; position: relative; z-index: 2; }
.sec-head { text-align: center; max-width: 44em; margin: 0 auto clamp(34px, 4vw, 52px); }
.sec-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
h2 { font-family: var(--serif); font-weight: 400; font-variation-settings: "SOFT" 55, "WONK" 1, "opsz" 60; font-size: clamp(28px, 4vw, 44px); line-height: 1.14; letter-spacing: -0.015em; margin: 12px 0 0; }
h2 em { font-style: italic; color: var(--moss); }
.sec-head p { font-size: 16.5px; line-height: 1.7; color: var(--body); margin: 16px 0 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step {
  background: rgba(255,255,255,0.42); border: 1px solid var(--line-soft); border-radius: 20px; padding: 28px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, background .4s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: rgba(255,255,255,0.62); }
.step-n { font-family: var(--serif); font-size: 34px; color: var(--sage); line-height: 1; }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 12px 0 8px; }
.step p { font-size: 15px; line-height: 1.65; color: var(--body); margin: 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.tile {
  position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft);
  background: var(--paper-warm); cursor: pointer; aspect-ratio: 1122 / 1402;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(to top, rgba(20,22,20,0.6), transparent);
  opacity: 0; transition: opacity .4s;
}
.tile:hover figcaption { opacity: 1; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post {
  display: block; background: rgba(255,255,255,0.42); border: 1px solid var(--line-soft);
  border-radius: 18px; overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post .thumb { aspect-ratio: 1200/630; background: var(--paper-warm); overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .body { padding: 18px 20px 22px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--moss); background: rgba(141,145,121,0.16); border-radius: 999px; padding: 4px 11px; }
.post h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.28; margin: 12px 0 8px; }
.post p { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 0; }
.post .meta { font-size: 12.5px; color: var(--dim); font-weight: 600; margin-top: 12px; }

/* article page */
.article { max-width: 46em; margin: 0 auto; }
.article h1 { font-size: clamp(30px, 4.4vw, 48px); text-align: left; margin: 14px 0 0; }
.article .meta { font-size: 13.5px; color: var(--dim); font-weight: 600; margin-top: 14px; }
.article-hero { border-radius: 18px; overflow: hidden; margin: 26px 0 34px; border: 1px solid var(--line-soft); }
.prose { font-size: 17px; line-height: 1.8; color: var(--ink-soft); }
.prose h2 { font-size: clamp(24px, 3vw, 32px); text-align: left; margin: 2.2em 0 .7em; }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 1.8em 0 .5em; color: var(--ink); }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.3em 1.4em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--terra); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 1.6em 0; padding-left: 1.2em; border-left: 3px solid var(--sage); font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--ink); }
.prose img { border-radius: 14px; margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--moss); }
.prose details { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; background: rgba(255,255,255,0.4); }
.prose summary { cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 18px; }

/* footer */
footer { border-top: 1px solid var(--line-soft); padding: 40px 0 52px; position: relative; z-index: 2; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--dim); font-weight: 600; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .ring { width: 96px; height: 96px; }
}

/* ── the big numeral: "30" set as art, not as a stat ── */
.numeral {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
  font-size: clamp(64px, 12vw, 148px); line-height: .82; color: var(--moss);
  display: inline-block; vertical-align: -0.08em; margin: 0 .06em;
}
.numeral-row { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; }
.numeral-side { text-align: left; font-family: var(--serif); font-size: clamp(19px, 2.6vw, 30px); line-height: 1.22; color: var(--ink); font-variation-settings: "SOFT" 60, "WONK" 1; }

/* ── the quarry badge: which animal, and how long ── */
.quarry {
  display: flex; align-items: center; gap: 13px; padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,0.5);
}
.quarry-icon {
  width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(141,145,121,0.18); color: var(--moss);
}
.quarry-icon svg { width: 22px; height: 22px; }
.quarry-txt strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.quarry-txt span { display: block; font-size: 12.5px; color: var(--body); font-weight: 600; margin-top: 1px; }
.quarry-timer { margin-left: auto; font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ── difficulty ── */
.levels { display: flex; gap: 7px; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.level {
  border: 1px solid var(--line); background: rgba(255,255,255,0.42); color: var(--body);
  border-radius: 999px; padding: 7px 17px; cursor: pointer;
  font-family: var(--serif); font-weight: 500; font-size: 15px;
  font-variation-settings: "SOFT" 55, "WONK" 1, "opsz" 20;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.level:hover { transform: translateY(-2px); }
.level[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.level small { display: block; font-size: 10.5px; font-weight: 600; opacity: .7; margin-top: 1px; }

/* ── benefits / audiences ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; }
.card {
  background: rgba(255,255,255,0.42); border: 1px solid var(--line-soft); border-radius: 20px; padding: 26px;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, background .45s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: rgba(255,255,255,0.62); }
.card-icon { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: rgba(141,145,121,0.16); color: var(--moss); margin-bottom: 15px; }
.card-icon svg { width: 21px; height: 21px; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; font-variation-settings: "SOFT" 55, "WONK" 1; margin: 0 0 8px; }
.card p { font-size: 15px; line-height: 1.65; color: var(--body); margin: 0; }
.card .who { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 9px; }

/* ── faq ── */
.faq { max-width: 46em; margin: 0 auto; }
.q {
  border-bottom: 1px solid var(--line-soft); padding: 20px 0; cursor: pointer;
}
.q summary { font-family: var(--serif); font-weight: 600; font-size: 19px; font-variation-settings: "SOFT" 50; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; list-style: none; cursor: pointer; }
.q summary::-webkit-details-marker { display: none; }
.q summary i { font-style: normal; color: var(--sage-deep); font-size: 22px; line-height: 1; flex-shrink: 0; transition: transform .35s; }
.q[open] summary i { transform: rotate(45deg); }
.q p { font-size: 15.5px; line-height: 1.75; color: var(--body); margin: 12px 0 0; max-width: 60ch; }
