/* =============================================================
   WILD BY MATHIAS — Diseño cálido, ilustrado, para niños
   Spanish-first storybook design.
   ============================================================= */

/* ---------- 1. Reset & base -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- 2. Tokens -------------------------------------- */
:root {
  /* Colors — warm, sunny, Mediterranean storybook */
  --bone:        #FAF4E6;   /* page background — soft cream */
  --bone-deep:   #F4EAD0;
  --sand:        #EBD8A8;
  --cream:       #FFF9EC;
  --honey:       #F0B441;
  --honey-deep:  #D89723;
  --ochre:       #C8843A;
  --clay:        #B68457;
  --clay-deep:   #8C5A33;
  --olive:       #6B7340;
  --olive-deep:  #4A5532;
  --charcoal:    #3A332B;
  --ink:         #2B241D;       /* warm dark brown, not black */
  --rust:        #A14A26;
  --line:        rgba(43, 36, 29, 0.14);
  --line-soft:   rgba(43, 36, 29, 0.07);
  --shadow:      0 24px 50px -20px rgba(140, 90, 51, 0.22), 0 8px 20px -10px rgba(43, 36, 29, 0.1);

  /* Type stack */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Nunito", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  /* Fluid type scale — BIGGER for kids */
  --t-eyebrow: clamp(0.78rem, 0.72rem + 0.28vw, 0.92rem);
  --t-body:    clamp(1.08rem, 1.02rem + 0.22vw, 1.2rem);
  --t-lead:    clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --t-h6:      clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  --t-h5:      clamp(1.5rem, 1.35rem + 0.65vw, 1.85rem);
  --t-h4:      clamp(1.85rem, 1.6rem + 1vw, 2.4rem);
  --t-h3:      clamp(2.3rem, 1.9rem + 1.6vw, 3.3rem);
  --t-h2:      clamp(2.8rem, 2.2rem + 2.4vw, 4.4rem);
  --t-h1:      clamp(3.2rem, 2.4rem + 3.4vw, 5.6rem);

  /* Space */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px; --s-12: 220px;

  /* Layout */
  --max-page:   1280px;
  --max-prose:  640px;
  --max-narrow: 880px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius:    14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur: 420ms;
  --dur-slow: 1100ms;
}

/* ---------- 3. Typography (warmer, friendlier) ------------ */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--honey-deep);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  /* Fraunces axes: SOFT (rounder) + WONK (more wobbly/handwritten) for friendly storybook feel */
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.1; }
h4 { font-size: var(--t-h4); line-height: 1.15; letter-spacing: -0.015em; }
h5 { font-size: var(--t-h5); line-height: 1.2; letter-spacing: -0.01em; }
h6 { font-size: var(--t-h6); line-height: 1.25; letter-spacing: 0; }

.ital { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.accent { color: var(--honey-deep); }
.accent-olive { color: var(--olive-deep); }

p {
  font-size: var(--t-body);
  color: var(--charcoal);
  line-height: 1.7;
}
p.lead {
  font-family: var(--font-display);
  font-size: var(--t-lead);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}

a.link {
  display: inline-flex; align-items: baseline; gap: 0.5em;
  color: var(--clay-deep);
  font-weight: 700;
  border-bottom: 2px solid var(--honey);
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.link:hover { border-color: var(--honey-deep); color: var(--honey-deep); }
a.link .arrow { transition: transform var(--dur) var(--ease); }
a.link:hover .arrow { transform: translateX(6px); }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: var(--t-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: var(--olive-deep);
}
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--honey); }

/* ---------- 4. Layout primitives --------------------------- */
.wrap { max-width: var(--max-page); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--max-narrow); }
.wrap--prose { max-width: var(--max-prose); }

.section { padding-block: clamp(70px, 9vw, 140px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 80px); }
.section--bone-deep { background: var(--bone-deep); }
.section--cream    { background: var(--cream); }
.section--olive    { background: var(--olive-deep); color: var(--bone); }
.section--olive *  { color: var(--bone); }
.section--ink      { background: var(--ink); color: var(--bone); }
.section--ink *    { color: var(--bone); }
.section--honey    { background: var(--honey); color: var(--ink); }

