/* ==========================================================================
   Sisi Afrika Books — global styles (mobile first)
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-latin-ext-500-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../assets/fonts/manrope-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../assets/fonts/manrope-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../assets/fonts/manrope-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../assets/fonts/manrope-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../assets/fonts/manrope-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../assets/fonts/manrope-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../assets/fonts/manrope-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../assets/fonts/manrope-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --green: #173D32;
  --green-900: #0F2A22;
  --green-700: #21503F;
  --ivory: #F7F3EA;
  --paper: #EFE8D8;
  --gold: #C5A46D;
  --gold-soft: #DCC69C;
  --charcoal: #242424;
  --muted: #57534C;
  --terra: #A85F43;
  --terra-text: #8F4E36;
  --white: #FFFFFF;
  --line: rgba(36, 36, 36, .14);
  --line-light: rgba(247, 243, 234, .2);

  --serif: "Cormorant Garamond", Cormorant, Garamond, Georgia, "Times New Roman", serif;
  --sans: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.75rem, 1.4rem + 5.4vw, 6.4rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4vw, 5.25rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem);
  --fs-h3: clamp(1.45rem, 1.25rem + .8vw, 1.9rem);
  --fs-lead: clamp(1.125rem, 1.04rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.75rem, 3rem + 7vw, 9rem);
  --header-h: 5rem;
  --shadow-book: 0 1px 1px rgba(0,0,0,.12), 0 10px 18px -10px rgba(0,0,0,.35), 0 34px 60px -30px rgba(15,42,34,.55);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font-family: var(--sans); font-size: var(--fs-body);
  line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--green-900); }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 2px; }
.has-dark-hero .hero :focus-visible, .section--green :focus-visible, .final-cta :focus-visible, .page-hero :focus-visible,
.site-footer :focus-visible, .case :focus-visible, .statement :focus-visible { outline-color: var(--gold); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--green); color: var(--ivory); padding: .75rem 1.1rem; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

.container { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 44rem; }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--green { background: var(--green); color: var(--ivory); }
.lead { font-size: var(--fs-lead); line-height: 1.55; }
.prose > * { max-width: 40rem; }
.prose h2 { margin-top: 0; }
.prose--light { color: var(--ivory); }

/* Legal text (privacy notice): long-form, scannable */
.legal h2 { font-size: var(--fs-h3); margin-top: 3rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin: 1.75rem 0 .4rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.legal li { margin-bottom: .35rem; }
.legal li::marker { color: var(--terra-text); }
.legal__toc { padding: 1.5rem 1.75rem; background: var(--paper); border-radius: 4px; margin-bottom: 1rem; }
.legal .legal__toc-h { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .75rem; }
.legal__toc ol { margin: 0; padding-left: 1.4rem; columns: 2 16rem; column-gap: 2rem; }
.legal__toc li { margin-bottom: .3rem; break-inside: avoid; }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal__contact { display: grid; gap: .4rem; margin: 0 0 1.25rem; padding-left: 1rem; border-left: 2px solid var(--gold); overflow-wrap: anywhere; }

/* Placeholder marker — clearly identifies content still to be supplied */
.ph { display: inline-block; font-family: var(--sans); font-size: .8rem; font-weight: 600; line-height: 1.3; letter-spacing: .01em;
  color: var(--terra-text); background: rgba(168, 95, 67, .08); border: 1px dashed rgba(168, 95, 67, .6); padding: .15rem .5rem; border-radius: 2px; vertical-align: .1em; }
.ph--light, .section--green .ph, .site-footer .ph, .case .ph, .submit-box .ph { color: var(--gold-soft); background: rgba(197,164,109,.08); border-color: rgba(197,164,109,.55); }
.ph-note { margin-top: 1rem; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: .8rem 1.55rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em; text-decoration: none;
  border: 1px solid transparent; border-radius: 1px; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--green-900); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--green { background: var(--green); color: var(--ivory); }
.btn--green:hover { background: var(--green-700); }
.btn--ghost-light { border-color: rgba(247,243,234,.55); color: var(--ivory); }
.btn--ghost-light:hover { background: var(--ivory); color: var(--green); border-color: var(--ivory); }
.btn--ghost-dark { border-color: var(--green); color: var(--green); }
.btn--ghost-dark:hover { background: var(--green); color: var(--ivory); }

.text-link { display: inline-block; font-weight: 600; font-size: .95rem; color: var(--green); text-decoration: none; padding-bottom: .15rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.text-link:hover { background-size: 40% 1px; }
.section--green .text-link { color: var(--gold); }

.icon-btn { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--green); cursor: pointer; transition: background .3s, color .3s, opacity .3s; }
.icon-btn:hover:not(:disabled) { background: var(--green); color: var(--ivory); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Brand lockup (recreates supplied logo) ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #3A3A3C; flex-shrink: 0; }
.brand__mark { width: auto; height: 3.2rem; }
.brand__word { display: flex; flex-direction: column; font-family: var(--sans); font-weight: 700; font-size: .9rem; line-height: 1.02;
  letter-spacing: .09em; text-transform: uppercase; }
.brand__books { color: #76933C; }
.brand--light, .has-dark-hero .site-header:not(.is-scrolled) .brand { color: var(--ivory); }
.brand--light .brand__books, .has-dark-hero .site-header:not(.is-scrolled) .brand__books { color: #A9C46A; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--charcoal);
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), color .45s var(--ease), transform .45s var(--ease); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.has-light-top .site-header, .site-header.is-scrolled { background: rgba(247, 243, 234, .97); box-shadow: 0 1px 0 var(--line); }
.has-dark-hero .site-header:not(.is-scrolled) { color: var(--ivory); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-scrolled, .has-light-top .site-header { background: rgba(247,243,234,.9); backdrop-filter: blur(10px); } }
.has-light-top main { padding-top: var(--header-h); }

.site-nav { display: none; }
.site-header__cta { display: none; margin-left: auto; }
.site-header.is-scrolled .site-header__cta, .has-light-top .site-header__cta { background: var(--green); color: var(--ivory); }

.nav-toggle { margin-left: auto; width: 3rem; height: 3rem; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: inherit; }
.nav-toggle__bars { position: relative; width: 26px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), opacity .3s, width .45s var(--ease); }
.nav-toggle__bars span:nth-child(1) { top: 0; width: 100%; }
.nav-toggle__bars span:nth-child(2) { top: 6px; width: 70%; }
.nav-toggle__bars span:nth-child(3) { top: 12px; width: 100%; }
.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; width: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel */
@media (max-width: 77.49em) {
  .site-nav { display: flex; flex-direction: column; justify-content: center; gap: 2rem; position: fixed; inset: 0; z-index: -1;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2.5rem; background: var(--green); color: var(--ivory);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease), visibility 0s linear .6s; overflow-y: auto; }
  .nav-open .site-nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
  .site-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
  .site-nav__list a { display: inline-block; font-family: var(--serif); font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.2; text-decoration: none; padding: .1rem 0; }
  .site-nav__list a[aria-current="page"] { color: var(--gold); }
  .site-nav__list li { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav-open .site-nav__list li { opacity: 1; transform: none; }
  .nav-open .site-nav__list li:nth-child(2) { transition-delay: .04s; } .nav-open .site-nav__list li:nth-child(3) { transition-delay: .08s; }
  .nav-open .site-nav__list li:nth-child(4) { transition-delay: .12s; } .nav-open .site-nav__list li:nth-child(5) { transition-delay: .16s; }
  .nav-open .site-nav__list li:nth-child(6) { transition-delay: .2s; }  .nav-open .site-nav__list li:nth-child(7) { transition-delay: .24s; }
  .site-nav__cta { align-self: flex-start; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { color: var(--ivory); background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav-open .site-header .brand { color: var(--ivory); }
  .nav-open .site-header .brand__books { color: #A9C46A; }
  .nav-open .site-header__cta { visibility: hidden; }
}
@media (min-width: 40em) and (max-width: 77.49em) { .site-header__cta { display: inline-flex; } .nav-toggle { margin-left: 0; } }

@media (min-width: 77.5em) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
  .site-nav__list { display: flex; gap: 1.55rem; list-style: none; margin: 0; padding: 0; }
  .site-nav__list a { position: relative; font-size: .9rem; font-weight: 500; text-decoration: none; padding: .4rem 0; white-space: nowrap; }
  .site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
  .site-nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
  .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); background: var(--gold); height: 2px; }
  .site-header.is-scrolled .site-nav__cta, .has-light-top .site-nav__cta { background: var(--green); color: var(--ivory); }
  .site-header.is-scrolled .site-nav__cta:hover, .has-light-top .site-nav__cta:hover { background: var(--green-700); }
}

/* ---------- Covers ---------- */
.cover { position: relative; aspect-ratio: 0.645; background: var(--paper); box-shadow: var(--shadow-book); overflow: hidden; border-radius: 1px 3px 3px 1px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.18) 1.2%, rgba(0,0,0,.08) 2.6%, transparent 5%, transparent 96%, rgba(0,0,0,.08)); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: var(--ivory);
  background: radial-gradient(70% 60% at 72% 46%, #24584A 0%, var(--green) 52%, var(--green-900) 100%); }
.hero__grain { position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero__inner { position: relative; width: 100%; padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: .5rem; }
.hero__title { font-size: var(--fs-display); font-weight: 500; line-height: .98; letter-spacing: -.02em; margin-bottom: 1.75rem; }
.hero__title .line + .line { color: var(--gold-soft); }
.hero__copy { text-align: center; }
.hero__lead { max-width: 38rem; margin-inline: auto; font-size: var(--fs-lead); line-height: 1.6; color: rgba(247,243,234,.86); margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

/* Hero shelf: covers drift across the hero (js/main.js). Without JS or with reduced motion it is a plain swipeable row. */
.hero-shelf { position: relative; margin-top: clamp(2rem, 1rem + 4vh, 4.5rem); padding-bottom: 4.5rem; }
.hero-shelf::before { content: ""; position: absolute; inset: 10% 15% 30%; background: radial-gradient(closest-side, rgba(220,198,156,.2), transparent 70%); filter: blur(10px); pointer-events: none; }
.hero-shelf__viewport { position: relative; overflow-x: auto; scrollbar-width: none; padding: 1.75rem 0 1.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.hero-shelf__viewport::-webkit-scrollbar { display: none; }
.hero-shelf__track { display: flex; align-items: flex-end; gap: clamp(1.5rem, 1rem + 2vw, 3rem); width: max-content; margin: 0; padding: 0 clamp(1rem, 5vw, 4rem); list-style: none; }
.hero-shelf__item { flex: none; width: clamp(8.25rem, 5.25rem + 6vw, 12.5rem); transform-origin: 50% 100%; }
.hero-shelf__book { display: block; transition: transform .5s var(--ease); }
.hero-shelf__book .cover { box-shadow: 0 2px 2px rgba(0,0,0,.2), 0 26px 40px -18px rgba(0,0,0,.7); }
.hero-shelf__book img { pointer-events: none; -webkit-user-drag: none; }
.hero-shelf__book:hover, .hero-shelf__book:focus-visible { transform: translateY(-12px); }
.hero-shelf__book:focus-visible { outline-offset: 6px; }
.hero-shelf__line { position: absolute; left: 0; right: 0; bottom: calc(4.5rem + 1.4rem - 1px); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); opacity: .7; }
.hero-shelf.is-live .hero-shelf__viewport { overflow: hidden; cursor: grab; touch-action: pan-y; }
.hero-shelf.is-live .hero-shelf__track { will-change: transform; }
.hero-shelf.is-dragging .hero-shelf__viewport { cursor: grabbing; user-select: none; }
.hero-shelf.is-dragging .hero-shelf__book { transform: none; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; width: 2rem; height: 3.6rem; transform: translateX(-50%); display: grid; justify-items: center; color: var(--ivory); }
.scroll-cue__line { width: 1px; height: 100%; background: rgba(247,243,234,.25); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(260%); } }

@media (min-width: 64em) {
  .hero__inner { padding-bottom: 1rem; }
}

/* ---------- Inner-page hero ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--ivory); background: radial-gradient(80% 90% at 85% 30%, #24584A, var(--green) 55%, var(--green-900)); }
.page-hero__inner { position: relative; padding-top: calc(var(--header-h) + clamp(4rem, 10vw, 8rem)); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.page-hero__title { font-size: var(--fs-h1); max-width: 16ch; margin-bottom: 1.5rem; }
.page-hero__lead { font-size: var(--fs-lead); max-width: 38rem; color: rgba(247,243,234,.84); margin-bottom: 2rem; }
.page-hero__mark { position: absolute; right: max(2rem, 8vw); top: 18%; width: auto; height: 120%; max-height: 34rem; opacity: .07; filter: grayscale(1) brightness(2.2); pointer-events: none; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }
.section-head h2 { margin-bottom: .35em; }
.section-head__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 36rem; }
.section--green .section-head__lead { color: rgba(247,243,234,.78); }
@media (min-width: 56em) {
  .section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: end; }
  .section-head--split h2 { margin-bottom: 0; }
}

/* ---------- Intro ---------- */
.intro__grid { display: grid; gap: 2.5rem; }
.intro__statement { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); line-height: 1; max-width: 13ch; color: var(--green); }
.intro__media { margin-top: 1rem; }
@media (min-width: 56em) {
  .intro__grid { grid-template-columns: 1.15fr 1fr; gap: 2.5rem 5rem; }
  .intro__copy { padding-top: .75rem; }
  .intro__media { grid-column: 1 / -1; margin-top: 2rem; }
  .intro__media .photo-ph { aspect-ratio: 21 / 8 !important; }
}

/* ---------- Photo placeholder ---------- */
.photo-ph { position: relative; margin: 0; overflow: hidden; color: var(--ivory); display: flex; align-items: flex-end;
  background: repeating-linear-gradient(135deg, rgba(247,243,234,.035) 0 1px, transparent 1px 14px), linear-gradient(160deg, var(--green-700), var(--green-900)); }
.photo-ph__mark { position: absolute; right: 8%; top: 50%; height: 62%; width: auto; transform: translateY(-50%); opacity: .12; filter: grayscale(1) brightness(2.4); }
.photo-ph figcaption { position: relative; padding: 1.4rem 1.5rem; font-size: var(--fs-small); color: rgba(247,243,234,.75); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
/* Placeholder stock photo (Pixabay) inside the panel; the green gradient shows while it loads */
.photo-ph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; gap: 3rem 2rem; }
@media (min-width: 40em) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem 2.5rem; }
  .cat-grid > :nth-child(3n+2) { margin-top: 3rem; } }
