/* ============================================================================
   MARLI OWADOKUN — style.css
   Autora · Curadora Cultural · Podcaster
   ----------------------------------------------------------------------------
   DESIGN TOKENS
   ----------------------------------------------------------------------------
   COLOUR
     --terracotta  #C0562A  Primary accent. Buttons, eyebrows, rules, badges.
     --green-deep  #1F4A3D  Secondary accent. Tour sub-brand, quiet CTAs.
     --cream       #F0E4CE  Warm card surface on paper; body text on dark.
     --paper       #FBF6EC  Page background. The "page" of the book.
     --chocolate   #2B1A12  Dark sections, footer. Warm, never pure black.
     --gold        #D9A441  Hairlines, numerals, focus rings, ankara stripe.
     --ink         #241611  Body text on light. Warm near-black, AA+ on paper.

   Contrast notes (WCAG AA, 18px+ body):
     ink on paper      ≈ 14.8:1   cream on chocolate ≈ 11.2:1
     terracotta/paper  ≈  4.9:1   green-deep/paper   ≈  8.6:1
     Gold is NEVER used for body text on light — decoration only.

   TYPE
     --serif  Playfair Display — display headlines, ALWAYS with a true italic.
     --sans   Archivo — eyebrows, nav, labels, buttons. UPPERCASE, 0.12em.
     --body   Source Sans 3 — humanist sans for reading. 18px floor, 1.7 lh.
     All three ship with full system fallbacks so the page is readable before
     (and without) the webfonts.

   SPACE / SIZE
     --step-*  Fluid type scale (clamp) from 320px to 1920px.
     --space-* 8px-based rhythm. --section-y is the vertical section padding.
     --tap     44px minimum interactive target — enforced on every control.

   MOTIFS
     .lattice  Faint 1px diamond lattice. Dark + terracotta sections only.
     .ankara   Green/gold/terracotta/cream stripe. Section rule + footer band.
     .sec-num  Large low-opacity numeral marking a key section.
   ========================================================================= */

/* --------------------------------------------------------------- TOKENS -- */
:root {
  /* Palette */
  --terracotta: #C0562A;
  --terracotta-dark: #9E4420;
  /* Background of the tours hero. Cream on #C0562A measures 3.6:1 — fine for
     the display headline (AA large text) but short of 4.5:1 for body copy,
     which is why the hero lede below is set at 600 weight / 20px+ so it also
     qualifies as large text. To clear 4.5:1 outright at any size, swap this
     one line to var(--terracotta-dark) — cream on #9E4420 measures 5.1:1. */
  --terracotta-hero: var(--terracotta);
  --green-deep: #1F4A3D;
  --green-darker: #163528;
  --cream: #F0E4CE;
  --paper: #FBF6EC;
  --chocolate: #2B1A12;
  --gold: #D9A441;
  --ink: #241611;

  /* Derived / functional */
  --rule: rgba(36, 22, 17, 0.16);
  --rule-light: rgba(240, 228, 206, 0.22);
  --shadow-soft: 0 2px 4px rgba(36, 22, 17, .04), 0 12px 32px rgba(36, 22, 17, .07);
  --shadow-lift: 0 4px 8px rgba(36, 22, 17, .06), 0 20px 48px rgba(36, 22, 17, .12);

  /* Typography */
  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale */
  --step--1: 1rem;                                  /* 16px small print      */
  --step-0:  1.125rem;                              /* 18px body floor       */
  --step-1:  clamp(1.25rem, 0.4vw + 1.15rem, 1.4rem);
  --step-2:  clamp(1.5rem, 1vw + 1.25rem, 1.9rem);
  --step-3:  clamp(1.9rem, 2vw + 1.4rem, 2.6rem);
  --step-4:  clamp(2.3rem, 3.4vw + 1.5rem, 3.6rem);
  --step-5:  clamp(2.8rem, 6vw + 1.2rem, 5.2rem);

  /* Space */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1180px;
  --maxw-text: 68ch;
  --tap: 44px;
  --header-h: 84px;
  --radius: 4px;
}

