/* ============================================================
   GOOD LEARNING BY DESIGN - Global Stylesheet
   UPDATED: 2026-08-07
   Calm, documentary, editorial. Paper + ink, blue + terracotta accents.
   Colours and type chosen to match the series voice:
   designed, not delivered. Grounded, practical, no hype.
   ============================================================
   HOW THIS FILE IS ORGANISED (read this before editing)

   1. DESIGN TOKENS. Everything visual is driven by CSS custom properties
      ("design tokens") declared in the :root block immediately below.
      Rules further down never hard-code a brand colour, they say
      var(--green), var(--ink), var(--paper) and so on.
      => To change a colour everywhere on the site, change it ONCE in :root.
         Do not search and replace hex values through the file.

   2. THE BRAND COLOURS live in that first :root block:
        --ink     #20242b   near-black, all body text
        --paper   #f8f5ef   warm off-white page background
        --green   #2d5c8f   the primary accent. Historically named "green",
                            the value is now a blue. The NAME is used in ~100
                            places, so it was kept. Do not rename it, change
                            the value if you want a different accent.
        --ochre   #c4593a   terracotta, the secondary accent, used sparingly
      Keep this palette. It is the brand.

   3. DARK THEME. html[data-theme="dark"] re-declares the same token names with
      dark values. Nothing else in the file knows about themes. A tiny inline
      script in each page's <head> sets data-theme before first paint so the
      page never flashes, and js/main.js toggles it and remembers the choice in
      localStorage under 'glbd-theme'.
      => If you add a token, add it to BOTH :root and the dark block, or the
         dark theme will silently inherit the light value.

   4. FILE MAP, in source order. Later blocks were appended by later passes and
      deliberately override earlier ones, so ORDER MATTERS. Appending at the
      bottom is the safe way to change something.
        :root / dark theme ....... design tokens
        RESET & BASE ............. box-sizing, body, links, images
        TYPOGRAPHY ............... h1-h4, p, .lead, .eyebrow
        LAYOUT ................... .container, .section, .grid, .center
        UTILITIES ................ .mt-*, .mb-* spacing helpers
        COMPONENTS ............... buttons, header, hero, cards, article,
                                   framework, prompt, checklist, forms, footer
        RESPONSIVE ............... first breakpoints (860px, 520px)
        ADDED blocks ............. theme toggle, modal, pricing, support, FAQ,
                                   figures, studio, fables, books, quiz, chapter
                                   map, bibliography, then the site-specific
                                   Good Learning by Design additions
        ADDED 2026-08-07 ......... accessibility pass. Contains the CONTRAST FIX
                                   override, the skip link and focus styles, the
                                   books page, the resources page, reduced
                                   motion, and the print rules. See the long
                                   note on that block before deleting anything.

   5. BREAKPOINTS used in this file: 860px (the main one, mobile nav appears
      here), 640px, 520px. There is no CSS framework and no build step, so
      there is nothing to recompile. Save the file and re-upload.

   6. css/print.css is a separate, much smaller file for browser printing.
      There is ALSO an @media print block at the very bottom of this file.
      Both apply. Check both when a printed page looks wrong.

   7. The only external asset the site loads is the Google Fonts stylesheet
      (Fraunces + Inter), linked from each page's <head>. No CSS framework,
      no CDN JavaScript.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS, LIGHT THEME (the source of truth for the palette)
   ============================================================ */
:root {
  /* Ink + paper */
  --ink:        #20242b;
  --ink-soft:   #4a4f57;
  --ink-faint:  #7c828c;
  --paper:      #f8f5ef;
  --paper-2:    #efeadf;
  --paper-3:    #e7e0d2;
  --line:       #e0d9ca;
  --white:      #ffffff;

  /* Green = growth (primary accent) */
  --green:      #2d5c8f;
  --green-dark: #234a73;
  --green-soft: #e6edf4;

  /* Ochre = warmth (secondary accent, used sparingly) */
  --ochre:      #c4593a;
  --ochre-soft: #f6e6df;

  --shadow-sm: 0 1px 3px rgba(32,36,43,0.07);
  --shadow-md: 0 6px 24px rgba(32,36,43,0.10);
  --shadow-lg: 0 16px 48px rgba(32,36,43,0.14);
  --radius:    10px;
  --radius-lg: 18px;
  --transition: 0.2s ease;
  --maxw: 1120px;

  /* Theme-stable bands (stay dark in both light and dark themes) */
  --band-bg:    #20242b;
  --band-text:  #f1ece1;
  --footer-bg:  #20242b;
  --footer-text:#c8ccd3;
  --footer-head:#f8f5ef;
  --header-bg:  rgba(248,245,239,0.92);
  --modal-scrim: rgba(32,36,43,0.55);
}

/* ============================================================
   DESIGN TOKENS, DARK THEME
   Same token names, dark values. Set by data-theme="dark" on <html>.
   Any token you add above must be added here too, or dark mode inherits
   the light value and something ends up unreadable.
   ============================================================ */
/* ---------- DARK THEME ---------- */
html[data-theme="dark"] {
  --ink:        #f0ebe0;
  --ink-soft:   #ccc9bd;
  --ink-faint:  #948d80;
  --paper:      #181c22;
  --paper-2:    #20242b;
  --paper-3:    #2a2f38;
  --line:       #333a44;
  --white:      #1b1f26;
  --green:      #7aa6d2;
  --green-dark: #9bbde0;
  --green-soft: #1e2833;
  --ochre:      #db8163;
  --ochre-soft: #2c211b;
  --header-bg:  rgba(24,28,34,0.9);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.55);
}
html { transition: background-color var(--transition); }

/* ============================================================
   RESET & BASE
   A deliberately tiny reset. ul/ol have their bullets removed globally,
   which is why several components draw their own markers with ::before.
   ============================================================ */