.cat-card__media { display: block; margin-bottom: 1.5rem; overflow: hidden; }
.cat-card__title { font-size: var(--fs-h3); margin-bottom: .5rem; }
.cat-card__title a { text-decoration: none; }
.cat-card p { color: var(--muted); font-size: .98rem; max-width: 34rem; }

.cat-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; transition: transform .9s var(--ease); }
.cat-card:hover .cat-art, .cat-card:focus-within .cat-art { transform: scale(1.02); }
.cat-art svg { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.cat-card:hover .cat-art svg { transform: scale(1.06); }
.tone-charcoal .cat-art { background: #2B2B2B; }
.tone-gold .cat-art { background: #D9C49B; }
.tone-paper .cat-art { background: #E1D6BF; }
.tone-terra .cat-art { background: var(--terra); }
.tone-green .cat-art { background: var(--green); }
.tone-ivory .cat-art { background: #F2E6C9; }
.cat-art--covers .cover { position: absolute; width: 34%; top: 50%; transition: transform 1s var(--ease); }
.cat-art__a { left: 18%; transform: translateY(-50%) rotate(-5deg); }
.cat-art__b { right: 18%; transform: translateY(-46%) rotate(4deg); }
.cat-card:hover .cat-art__a { transform: translate(-6%, -52%) rotate(-8deg); }
.cat-card:hover .cat-art__b { transform: translate(6%, -48%) rotate(7deg); }
.cat-art--strata path { fill: none; stroke: rgba(247,243,234,.55); stroke-width: 1.2; }
.cat-art--strata .s-sun { fill: var(--gold); }
.cat-art--orbits .s-orbit ellipse { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .75; }
.cat-art--orbits .s-core { fill: var(--gold); } .cat-art--orbits .s-moon { fill: var(--ivory); }

/* ---------- Book cards & carousel ---------- */
.book-card { display: flex; flex-direction: column; height: 100%; }
.book-card__media { display: block; padding: 1.5rem 1.5rem 0; background: linear-gradient(180deg, transparent 18%, var(--paper) 18%); margin-bottom: 1.4rem; }
.section--paper .book-card__media { background: linear-gradient(180deg, transparent 18%, #E4DAC4 18%); }
.book-card__media .cover { transition: transform .7s var(--ease), box-shadow .7s var(--ease); transform-origin: bottom center; }
.book-card:hover .book-card__media .cover, .book-card:focus-within .book-card__media .cover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 2px 2px rgba(0,0,0,.14), 0 26px 40px -22px rgba(0,0,0,.5), 0 50px 70px -40px rgba(15,42,34,.6); }
.book-card__body { display: flex; flex-direction: column; flex: 1; }
.book-card__cat { font-size: .8rem; font-weight: 600; color: var(--terra-text); margin-bottom: .5rem; letter-spacing: .01em; }
.book-card__title { font-size: 1.6rem; line-height: 1.1; margin-bottom: .35rem; }
.book-card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.book-card__title a:hover { background-size: 100% 1px; }
.book-card__author { font-size: .92rem; font-weight: 600; color: var(--green); margin-bottom: .75rem; }
.book-card__desc { font-size: .95rem; color: var(--muted); margin-bottom: 1.1rem; }
.book-card .text-link { margin-top: auto; align-self: flex-start; }

.carousel { position: relative; }
/* position: relative keeps absolutely positioned descendants (.sr-only labels) clipped by the track instead of widening the page */
.carousel__track { position: relative; list-style: none; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 19rem); gap: 1.75rem;
  --edge: max(var(--gutter), calc((100vw - 82rem) / 2 + var(--gutter)));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); overscroll-behavior-x: contain;
  padding: .5rem var(--edge) 1.5rem; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.carousel__item { scroll-snap-align: start; }
.carousel.is-auto .carousel__track { scroll-snap-type: none; }   /* snapping would fight the continuous drift */
.carousel__controls { display: flex; gap: .6rem; justify-self: end; }
.featured__foot { margin-top: 1.5rem; }
@media (min-width: 64em) { .carousel__track { grid-auto-columns: 19.5rem; gap: 2.5rem; } }

.book-grid { display: grid; gap: 3rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.book-grid--two { max-width: 44rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline__step { position: relative; padding: 0 0 2.25rem 2.75rem; }
.timeline__step::before { content: ""; position: absolute; left: .45rem; top: .9rem; bottom: -.1rem; width: 1px; background: currentColor; opacity: .25; }
.timeline__step:last-child::before { display: none; }
.timeline__step::after { content: ""; position: absolute; left: 0; top: .35rem; width: .95rem; height: .95rem; border-radius: 50%; border: 1px solid var(--gold); background: var(--green); }
.section--paper .timeline__step::after, .section:not(.section--green) .timeline__step::after { background: var(--paper); border-color: var(--terra); }
.timeline__num { display: block; font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--gold); margin-bottom: .2rem; }
.section:not(.section--green) .timeline__num { color: var(--terra-text); }
.timeline__title { font-size: 1.5rem; margin-bottom: .4rem; }
.timeline p { font-size: .95rem; opacity: .82; max-width: 30rem; }
.model__cta { margin-top: 3rem; }
@media (min-width: 56em) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 3.5rem 0; }
  .timeline--three { grid-template-columns: repeat(3, 1fr); }
  .timeline__step { padding: 2.25rem 2rem 0 0; }
  .timeline__step::before { left: 0; right: 0; top: .45rem; bottom: auto; width: auto; height: 1px; transform-origin: left; }
  .timeline__step:last-child::before { display: block; right: 50%; background: linear-gradient(90deg, currentColor, transparent); }
  .timeline__step:nth-child(4n)::before { right: 1.5rem; }
  .timeline__step::after { top: 0; }
}

/* ---------- Partnerships (home) ---------- */
.partners__grid { display: grid; gap: 3rem; }
.tick-list { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.tick-list li { padding: .85rem 0 .85rem 1.75rem; border-bottom: 1px solid var(--line); position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: .9rem; height: 1px; background: var(--terra); }
.feature-block { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; padding: 1.6rem 1.75rem; background: var(--green); color: var(--ivory); margin-bottom: 2.5rem; }
.feature-block__figure { font-family: var(--serif); font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem); line-height: .9; color: var(--gold); margin: 0; font-variant-numeric: lining-nums tabular-nums; }
.feature-block__text { margin: 0; font-size: 1rem; line-height: 1.5; }
@media (min-width: 64em) { .partners__grid { grid-template-columns: 1fr 1.1fr; gap: 6rem; align-items: center; } }

/* ---------- Why ---------- */
.why { display: grid; gap: 2.5rem 3rem; }
.why__item { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.why__item h3 { margin: 1.2rem 0 .5rem; }
.why__item p { color: var(--muted); }
.line-icon { fill: none; stroke: var(--terra); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 40em) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .why { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Submit band ---------- */
.submit-band__grid { display: grid; gap: 3rem; }
.submit-band h2 { color: var(--green); max-width: 14ch; }
.no-fees { position: relative; padding-left: 1.25rem; border-left: 2px solid var(--gold); font-weight: 600; color: var(--green); }
.no-fees--light { color: var(--ivory); }
.submit-list { margin: 0; display: grid; border-top: 1px solid var(--line); }
.submit-list > div { padding: 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .3rem; }
.submit-list dt { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; color: var(--charcoal); }
.submit-list dd { margin: 0; color: var(--muted); }
.submit-list--plain { margin-top: 1rem; }
@media (min-width: 64em) { .submit-band__grid { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; } }

/* ---------- Editorial statement ---------- */
.statement { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(6rem, 5rem + 8vw, 12rem); background: var(--green-900); color: var(--ivory); }
/* PLACEHOLDER library photo: George Peabody Library by Falkenpost / Pixabay (pixabay.com/photos/george-peabody-library-1629308/) */
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(15,42,34,.86), rgba(15,42,34,.9)), url("../assets/images/statement-library.jpg") center / cover no-repeat; }
.statement__mark { position: absolute; left: 50%; top: 50%; height: 150%; width: auto; transform: translate(-50%, -50%); opacity: .045; filter: grayscale(1) brightness(2.4); pointer-events: none; }
.statement__mark[data-parallax] { translate: -50% -50%; transform: none; }
.statement__quote { margin: 0 auto; max-width: 58rem; text-align: center; }
.statement__quote p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 1.2rem + 3.4vw, 4.1rem); line-height: 1.14; letter-spacing: -.01em; }
.statement__quote .line { display: block; }
@media (max-width: 40em) { .statement__quote .line { display: inline; } .statement__quote .line__inner { display: inline; } }

/* ---------- Final CTA with shelf ---------- */
.final-cta { position: relative; overflow: hidden; background: var(--green); color: var(--ivory); padding-top: var(--section); }
.final-cta__inner { position: relative; text-align: center; max-width: 52rem; padding-bottom: 3rem; }
.final-cta h2 { font-size: var(--fs-h1); margin-bottom: .5em; }
.final-cta .lead { color: rgba(247,243,234,.84); max-width: 40rem; margin-inline: auto; margin-bottom: 2.5rem; }
.final-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.shelf { position: relative; height: clamp(7rem, 12vw, 10rem); margin-top: 2.5rem; border-bottom: 10px solid var(--green-900); overflow: hidden; }
.shelf__row { position: absolute; inset: 0 -2rem; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.spine { flex: 0 0 var(--w); height: var(--h); background: var(--c); transform: rotate(var(--t)); transform-origin: bottom; position: relative; box-shadow: inset -2px 0 0 rgba(0,0,0,.18), inset 2px 0 0 rgba(255,255,255,.06); }
.spine[data-band]::before, .spine[data-band]::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--gold); opacity: .8; }
.spine[data-band]::before { top: 12%; } .spine[data-band]::after { top: calc(12% + 5px); }

/* ---------- Split layouts (inner pages) ---------- */
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1.1fr; gap: 6rem; }
  .split--reverse .split__media { order: 2; }
  .split--text { grid-template-columns: 1fr 1.3fr; align-items: start; }
}
.two-col { display: grid; gap: 2.5rem 4rem; }
.two-col h3 { color: var(--green); font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); }
.two-col p { font-size: var(--fs-lead); color: var(--muted); max-width: 32rem; }
@media (min-width: 48em) { .two-col { grid-template-columns: 1fr 1fr; } .two-col > * { border-top: 1px solid var(--line); padding-top: 2rem; } }