/* ---------------------------------------------------------------- RESET -- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
}

p { margin: 0 0 var(--space-3); max-width: var(--maxw-text); }
p:last-child { margin-bottom: 0; }

a { color: var(--terracotta-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

ul, ol { margin: 0 0 var(--space-3); padding-left: 1.25em; }
li { margin-bottom: .4em; }

strong { font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-5) 0; }

/* ------------------------------------------------------------ FOCUS/A11Y -- */
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark :focus-visible,
.section--terracotta :focus-visible,
.site-footer :focus-visible,
.nav-panel :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 2000;
  background: var(--chocolate);
  color: var(--cream);
  padding: .9rem 1.4rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: var(--space-2); color: var(--cream); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- LAYOUT -- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section {
  position: relative;
  padding-block: var(--section-y);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--chocolate); color: var(--cream); }
.section--green { background: var(--green-deep); color: var(--cream); }
.section--terracotta { background: var(--terracotta); color: var(--paper); }

.section--dark h1, .section--dark h2, .section--dark h3,
.section--green h1, .section--green h2, .section--green h3,
.section--terracotta h1, .section--terracotta h2, .section--terracotta h3 { color: inherit; }

.section--dark a:not(.btn), .section--green a:not(.btn), .section--terracotta a:not(.btn) { color: var(--gold); }
.section--dark a:not(.btn):hover, .section--green a:not(.btn):hover { color: var(--cream); }
.section--terracotta a:not(.btn):hover { color: var(--paper); }

/* --------------------------------------------------------------- MOTIFS -- */
/* Faint diamond lattice — 1px lines, low opacity. Dark + terracotta only. */
.lattice { position: relative; isolation: isolate; }
.lattice::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg,  var(--lattice-line, rgba(240,228,206,.5)) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(-45deg, var(--lattice-line, rgba(240,228,206,.5)) 0 1px, transparent 1px 32px);
  opacity: .13;
}
.lattice--ink { --lattice-line: rgba(36,22,17,.6); }
.lattice--ink::before { opacity: .09; }

/* Ankara stripe — green / gold / terracotta / cream */
.ankara {
  height: 8px;
  border: 0;
  margin: 0;
  background-image: linear-gradient(90deg,
    var(--green-deep) 0 28%,
    var(--gold) 28% 44%,
    var(--terracotta) 44% 78%,
    var(--cream) 78% 100%);
  background-size: 168px 100%;
  background-repeat: repeat-x;
}
.ankara--tall { height: 12px; }
.ankara--rule { height: 6px; width: 148px; margin-block: var(--space-3); }

/* Large low-opacity section numeral */
.sec-num {
  position: absolute;
  top: calc(var(--section-y) * .35);
  right: var(--gutter);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(6rem, 16vw, 13rem);
  line-height: .8;
  color: var(--ink);
  opacity: .055;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section--dark .sec-num, .section--green .sec-num, .section--terracotta .sec-num {
  color: var(--cream);
  opacity: .08;
}
.section > .container { position: relative; z-index: 1; }

/* ------------------------------------------------------------ TYPE PARTS -- */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: clamp(.75rem, .35vw + .7rem, .875rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin: 0 0 var(--space-3);
}
.section--dark .eyebrow, .section--green .eyebrow { color: var(--gold); }
.section--terracotta .eyebrow { color: var(--paper); }

.display {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-5);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  max-width: 16ch;
}

.section-title {
  font-style: italic;
  font-size: var(--step-4);
  margin-bottom: var(--space-2);
}
.section-title--roman { font-style: normal; }

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: 48ch;
  color: var(--ink);
}
.section--dark .lede, .section--green .lede, .section--terracotta .lede { color: inherit; }

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.35;
  max-width: 24ch;
  margin: 0;
  padding-left: var(--space-3);
  border-left: 3px solid var(--gold);
}
.pull-quote cite { display: block; font: 600 var(--step--1)/1.5 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; margin-top: var(--space-2); opacity: .8; }