/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   Two families only: Fraunces (serif) for headings and pull quotes,
   Inter (sans) for everything else. Both come from the Google Fonts link
   in each page's <head>. If you swap a font you must change it in BOTH
   places: the <head> link on all 27 pages, and the font-family rules here.
   Heading sizes use clamp() so they scale with the viewport, no extra
   breakpoints needed. p has max-width:68ch to keep line length readable.
   .eyebrow is the small uppercase kicker above most headings.
   ============================================================ */
/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Georgia', serif;
  line-height: 1.18;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1.1rem; max-width: 68ch; }
strong { font-weight: 600; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
}

/* ============================================================
   LAYOUT
   .container      = full width wrapper, capped at --maxw (1120px)
   .container--narrow = reading column, capped at 760px (used for prose)
   .section        = the standard vertical rhythm between page bands
   .section--paper2 / --ink / --green = alternating background bands
   .grid-2 / .grid-3 = the card grids. They collapse to one column at 860px
   in the RESPONSIVE block further down.
   ============================================================ */
/* ---------- LAYOUT ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--band-bg); color: var(--band-text); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--band-text); }
.section--green { background: var(--green); color: #fff; }
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.center { text-align: center; }
/* ---------- UTILITIES ----------
   Spacing helpers used inline in the HTML (class="mt-2" etc.).
   1 = 0.5rem, 2 = 1rem, 3 = 1.6rem, 4 = 2.4rem. Nothing clever.
   Other utilities live further down: .sr-only (screen-reader only),
   .hidden (parked off screen but still selectable), .no-print,
   .fineprint (small legal text). */
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.6rem}

/* ============================================================
   COMPONENTS start here.
   Everything below is a named block of UI: buttons, header, hero, cards,
   article body, framework tables, prompt blocks, checklists, forms, footer.
   Each one is keyed off a class used in the HTML. Search the class name to
   find every page that uses it before you change a component.
   ============================================================ */
/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.98rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: all var(--transition);
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--green-dark); }

/* ---------- ENSŌ / LOGO ---------- */
.enso { display: inline-block; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: flex-start; height: 74px; gap: 1.2rem; }
.header-inner .brand { margin-right: auto; }
.header-inner .main-nav { order: 2; }
.header-inner .header-tools { order: 3; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand .brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.12rem; line-height: 1.05; }
.brand .brand-sub { display: block; font-family: 'Inter', sans-serif; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); }
.main-nav a:hover, .main-nav a.active { color: var(--green-dark); }
.main-nav a.active { font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: var(--transition); }