.caps { display: grid; gap: 2.5rem; }
.cap { border-top: 1px solid var(--line-light); padding-top: 1.5rem; }
.cap h3 { color: var(--gold-soft); }
.cap p { color: rgba(247,243,234,.8); }
@media (min-width: 40em) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .caps { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }

.cover-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
.cover-row__item { display: block; transition: transform .7s var(--ease); }
.cover-row__item:hover { transform: translateY(-6px); }
@media (min-width: 48em) { .cover-row { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } .cover-row__item:nth-child(even) { margin-top: 3rem; } }

/* ---------- Publishing model ---------- */
.stages { display: grid; gap: 3rem; }
.stages__intro p { color: var(--muted); font-size: var(--fs-lead); max-width: 28rem; }
.stage-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stage-list li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.stage-list__num { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--terra); font-variant-numeric: lining-nums; }
.stage-list h3 { margin-bottom: .4rem; }
.stage-list p { color: var(--muted); max-width: 38rem; }
@media (min-width: 64em) { .stages { grid-template-columns: 1fr 1.6fr; gap: 6rem; } .stages__intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }

.cta-strip__inner { text-align: center; max-width: 44rem; }
.cta-strip h2 { color: var(--green); }
.cta-strip p { color: var(--muted); font-size: var(--fs-lead); }
.cta-strip__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2rem; }

