@font-face {
  font-family: "Curiosity Sans";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --forest: #173f35;
  --forest-deep: #0d2c27;
  --leaf: #568d58;
  --leaf-light: #dfeeda;
  --sun: #f5b84b;
  --berry: #b34d76;
  --sky: #5db8c7;
  --cream: #fffaf0;
  --paper: #f5eddb;
  --ink: #18332d;
  --muted: #5d736c;
  --line: rgba(23, 63, 53, 0.14);
  --shadow: 0 24px 70px rgba(13, 44, 39, 0.15);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Curiosity Sans", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
  color: white;
  background: var(--forest-deep);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 8px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  background: rgba(13, 44, 39, 0.94);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  font-weight: 850;
  text-decoration: none;
}
.brand img {
  width: 62px;
  height: 62px;
  padding: 3px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
}
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.main-nav a, .back-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  text-decoration: none;
}
.main-nav a:hover, .back-link:hover { color: white; }
.nav-toggle {
  display: none;
  border: 0;
  color: white;
  background: transparent;
  font-size: 1.55rem;
  cursor: pointer;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}
.language-switch a {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 30px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.language-switch a.is-current {
  color: var(--forest-deep);
  background: var(--sun);
}
.legal-header-actions { display: flex; align-items: center; gap: 22px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(54px, 7vw, 110px) clamp(22px, 6vw, 96px);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 10% 15%, rgba(245, 184, 75, 0.24), transparent 25%),
    radial-gradient(circle at 83% 62%, rgba(93, 184, 199, 0.2), transparent 28%),
    linear-gradient(145deg, #0d2c27, #1c5745 62%, #2e7553);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero::before { width: 34vw; height: 34vw; left: -17vw; bottom: -20vw; }
.hero::after { width: 22vw; height: 22vw; right: -8vw; top: -10vw; }
.hero-copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 13px;
  color: #d59a30;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #ffd477; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; text-wrap: balance; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 6.1rem);
  letter-spacing: -0.055em;
}
h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 4vw, 4.1rem);
  letter-spacing: -0.045em;
}
h3 { margin-bottom: 10px; font-size: 1.25rem; }
.lead { max-width: 650px; margin: 0; color: rgba(255, 255, 255, 0.82); font-size: clamp(1.08rem, 1.7vw, 1.35rem); }
.lead-small { color: var(--muted); font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--forest-deep); background: var(--sun); box-shadow: 0 10px 30px rgba(245, 184, 75, 0.24); }
.button-quiet { border-color: rgba(255, 255, 255, 0.28); color: white; background: rgba(255, 255, 255, 0.08); }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img {
  position: relative;
  z-index: 2;
  width: min(100%, 690px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: clamp(5px, 0.7vw, 9px) solid rgba(255, 255, 255, 0.88);
  border-radius: clamp(30px, 4vw, 56px) clamp(30px, 4vw, 56px)
    clamp(30px, 4vw, 56px) 12px;
  box-shadow:
    0 34px 60px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(23, 63, 53, 0.08);
}
.sun-orbit {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 75, 0.5), rgba(245, 184, 75, 0.05) 58%, transparent 60%);
}
.floating-note {
  position: absolute;
  z-index: 4;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px 18px 18px 4px;
  color: var(--forest-deep);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  font-weight: 900;
  transform: rotate(-4deg);
}
.note-question { left: 3%; top: 22%; }
.note-discover { right: 1%; bottom: 24%; transform: rotate(5deg); }
.promise-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 42px);
  min-height: 78px;
  padding: 18px 22px;
  overflow: hidden;
  color: var(--forest);
  background: var(--sun);
  font-size: clamp(0.84rem, 1.5vw, 1.04rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.promise-strip i { color: rgba(23, 63, 53, 0.42); font-style: normal; }

.section { padding: clamp(78px, 9vw, 140px) clamp(22px, 7vw, 112px); }
.section-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.forest-section {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  background: var(--paper);
}
.section-copy > p { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.method {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}
.method li {
  display: grid;
  gap: 7px;
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.56);
}
.method span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin: auto;
  border-radius: 50%;
  color: white;
  background: var(--leaf);
  font-weight: 850;
}
.method strong { font-size: clamp(0.73rem, 1vw, 0.9rem); }
.world-card {
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-radius: 42px 42px 42px 10px;
  box-shadow: var(--shadow);
  background: white;
  transform: rotate(1.5deg);
}
.world-card img { width: 100%; aspect-ratio: 1.25; object-fit: cover; }
.world-card figcaption { padding: 15px 20px; color: var(--muted); font-size: 0.9rem; font-weight: 650; }