.label {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.note {
  font-size: var(--step--1);
  line-height: 1.6;
  opacity: .85;
}

/* -------------------------------------------------------------- BUTTONS -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: var(--tap);
  padding: .85rem 1.75rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--terracotta); color: var(--paper); border-color: var(--terracotta); }
.btn--primary:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: var(--paper); }

.btn--green { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }
.btn--green:hover { background: var(--green-darker); border-color: var(--green-darker); color: var(--cream); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--chocolate); }

/* Cream fill — the primary action on a terracotta ground */
.btn--cream { background: var(--cream); color: var(--terracotta-dark); border-color: var(--cream); }
.btn--cream:hover { background: var(--paper); border-color: var(--paper); color: var(--terracotta-dark); }

/* Outlined green — the second edition button in the featured-book block */
.btn--outline-green { background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn--outline-green:hover { background: var(--green-deep); color: var(--cream); }

.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

/* --------------------------------------------------------------- HEADER -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 246, 236, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 20px rgba(36,22,17,.10); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
  padding-block: .75rem;
}

/* Brand lockup: MO monogram + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: var(--ink);
  min-height: var(--tap);
}
.brand:hover { color: var(--ink); }

.monogram {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--terracotta-dark);
  background: transparent;
  transition: background-color .2s ease, color .2s ease;
}
.brand:hover .monogram { background: var(--terracotta); color: var(--paper); }
.monogram--square { border-radius: 2px; }
.monogram--light { border-color: var(--gold); color: var(--gold); }
.monogram--lg { width: 72px; height: 72px; font-size: 1.7rem; }

.wordmark { display: block; line-height: 1.2; }
.wordmark__name {
  display: block;
  font-family: var(--sans);
  font-size: clamp(.875rem, .4vw + .8rem, 1rem);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark__tag {
  display: block;
  font-family: var(--sans);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-top: .22em;
}
.site-footer .wordmark__tag { color: var(--gold); }

/* Desktop nav */
.nav-desktop { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.4vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: .25rem .35rem;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.nav-list a:hover { color: var(--terracotta-dark); border-bottom-color: var(--terracotta); }
.nav-list a.is-active { color: var(--terracotta-dark); border-bottom-color: var(--terracotta); }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: .5rem;
  padding-left: clamp(.5rem, 1.4vw, 1.25rem);
  border-left: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.lang-toggle a, .lang-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: var(--tap);
  text-decoration: none;
  color: var(--ink);
  opacity: .55;
}
.lang-toggle a:hover { opacity: 1; color: var(--terracotta-dark); }
.lang-toggle [aria-current="true"] { opacity: 1; color: var(--terracotta-dark); }
.lang-toggle__sep { opacity: .3 !important; min-width: 0 !important; }
.site-footer .lang-toggle { border-left-color: var(--rule-light); }
.site-footer .lang-toggle a, .site-footer .lang-toggle span { color: var(--cream); }
.site-footer .lang-toggle a:hover, .site-footer .lang-toggle [aria-current="true"] { color: var(--gold); }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--tap);
  height: var(--tap);
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile menu */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--chocolate);
  color: var(--cream);
  padding: var(--space-6) var(--gutter);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .24s ease, visibility .24s ease;
}
.nav-panel.is-open { visibility: visible; opacity: 1; }
.nav-panel__list { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.nav-panel__list li { margin-bottom: .25rem; }
.nav-panel__list a {
  display: block;
  padding: .7rem 0;
  min-height: var(--tap);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid var(--rule-light);
}
.nav-panel__list a:hover { color: var(--gold); }
.nav-panel__close {
  position: absolute;
  top: var(--space-3);
  right: var(--gutter);
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.nav-panel__close:hover { background: var(--cream); color: var(--chocolate); }
.nav-panel .lang-toggle { margin: 0; padding: 0; border: 0; font-size: 1rem; }
.nav-panel .lang-toggle a, .nav-panel .lang-toggle span { color: var(--cream); }
.nav-panel .lang-toggle a:hover, .nav-panel .lang-toggle [aria-current="true"] { color: var(--gold); }
body.nav-open { overflow: hidden; }

/* ----------------------------------------------------------------- HERO -- */
/* The hero paints from --hero-bg rather than a hard-coded background, so a
   modifier class can change it. (A plain `background` here would out-rank an
   equally specific .section--* class declared earlier in the file and silently
   win — which is what made the tours hero render on paper.) */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: var(--space-6);
  background: var(--hero-bg, var(--paper));
  overflow: hidden;
}
.hero.section--dark  { --hero-bg: var(--chocolate); color: var(--cream); }
.hero.section--green { --hero-bg: var(--green-deep); color: var(--cream); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  width: 100%;
}
.hero__content { max-width: 40rem; }
.hero__sub { font-size: var(--step-1); line-height: 1.6; max-width: 38ch; margin-bottom: 0; }
.hero__media { position: relative; }

/* Tours hero — terracotta ground, lattice texture, everything in cream */
.hero--tours {
  --hero-bg: var(--terracotta-hero);
  min-height: auto;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  color: var(--cream);
}
.hero--tours .display,
.hero--tours .eyebrow,
.hero--tours .lede { color: var(--cream); }

/* 600 weight at 20px+ makes the sub-headline "large text" for contrast
   purposes, so cream on terracotta clears the AA threshold. */
.hero--tours .lede { font-weight: 600; }

.hero--tours .tour-lockup { border-color: var(--cream); }
.hero--tours .tour-lockup__name,
.hero--tours .tour-lockup__handle { color: var(--cream); }

.hero--compact { min-height: auto; padding-block: clamp(3rem, 7vw, 5rem); }

/* ------------------------------------------------------- PHOTO PLACEHOLDER */
.photo-frame { position: relative; }
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--terracotta);
  z-index: -1;
}
.photo-frame--green::after { border-color: var(--green-deep); }