/* ---------- Partnerships page ---------- */
.areas { display: grid; gap: 2.5rem 4rem; margin-bottom: 4rem; }
.area { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.area h3 { color: var(--green); }
.area p { color: var(--muted); max-width: 32rem; }
@media (min-width: 48em) { .areas { grid-template-columns: 1fr 1fr; } }
.caps-title { font-size: 1.5rem; margin-bottom: 1rem; }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list li { border: 1px solid rgba(23,61,50,.35); color: var(--green); padding: .5rem 1rem; border-radius: 999px; font-size: .92rem; font-weight: 500; }

.case__grid { display: grid; gap: 3rem; align-items: center; }
.case__figure { display: grid; gap: .5rem; padding-block: 2rem; border-block: 1px solid var(--line-light); }
.case__num { font-family: var(--serif); font-size: clamp(6rem, 3rem + 12vw, 12rem); line-height: .85; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.case__unit { font-size: 1.05rem; color: rgba(247,243,234,.8); max-width: 18rem; }
.case__label { font-size: .9rem; font-weight: 600; color: var(--gold); }
@media (min-width: 56em) { .case__grid { grid-template-columns: 1fr 1.25fr; gap: 6rem; } }
.case__facts { list-style: none; margin: 2rem 0 0; padding: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; border-top: 1px solid var(--line-light); }
.case__facts li { display: flex; align-items: baseline; gap: .5rem; color: rgba(247,243,234,.8); }
.case__facts strong { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--gold); }
/* Case study detail sections */
.case-detail .section-head { margin-bottom: 0; }
.case-detail .section-head__lead p + p { margin-top: 1rem; }
.case-cols { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 56em) { .case-cols { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.case-cols h2 { font-size: var(--fs-h3); }
.case-countries { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.case-countries li { padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--green); }
.case-phases .timeline__num { font-style: normal; font-size: 1.6rem; }
.case-phases p + p { margin-top: .6rem; }
.case-cols .details > div { grid-template-columns: 11rem 1fr; }
@media (max-width: 30em) { .case-cols .details > div { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- Catalogue ---------- */
.catalogue-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(247,243,234,.96); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: .5rem; overflow-x: auto; padding-block: .9rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 1px solid var(--line); background: transparent; padding: .55rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 500; cursor: pointer; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); color: var(--ivory); border-color: var(--green); }
.catalogue { padding-top: 4rem; }
.catalogue__cat { padding-bottom: 5rem; scroll-margin-top: calc(var(--header-h) + 5rem); }
.catalogue__cat[hidden] { display: none; }
.catalogue__head { display: grid; gap: .5rem; margin-bottom: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.catalogue__head h2 { color: var(--green); margin: 0; }
.catalogue__head p { color: var(--muted); max-width: 40rem; }
@media (min-width: 56em) { .catalogue__head { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; } }
.empty-state { padding: 2.5rem; border: 1px dashed rgba(23,61,50,.3); color: var(--muted); }
.empty-state p:first-child { font-family: var(--serif); font-size: 1.6rem; color: var(--charcoal); line-height: 1.2; }

/* ---------- Book detail ---------- */
.book-detail { padding-block: clamp(3rem, 6vw, 6rem) var(--section); }
.book-detail__grid { display: grid; gap: 3rem; }
.book-detail__cover { max-width: 22rem; }
.book-detail__crumb { font-size: .9rem; color: var(--muted); margin-bottom: 2rem; }
.book-detail__crumb a { color: var(--green); }
.book-detail__title { font-size: var(--fs-h1); color: var(--green); margin-bottom: .35em; max-width: 18ch; }
.book-detail__subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 1.2rem + .9vw, 2rem); line-height: 1.25; margin-bottom: 1.25rem; }
.book-detail__author { font-weight: 700; color: var(--terra-text); margin-bottom: .5rem; }
.book-detail__credits p { font-size: .92rem; color: var(--muted); margin-bottom: .25rem; }
.book-detail__credits { margin-bottom: 2rem; }
.book-detail__info > .lead { max-width: 40rem; }
.book-detail__h { font-size: 1.7rem; margin: 2.75rem 0 .9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.details { margin: 0; display: grid; max-width: 40rem; }
.buy-links { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.details > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: .92rem; }
.details dd { margin: 0; }
@media (min-width: 56em) { .book-detail__grid { grid-template-columns: minmax(0, 24rem) 1fr; gap: 6rem; } .book-detail__cover { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }

/* ---------- Guidelines ---------- */
.guidelines__grid { display: grid; gap: 3rem; }
.toc { display: none; }
.guidelines__body section { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.guidelines__body section:last-child { border-bottom: 0; }
.guidelines__body h2 { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.7rem); color: var(--green); }
.guidelines__body h3 { font-size: 1.5rem; margin-top: 1.75rem; }
.guidelines__body li { margin-bottom: .5rem; }
.submit-box { background: var(--green); color: var(--ivory); padding: 2.5rem !important; }
.submit-box h2 { color: var(--ivory) !important; }
.submit-box .btn--green { background: var(--gold); color: var(--green-900); }
/* Author submission form (submit.html) */
.submit-card { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--white); border: 1px solid var(--line); border-radius: 2px; }
.submit-card .form__status { margin-bottom: 1.5rem; }
.submit-card .form__actions { display: grid; gap: .75rem; justify-items: start; }
.field input[type="file"] { padding: .7rem; background: var(--white); }
.submit-page .form-wrap__intro ul { padding-left: 1.2rem; margin: 0 0 1.5rem; color: var(--muted); max-width: 26rem; }
.submit-page .form-wrap__intro li { margin-bottom: .4rem; }
.submit-page .form-wrap__intro h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 1.75rem 0 .6rem; }
@media (min-width: 64em) {
  .guidelines__grid { grid-template-columns: 15rem 1fr; gap: 6rem; }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; max-height: calc(100vh - var(--header-h) - 4rem); overflow-y: auto; }
  .toc__title { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: .75rem; }
  .toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
  .toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -1px; font-size: .9rem; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; transition: color .3s, border-color .3s; }
  .toc a:hover { color: var(--green); }
  .toc a.is-active { color: var(--green); border-left-color: var(--terra); font-weight: 600; }
}