/* ---------- 5. Buttons ------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--dur) var(--ease);
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(43, 36, 29, 0.15);
}
.btn--ink  { background: var(--ink); color: var(--bone); }
.btn--ink:hover  { background: var(--olive-deep); transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(43, 36, 29, 0.3); }
.btn--honey { background: var(--honey); color: var(--ink); }
.btn--honey:hover { background: var(--honey-deep); color: var(--cream); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--bone { background: var(--bone); color: var(--ink); }
.btn--bone:hover { background: var(--honey); }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 6. Navigation (warm, simple) ------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--bone);
}
.nav.is-scrolled,
.nav.is-light {
  background: rgba(250, 244, 230, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.nav__brand {
  display: inline-flex; align-items: center;
  line-height: 0;
  transition: transform var(--dur) var(--ease);
}
.nav__brand:hover { transform: scale(1.04); }
.nav__brand img {
  height: 92px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .nav__brand img { height: 72px; }
}
.nav__menu { display: flex; align-items: center; gap: var(--s-7); }
.nav__links { display: flex; gap: var(--s-6); list-style: none; }
.nav__links a {
  font-size: 1rem; font-weight: 600;
  position: relative;
  padding-block: 6px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--honey); transform-origin: left; transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  z-index: 60;
}
.nav__toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; align-items: center; gap: var(--s-7);
    background: var(--bone);
    color: var(--ink);
    transform: translateY(-100%);
    transition: transform 500ms var(--ease);
  }
  .nav.is-open .nav__menu { transform: translateY(0); }
  .nav__links { flex-direction: column; align-items: center; gap: var(--s-5); }
  .nav__links a { font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
}

/* ---------- 7. Hero (warmer, illustrated) ------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 142px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 0;
  overflow: hidden;
  background: linear-gradient(160deg, var(--olive-deep) 0%, var(--ink) 70%);
  color: var(--bone);
}
.hero__copy {
  padding: var(--s-9) var(--gutter);
  max-width: 760px;
}
.hero__meta {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(240, 180, 65, 0.15);
  color: var(--honey);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em;
  margin-bottom: var(--s-6);
}
.hero__meta::before {
  content: "🐝"; font-size: 1.1rem;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.6rem, 1.9rem + 3vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-6);
}
.hero h1 .ital { font-style: italic; color: var(--honey); }
.hero p.lead {
  color: rgba(250, 244, 230, 0.85);
  max-width: 480px;
  margin-bottom: var(--s-7);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.hero__cta .btn--ghost { color: var(--bone); border-color: rgba(250, 244, 230, 0.5); }
.hero__cta .btn--ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.hero__image {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}
.hero__image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  transform: scale(1.08);
  transition: transform 6s var(--ease-out);
}
.is-loaded .hero__image img { transform: scale(1); }
.hero__image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(43,36,29,0.55) 0%, rgba(43,36,29,0.15) 35%, rgba(43,36,29,0) 60%);
  pointer-events: none;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__image { min-height: 55vh; order: -1; }
  .hero__copy { padding-block: var(--s-7) var(--s-9); }
}

/* ---------- 8. Manifesto (warm, signed letter) ------------ */
.manifesto {
  padding-block: clamp(80px, 12vw, 160px);
  text-align: center;
  background: radial-gradient(ellipse at center top, var(--cream), var(--bone) 70%);
}
.manifesto__inner { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }
.manifesto h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.7rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 400;
  color: var(--ink);
}
.manifesto h2 .accent { color: var(--clay-deep); font-style: italic; }
.manifesto__signature {
  margin-top: var(--s-6);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--olive-deep);
}
.manifesto__signature::before { content: "—"; opacity: 0.5; }