.photo-ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  width: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(36,22,17,.05) 0 1px, transparent 1px 26px),
    var(--cream);
  border: 1px solid var(--rule);
  color: var(--ink);
  text-align: center;
  padding: var(--space-3);
}
.photo-ph__inner { max-width: 26ch; }
.photo-ph__name {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}
.photo-ph__hint { font-size: .9375rem; line-height: 1.5; margin: .5rem 0 0; opacity: .72; }
.photo-ph--wide { aspect-ratio: 3 / 2; }
.photo-ph--square { aspect-ratio: 1 / 1; }
.photo-ph--book { aspect-ratio: 2 / 3; }

/* ------------------------------------------------------------- PHOTOS --- */
/* Real photos occupy exactly the boxes the placeholders defined, so swapping
   one for the other changes nothing in the layout. The files come off a phone
   at every shape under the sun; object-fit crops them to the designed frame
   instead of squashing them, and the fixed aspect-ratio means the page never
   reflows while an image loads. */
.photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  background: var(--cream);
  border: 1px solid var(--rule);
}
.photo--wide { aspect-ratio: 3 / 2; }
.photo--square { aspect-ratio: 1 / 1; }
.photo--book { aspect-ratio: 2 / 3; }
/* The Braniff snapshot sits slightly high in its frame. */
.photo--high { object-position: center 38%; }

figure { margin: 0; }
figcaption {
  font-family: var(--sans);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: var(--space-2);
}

/* ---------------------------------------------------------------- SOBRE -- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}
.about__media { display: grid; gap: var(--space-4); }
.about__body > p { font-size: var(--step-0); }

.credentials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
  list-style: none;
  padding: 0;
}
.cred-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--terracotta);
  padding: var(--space-4) var(--space-3);
  margin: 0;
}
.cred-card:nth-child(2) { border-top-color: var(--gold); }
.cred-card:nth-child(3) { border-top-color: var(--green-deep); }
.cred-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: .35rem;
}
.cred-card__text { font-family: var(--serif); font-size: var(--step-1); line-height: 1.3; margin: 0; }

/* -------------------------------------------------------- FEATURED BOOK -- */
/* One book, two editions. The covers sit as an overlapping stack: PT in front
   on the left, EN tucked behind on the right, each tilted a degree or so. */
.featured-book {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  margin-top: var(--space-5);
  padding: var(--space-5) var(--space-4);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--terracotta);
  box-shadow: var(--shadow-soft);
}

.book-covers {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-block: var(--space-2);
}
.book-covers__item {
  position: relative;
  flex: 0 1 46%;
  max-width: 230px;
  transition: transform .25s ease;
}
.book-covers__item--pt {
  z-index: 2;
  transform: rotate(-2deg);
  filter: drop-shadow(0 12px 28px rgba(36, 22, 17, .22));
}
.book-covers__item--en {
  z-index: 1;
  margin-left: -11%;
  transform: rotate(2.5deg) translateY(16px);
  filter: drop-shadow(0 12px 28px rgba(36, 22, 17, .18));
}
.book-covers__item:hover,
.book-covers__item:focus-within { transform: rotate(0deg) translateY(-4px); z-index: 3; }