/* FAQ (native details/summary) */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer;
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: 0 0 1rem; height: 1rem; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--terra); transition: transform .4s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 0 1.5rem; color: var(--muted); max-width: 40rem; }

/* ---------- Contact ---------- */
.pathways { display: grid; gap: 1.5rem; }
.pathway { padding: 2.25rem 2rem; border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; }
.pathway h2 { font-size: 2rem; color: var(--green); }
.pathway p { color: var(--muted); }
.pathway__actions { margin-top: auto; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.pathway__contact { display: grid; gap: .6rem; overflow-wrap: anywhere; }
@media (min-width: 64em) { .pathways { grid-template-columns: repeat(3, 1fr); } }

.form-wrap { display: grid; gap: 3rem; }
.form-wrap__intro p { color: var(--muted); max-width: 26rem; }
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .95rem; }
.req, .opt { font-weight: 500; font-size: .8rem; color: var(--muted); margin-left: .35rem; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; padding: .9rem 1rem; background: var(--white); border: 1px solid rgba(36,36,36,.28); border-radius: 1px;
  transition: border-color .3s, box-shadow .3s; min-height: 3.1rem; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,61,50,.18); }
.field [aria-invalid="true"] { border-color: #A33A2A !important; }
.field__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.field__error { font-size: .88rem; color: #9B3322; font-weight: 600; margin: 0; min-height: 0; }
.field__error:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .5rem .85rem; }
.field--check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--green); }
.field--check label { font-weight: 400; }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 1.25rem 1.4rem; border-left: 3px solid var(--terra); background: var(--white); }
.form__status[data-state="success"] { border-left-color: var(--green); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (min-width: 48em) { .form { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.75rem; } .field--full, .form__status { grid-column: 1 / -1; } }
@media (min-width: 64em) { .form-wrap { grid-template-columns: 1fr 2fr; gap: 6rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(247,243,234,.75); font-size: .93rem; padding-top: clamp(4rem, 7vw, 6rem); }
.site-footer__grid { display: grid; gap: 2.75rem; padding-bottom: 4rem; }
.site-footer__about p { margin-top: 1.5rem; max-width: 22rem; }
.site-footer__h { font-family: var(--sans); font-size: .82rem; font-weight: 700; color: var(--gold); margin: 0 0 1rem; letter-spacing: .02em; }
.site-footer__h + ul + .site-footer__h, address + .site-footer__h { margin-top: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; }
.site-footer address { display: grid; gap: .5rem; overflow-wrap: anywhere; }
.site-footer ul.site-footer__social { margin: 1rem 0 0 -.6rem; display: flex; flex-wrap: wrap; gap: .25rem; }
/* Icon-only links: 44px tap target, name kept for screen readers and as a hover tooltip */
.site-footer__social a { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; transition: background-color .3s var(--ease), color .3s var(--ease); }
.site-footer__social a:hover { background: rgba(247,243,234,.1); text-decoration: none; }
.site-footer__social svg { flex: none; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; border-top: 1px solid var(--line-light); font-size: .85rem; }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72em) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1.3fr 1.4fr; gap: 3rem; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: var(--green); color: var(--ivory);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s; }
.to-top.is-shown { opacity: 1; transform: none; }
.to-top:hover { background: var(--green-700); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scroll-cue__line::after { animation: none; }
}
@media (max-width: 40em) {
  .statement .reveal-lines .line, .statement .reveal-lines .line__inner { display: inline; }
}