.world-gallery {
  position: relative;
  background:
    radial-gradient(circle at 12% 90%, rgba(93, 184, 199, 0.16), transparent 28%),
    linear-gradient(180deg, #fffdf8, #f5eddb);
}
.place-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: repeat(2, minmax(210px, 30vw));
  gap: 16px;
  max-width: 1240px;
  margin: auto;
}
.place-card {
  position: relative;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: var(--forest);
}
.place-large { grid-row: 1 / 3; }
.place-card::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(7, 31, 26, 0.78));
  pointer-events: none;
}
.place-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.place-card:hover img { transform: scale(1.035); }
.place-card figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  color: white;
}
.place-card figcaption strong { font-size: clamp(1.15rem, 2vw, 1.7rem); }
.place-card figcaption span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(13, 44, 39, 0.45);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.gang-section { background: #fefcf6; }
.lineup {
  width: min(100%, 1160px);
  margin: 0 auto 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.character {
  position: relative;
  min-height: 220px;
  padding: 26px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.character:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(13, 44, 39, 0.11); }
.character::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -42px;
  bottom: -42px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.13;
}
.character p { color: var(--muted); font-size: 0.94rem; }
.character-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: white;
  background: var(--accent);
  font-size: 1.4rem;
  font-weight: 900;
}
.finn { --accent: #e98335; }
.poppy { --accent: #b34d76; }
.otto { --accent: #367ca8; }
.tilda { --accent: #5c9b4c; }
.huhu { --accent: #394d85; }

.book-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) 1fr;
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  color: white;
  background: linear-gradient(140deg, var(--forest-deep), var(--forest));
}
.book-visual {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 0.78;
  padding: 8%;
  border-radius: 8px 26px 26px 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 8%),
    radial-gradient(circle at 50% 18%, rgba(245, 184, 75, 0.3), transparent 40%),
    #275e48;
  box-shadow: -10px 18px 0 #d6c89f, 0 32px 80px rgba(0, 0, 0, 0.35);
}
.book-visual img { width: 100%; height: 100%; object-fit: contain; }
.book-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--forest-deep);
  background: var(--sun);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.book-section .eyebrow { color: #ffd477; }
.book-section .lead-small, .book-section .availability { color: rgba(255, 255, 255, 0.75); }
.check-list { display: grid; gap: 12px; padding: 0; margin: 30px 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sun); font-weight: 900; }
.availability { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }

.family-section { background: var(--leaf-light); }
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1120px; margin: auto; }
.family-grid article { padding: 30px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.76); }
.family-grid article > span { font-size: 2rem; }
.family-grid h3 { margin-top: 18px; }
.family-grid p { margin-bottom: 0; color: var(--muted); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  padding: 48px clamp(22px, 7vw, 112px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--forest-deep);
}
.site-footer > div { display: flex; align-items: center; gap: 14px; }
.site-footer > div img {
  padding: 4px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.site-footer > div p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: white; }
.copyright { grid-column: 1 / -1; padding-top: 24px; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; }

.legal-page { background: var(--paper); }
.legal-shell { width: min(100% - 40px, 860px); margin: 60px auto 100px; padding: clamp(28px, 6vw, 70px); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.legal-shell::before {
  content: "";
  display: block;
  width: 58px;
  height: 8px;
  margin-bottom: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun), var(--berry), var(--sky));
}
.legal-shell h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.legal-shell section { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.legal-shell h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.legal-shell p, .legal-shell li { color: var(--muted); }
.legal-intro { color: var(--muted); }
.compact-footer { grid-template-columns: 1fr auto; align-items: center; padding-block: 30px; }
.compact-footer p { margin: 0; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 0.9fr; }
  .character-grid { grid-template-columns: repeat(2, 1fr); }
  .character:last-child { grid-column: span 2; }
  .method { grid-template-columns: repeat(3, 1fr); }
  .header-actions { gap: 14px; }
  .main-nav { gap: 16px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 72px; padding-inline: 18px; }
  .brand img { width: 54px; height: 54px; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: absolute;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 20px;
    background: var(--forest-deep);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
    text-align: center;
  }
  .hero-copy { margin: auto; }
  .actions { justify-content: center; }
  .hero-art { margin-top: 38px; }
  .hero-art img {
    width: min(100%, 560px);
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .forest-section, .book-section { grid-template-columns: 1fr; }
  .method { grid-template-columns: repeat(2, 1fr); }
  .character-grid, .family-grid { grid-template-columns: 1fr; }
  .character:last-child { grid-column: auto; }
  .book-visual { margin: auto; }
  .site-footer, .compact-footer { grid-template-columns: 1fr; align-items: start; }
  .site-footer nav { justify-content: flex-start; }
  .back-link { font-size: 0.9rem; }
  .place-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 330px); }
  .place-large { grid-row: auto; }
  .promise-strip { justify-content: flex-start; overflow-x: auto; }
}

@media (max-width: 430px) {
  .brand span { display: none; }
  h1 { font-size: 2.7rem; }
  .method { grid-template-columns: 1fr; }
  .section { padding-inline: 18px; }
  .legal-shell { width: min(100% - 24px, 860px); padding: 25px 20px; }
  .legal-header-actions { gap: 10px; }
  .legal-header-actions .back-link { display: none; }
  .floating-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