@media (prefers-reduced-motion: reduce) {
  .book-covers__item:hover,
  .book-covers__item:focus-within { transform: none; }
}

/* On narrow screens the overlapping stack leaves the two captions too close
   together and they run into each other, so the covers sit side by side. */
@media (max-width: 559px) {
  .book-covers { gap: var(--space-2); }
  .book-covers__item--pt { transform: rotate(-1.5deg); }
  .book-covers__item--en { margin-left: 0; transform: rotate(1.5deg); }
  .book-covers__caption { font-size: .625rem; letter-spacing: .08em; }
}

.book-covers__item img,
.book-covers__item .photo-ph { border: 1px solid var(--rule); }
.book-covers__caption {
  display: block;
  margin-top: .75rem;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--terracotta-dark);
}

.featured-book__detail { max-width: 46ch; }
.featured-book__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-4);
  line-height: 1.05;
  margin: 0 0 .3rem;
}
.featured-book__subtitle {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  opacity: .78;
  margin: 0 0 var(--space-3);
}
.featured-book__alt {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .08em;
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
  opacity: .85;
}
.featured-book__alt em { font-family: var(--serif); font-size: var(--step-1); letter-spacing: 0; }
.featured-book__desc { font-size: var(--step-0); margin-bottom: var(--space-4); }
.featured-book__buttons { display: grid; gap: .75rem; }

/* -------------------------------------------------------------- PODCAST -- */
.podcast__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}
.date-badge {
  display: inline-grid;
  gap: .15rem;
  text-align: center;
  padding: 1rem 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: rgba(217, 164, 65, .08);
  margin-bottom: var(--space-4);
}
.date-badge__label {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.date-badge__date {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--cream);
}
.podcast-title { font-style: italic; font-size: var(--step-4); margin-bottom: var(--space-3); }

.embed-slot {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: var(--space-4) var(--space-3);
  text-align: center;
  background: rgba(240, 228, 206, .07);
  border: 1px dashed var(--rule-light);
  border-radius: var(--radius);
}
.embed-slot + .embed-slot { margin-top: var(--space-3); }

/* Podcast sign-up — same list as the footer band, tagged origem="podcast" */
.podcast-cta {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-light);
}
.podcast-cta__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}
.embed-slot__label {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.embed-slot__hint { font-size: .9375rem; opacity: .75; margin: .5rem 0 0; max-width: 34ch; }

/* ----------------------------------------------------------------- FORM -- */
.form { display: grid; gap: var(--space-3); max-width: 42rem; }
.form-row { display: grid; gap: var(--space-3); }

.field { display: grid; gap: .4rem; }
.field > label {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.field .req { color: var(--terracotta-dark); }
.section--dark .field .req, .section--green .field .req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: .75rem .9rem;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(36,22,17,.35);
  border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.75rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(192,86,42,.18); }
.field .hint { font-size: .9375rem; opacity: .75; }

/* honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Validation message. Rendered as a paper chip with its own terracotta rule so
   it keeps 5.9:1 contrast on every background the forms sit on — paper, cream,
   chocolate and terracotta alike. */
.field-error {
  display: block;
  width: 100%;
  margin: .4rem 0 0;
  padding: .5rem .75rem;
  background: var(--paper);
  border-left: 3px solid var(--terracotta);
  border-radius: 2px;
  color: var(--terracotta-dark);
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.45;
  max-width: none;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192, 86, 42, .18);
}

.consent {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .75rem;
  font-size: var(--step--1);
  line-height: 1.6;
  max-width: 54ch;
}
.consent input[type="checkbox"] { flex: 0 0 auto; width: 22px; height: 22px; margin-top: .25rem; accent-color: var(--terracotta); }

/* ------------------------------------------------------------- CONTATO --- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}
.contact__aside {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green-deep);
  padding: var(--space-4);
}
.contact__aside h3 { font-size: var(--step-1); font-style: italic; }
.contact__aside p { font-size: var(--step--1); line-height: 1.65; }
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: var(--tap);
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-decoration: none;
}

/* ----------------------------------------------------------- NEWSLETTER -- */
.newsletter { text-align: left; }
.newsletter__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
}
.newsletter__form { display: grid; gap: var(--space-3); }
.newsletter__inline { display: grid; gap: .75rem; }
.newsletter__inline input[type="email"] { background: var(--paper); }
.newsletter .small-print { font-size: .9375rem; line-height: 1.6; max-width: 48ch; opacity: .9; }