/* ---------- HERO ---------- */
.hero { padding: 5.5rem 0 4.5rem; }
.hero .eyebrow { margin-bottom: 1rem; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.4rem; max-width: 60ch; }
.hero-actions { margin-top: 2.2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.thesis {
  border-left: 3px solid var(--green);
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.4;
  color: var(--ink); max-width: 32ch;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }
.card .ep-num { font-family: 'Fraunces', serif; font-size: 0.9rem; color: var(--green); font-weight: 600; }
.card h2, .card h3 { margin: 0.3rem 0 0.5rem; }
.card p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; padding: 0.22rem 0.6rem; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark);
}
.tag--ochre { background: var(--ochre-soft); color: #8a5c13; }
.read-more { font-weight: 600; font-size: 0.9rem; }

/* ---------- SIX KINDS OF HARD (home) ---------- */
.kinds { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.kind {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem;
}
.kind .num { font-family: 'Fraunces', serif; color: var(--ochre); font-weight: 600; }
.kind h4 { margin: 0.2rem 0 0.3rem; }
.kind p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---------- ARTICLE / POST ---------- */
.post-head { padding: 3.5rem 0 2rem; }
.post-meta { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; color: var(--ink-faint); font-size: 0.85rem; }
.post-body { font-size: 1.06rem; }
.post-body h2 { margin: 2.4rem 0 0.9rem; }
.post-body h3 { margin: 1.8rem 0 0.6rem; }
.post-body p { color: var(--ink-soft); }
.post-body strong { color: var(--ink); }
.pullquote {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1.35rem; line-height: 1.45; color: var(--ink);
  border-left: 3px solid var(--green); padding-left: 1.3rem;
  margin: 2rem 0; max-width: 40ch;
}

/* ---------- FRAMEWORK CARD ---------- */
.framework {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin: 1.6rem 0;
}
.framework-head { background: var(--band-bg); color: var(--band-text); padding: 1.1rem 1.4rem; }
.framework-head .eyebrow { color: #cdb98f; }
.framework-head h3 { color: var(--band-text); margin-top: 0.2rem; }
.framework-table { width: 100%; border-collapse: collapse; }
.framework-table th, .framework-table td { text-align: left; padding: 0.85rem 1.4rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.framework-table th { font-family: 'Inter',sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.framework-table tr:last-child td { border-bottom: 0; }
.framework-table td:first-child { font-weight: 600; color: var(--green-dark); white-space: nowrap; }
.framework-list { padding: 1.2rem 1.4rem; }
.framework-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.7rem; }
.framework-list li:last-child { border-bottom: 0; }
.framework-list .n { font-family:'Fraunces',serif; color: var(--green); font-weight: 600; flex-shrink:0; }

/* ---------- PROMPT BLOCK ---------- */
.prompt {
  background: var(--paper-3); border: 1px solid var(--line);
  border-radius: var(--radius); margin: 1.4rem 0; overflow: hidden;
}
.prompt-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.prompt-bar span { font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.04em; }
.copy-btn { font-family:'Inter',sans-serif; font-size: 0.8rem; font-weight: 600; background: var(--green); color: #fff; border: 0; padding: 0.4rem 0.85rem; border-radius: 999px; cursor: pointer; transition: var(--transition); }
.copy-btn:hover { background: var(--green-dark); }
.copy-btn.copied { background: var(--ochre); }
.prompt pre { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; }
.prompt code { font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.86rem; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }

/* ---------- CHECKLIST ---------- */
.checklist { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm); }
.checklist li { position: relative; padding: 0.55rem 0 0.55rem 2.1rem; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.7rem;
  width: 18px; height: 18px; border: 2px solid var(--green); border-radius: 5px;
}
.behaviour {
  background: var(--green-soft); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; border-left: 3px solid var(--green);
}
.behaviour .eyebrow { color: var(--green-dark); }

/* ---------- RESOURCE / DOWNLOAD ROWS ---------- */
.res-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.res-row:last-child { border-bottom: 0; }
.res-row .r-title { font-weight: 600; }
.res-row .r-sub { font-size: 0.9rem; color: var(--ink-faint); }

/* ---------- FORMS ---------- */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color var(--transition);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--green); }
.form-note { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 3.5rem 0 2rem; margin-top: 3rem; }
.site-footer h2 { color: var(--footer-head); margin-bottom: 0.8rem; font-size: 0.95rem; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #cfc7b8; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-links li { padding: 0.28rem 0; }
.footer-brand p { font-size: 0.95rem; color: #b7ae9e; max-width: 42ch; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1rem; }
.footer-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid #4a4438; border-radius: 50%; }
.footer-social a:hover { border-color: var(--green); background: rgba(47,109,84,0.2); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid #3a352c; margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.82rem; color: #948b7b; }

/* ============================================================
   BREAKPOINTS / RESPONSIVE
   860px is THE breakpoint for this site: card grids collapse to one column
   and the desktop nav becomes the slide-down mobile menu (.main-nav.open,
   toggled by js/main.js). The fixed inset value 74px must keep matching the
   .header-inner height above, or the menu will overlap or float.
   520px is a second, smaller pass. A 640px pass appears later in the file.
   ============================================================ */
/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .grid-2, .grid-3, .kinds, .footer-grid { grid-template-columns: 1fr; }
  .kinds { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.5rem; display: none; box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .kinds { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

/* ============================================================
   ADDED: theme toggle, download modal, pricing, support
   ============================================================ */

/* Header tools cluster */
.header-tools { display: flex; align-items: center; gap: 0.4rem; }
.theme-toggle {
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--green); color: var(--green-dark); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

/* Author card mark (ensō) */
.author-mark { color: var(--ink); flex-shrink: 0; }
.author-mark svg { width: 60px; height: 60px; }

/* Fine print / small legal text */
.fineprint { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.55; }
.fineprint p { max-width: none; margin-bottom: 0.7rem; }
.fineprint h2 { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; color: var(--ink); }
.fineprint a { color: var(--green-dark); text-decoration: underline; }

/* Support / coffee call-out */
.support-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--ochre-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.7rem; flex-wrap: wrap;
}
.support-cta h3 { margin: 0; }
.support-cta p { margin: 0; max-width: 52ch; color: var(--ink-soft); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.price-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.price-card--featured { border-color: var(--green); box-shadow: var(--shadow-md); }
.price-card h3 { margin: 0.2rem 0 0.4rem; }
.price-card p { font-size: 0.95rem; color: var(--ink-soft); flex-grow: 1; }
.price-card .btn { width: 100%; justify-content: center; }
.price { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 600; color: var(--ink); margin-bottom: 0.6rem; }
.price span { font-size: 0.85rem; font-family: 'Inter', sans-serif; color: var(--ink-faint); font-weight: 500; }

/* Download email-gate modal */
.modal-overlay {
  position: fixed; inset: 0; background: var(--modal-scrim);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
  padding: 1.2rem;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  max-width: 460px; width: 100%; padding: 2rem 2rem 1.7rem; position: relative;
}
.modal h3 { margin: 0.2rem 0 0.5rem; }
.modal p { font-size: 0.95rem; color: var(--ink-soft); }
.modal .btn { width: 100%; justify-content: center; margin-top: 0.3rem; }
.modal-close {
  position: absolute; top: 0.7rem; right: 0.9rem; background: none; border: 0;
  font-size: 1.6rem; line-height: 1; color: var(--ink-faint); cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.dl-skip { display: block; text-align: center; margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-faint); }
.dl-skip:hover { color: var(--green-dark); }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .support-cta { flex-direction: column; align-items: flex-start; }
}

/* FAQ accordion (uses native <details>) */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 0.7rem; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; padding-right: 2.6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--green); font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-a { padding: 0.9rem 1.2rem 1.1rem; }
.faq-a p { margin: 0; color: var(--ink-soft); }
.faq-item summary:hover { color: var(--green-dark); }

/* PayPal hosted button container */
.paypal-btn { min-width: 220px; }
.paypal-btn > div { min-height: 45px; }
@media (max-width: 860px){ .paypal-btn { width: 100%; } }


/* ============================================================
   ADDED: sparing "aha" graphics (inline SVG, theme-aware)
   ============================================================ */
.glp-fig { margin: 2.4rem auto 0; max-width: 340px; text-align: center; color: var(--ink); }
.glp-fig--wide { max-width: 460px; }
.glp-fig svg { width: 100%; height: auto; overflow: visible; display: block; }
.glp-fig figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.7rem; line-height: 1.5; }
.g-stroke { stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.g-green { stroke: var(--green); }
.g-faint { stroke: var(--ink-faint); }
.g-dash { stroke-dasharray: 5 7; }
.g-fill-ink { fill: currentColor; }
.g-fill-green { fill: var(--green); }
.g-t { font-family: 'Inter', sans-serif; fill: var(--ink-soft); font-size: 13px; }
.g-t-sm { font-size: 11px; fill: var(--ink-faint); }
.g-t-green { fill: var(--green); font-weight: 600; }
.g-t-white { fill: #fff; }
.g-t-cap { text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 600; }

/* ============================================================
   ADDED: Strategy & Process Studio page (studio.html)
   Gold accent + navy/cream brand kit, connected to the site shell.
   ============================================================ */
:root {
  --s-navy: #1B2A41;
  --s-gold: #C69A3D;
  --s-gold-dark: #a87f28;
  --s-stone: #E7E2DA;
  --s-cream: #F5F2ED;
}
.btn--gold { background: var(--s-gold); color: #fff; }
.btn--gold:hover { background: var(--s-gold-dark); color: #fff; }
.studio-eyebrow { color: var(--s-gold); }

.studio-hero-wrap { padding-top: 2.5rem; }
.studio-hero {
  background: var(--s-cream); border: 1px solid var(--s-stone);
  border-radius: var(--radius-lg); padding: 2.6rem 2rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.studio-hero, .studio-hero h1, .studio-hero p { color: var(--s-navy); }
.studio-logo { width: min(560px, 88%); height: auto; margin: 0 auto 1.4rem; }
.studio-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.6rem; }
.studio-hero .lead { color: #3c4a5f; max-width: 52ch; margin: 0.4rem auto 0.8rem; }
.studio-hero p { max-width: 54ch; margin-left: auto; margin-right: auto; }
.studio-reassure { font-style: italic; color: var(--s-gold-dark) !important; margin-top: 1rem; }
.studio-hero .btn--gold { margin-top: 1.4rem; }

.studio-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.studio-card h3 { margin: 0.5rem 0 0.4rem; }
.studio-card p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }
.studio-ico { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: block; }

.studio-step {
  display: flex; gap: 1rem; align-items: flex-start; position: relative;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.studio-step .studio-ico { width: 56px; height: 56px; flex-shrink: 0; margin: 0; }
.studio-step-n {
  position: absolute; top: 0.9rem; right: 1.1rem;
  font-family: 'Fraunces', serif; font-weight: 600; color: var(--s-gold); font-size: 1.2rem;
}
.studio-step h3 { margin: 0 0 0.3rem; }
.studio-step p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.studio-goal {
  max-width: 56ch; margin: 2rem auto 0; color: var(--ink-soft);
  font-family: 'Fraunces', serif; font-style: italic; font-size: 1.15rem;
}
.studio-notice {
  background: var(--paper-2); border-left: 3px solid var(--s-gold);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.studio-notice p { color: var(--ink-soft); margin-bottom: 0.6rem; font-size: 0.95rem; }
.studio-notice p:last-child { margin-bottom: 0; }
.studio-close {
  font-family: 'Fraunces', serif; font-style: italic; font-size: 1.5rem;
  color: var(--s-gold-dark); margin-top: 1.4rem;
}
@media (max-width: 860px) { .studio-cards, .studio-steps { grid-template-columns: 1fr; } }

/* Studio standalone slim footer (theme toggle + privacy/disclaimer only) */
.studio-footer { border-top: 1px solid var(--line); padding: 1.4rem 0; margin-top: 2.5rem; }
.studio-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.studio-footer-links { display: flex; gap: 1.3rem; }
.studio-footer-links a { color: var(--ink-soft); font-size: 0.9rem; }
.studio-footer-links a:hover { color: var(--s-gold-dark); }
.studio-footer-copy { font-size: 0.82rem; color: var(--ink-faint); }

/* Studio page tweaks: smaller hero card + floating top-right theme toggle */
.studio-hero { max-width: 620px; margin: 0 auto; padding: 2rem 1.7rem; }
.studio-logo { width: min(430px, 76%); }
.studio-topbar { position: fixed; top: 0.8rem; right: 0.8rem; z-index: 60; }
.studio-topbar .theme-toggle { background: var(--paper); box-shadow: var(--shadow-sm); }

/* Studio hero trust line */
.studio-trust { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.72rem; font-weight: 600; color: var(--s-gold-dark) !important; margin-top: 0.9rem; }

/* SPIRE Studio hero: identity line + acronym explainer */
.studio-identity { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--s-navy) !important; margin: 0.1rem auto 0.7rem; max-width: 46ch; }
.studio-spire { text-transform: uppercase; letter-spacing: 2px; font-size: 0.72rem; font-weight: 600; color: var(--s-gold-dark) !important; margin-top: 0.7rem; }

/* Studio hero: "Learn how it works" readable on the cream hero in both themes */
.studio-hero .btn--ghost { color: var(--s-navy) !important; border-color: rgba(27,42,65,0.40); background: transparent; }
.studio-hero .btn--ghost:hover { color: var(--s-navy) !important; border-color: var(--s-navy); background: rgba(27,42,65,0.06); }

/* SPIRE acronym: label + expansion with gold acronym letters */
.studio-spire { text-transform: none !important; letter-spacing: normal !important; color: var(--s-navy) !important; margin-top: 0.9rem; line-height: 1.55; }
.studio-spire .spire-word { display: block; font-weight: 800; letter-spacing: 5px; font-size: 0.95rem; color: var(--s-navy); }
.studio-spire .spire-exp { display: inline-block; font-size: 0.7rem; letter-spacing: 1.5px; font-weight: 600; color: var(--s-navy); margin-top: 0.25rem; }
.studio-spire .spire-exp b { color: var(--s-gold-dark); font-weight: 800; }

/* Center button label text */
.btn { justify-content: center; text-align: center; }
.studio-learn { justify-content: center; }

/* Tighten the footer (~25% shorter) */
.site-footer { padding: 2.3rem 0 1.3rem; margin-top: 2rem; }
.site-footer h2 { margin-bottom: 0.5rem; }
.site-footer p { margin-bottom: 0.5rem; }
.footer-links li { padding: 0.13rem 0; }
.footer-social { margin-top: 0.7rem; }
.footer-bottom { margin-top: 1.4rem; padding-top: 0.9rem; }

/* Pricing cards: equal height, full width, buttons pinned to the bottom */
.pricing-grid { align-items: stretch; }
.price-card { height: 100%; }

/* ============================================================
   ADDED: fireside section styles
   Warm "fireside" accent layered on the shared paper/ink shell,
   same fonts, cards and buttons as the rest of the site.
   ============================================================ */
:root {
  --wf-brown: #6d4a2c;
  --wf-brown-dark: #4f3620;
  --wf-moss: #6b8a45;
  --wf-moss-soft: #e9efdd;
  --wf-gold-soft: #f8ecd2;
  --wf-gold-text: #8a5c13;
}
html[data-theme="dark"] {
  --wf-brown: #d3a479;
  --wf-brown-dark: #e6c4a2;
  --wf-moss: #9dbb78;
  --wf-moss-soft: #1f2718;
  --wf-gold-soft: #2c2517;
  --wf-gold-text: #d6a24a;
}
.wf-theme .eyebrow.wf-eyebrow { color: var(--wf-brown); }
.wf-theme .wf-tagline {
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  color: var(--ink-soft); font-size: 1.05rem; margin: 0.5rem 0 0.9rem;
}
.wf-theme .btn--wf-primary { background: var(--wf-brown); color: #fff; }
.wf-theme .btn--wf-primary:hover { background: var(--wf-brown-dark); color: #fff; }
.wf-hero img { width: 100%; height: auto; object-fit: cover; }

.wf-audience-grid .kind, .wf-use-grid .kind {
  border-left: 3px solid var(--wf-moss); border-radius: var(--radius);
}
.wf-use-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.tag--wf { background: var(--wf-moss-soft); color: var(--wf-brown-dark); }
.tag--wf-soft { background: var(--wf-gold-soft); color: var(--wf-gold-text); }

.fable-card { display: flex; flex-direction: column; }
.fable-card .fable-stories { font-size: 0.92rem; color: var(--ink-soft); font-style: italic; margin-bottom: 0.7rem; }
.fable-card .post-meta { flex-wrap: wrap; }
.fable-hook {
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  color: var(--ink); font-size: 1rem; line-height: 1.5;
  border-left: 2px solid var(--wf-gold-text); padding-left: 0.8rem;
  margin-bottom: 0.9rem;
}
.fable-story-summary {
  font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.7rem;
  padding-bottom: 0.7rem; border-bottom: 1px dashed var(--line);
}
.fable-story-summary:last-of-type { border-bottom: 0; margin-bottom: 0.8rem; }
.fable-story-summary strong { color: var(--wf-brown); font-family: 'Fraunces', Georgia, serif; }

.fable-details { margin-top: auto; padding-top: 0.4rem; border-top: 1px dashed var(--line); }
.fable-details summary {
  cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--wf-brown);
  list-style: none; padding: 0.6rem 1.6rem 0.6rem 0; position: relative;
}
.fable-details summary::-webkit-details-marker { display: none; }
.fable-details summary::after {
  content: "+"; position: absolute; right: 0.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--wf-moss); font-weight: 400; line-height: 1;
}
.fable-details[open] summary::after { content: "\2212"; }
.wf-fields { padding: 0.3rem 0 0.2rem; }
.wf-fields dt {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 600; margin-top: 0.9rem;
}
.wf-fields dt:first-child { margin-top: 0; }
.wf-fields dd { font-size: 0.93rem; color: var(--ink-soft); margin: 0.25rem 0 0; }
.wf-vocab { list-style: none; margin: 0; padding: 0; }
.wf-vocab li { padding: 0.2rem 0; font-size: 0.9rem; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.wf-vocab li:last-child { border-bottom: 0; }

.wf-closing {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--band-text); line-height: 1.5;
}

@media (max-width: 860px) {
  .wf-use-grid { grid-template-columns: 1fr; }
  .wf-hero .grid-2 { display: flex; flex-direction: column-reverse; }
}

/* ============================================================
   ADDED: Books tab + Learn tab + self-correcting quiz
   ============================================================ */
/* --- Books --- */
.books-grid { gap: 1.6rem; }
.book-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.book-cover {
  aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--paper-3), var(--paper-2));
  border-bottom: 1px solid var(--line);
}
.book-cover span {
  font-family: 'Fraunces', serif; font-size: 1.1rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-faint);
}
.book-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.book-title { margin: 0 0 0.25rem; }
.book-tagline { color: var(--ink-faint); font-size: 0.92rem; margin: 0 0 0.7rem; }
.book-blurb { margin: 0 0 1.2rem; }
.book-btn { margin-top: auto; align-self: flex-start; }
.book-btn.is-disabled { opacity: 0.6; cursor: default; pointer-events: none; }
.book-note { color: var(--ink-faint); font-size: 0.9rem; margin-top: 2rem; }

/* --- Learn --- */
.build-note {
  display: inline-block; margin-top: 1rem; font-size: 0.85rem; color: var(--ink-faint);
  border: 1px dashed var(--line); border-radius: 999px; padding: 0.3rem 0.9rem;
}
.section-intro { max-width: 60ch; color: var(--ink-soft); margin-bottom: 1.6rem; }
.learn-ph { color: var(--ink-soft); }
.learn-quote {
  font-family: 'Fraunces', serif; font-size: 1.15rem; line-height: 1.5; color: var(--ink);
  border-left: 3px solid var(--green); padding: 0.4rem 0 0.4rem 1.2rem; margin: 0;
}
.learn-quote cite { display: block; margin-top: 0.7rem; font-size: 0.85rem; font-style: normal; color: var(--ink-faint); font-family: 'Inter', sans-serif; }
.myth-card p { margin: 0.2rem 0 0.9rem; }
.myth-card p:last-child { margin-bottom: 0; }
.myth-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; padding: 0.15rem 0.6rem; border-radius: 999px;
}
.myth-tag--myth { background: var(--ochre-soft); color: var(--ink); }
.myth-tag--real { background: rgba(60,130,90,0.15); color: var(--green); }

/* --- Quiz --- */
.quiz { max-width: 60ch; }
.quiz-q { border: 1px solid var(--line); border-radius: 10px; padding: 0.2rem 0.9rem; margin-bottom: 0.7rem; transition: border-color .15s, background .15s; }
.quiz-opt { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.7rem 0; cursor: pointer; line-height: 1.5; }
.quiz-opt input { margin-top: 0.28rem; width: 1.05rem; height: 1.05rem; flex: 0 0 auto; accent-color: var(--green); }
.quiz-q.is-correct { border-color: var(--green); background: rgba(60,130,90,0.08); }
.quiz-q.is-wrong { border-color: #c56; background: rgba(200,90,100,0.08); }
.quiz-result { margin-top: 1rem; font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--ink); }
.quiz-email { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: 60ch; }
.quiz-email label { display: block; margin-bottom: 0.5rem; font-size: 0.95rem; }
.quiz-email-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.quiz-email-row input { flex: 1; min-width: 220px; padding: 0.65rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.quiz-privacy { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.7rem; }
.hidden { position: absolute; left: -9999px; }

/* ============================================================
   ADDED: single-page fold - the 12 episodes as sections
   ============================================================ */
.glp-ep { padding-top: 2.6rem; padding-bottom: 2.6rem; }
.glp-ep .post-meta { margin-bottom: 0.6rem; }
.glp-ep-title { margin: 0 0 1rem; }
.glp-ep h3 { margin-top: 1.8rem; }
.glp-more { margin-top: 1.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.glp-more > summary {
  cursor: pointer; padding: 0.9rem 1.1rem; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 0.5rem; color: var(--ink);
}
.glp-more > summary::-webkit-details-marker { display: none; }
.glp-more > summary::before { content: "+"; font-size: 1.2rem; color: var(--green); line-height: 1; }
.glp-more[open] > summary::before { content: "\2212"; }
.glp-more[open] > summary { border-bottom: 1px solid var(--line); }
.glp-more-body { padding: 0.4rem 1.1rem 1.2rem; }
.glp-more-body h4 { margin: 1.2rem 0 0.5rem; }

/* ============================================================
   ADDED: Book One badge + chapter map
   ============================================================ */
.book-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem;
  background: rgba(60,130,90,0.15); color: var(--green);
}
.book-status-line { color: var(--green); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 0.3rem; }
.chapter-map { margin-top: 2.2rem; }
.cmap-part { margin-bottom: 2.2rem; }
.cmap-part-head { display: flex; align-items: baseline; gap: 0.7rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; margin-bottom: 1.1rem; }
.cmap-part-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green); font-weight: 600; }
.cmap-part-head h3 { margin: 0; }
.cmap-list { margin: 0; padding-left: 1.7rem; }
.cmap-list li { margin-bottom: 1rem; padding-left: 0.3rem; }
.cmap-list li::marker { color: var(--ink-faint); font-family: 'Fraunces', serif; }
.cmap-ch-title { font-family: 'Fraunces', serif; font-weight: 600; color: var(--ink); }
.cmap-list li p { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }
.cmap-foot { margin-top: 1.4rem; font-size: 0.85rem; color: var(--ink-faint); }

.book-subtitle { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--ink-soft); margin: 0.2rem 0 0; font-style: italic; }

/* ============================================================
   ADDED: book buy buttons + working-titles labelling
   ============================================================ */
.book-card .book-btn + .book-btn { margin-top: 0.5rem; }
.amazon-soon { opacity: 0.92; }
.book-buy-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; }
.book-buy-note { font-size: 0.82rem; color: var(--ink-faint); max-width: 34ch; }
.cmap-heading { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.8rem; }
.cmap-tag { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--green); background: rgba(60,130,90,0.15); padding: 0.18rem 0.55rem; border-radius: 999px; }

/* ============================================================
   ADDED: Book One foundations + bibliography
   ============================================================ */
.foundations { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); margin-bottom: 0.8rem; }
.foundations > summary { cursor: pointer; padding: 0.9rem 1.1rem; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.foundations > summary::-webkit-details-marker { display: none; }
.foundations > summary::before { content: "+"; color: var(--green); font-size: 1.2rem; line-height: 1; }
.foundations[open] > summary::before { content: "\2212"; }
.foundations[open] > summary { border-bottom: 1px solid var(--line); }
.foundations-body { padding: 0.9rem 1.1rem 1.2rem; overflow-x: auto; }
.caution-list { margin: 0; padding-left: 1.2rem; }
.caution-list li { margin-bottom: 0.7rem; color: var(--ink-soft); }
.src-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.src-table th, .src-table td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.src-table th { color: var(--ink-faint); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1px; }
.src-table td { color: var(--ink-soft); }
.bib { list-style: none; padding: 0; margin: 0; }
.bib li { padding-left: 1.5rem; text-indent: -1.5rem; margin-bottom: 0.8rem; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.bib a { word-break: break-word; }

/* ============================================================
   GOOD LEARNING BY DESIGN: site-specific additions
   (Brand mark, hero, book covers, pull-quotes, article + series
   typography. Everything else is inherited from the shared system
   above, so cards, buttons, header, footer and the dark theme all
   behave exactly as on the companion site.)
   ============================================================ */

/* Header brand mark: the trail signpost with a rising gauge needle */
.glbd-mark { width: 32px; height: 32px; flex: none; }
.glbd-mark .s { stroke: var(--green); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.glbd-mark .a { stroke: var(--ochre); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.glbd-mark .d { fill: var(--ochre); }

/* Home hero */
.hero-home { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 3.4rem 0 3rem; }
.hero-home .hero-art { width: 100%; max-width: 760px; height: auto; margin: 0 auto 1.6rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hero-home .lead { max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* Book covers (front + back), reused on home + book page */
.book-cover-figure { margin: 0; display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.book-cover-img { width: 100%; max-width: 340px; height: auto; border-radius: 6px; box-shadow: var(--shadow-md), 0 1px 0 rgba(0,0,0,0.04); display: block; }
.book-cover-figure figcaption { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.cover-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 640px){ .cover-pair { grid-template-columns: 1fr; } .book-cover-figure { align-items: center; } }

/* Article body: pull-quote, byline, references */
.article-meta { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--ink-faint); margin: 0.4rem 0 1.6rem; }
.article-body { font-size: 1.06rem; }
.article-body h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }
.article-body h3 { font-size: 1.14rem; margin: 1.5rem 0 0.35rem; }
.post-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.pull { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.32rem; line-height: 1.4; color: var(--green-dark); border-left: 4px solid var(--ochre); background: var(--green-soft); border-radius: 0 12px 12px 0; padding: 1rem 1.3rem; margin: 1.8rem 0; max-width: none; }
.flag { display: inline; background: var(--ochre-soft); border: 1px dashed var(--ochre); border-radius: 4px; padding: 0.05em 0.4em; font-family: 'Inter', sans-serif; font-size: 0.86em; font-style: normal; color: var(--ochre); }
.refs { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.refs h2 { font-size: 1.1rem; margin-bottom: 0.7rem; }
.refs p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.7rem; padding-left: 1.6rem; text-indent: -1.6rem; }
.next-prev { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-family: 'Inter', sans-serif; font-size: 0.92rem; }

/* Series index cards: number chip */
.ep-num { display: inline-block; font-family: 'Inter', sans-serif; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--ochre); margin-bottom: 0.3rem; }
.series-lens { font-family: 'Inter', sans-serif; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); }

/* Small "designed, not delivered" tagline under wordmark reuse */
.brand-sub { font-style: normal; }

/* ============================================================
   ADDED 2026-08-07 - accessibility, interactivity, resources,
   two-book page, support card.
   No brand colours were changed. The only palette-adjacent edit
   is --ink-faint in the LIGHT theme, nudged darker so small grey
   text clears WCAG AA (4.5:1) on the paper background.
   ============================================================ */

/* ============================================================
   ACCESSIBILITY CONTRAST FIX - 2026-08-07   DO NOT DELETE LIGHTLY
   ------------------------------------------------------------
   WHAT IT FIXES
   The light-theme token --ink-faint was #7c828c. It carries small grey text
   all over the site (.eyebrow-adjacent captions, .post-meta, .article-meta,
   .fineprint, .book-facts dt, .form-note, figcaptions, table column heads,
   .book-note, .cmap-foot, .res-row .r-sub and more). At #7c828c that text
   failed WCAG 2.1 AA for normal-size text, which requires 4.5:1.

   MEASURED CONTRAST RATIOS (text colour vs background token)
     against --paper   #f8f5ef :  #7c828c = 3.55:1  FAIL  ->  #61666f = 5.30:1  PASS
     against --paper-2 #efeadf :  #7c828c = 3.22:1  FAIL  ->  #61666f = 4.81:1  PASS
     against --white   #ffffff :  #7c828c = 3.87:1  FAIL  ->  #61666f = 5.77:1  PASS
     (--paper-3 #e7e0d2 gives 4.40:1, just under AA. Nothing currently sets
      --ink-faint text directly on --paper-3, so it is not a live failure.
      If you ever put faint text on a paper-3 panel, darken it further.)

   THIS ONE LINE IS THE FIX. It re-declares a single token, later in the file
   than the original :root block, so the cascade picks it up. It changes no
   brand colour: --ink, --paper, --green and --ochre are untouched.

   DELETING THIS LINE REINTRODUCES A SITE-WIDE WCAG 2.1 AA FAILURE (1.4.3
   Contrast Minimum) on every page that shows small grey text. If you want a
   different grey, keep it at 4.5:1 or better against #f8f5ef and #efeadf.
   The dark theme is unaffected. html[data-theme="dark"] is a more specific
   selector than :root, so it keeps its own --ink-faint (#948d80) no matter
   where this line sits in the file. That value measures 5.20:1 on the dark
   --paper (#181c22) and 4.73:1 on --paper-2 (#20242b), both AA. It drops to
   4.08:1 on --paper-3 (#2a2f38), so avoid faint text on that panel in dark
   mode.
   ============================================================ */
:root { --ink-faint: #61666f; }

/* ---- Skip link + focus ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 3000;
  background: var(--green); color: #fff; font-weight: 600;
  padding: 0.75rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 3px; }
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible { outline: 3px solid var(--ochre); outline-offset: 1px; border-color: var(--green); }
main:focus { outline: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: background var(--transition), transform var(--transition);
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-2px); }
.back-to-top svg { width: 22px; height: 22px; }

/* ---- Footer coffee line ---- */
.footer-coffee-line { font-size: 0.86rem; color: #b7ae9e; margin-top: 0.6rem; }
.footer-coffee-line a { text-decoration: underline; }

/* ---- Support / coffee inline card (resources page only) ---- */
.support-cta .btn--coffee { background: var(--ochre); color: #fff; border-color: var(--ochre); }
.support-cta .btn--coffee:hover { background: #a4462c; color: #fff; }
.support-cta .coffee-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.5rem; }

/* ---- Books page ---- */
.book-block { border-top: 1px solid var(--line); padding-top: 2.4rem; margin-top: 2.4rem; }
.book-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.book-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: 2.4rem; align-items: start; }
@media (max-width: 860px) { .book-layout { grid-template-columns: 1fr; } }
.book-status {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: var(--ochre-soft); color: #8f3d24; border: 1px solid var(--ochre);
}
html[data-theme="dark"] .book-status { color: #f0c3b0; }
.book-facts { margin: 1.2rem 0 0; }
.book-facts dt {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 700; margin-top: 1rem;
}
.book-facts dt:first-child { margin-top: 0; }
.book-facts dd { margin: 0.3rem 0 0; color: var(--ink-soft); }
.book-facts ul { margin: 0.3rem 0 0; padding: 0; }
.book-facts li { position: relative; padding: 0.25rem 0 0.25rem 1.2rem; color: var(--ink-soft); }
.book-facts li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); }

/* Text-only cover plate, used when no cover art exists yet */
.cover-plate {
  aspect-ratio: 2 / 3; width: 100%; max-width: 340px;
  border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(160deg, var(--paper-2), var(--paper-3));
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; justify-content: center; gap: 0.6rem;
  padding: 2rem 1.6rem; text-align: center;
}
.cover-plate .cp-rule { width: 44px; height: 2px; background: var(--ochre); margin: 0 auto; }
.cover-plate .cp-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.45rem; line-height: 1.2; color: var(--ink); font-weight: 600; }
.cover-plate .cp-sub { font-family: 'Inter', sans-serif; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.cover-plate .cp-author { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--ink-soft); }
.cover-plate p { margin: 0; max-width: none; }

/* Book comparison table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.compare-table caption { text-align: left; font-size: 0.85rem; color: var(--ink-faint); padding-bottom: 0.6rem; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-family: 'Inter', sans-serif; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.compare-table tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.compare-table td { color: var(--ink-soft); }
.compare-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.4rem 1rem; box-shadow: var(--shadow-sm); }

/* ---- Resources page ---- */
.res-toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); }
.res-toc ol { padding-left: 0; counter-reset: rtoc; }
.res-toc li { counter-increment: rtoc; padding: 0.35rem 0 0.35rem 1.9rem; position: relative; }
.res-toc li::before { content: counter(rtoc) "."; position: absolute; left: 0; font-family: 'Fraunces', serif; color: var(--ochre); font-weight: 600; }

.tool {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; margin: 1.8rem 0 2.6rem;
}
.tool-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 1.1rem 1.4rem; }
.tool-head h3 { margin: 0.15rem 0 0.3rem; }
.tool-head p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.tool-body { padding: 1.3rem 1.4rem 1.5rem; }
.tool-body > :last-child { margin-bottom: 0; }
.tool-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; padding: 0 1.4rem 1.3rem; }
.tool-actions .copy-btn { padding: 0.5rem 1rem; }