/* ---------- 9. Chapters list (storybook) ------------------ */
.chapters {
  padding-block: clamp(70px, 10vw, 140px);
}
.chapters__head {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: var(--s-9);
}
.chapters__head p { color: var(--charcoal); max-width: 440px; justify-self: end; font-size: 1.1rem; }

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--s-6);
}
.chapter-card {
  display: flex; flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: 0 4px 18px -8px rgba(140, 90, 51, 0.15);
  border: 1px solid var(--line-soft);
}
.chapter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -20px rgba(140, 90, 51, 0.28);
}
.chapter-card__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--sand);
}
.chapter-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.chapter-card:hover .chapter-card__img img { transform: scale(1.05); }
.chapter-card__body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.chapter-card__num {
  display: inline-flex;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--honey);
  color: var(--ink);
  font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; font-weight: 600;
  align-items: center; justify-content: center;
  margin-bottom: var(--s-2);
}
.chapter-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.chapter-card__title .ital { font-style: italic; color: var(--clay-deep); }
.chapter-card__desc {
  color: var(--charcoal);
  font-size: 1.02rem;
  line-height: 1.55;
  flex: 1;
}
.chapter-card__cta {
  margin-top: var(--s-3);
  font-weight: 700;
  color: var(--clay-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.chapter-card:hover .chapter-card__cta { color: var(--honey-deep); }
.chapter-card__cta .arrow { transition: transform var(--dur) var(--ease); }
.chapter-card:hover .chapter-card__cta .arrow { transform: translateX(4px); }

@media (max-width: 880px) {
  .chapters__head { grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-7); }
  .chapters__head p { justify-self: start; }
  .chapter-grid { grid-template-columns: 1fr; }
}

/* ---------- 9b. Teachers (Raoul, papa, Mathias photos) ---- */
.teachers {
  padding-block: clamp(70px, 10vw, 140px);
}
.teachers__head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: var(--s-8);
}
.teachers__head p {
  color: var(--charcoal);
  max-width: 460px;
  justify-self: end;
  font-size: 1.1rem;
  line-height: 1.65;
}
.teachers__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-5);
  align-items: start;
}
.teachers__stack {
  display: grid;
  gap: var(--s-5);
}
.teacher {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: 0;
}
.teacher__img {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  box-shadow: 0 8px 30px -12px rgba(140, 90, 51, 0.25), 0 2px 8px -4px rgba(43, 36, 29, 0.08);
}
.teacher__img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.teacher--main .teacher__img img {
  aspect-ratio: 4/5;
}
.teacher:hover .teacher__img img {
  transform: scale(1.04);
}
.teacher figcaption {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--olive-deep);
  font-size: 1.1rem;
  line-height: 1.4;
  padding-inline: var(--s-3);
}
@media (max-width: 880px) {
  .teachers__head { grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-7); }
  .teachers__head p { justify-self: start; }
  .teachers__grid { grid-template-columns: 1fr; }
}

/* ---------- 9c. Nuestras colmenas (hive types) ----------- */
.hives {
  padding-block: clamp(70px, 10vw, 140px);
}
.hives__head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: var(--s-8);
}
.hives__head p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--charcoal);
  max-width: 460px;
  justify-self: end;
  font-weight: 400;
}
.hives__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}
.hive-type {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.hive-type__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.hive-type__photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px -10px rgba(140, 90, 51, 0.2);
  transition: transform 800ms var(--ease-out);
}
.hive-type:hover .hive-type__photos img { transform: scale(1.02); }
.hive-type h3 {
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem);
  margin-bottom: var(--s-4);
  color: var(--ink);
  line-height: 1.1;
}
.hive-type h3 .ital { color: var(--clay-deep); }
.hive-type__badge {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--honey-deep);
  margin-bottom: var(--s-3);
}
.hive-type p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--charcoal);
}
.hive-type p strong { color: var(--ink); }
@media (max-width: 880px) {
  .hives__head { grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-7); }
  .hives__head p { justify-self: start; }
  .hives__grid { grid-template-columns: 1fr; gap: clamp(40px, 5vw, 60px); }
}

/* ---------- 10. Pull quote ------------------------------- */
.pullquote {
  padding-block: clamp(80px, 10vw, 140px);
  text-align: center;
  position: relative;
}
.pullquote__mark {
  font-family: var(--font-display); font-style: italic;
  font-size: 6rem; line-height: 0.6;
  color: var(--honey); margin-bottom: var(--s-4);
}
.pullquote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
  max-width: 880px; margin-inline: auto; padding-inline: var(--gutter);
  font-weight: 400;
  color: var(--ink);
}
.pullquote blockquote .ital { font-style: italic; color: var(--clay-deep); }
.pullquote cite {
  display: inline-block; margin-top: var(--s-5);
  font-style: normal; font-family: var(--font-display); font-size: 1rem;
  letter-spacing: 0.06em; color: var(--olive-deep); font-weight: 600;
}