/* ---------------------------------------------------------------- TOURS -- */
/* "Desvendando a África" sub-brand lockup */
.tour-lockup {
  display: inline-grid;
  gap: .3rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gold);
  border-radius: 2px;
  margin-bottom: var(--space-4);
}
.tour-lockup__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.1;
}
.tour-lockup__handle {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.tour {
  position: relative;
  padding-block: var(--section-y);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.tour--benin { background: var(--paper); }
.tour--nigeria { background: var(--cream); }

.tour__header { border-top: 3px solid var(--terracotta); padding-top: var(--space-4); margin-bottom: var(--space-5); }
.tour--nigeria .tour__header { border-top-color: var(--green-deep); }

.badge {
  display: inline-block;
  padding: .45rem 1rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 2px;
  margin-bottom: var(--space-3);
}
.badge--green { background: var(--green-deep); color: var(--cream); }
.badge--outline { background: transparent; color: var(--green-deep); border: 1px solid var(--green-deep); }

.tour__title { font-size: var(--step-4); font-style: italic; margin-bottom: var(--space-2); }
.tour__sublabel {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin: 0 0 var(--space-3);
  max-width: none;
}
.tour--nigeria .tour__sublabel { color: var(--green-deep); }

.credits {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-5);
  list-style: none;
  padding-left: 0;
}
.credits li { margin: 0; }
.credits dt, .credits__label {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
  display: block;
}
.credits__value { font-family: var(--serif); font-size: var(--step-1); }

.tour__body { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: start; }

.block { margin-bottom: var(--space-5); }
.block:last-child { margin-bottom: 0; }
.block__title {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin: 0 0 var(--space-3);
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
}
.tour--nigeria .block__title { color: var(--green-deep); }

/* Editorial pricing panel — deliberately not a SaaS pricing table */
.price-panel {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--terracotta);
  padding: var(--space-5) var(--space-4);
  box-shadow: var(--shadow-soft);
}
.price-panel__label {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .72;
}
.price-panel__amount {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: .3rem 0 .2rem;
}
.price-panel__unit { font-family: var(--sans); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; opacity: .78; display: block; margin-bottom: var(--space-4); }
.price-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.price-list:last-child { margin-bottom: 0; }
.price-list__head {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: .6rem;
  display: block;
}
.price-list__head--out { color: var(--terracotta-dark); }
.price-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--step-0);
  line-height: 1.55;
  margin-bottom: .5rem;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 8px; height: 8px;
  transform: rotate(45deg);
  background: var(--green-deep);
}
.price-list--out li::before { background: var(--terracotta); }

/* Payment timeline */
.timeline { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  counter-increment: step;
  padding-left: 4rem;
  padding-bottom: var(--space-4);
  margin: 0;
}
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--paper);
  background: var(--terracotta);
  border-radius: 50%;
  z-index: 1;
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 23px; top: 46px; bottom: 0;
  width: 1px;
  background: var(--rule);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline__name { font-family: var(--sans); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: block; }
.timeline__date { font-family: var(--serif); font-style: italic; font-size: var(--step-1); display: block; margin: .15rem 0; }
.timeline__amount { font-size: var(--step-0); display: block; }
.timeline__amount strong { font-weight: 600; }

.fineprint {
  background: rgba(192, 86, 42, .07);
  border-left: 3px solid var(--terracotta);
  padding: var(--space-3);
  margin-top: var(--space-4);
  font-size: var(--step--1);
  line-height: 1.65;
}
.fineprint p { max-width: none; }
.fineprint p + p { margin-top: .75rem; }

.callout {
  background: var(--green-deep);
  color: var(--cream);
  padding: var(--space-4);
  border-radius: 2px;
}
.callout p { max-width: none; }
.callout__stat { font-family: var(--serif); font-style: italic; font-size: var(--step-2); display: block; margin-bottom: .5rem; }