.worksheet { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.worksheet caption { text-align: left; font-size: 0.85rem; color: var(--ink-faint); padding-bottom: 0.6rem; }
.worksheet th, .worksheet td { border: 1px solid var(--line); padding: 0.7rem 0.8rem; text-align: left; vertical-align: top; }
.worksheet thead th { background: var(--paper-2); font-family: 'Inter', sans-serif; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); }
.worksheet tbody th { width: 22%; font-weight: 600; color: var(--green-dark); }
.worksheet td { color: var(--ink-soft); }
.worksheet .fill { height: 3.1rem; }
.worksheet-wrap { overflow-x: auto; }

.writeline { border-bottom: 1px solid var(--line); display: block; height: 1.7rem; margin-top: 0.3rem; }
.prompt-list { counter-reset: pl; }
.prompt-list li { counter-increment: pl; position: relative; padding: 0.5rem 0 0.5rem 2rem; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.prompt-list li:last-child { border-bottom: 0; }
.prompt-list li::before { content: counter(pl); position: absolute; left: 0; top: 0.55rem; font-family: 'Fraunces', serif; color: var(--green); font-weight: 600; }
.prompt-list strong { color: var(--ink); }

.copy-status { font-size: 0.85rem; color: var(--green-dark); align-self: center; }

/* ---- FAQ accordion extras ---- */
.faq-group { margin-bottom: 2.4rem; }
.faq-group > h2 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.faq-item summary h3 { display: inline; font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; color: inherit; letter-spacing: 0; }
.faq-item summary:focus-visible { outline: 3px solid var(--ochre); outline-offset: -3px; }
.faq-a p + p { margin-top: 0.8rem; }
.faq-a ul { margin: 0.6rem 0 0; }
.faq-a li { position: relative; padding: 0.22rem 0 0.22rem 1.2rem; color: var(--ink-soft); }
.faq-a li::before { content: ""; position: absolute; left: 0; top: 0.85rem; width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); }
.faq-controls { display: flex; justify-content: flex-end; margin-bottom: 0.9rem; }