/* ---------- 11. Newsletter (warm) ------------------------ */
.letters {
  padding-block: clamp(80px, 10vw, 140px);
  text-align: center;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.letters__inner { max-width: 640px; margin-inline: auto; padding-inline: var(--gutter); }
.letters h2 {
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem);
  margin-block: var(--s-4) var(--s-5);
}
.letters p { color: var(--charcoal); max-width: 480px; margin-inline: auto; margin-bottom: var(--s-6); font-size: 1.1rem; }
.letters__form {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--s-3); padding: 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bone);
  transition: border-color var(--dur) var(--ease);
}
.letters__form:focus-within { border-color: var(--honey); }
.letters__form input {
  border: 0; padding: 14px 22px;
  background: transparent; outline: none;
  font-size: 1rem;
  color: var(--ink);
}
.letters__form input::placeholder { color: var(--charcoal); opacity: 0.55; }
.letters__form button {
  padding: 12px 26px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--bone);
  font-size: 0.95rem; font-weight: 700;
  transition: background var(--dur) var(--ease);
}
.letters__form button:hover { background: var(--clay-deep); }
.letters__note { font-size: 0.9rem; color: var(--charcoal); opacity: 0.65; margin-top: var(--s-4); }

/* ---------- 12. Footer (warm, simple) -------------------- */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: var(--s-9) var(--gutter) var(--s-6);
}
.footer__inner {
  max-width: var(--max-page); margin-inline: auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s-7);
}
.footer h6 {
  color: var(--honey); font-family: var(--font-body);
  font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; margin-bottom: var(--s-4);
}
.footer ul { list-style: none; display: grid; gap: 12px; font-size: 1rem; }
.footer ul a { color: rgba(250, 244, 230, 0.78); transition: color var(--dur) var(--ease); }
.footer ul a:hover { color: var(--honey); }
.footer__about p { color: rgba(250, 244, 230, 0.7); font-size: 1.02rem; max-width: 380px; line-height: 1.65; }
.footer__brand {
  display: inline-block;
  line-height: 0;
  margin-bottom: var(--s-5);
}
.footer__brand img {
  height: 128px;
  width: auto;
  display: block;
  /* Slight glow on dark footer so the cream background blends in */
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}
.footer__bottom {
  max-width: var(--max-page); margin: var(--s-8) auto 0;
  border-top: 1px solid rgba(250, 244, 230, 0.16);
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4);
  font-size: 0.9rem; color: rgba(250, 244, 230, 0.55);
}

/* Subtle newsletter strip in the footer (every page) */
.footer__letters {
  max-width: var(--max-page); margin: var(--s-8) auto 0;
  border-top: 1px solid rgba(250, 244, 230, 0.16);
  padding-top: var(--s-6);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-4) var(--s-6);
}
.footer__letters-text {
  color: rgba(250, 244, 230, 0.86);
  font-size: 0.98rem; margin: 0; max-width: 420px; line-height: 1.5;
}
.footer__letters-form {
  display: flex; gap: 6px; padding: 6px;
  flex: 1 1 300px; max-width: 440px;
  border: 1.5px solid rgba(250, 244, 230, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(250, 244, 230, 0.05);
  transition: border-color var(--dur) var(--ease);
}
.footer__letters-form:focus-within { border-color: var(--honey); }
.footer__letters-form.is-sent { border-color: var(--olive); }
.footer__letters-form input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: transparent; outline: none;
  padding: 10px 16px; font-size: 0.95rem; color: var(--bone);
}
.footer__letters-form input::placeholder { color: rgba(250, 244, 230, 0.5); }
.footer__letters-form button {
  white-space: nowrap;
  padding: 10px 20px; border-radius: var(--radius-pill);
  background: var(--honey); color: var(--ink);
  font-size: 0.9rem; font-weight: 700;
  transition: filter var(--dur) var(--ease);
}
.footer__letters-form button:hover { filter: brightness(1.07); }
.footer__letters-form button:disabled { cursor: default; }
/* Readable confirmation text after subscribing */
.footer__letters-form.is-sent input::placeholder { color: var(--honey); opacity: 1; }
.letters__form.is-sent { border-color: var(--olive); }
.letters__form.is-sent input::placeholder { color: var(--olive); opacity: 1; }

