/* ============================================================
   GOOD LEARNING BY DESIGN - Global Stylesheet
   Calm, documentary, editorial. Paper + ink, blue + terracotta accents.
   Colours and type chosen to match the series voice:
   designed, not delivered. Grounded, practical, no hype.
   ------------------------------------------------------------
   EDITING TIP: Colours, fonts and spacing all live here.
   To change a colour everywhere, edit its value in :root below.
   ============================================================ */

: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);
}

/* ---------- 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 ---------- */
*, *::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 ---------- */
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 { 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; }
.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}

/* ---------- 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 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 h4 { color: var(--footer-head); margin-bottom: 0.8rem; font-size: 0.95rem; }
.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; }

/* ---------- 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 h4 { 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: Worldwise Fables section (worldwise-fables.html)
   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 { margin: 2.2rem 0 0.6rem; }
.article-body h3 { margin: 1.6rem 0 0.4rem; }
.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; }