.keyfacts { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.keyfacts li { display: grid; gap: .15rem; margin: 0; padding-bottom: var(--space-3); border-bottom: 1px solid var(--rule); }
.keyfacts li:last-child { border-bottom: 0; padding-bottom: 0; }
.keyfacts dt, .keyfacts__k { font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.keyfacts__v { font-family: var(--serif); font-size: var(--step-1); font-style: italic; }

/* Past-editions gallery — three photos, arranged to suit their real shapes:
   two in a row on top, and the panoramic one full width beneath. */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
.gallery .photo { aspect-ratio: 4 / 3; }
.gallery .photo--span { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

.interest-form {
  background: var(--chocolate);
  color: var(--cream);
  padding: var(--space-5) var(--space-4);
  margin-top: var(--space-6);
  border-radius: 2px;
}
.interest-form h3 { font-size: var(--step-3); font-style: italic; }
.interest-form .form { max-width: none; }
.interest-form .field input,
.interest-form .field textarea,
.interest-form .field select { background: var(--paper); border-color: rgba(36,22,17,.2); }
.interest-form .direct {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule-light);
  font-size: var(--step--1);
}

/* ------------------------------------------------------------- ARTICLE --- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-3); font-style: italic; margin-top: var(--space-6); }
.prose h2:first-of-type { margin-top: var(--space-4); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-4); }
.prose ul { padding-left: 1.3em; }
.prose li { max-width: 66ch; }
.prose__meta { font-family: var(--sans); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

/* ---------------------------------------------------------------- THANKS -- */
.thanks { display: grid; place-items: center; min-height: 70svh; text-align: center; padding-block: var(--space-7); }
.thanks .display { max-width: 20ch; margin-inline: auto; }
.thanks p { margin-inline: auto; }

/* --------------------------------------------------------------- FOOTER -- */
.site-footer { background: var(--chocolate); color: var(--cream); }
.site-footer__inner { padding-block: var(--space-6) var(--space-4); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--rule-light);
}
.site-footer .brand { color: var(--cream); }
.site-footer .brand:hover { color: var(--cream); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--space-4); }
.site-footer__nav li { margin-bottom: .2rem; break-inside: avoid; }
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
}
.site-footer__nav a:hover { color: var(--gold); }
.site-footer__contact a { color: var(--gold); }
.site-footer__heading {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .62;
  margin-bottom: var(--space-2);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  font-size: .9375rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--gold); }

/* --------------------------------------------------------- COOKIE BANNER -- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1800;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -6px 30px rgba(36,22,17,.14);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-3);
  align-items: center;
}
.cookie-banner__text { font-size: var(--step--1); line-height: 1.6; margin: 0; max-width: 62ch; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cookie-banner .btn { padding: .7rem 1.3rem; }

/* ===========================================================================
   RESPONSIVE — 320 / 375 / 768 / 1024 / 1440 / 1920
   ======================================================================== */
@media (min-width: 560px) {
  .newsletter__inline { grid-template-columns: 1fr auto; align-items: end; }
  .featured-book__buttons { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .form-row--2 { grid-template-columns: 1fr 1fr; }
  .cookie-banner__inner { grid-template-columns: 1fr auto; }
}

@media (min-width: 768px) {
  :root { --header-h: 92px; }
  .credentials { grid-template-columns: repeat(3, 1fr); }
  .featured-book { grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: var(--space-6) var(--space-5); }
  .book-covers__item { max-width: 260px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: var(--space-6); }
  .about__grid { grid-template-columns: .9fr 1.1fr; gap: var(--space-6); }
  .podcast__grid { grid-template-columns: 1.05fr .95fr; gap: var(--space-6); }
  .contact__grid { grid-template-columns: 1.3fr .7fr; gap: var(--space-6); }
  .newsletter__grid { grid-template-columns: .85fr 1.15fr; gap: var(--space-6); align-items: center; }
  .tour__body { grid-template-columns: 1.1fr .9fr; gap: var(--space-6); }
  .credits { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .site-footer__nav ul { columns: 1; }
  .interest-form { padding: var(--space-6) var(--space-5); }
  .form-row--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
  .section { padding-block: var(--section-y); }
}

@media (min-width: 1440px) {
  :root { --maxw: 1240px; }
}

/* Print — she will print the tour terms for participants */
@media print {
  .site-header, .nav-panel, .cookie-banner, .btn, .interest-form, .newsletter { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  .lattice::before, .sec-num { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