@media (max-width: 880px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer__letters { flex-direction: column; align-items: stretch; }
  .footer__letters-form { max-width: none; flex-basis: 100%; }
}

/* ---------- 13. Inner pages: hero + content -------------- */
.page-hero {
  padding: 170px var(--gutter) var(--s-9);
  background: var(--bone-deep);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: 20%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--honey) 0%, transparent 65%);
  opacity: 0.15;
  pointer-events: none;
}
.page-hero__inner { max-width: var(--max-page); margin-inline: auto; position: relative; }
.page-hero .crumb {
  font-size: 0.95rem; font-weight: 600;
  color: var(--clay-deep);
  display: flex; gap: 10px; align-items: center;
  margin-bottom: var(--s-5);
}
.page-hero .crumb a { color: inherit; opacity: 0.75; }
.page-hero .crumb a:hover { opacity: 1; }
.page-hero .crumb .sep { opacity: 0.4; }
.page-hero h1 {
  font-size: clamp(2.4rem, 1.7rem + 3vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.024em;
  max-width: 960px;
}
.page-hero h1 .ital { font-style: italic; color: var(--clay-deep); }
.page-hero__dek {
  max-width: 640px; margin-top: var(--s-5);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.45;
  color: var(--charcoal);
  font-weight: 400;
}
.page-hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-6);
  font-size: 0.95rem; color: var(--charcoal); font-weight: 600;
}
.page-hero__meta span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 249, 236, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

/* ---------- 14. Article (illustrated, friendly) ---------- */
.article { padding-block: var(--s-9) var(--s-10); }
.article__body { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.article__body > * + * { margin-top: var(--s-5); }
.article__body h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
  margin-top: var(--s-8);
  color: var(--ink);
}
.article__body h3 { font-size: var(--t-h4); margin-top: var(--s-7); }
.article__body p {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--charcoal);
}
.article__body p.lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.65rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
}
.article__body blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem);
  line-height: 1.35;
  margin-block: var(--s-7);
  padding: var(--s-5) var(--s-6);
  background: var(--cream);
  border-left: 4px solid var(--honey);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body li {
  font-size: 1.15rem; line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 0.6em;
}
.article__body li::marker { color: var(--honey-deep); font-weight: 700; }
.article__body a:not(.btn) {
  color: var(--clay-deep);
  border-bottom: 2px solid var(--honey);
  font-weight: 700;
  transition: color var(--dur) var(--ease);
}
.article__body a:not(.btn):hover { color: var(--honey-deep); }

/* Big infographic block — the heart of each article */
.infographic {
  max-width: 1100px;
  margin: var(--s-8) auto;
  padding: 0 var(--gutter);
}
.infographic figure {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(140, 90, 51, 0.25), 0 8px 24px -10px rgba(43, 36, 29, 0.12);
  border: 1px solid var(--line-soft);
}
.infographic img { width: 100%; height: auto; display: block; }
.infographic figcaption {
  padding: var(--s-4) var(--s-5);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--olive-deep);
  font-size: 1.05rem;
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
}

.article__chapter {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.4rem; color: var(--honey-deep);
  margin-bottom: var(--s-3);
}
.article__chapter::before {
  content: ""; display: inline-block;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--honey);
  color: var(--ink);
  text-align: center; line-height: 32px;
  font-style: normal; font-weight: 700; font-size: 1rem;
  font-family: var(--font-body);
}