/* ============================================================
   REDUCED MOTION
   Honours the operating-system "reduce motion" setting. Kills transitions,
   smooth scrolling and the hover lifts. js/main.js reads the same media query
   and switches window.scrollTo from 'smooth' to 'auto'. Keep the two in step.
   ============================================================ */
/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .back-to-top:hover { transform: none; }
  a.card:hover { transform: none; }
}

/* ============================================================
   PRINT
   This is the SECOND of two print blocks. css/print.css is the other one and
   is linked after this file, so it wins on ties. Check both when a printed
   page looks wrong.
   The resources page is designed to be printed (File > Print > Save as PDF),
   which is why details/details[open] are forced open here: otherwise a closed
   accordion would print as a row of blank headings.
   Anything you never want on paper gets class="no-print".
   ============================================================ */
/* ---- Print ---- */
@media print {
  .back-to-top, .skip-link, .theme-toggle, .tool-actions { display: none !important; }
  .tool, .worksheet, .faq-item { page-break-inside: avoid; }
  details, details[open] > * { display: block !important; }
  .faq-item summary::after { content: ""; }
  .worksheet .fill { height: 3.4rem; }
}

/* Books page: stack front and back covers in the narrow left column so
   each one stays large enough to read, instead of shrinking side by side. */
.book-layout .cover-pair { grid-template-columns: 1fr; max-width: 340px; gap: 1.6rem; }
@media (max-width: 860px) { .book-layout .cover-pair { margin: 0 auto; } .book-layout .cover-plate { margin: 0 auto; } }