/* FAQ accordion (kid-friendly, big) */
.faq {
  max-width: 760px; margin: var(--s-8) auto 0;
  padding-inline: var(--gutter);
}
.faq h2 { margin-bottom: var(--s-5); }
.faq details {
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-3);
  border: 1px solid var(--line-soft);
  transition: box-shadow var(--dur) var(--ease);
}
.faq details[open] {
  box-shadow: 0 8px 24px -8px rgba(140, 90, 51, 0.2);
}
.faq summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.4vw, 1.4rem);
  font-weight: 500;
  display: flex; justify-content: space-between; gap: var(--s-4); align-items: center;
  color: var(--ink); padding-block: var(--s-2);
  transition: color var(--dur) var(--ease);
}
.faq summary:hover { color: var(--clay-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-display);
  font-size: 1.8rem; color: var(--honey-deep);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: var(--s-3) 0 var(--s-2);
  color: var(--charcoal);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Article footer / next-prev */
.article-nav {
  max-width: 880px;
  margin: var(--s-9) auto var(--s-5);
  padding: var(--s-6) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.article-nav a {
  display: block;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--line-soft);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.article-nav a:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(140, 90, 51, 0.25);
}
.article-nav a.is-disabled { opacity: 0.4; pointer-events: none; }
.article-nav__label {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--olive-deep);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: var(--s-2);
}
.article-nav__title {
  font-family: var(--font-display);
  font-size: 1.25rem; line-height: 1.2;
  color: var(--ink);
  font-weight: 500;
}
.article-nav__next { text-align: right; }
.article-nav__next .article-nav__label { justify-content: flex-end; }

@media (max-width: 720px) { .article-nav { grid-template-columns: 1fr; } }

/* ---------- 15. Forms ------------------------------------- */
.form { max-width: 640px; margin-inline: auto; display: grid; gap: var(--s-5); padding-block: var(--s-7); }
.form label { display: grid; gap: 8px; font-size: 0.92rem; font-weight: 700; color: var(--charcoal); }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 1.05rem;
  padding: 14px 18px;
  border: 2px solid var(--line); background: var(--cream); color: var(--ink);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--honey); background: var(--bone); }
.form textarea { min-height: 160px; resize: vertical; }
.form button[type="submit"] { justify-self: start; }

/* ---------- 16. Reveal animations ------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 17. About page split layout ------------------ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
  padding-block: clamp(60px, 8vw, 120px);
}
.about-split__img { position: sticky; top: 110px; }
.about-split__img img { border-radius: var(--radius-lg); aspect-ratio: 3/4; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -25px rgba(140, 90, 51, 0.3); }
.about-split__img p {
  text-align: center;
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--clay-deep);
  font-size: 1.1rem;
}
@media (max-width: 880px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split__img { position: static; max-width: 480px; margin-inline: auto; }
}

/* ---------- 17a. Nav submenu (journal chapters dropdown) -- */
.nav__has-sub { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.nav__sub-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0;
  background: none; border: 0; cursor: pointer; color: currentColor;
}
.nav__sub-btn svg {
  width: 10px; height: 6px; opacity: 0.55;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__has-sub:hover .nav__sub-btn svg,
.nav__has-sub:focus-within .nav__sub-btn svg,
.nav__has-sub[data-open="true"] .nav__sub-btn svg { transform: rotate(180deg); opacity: 1; }

.nav__sub {
  position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 250px;
  list-style: none;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px;
  box-shadow: 0 18px 40px -14px rgba(43, 36, 29, 0.22), 0 6px 14px -8px rgba(43, 36, 29, 0.12);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 200;
}
/* Invisible bridge across the gap so the menu stays open while the mouse
   travels from the nav item down to the dropdown (no flicker / disappearing). */
.nav__sub::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: 14px;
}
.nav__has-sub:hover .nav__sub,
.nav__has-sub:focus-within .nav__sub,
.nav__has-sub[data-open="true"] .nav__sub {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav__sub li { margin: 0; }
.nav__sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; border-radius: 9px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--ink); white-space: nowrap; line-height: 1.2;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__sub a::after { display: none !important; }   /* kill the nav underline animation */
.nav__sub a:hover, .nav__sub a:focus-visible { background: var(--cream); color: var(--clay-deep); outline: none; }
.nav__sub a .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--honey); color: var(--ink); border-radius: 50%;
  font-family: var(--font-display); font-style: italic; font-size: 0.85rem; font-weight: 600;
}

/* On the mobile fullscreen menu, show submenu inline (no dropdown) */
@media (max-width: 880px) {
  .nav__has-sub { flex-direction: column; gap: var(--s-3); }
  .nav__sub-btn { display: none; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; box-shadow: none; border: 0; background: transparent;
    min-width: 0; padding: 0; gap: var(--s-3); align-items: center;
  }
  .nav__sub a { font-size: 1.15rem; justify-content: center; }
  .nav__sub a .num { display: none; }
}

/* ---------- 17b. Language switcher (dropdown with flat flags) ------ */
.lang-switch {
  position: relative;
  display: inline-block;
  line-height: 0;
}

/* The visible trigger button — shows current language flag + caret */
.lang-switch__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  background: transparent;
  border: 1px solid rgba(43, 36, 29, 0.18);
  border-radius: 999px;
  cursor: pointer;
  color: var(--charcoal);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  font: inherit;
}
.lang-switch__trigger:hover,
.lang-switch__trigger:focus-visible,
.lang-switch[data-open="true"] .lang-switch__trigger {
  background: var(--cream);
  border-color: var(--honey);
  outline: none;
  box-shadow: 0 2px 6px -2px rgba(216, 151, 35, 0.25);
}
.lang-switch__caret {
  width: 10px; height: 6px;
  opacity: 0.55;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  flex-shrink: 0;
}
.lang-switch:hover .lang-switch__caret,
.lang-switch:focus-within .lang-switch__caret,
.lang-switch[data-open="true"] .lang-switch__caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* The dropdown menu — hidden by default, opens below trigger */
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow:
    0 18px 40px -14px rgba(43, 36, 29, 0.22),
    0 6px 14px -8px rgba(43, 36, 29, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  z-index: 200;
}
.lang-switch:hover .lang-switch__menu,
.lang-switch:focus-within .lang-switch__menu,
.lang-switch[data-open="true"] .lang-switch__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* When the switcher is in the footer or near the bottom — open UPWARD */
.lang-switch--up .lang-switch__menu {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateY(6px);
}
.lang-switch--up:hover .lang-switch__menu,
.lang-switch--up:focus-within .lang-switch__menu,
.lang-switch--up[data-open="true"] .lang-switch__menu {
  transform: translateY(0);
}

/* Items inside the dropdown */
.lang-switch__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition: background var(--dur) var(--ease);
}
.lang-switch__menu a:hover,
.lang-switch__menu a:focus-visible {
  background: var(--cream);
  outline: none;
}
.lang-switch__name {
  white-space: nowrap;
}

/* The flag image itself */
.lang-switch__flag {
  width: 22px;
  height: 14px;
  display: block;
  flex-shrink: 0;
  border: 1px solid rgba(43, 36, 29, 0.15);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(43, 36, 29, 0.06);
}

/* Footer / dark-background overrides */
.footer .lang-switch__trigger {
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.18);
}
.footer .lang-switch__trigger:hover,
.footer .lang-switch__trigger:focus-visible,
.footer .lang-switch[data-open="true"] .lang-switch__trigger {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--honey);
}
.footer .lang-switch__menu {
  background: #1B1714;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 -18px 40px -14px rgba(0, 0, 0, 0.5);
}
.footer .lang-switch__menu a { color: var(--bone); }
.footer .lang-switch__menu a:hover,
.footer .lang-switch__menu a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}
.footer .lang-switch__flag {
  border-color: rgba(255, 255, 255, 0.22);
}

/* On mobile menu (the fullscreen one), let the switcher sit cleanly under the links */
@media (max-width: 880px) {
  .nav__menu .lang-switch { margin-top: var(--s-4); }
}

/* ---------- 18. Utility ----------------------------------- */
.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; }
.text-center { text-align: center; }
.mt-7 { margin-top: var(--s-7); }
.mb-7 { margin-bottom: var(--s-7); }
.hidden-mobile { display: initial; }
@media (max-width: 720px) { .hidden-mobile { display: none; } }
