/*
Theme Name:   Growing Up At Home Child
Theme URI:    https://growingupathome.org
Description:  Sampler / Cross-Stitch Grid editorial child theme for growingupathome.org. Slab display, indigo structure, mustard misregistration.
Author:       Devon Ashworth
Template:     generatepress
Version:      1.0.0
*/

/* ============================================================
   GROWING UP AT HOME — Sampler / Cross-Stitch Grid
   Archetype signatures (this site only):
     1. stitch rule      — running-stitch dashes (11 on / 7 off)
     2. sampler band     — split solid indigo strip above the masthead
     3. misregistration  — hard-edged mustard offset shadow on solid plates
   Shape lock: radius 0 everywhere. Only exception: category chips (2px).
   Color lock: indigo = structure, mustard = only accent.
   Motion: CSS hover + CSS scroll progress. Zero JS.
   ============================================================ */

:root {
  /* base tokens consumed by header/footer/single/archive */
  --color-primary: #3B4E7A;
  --color-primary-dark: #2A3A5C;
  --color-primary-soft: #E6DCC7;
  --color-bg: #F1EADB;
  --color-bg-deep: #E6DCC7;
  --color-accent: #C98A2E;
  --color-accent-soft: #E4B76B;
  --color-accent-deep: #A06D1E;
  --color-charcoal: #241F17;
  --color-ink: #241F17;
  --color-muted: #6C6355;
  --color-line: #D3C7AE;
  --color-white: #FAF6EC;

  /* site palette aliases */
  --indigo: #3B4E7A;
  --indigo-deep: #2A3A5C;
  --indigo-soft: #B9C3DA;
  --wheat: #F1EADB;
  --wheat-light: #FAF6EC;
  --wheat-panel: #E6DCC7;
  --mustard: #C98A2E;
  --mustard-deep: #A06D1E;

  --font-serif: 'Hepta Slab', Georgia, 'Times New Roman', serif;
  --font-sans: 'Heebo', 'Trebuchet MS', sans-serif;

  --max-w: 1200px;
  --max-w-wide: 1400px;
  --max-w-narrow: 740px;

  /* shape lock: everything square */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;

  /* signature 1: running stitch */
  --stitch: repeating-linear-gradient(90deg, var(--indigo) 0 11px, transparent 11px 18px);
  --stitch-mustard: repeating-linear-gradient(90deg, var(--mustard) 0 11px, transparent 11px 18px);
  /* placeholder weave for missing thumbnails */
  --weave: repeating-linear-gradient(90deg, rgba(59,78,122,.16) 0 4px, transparent 4px 9px),
           repeating-linear-gradient(0deg,  rgba(59,78,122,.16) 0 4px, transparent 4px 9px);
}

/* ============================================================
   GLOBAL
   ============================================================ */
body, .entry-content, .widget {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--wheat);
  font-size: 17px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: -0.012em;
  line-height: 1.14;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-top: 2.4em; margin-bottom: 0.6em; }
h3 { font-size: 1.28rem; margin-top: 2em; margin-bottom: 0.5em; }

a {
  color: var(--indigo-deep);
  text-decoration: underline;
  text-decoration-color: var(--color-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
a:hover { color: var(--mustard-deep); text-decoration-color: var(--mustard); }
p { margin: 0 0 1.2em; }

blockquote {
  border-left: 4px solid var(--mustard);
  background: var(--wheat-light);
  padding: 1.4rem 1.6rem;
  margin: 2.2em 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--color-ink);
  border-radius: 0;
}
hr { border: none; height: 5px; background: var(--stitch); margin: 3em 0; }
img { max-width: 100%; height: auto; border-radius: 0; }
figure { margin: 2em 0; }
figcaption { font-size: .9rem; color: var(--color-muted); margin-top: .5rem; }

.tb-eyebrow {
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mustard-deep);
  font-weight: 700;
}

/* placeholder weave (used by gah_thumb fallback) */
.gah-ph { background: var(--wheat-panel); background-image: var(--weave); background-size: 9px 9px; }
.gah-ph.cover { width: 100%; height: 100%; }

/* ============================================================
   1. SAMPLER BAND (signature 2) — replaces the announcement bar
   ============================================================ */
.tb-announce, .gah-band { background: var(--indigo); color: var(--wheat-light); }
.gah-band-in {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.gah-band-cell { padding: .72rem 1.5rem; border-left: 1px solid rgba(241,234,219,.42); }
.gah-band-cell:first-child { border-left: 0; }
.gah-band-k {
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--indigo-soft); font-weight: 700;
}
.gah-band-v { font-family: var(--font-serif); font-size: .95rem; font-weight: 600; }
.gah-band-v b { color: var(--mustard); font-weight: 800; }

/* ============================================================
   2. MASTHEAD — left wordmark, no centered nameplate
   ============================================================ */
.tb-masthead { border-bottom: 2px solid var(--indigo); background: var(--wheat-light); }
.tb-masthead-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.6rem 1.5rem 1.3rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.tb-masthead-meta {
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--color-muted); font-weight: 700;
  order: 3; text-align: right; padding-bottom: .35rem;
}
.tb-masthead-meta:not(.right) { display: none; }
.tb-masthead-title {
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -.03em; color: var(--indigo);
  text-decoration: none; display: block; line-height: 1.05;
}
.tb-masthead-title:hover { color: var(--indigo-deep); }
.tb-masthead-tagline { font-size: .86rem; color: var(--color-muted); margin-top: .25rem; }

/* ============================================================
   NAV — one line at desktop (hard requirement), wraps on mobile
   ============================================================ */
.tb-main { display: block; }
.tb-main > * { width: 100%; }
.tb-nav { border-bottom: 2px solid var(--indigo); background: var(--wheat); }
.tb-nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.tb-nav-menu {
  display: flex; flex-wrap: nowrap; gap: 1.15rem;
  list-style: none; margin: 0; padding: 0; overflow: hidden;
}
.tb-nav-menu li { list-style: none; margin: 0; padding: 0; }
.tb-nav-menu li a {
  font-family: var(--font-sans); font-size: .715rem;
  letter-spacing: .04em; text-transform: uppercase; font-weight: 700;
  color: var(--indigo-deep); text-decoration: none; white-space: nowrap;
  display: block; padding: .72rem 0; border-bottom: 3px solid transparent;
}
.tb-nav-menu li a:hover,
.tb-nav-menu li.current-menu-item > a { border-bottom-color: var(--mustard); color: var(--indigo); }

/* ============================================================
   3. HERO — full-bleed photo, title plate BELOW the image
      (borrowed structure B + C; text never sits on the photo)
   ============================================================ */
.gah-hero { padding: 2.6rem 0 3.2rem; }
.gah-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.gah-hero-img { border: 2px solid var(--indigo); aspect-ratio: 21/10; overflow: hidden; }
.gah-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.gah-hero-plate {
  background: var(--indigo); color: var(--wheat-light);
  padding: 1.5rem 1.8rem; margin: -1px 0 0;
  box-shadow: 9px 9px 0 var(--mustard);   /* signature 3 */
  position: relative; z-index: 2; max-width: 78%;
}
.gah-hero-plate .tb-eyebrow { color: var(--mustard); }
.gah-hero-plate h1 { font-size: clamp(1.9rem, 3.7vw, 3rem); color: var(--wheat-light); margin-top: .5rem; }
.gah-hero-plate h1 a { color: inherit; text-decoration: none; }
.gah-hero-under {
  display: grid; grid-template-columns: 62fr 38fr;
  gap: 2.6rem; margin-top: 3.4rem; align-items: start;
}
.gah-hero-l p { margin: 0 0 1rem; color: var(--color-muted); font-size: 1.02rem; max-width: 56ch; }
.gah-hero-note {
  font-family: var(--font-serif); font-size: 1.14rem; font-weight: 400;
  line-height: 1.55; color: var(--color-ink);
  border-left: 3px solid var(--mustard); padding-left: 1.1rem; margin: 0;
}
.gah-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.gah-chip {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  border: 2px solid var(--indigo); border-radius: 2px;  /* documented shape exception */
  padding: .24rem .6rem; color: var(--indigo-deep); text-decoration: none;
}
.gah-chip:hover { background: var(--indigo); color: var(--wheat-light); }
.gah-read {
  display: inline-block; margin-top: 1.4rem; font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--indigo-deep);
  text-decoration: none; border-bottom: 3px solid var(--mustard); padding-bottom: 2px;
}
.gah-read:hover { color: var(--mustard-deep); }

/* ============================================================
   4. SECTION HEAD = sampler tag plate (no eyebrow stacking)
   ============================================================ */
.tb-section, .gah-sec { padding: 3.4rem 0; }
.gah-sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: 1.9rem;
}
.gah-tag {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--wheat-light); border: 2px solid var(--indigo);
  padding: .55rem 1.1rem; box-shadow: 6px 6px 0 var(--mustard);  /* signature 3 */
}
.gah-tag::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--mustard); flex: 0 0 auto; }
.gah-tag h2 { font-size: clamp(1.2rem, 2.1vw, 1.62rem); margin: 0; }
.gah-more {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--indigo-deep); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid var(--mustard); padding-bottom: 2px;
}
.gah-more:hover { color: var(--mustard-deep); }
.gah-rule { height: 5px; background: var(--stitch); margin: 0 0 2.2rem; }  /* signature 1 */

/* ============================================================
   5. SQUARES — 8 sampler blocks, 4x2, alternating row ratio
   ============================================================ */
.gah-squares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.gah-sq {
  border: 2px solid var(--indigo); background: var(--wheat-light);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.gah-sq:hover { box-shadow: 7px 7px 0 var(--mustard); }
.gah-sq .gah-sq-im { aspect-ratio: 4/5; overflow: hidden; border-bottom: 2px solid var(--indigo); }
.gah-squares .gah-sq:nth-child(n+5) .gah-sq-im { aspect-ratio: 1/1; }
.gah-sq .gah-sq-im img { width: 100%; height: 100%; object-fit: cover; }
.gah-sq-b { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; flex: 1; }
.gah-sq-n { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; line-height: 1.24; }
.gah-sq-c {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mustard-deep); font-weight: 700; margin-top: auto; padding-top: .4rem;
}

/* ============================================================
   6. PULL QUOTE BAND (dark zone 1)
   ============================================================ */
.tb-pullquote, .gah-quote { background: var(--indigo); color: var(--wheat-light); padding: 3.6rem 0; }
.gah-quote-in, .tb-pullquote-inner { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }
.gah-quote blockquote, .tb-pullquote blockquote {
  margin: 0; border: none; background: transparent; padding: 0;
  font-family: var(--font-serif); font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 400; line-height: 1.4; color: var(--wheat-light);
}
.gah-quote .gah-src, .tb-pullquote .tb-pullquote-source {
  margin-top: 1.2rem; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--indigo-soft); font-weight: 700;
}
.gah-quote .gah-src a, .tb-pullquote .tb-pullquote-source a {
  color: var(--mustard); text-decoration: none; border-bottom: 1px solid var(--mustard);
}

/* ============================================================
   7. START HERE — 1 wide + 3 narrow (asymmetric feature row)
   ============================================================ */
.gah-start { display: grid; grid-template-columns: 1.65fr 1fr 1fr 1fr; gap: 1.5rem; align-items: start; }
.gah-sh { text-decoration: none; color: inherit; display: block; }
.gah-sh .gah-sh-im { border: 2px solid var(--indigo); overflow: hidden; aspect-ratio: 4/3; transition: box-shadow .2s; }
.gah-sh:first-child .gah-sh-im { aspect-ratio: 3/2; }
.gah-sh:hover .gah-sh-im { box-shadow: 7px 7px 0 var(--mustard); }
.gah-sh .gah-sh-im img { width: 100%; height: 100%; object-fit: cover; }
.gah-sh h3 { margin: .85rem 0 0; font-size: 1.02rem; font-weight: 700; line-height: 1.26; }
.gah-sh:first-child h3 { font-size: 1.42rem; }
.gah-sh p { font-size: .93rem; color: var(--color-muted); margin: .5rem 0 0; }
.gah-meta {
  font-size: .7rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--mustard-deep); font-weight: 700; margin-top: .55rem;
}

/* ============================================================
   8. MOSAIC — asymmetric big / tall / wide
   ============================================================ */
.tb-mosaic, .gah-mos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.tb-mosaic-item, .gah-mi {
  text-decoration: none; color: inherit; border: 2px solid var(--indigo);
  background: var(--wheat-light); display: flex; flex-direction: column; transition: box-shadow .2s;
}
.tb-mosaic-item:hover, .gah-mi:hover { box-shadow: 7px 7px 0 var(--mustard); transform: none; }
.tb-mosaic-item .tb-mosaic-cover, .gah-mi .gah-mi-im {
  overflow: hidden; aspect-ratio: 4/3; border-bottom: 2px solid var(--indigo); background: var(--wheat-panel);
}
.tb-mosaic-item .tb-mosaic-cover img, .gah-mi .gah-mi-im img { width: 100%; height: 100%; object-fit: cover; }
.tb-mosaic-item.big, .gah-mi.big { grid-column: span 2; grid-row: auto; }
.tb-mosaic-item.big .tb-mosaic-cover, .gah-mi.big .gah-mi-im { aspect-ratio: 16/9; }
.tb-mosaic-item.tall .tb-mosaic-cover, .gah-mi.tall .gah-mi-im { aspect-ratio: 3/4; }
.tb-mosaic-item.wide, .gah-mi.wide { grid-column: span 2; }
.tb-mosaic-item.wide .tb-mosaic-cover, .gah-mi.wide .gah-mi-im { aspect-ratio: 2/1; }
.tb-mosaic-item .tb-mosaic-body, .gah-mi-b { padding: .8rem .9rem 1rem; flex: 1; display: flex; flex-direction: column; }
.tb-mosaic-item .tb-mosaic-title, .gah-mi h3 { font-size: 1rem; line-height: 1.26; font-weight: 700; margin: 0; }
.tb-mosaic-item.big .tb-mosaic-title, .gah-mi.big h3 { font-size: 1.28rem; }
.tb-mosaic-item .tb-mosaic-excerpt, .gah-mi p { font-size: .9rem; color: var(--color-muted); margin: .45rem 0 0; }
.tb-mosaic-item .tb-mosaic-meta {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mustard-deep); font-weight: 700; margin-bottom: .35rem;
}
.tb-mosaic-item .tb-mosaic-date, .gah-mi .gah-dt {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-muted); font-weight: 700; margin-top: auto; padding-top: .55rem;
}

/* ============================================================
   9. BY SECTION — thumbnail lists in columns
   ============================================================ */
.tb-bysection, .gah-bs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.8rem; }
.tb-bysection-block h3, .gah-bs-b h3 { font-size: 1.02rem; margin: 0 0 .2rem; padding-bottom: .55rem; }
.tb-bysection-block h3 a, .gah-bs-b h3 a { color: var(--indigo-deep); text-decoration: none; }
.gah-bs-rule { height: 5px; background: var(--stitch-mustard); margin-bottom: .9rem; }
.tb-bysection-list, .gah-bs ul { list-style: none; margin: 0; padding: 0; }
.tb-bysection-list li, .gah-bs li {
  display: flex; gap: .75rem; padding: .6rem 0;
  border-bottom: 1px solid rgba(59,78,122,.2);
}
.tb-bysection-list li:last-child, .gah-bs li:last-child { border-bottom: 0; }
.tb-bysection-list .tb-bysection-thumb, .gah-bs .gah-th {
  flex: 0 0 62px; height: 62px; overflow: hidden; border: 2px solid var(--indigo); background: var(--wheat-panel);
}
.tb-bysection-list .tb-bysection-thumb img, .gah-bs .gah-th img { width: 100%; height: 100%; object-fit: cover; }
.tb-bysection-list .tb-bysection-title, .gah-bs h4 { font-size: .88rem; font-weight: 700; line-height: 1.3; margin: 0; }
.tb-bysection-list .tb-bysection-title a, .gah-bs h4 a { color: var(--color-ink); text-decoration: none; }
.tb-bysection-list .tb-bysection-date, .gah-bs .gah-dt {
  font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--color-muted); font-weight: 700; margin-top: .3rem;
}
.tb-bysection-block .tb-bysection-more {
  display: inline-block; margin-top: .8rem; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; color: var(--indigo-deep);
  text-decoration: none; border-bottom: 2px solid var(--mustard);
}

/* ============================================================
   10. NEWSLETTER BAND (dark zone 2)
   ============================================================ */
.tb-newsletter, .gah-news { background: var(--indigo-deep); color: var(--wheat-light); padding: 3.4rem 0; text-align: center; }
.tb-newsletter-inner, .gah-news-in { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }
.tb-newsletter .tb-eyebrow, .gah-news .tb-eyebrow { color: var(--mustard); margin-bottom: 0; }
.tb-newsletter h3, .gah-news h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem); color: var(--wheat-light); margin: .55rem 0 .7rem;
}
.tb-newsletter p, .gah-news p { color: var(--indigo-soft); font-size: .98rem; margin: 0 0 1.5rem; }
.tb-newsletter-form, .gah-nf { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.tb-newsletter-form input[type="email"], .gah-nf input {
  flex: 1 1 260px; background: var(--wheat-light); border: 2px solid var(--wheat-light);
  color: var(--color-ink); padding: .72rem .9rem; font-family: var(--font-sans);
  font-size: .95rem; border-radius: 0;
}
.tb-newsletter-form input[type="email"]::placeholder, .gah-nf input::placeholder { color: #6C6355; }
.tb-newsletter-form button, .gah-nf button {
  background: var(--mustard); color: #1B1305; border: 2px solid var(--mustard);
  font-family: var(--font-sans); font-weight: 700; font-size: .82rem;
  letter-spacing: .11em; text-transform: uppercase; padding: .72rem 1.5rem;
  cursor: pointer; border-radius: 0;
}
.tb-newsletter-form button:hover, .gah-nf button:hover {
  background: var(--mustard-deep); border-color: var(--mustard-deep); color: var(--wheat-light);
}
.tb-newsletter-note, .gah-news .gah-fine { font-size: .78rem; color: var(--indigo-soft); margin-top: 1rem; }
.tb-newsletter-note a, .gah-news .gah-fine a { color: var(--wheat-light); }

/* ============================================================
   11. SINGLE POST
   ============================================================ */
.single .entry-content, .page .entry-content {
  max-width: var(--max-w-narrow); margin: 0 auto; font-size: 18px; line-height: 1.8;
}
.single .entry-content > p:first-of-type { font-size: 1.2rem; line-height: 1.65; color: var(--color-ink); }
.single .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif); font-weight: 800; font-size: 3.4rem;
  float: left; line-height: .9; padding: .3rem .6rem 0 0; color: var(--mustard-deep);
}
.tb-post-header { max-width: var(--max-w-narrow); margin: 2.5rem auto 1.5rem; padding: 0 1.5rem; }
.tb-breadcrumb { font-family: var(--font-sans); font-size: .78rem; color: var(--color-muted); letter-spacing: .08em; margin-bottom: 1rem; }
.tb-breadcrumb a { color: var(--indigo-deep); text-decoration: none; }
.tb-post-cat {
  display: inline-block; font-family: var(--font-sans); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--indigo-deep); background: transparent;
  border: 2px solid var(--indigo); border-radius: 2px;
  padding: .24rem .6rem; text-decoration: none; margin-bottom: 1rem;
}
.tb-post-cat:hover { background: var(--indigo); color: var(--wheat-light); }
.tb-post-title { font-size: clamp(2rem, 3.9vw, 2.9rem); font-weight: 800; line-height: 1.14; margin: .3rem 0 1.2rem; }
.tb-post-meta {
  font-family: var(--font-sans); font-size: .86rem; color: var(--color-muted);
  display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; align-items: center;
}
.tb-post-meta strong { color: var(--color-ink); font-weight: 700; }
.tb-post-cover { max-width: var(--max-w-wide); margin: 2rem auto 3rem; padding: 0 1.5rem; }
.tb-post-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 2px solid var(--indigo); border-radius: 0; }

.ftc-disclosure {
  max-width: var(--max-w-narrow); margin: 0 auto 2.5rem;
  background: var(--wheat-light); border: 2px solid var(--indigo);
  border-left-width: 6px; border-left-color: var(--mustard);
  padding: 1rem 1.25rem; border-radius: 0; font-size: .94rem; color: var(--color-ink);
}
.ftc-disclosure p { margin: 0; }
.entry-content .ftc-disclosure { margin-left: 0; margin-right: 0; }

.single .entry-content blockquote {
  border-left: none; background: transparent; text-align: left;
  font-family: var(--font-serif); font-style: normal; font-weight: 400;
  font-size: clamp(1.25rem, 2.3vw, 1.55rem); line-height: 1.45; color: var(--indigo-deep);
  padding: 1.8rem 0; margin: 2.5rem 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-image: var(--stitch) 5 / 5px / 0 round;
  border-radius: 0;
}
.tb-inline-cta {
  max-width: var(--max-w-narrow); margin: 2.5rem auto;
  background: var(--wheat-light); border: 2px solid var(--indigo);
  padding: 1.3rem 1.5rem; border-radius: 0;
}
.tb-inline-cta strong { font-family: var(--font-serif); font-size: 1.12rem; display: block; margin-bottom: .4rem; }
.tb-inline-cta p { font-size: .92rem; color: var(--color-muted); margin: 0 0 .8rem; }

.tb-author-bio {
  max-width: var(--max-w-narrow); margin: 3rem auto; padding: 1.5rem;
  background: var(--wheat-light); border: 2px solid var(--indigo);
  box-shadow: 7px 7px 0 var(--mustard);
  display: flex; gap: 1.2rem; align-items: flex-start; border-radius: 0;
}
.tb-author-avatar {
  flex: 0 0 62px; height: 62px; display: flex; align-items: center; justify-content: center;
  background: var(--indigo); color: var(--wheat-light);
  font-family: var(--font-serif); font-weight: 800; font-size: 1.3rem; border-radius: 0;
}
.tb-author-bio .tb-eyebrow { margin-bottom: .4rem; display: block; }
.tb-author-bio h4 { margin: 0 0 .4rem; font-size: 1.14rem; font-weight: 700; }
.tb-author-bio p { font-size: .95rem; color: var(--color-muted); margin: 0 0 .4rem; line-height: 1.6; }
.tb-author-bio a { font-family: var(--font-sans); font-size: .84rem; font-weight: 700; }

.tb-related { max-width: var(--max-w); margin: 3.5rem auto; padding: 0 1.5rem; }
.tb-related h3 { font-size: 1.35rem; margin: 0 0 .9rem; }
.tb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tb-related-card { text-decoration: none; color: inherit; display: block; border: 2px solid var(--indigo); background: var(--wheat-light); transition: box-shadow .2s; }
.tb-related-card:hover { box-shadow: 7px 7px 0 var(--mustard); }
.tb-related-card .tb-related-cover { aspect-ratio: 4/3; overflow: hidden; border-bottom: 2px solid var(--indigo); background: var(--wheat-panel); }
.tb-related-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tb-related-card .tb-related-title { font-size: .98rem; font-weight: 700; line-height: 1.28; margin: 0; padding: .8rem .9rem 1rem; font-family: var(--font-serif); }

/* ============================================================
   12. ARCHIVE
   ============================================================ */
.tb-archive-hero { max-width: var(--max-w-narrow); margin: 3rem auto 1rem; padding: 0 1.5rem; }
.tb-archive-hero .tb-eyebrow { margin-bottom: .8rem; }
.tb-archive-hero h1 { font-size: clamp(2rem, 3.8vw, 2.8rem); margin: 0 0 .8rem; }
.tb-archive-hero p { color: var(--color-muted); }
.tb-archive-feature { max-width: var(--max-w); margin: 2.5rem auto 0; padding: 0 1.5rem; }
.tb-archive-feature .tb-spread { padding: 0 0 3rem; border-bottom: 5px solid transparent; border-image: var(--stitch) 5 / 5px / 0 round; }
.tb-spread { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.2rem; align-items: center; }
.tb-spread-image { display: block; border: 2px solid var(--indigo); overflow: hidden; aspect-ratio: 4/3; }
.tb-spread-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tb-spread-text h3 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin: .5rem 0 .8rem; }
.tb-spread-text h3 a { color: inherit; text-decoration: none; }
.tb-spread-text .tb-spread-excerpt { color: var(--color-muted); font-size: 1rem; }
.tb-spread-text .tb-spread-read {
  display: inline-block; margin-top: .7rem; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; color: var(--indigo-deep);
  text-decoration: none; border-bottom: 3px solid var(--mustard); padding-bottom: 2px;
}
.tb-archive-grid { max-width: var(--max-w); margin: 2.5rem auto 3rem; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tb-archive-card { text-decoration: none; color: inherit; display: block; border: 2px solid var(--indigo); background: var(--wheat-light); transition: box-shadow .2s; }
.tb-archive-card:hover { box-shadow: 7px 7px 0 var(--mustard); }
.tb-archive-card .tb-archive-cover { aspect-ratio: 4/3; overflow: hidden; border-bottom: 2px solid var(--indigo); background: var(--wheat-panel); }
.tb-archive-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tb-archive-card .tb-archive-meta {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mustard-deep); font-weight: 700; padding: .8rem .9rem 0;
}
.tb-archive-card .tb-archive-title { font-size: 1rem; font-weight: 700; line-height: 1.28; margin: 0; padding: .35rem .9rem 0; font-family: var(--font-serif); }
.tb-archive-card .tb-archive-excerpt { font-size: .92rem; color: var(--color-muted); line-height: 1.55; padding: .45rem .9rem 1rem; margin: 0; }

.nav-links { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.nav-links .page-numbers {
  display: inline-block; border: 2px solid var(--indigo); padding: .4rem .8rem;
  text-decoration: none; color: var(--indigo-deep); font-weight: 700; font-size: .85rem;
}
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { background: var(--indigo); color: var(--wheat-light); }

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer, .site-info {
  background: var(--indigo-deep); color: var(--wheat-light);
  font-family: var(--font-sans); font-size: .9rem;
}
.site-footer { border-top: 5px solid transparent; border-image: var(--stitch-mustard) 5 / 5px / 0 round; }
.site-info a { color: var(--wheat-light); text-decoration: underline; }
.site-info a:hover { color: var(--mustard); }
.footer-widgets, .site-info { padding: 2.5rem 1.5rem; }

/* ============================================================
   14. READING PROGRESS (CSS scroll-driven, zero JS)
   ============================================================ */
@supports (animation-timeline: scroll()) {
  .tb-progress {
    position: fixed; top: 0; left: 0; height: 4px; width: 100%;
    background: var(--mustard); transform-origin: left; transform: scaleX(0);
    animation: gah-progress linear; animation-timeline: scroll(root block); z-index: 9999;
  }
  @keyframes gah-progress { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .tb-progress { display: none; }
  * { transition: none !important; }
}

/* ============================================================
   15. TRUST PAGES — "The Sampler Sheet"
   ============================================================ */
.gah-sheet-main { background: var(--wheat); padding-bottom: 3rem; }
.gah-sheet-head { max-width: var(--max-w-narrow); margin: 3rem auto 0; padding: 0 1.5rem; text-align: center; }
.gah-sheet-plate {
  display: inline-block; background: var(--indigo); color: var(--wheat-light);
  padding: 1.6rem 2.2rem; box-shadow: 9px 9px 0 var(--mustard);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-image: var(--stitch-mustard) 5 / 5px / 0 round;
  max-width: 100%;
}
.gah-sheet-kicker {
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--mustard); font-weight: 700; margin: 0 0 .55rem;
}
.gah-sheet-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); color: var(--wheat-light); margin: 0; }
.gah-sheet-upd { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--indigo-soft); font-weight: 700; margin: .9rem 0 0; }

.gah-sheet-toc { max-width: var(--max-w-narrow); margin: 2.4rem auto 0; padding: 0 1.5rem; }
.gah-sheet-toc-t { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mustard-deep); font-weight: 700; display: block; margin-bottom: .8rem; }
.gah-sheet-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.gah-sheet-toc li a {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 2px solid var(--mustard); background: var(--wheat-light);
  padding: .38rem .8rem; font-size: .82rem; font-weight: 700;
  color: var(--indigo-deep); text-decoration: none;
}
.gah-sheet-toc li a::before { content: ""; width: 8px; height: 8px; background: var(--indigo); flex: 0 0 auto; }
.gah-sheet-toc li a:hover { background: var(--mustard); color: #1B1305; }

.gah-sheet-body { max-width: var(--max-w-narrow); margin: 2.6rem auto 0; padding: 0 1.5rem; font-size: 18px; line-height: 1.8; }
.gah-sheet-body h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin: 2.6em 0 .2em;
  padding-left: 1.55rem;
  position: relative;
}
/* 绣针格 marker：mustard 描边小方块，与标题基线对齐 */
.gah-sheet-body h2::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 11px; height: 11px;
  border: 2px solid var(--mustard);
  background: var(--wheat-light);
}
/* 针脚虚线只跑在标题下方，不围成框 */
.gah-sheet-body h2::after {
  content: "";
  display: block;
  height: 5px;
  margin-top: .5em;
  background: var(--stitch);
}
.gah-sheet-body h2 + * { margin-top: 1.1em; }
.gah-sheet-body h3 { font-size: 1.15rem; }
/* identity block: wheat card, hard indigo rule, mustard misregistration */
.gah-sheet-body > p:has(> strong:first-child) {
  background: var(--wheat-light); border: 2px solid var(--indigo);
  box-shadow: 7px 7px 0 var(--mustard);
  padding: 1rem 1.2rem; margin: 1.4em 0; font-size: .96rem; line-height: 1.65;
}
.gah-sheet-body > p:has(> strong:first-child) > strong { color: var(--indigo-deep); }
.gah-sheet-body ul, .gah-sheet-body ol { padding-left: 1.3rem; }
.gah-sheet-body li { margin-bottom: .5em; }

.gah-sheet-foot { max-width: var(--max-w); margin: 3.5rem auto 0; padding: 0 1.5rem; }
.gah-sheet-foot-rule { height: 5px; background: var(--stitch); margin-bottom: 1.6rem; }
.gah-sheet-foot-t { font-size: 1.2rem; margin: 0 0 1.2rem; }
.gah-sheet-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gah-sheet-link {
  display: block; border: 2px solid var(--indigo); background: var(--wheat-light);
  padding: .95rem 1rem; font-family: var(--font-serif); font-weight: 700;
  font-size: .95rem; line-height: 1.28; color: var(--indigo-deep); text-decoration: none;
}
.gah-sheet-link:hover { background: var(--indigo); color: var(--wheat-light); }
.gah-sheet-note { font-size: .9rem; color: var(--color-muted); margin-top: 1.4rem; }

/* ============================================================
   16. RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .tb-related-grid, .tb-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .gah-squares, .tb-mosaic, .gah-mos, .tb-bysection, .gah-bs { grid-template-columns: repeat(2, 1fr); }
  .gah-start { grid-template-columns: 1fr 1fr; }
  .tb-mosaic-item.big, .tb-mosaic-item.wide, .gah-mi.big, .gah-mi.wide { grid-column: span 2; }
  .gah-hero-under { grid-template-columns: 1fr; gap: 1.6rem; }
  .gah-hero-plate { max-width: 100%; }
  .tb-spread { grid-template-columns: 1fr; }
  .gah-sheet-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gah-squares, .tb-mosaic, .gah-mos, .tb-bysection, .gah-bs,
  .gah-start, .tb-related-grid, .tb-archive-grid, .gah-sheet-links { grid-template-columns: 1fr; }
  .tb-mosaic-item.big, .tb-mosaic-item.wide, .gah-mi.big, .gah-mi.wide { grid-column: span 1; }
  .gah-band-in { grid-template-columns: 1fr; }
  .gah-band-cell { border-left: 0; border-top: 1px solid rgba(241,234,219,.42); }
  .gah-band-cell:first-child { border-top: 0; }
  .tb-masthead-inner { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .tb-masthead-meta { text-align: left; order: 2; padding-bottom: 0; }
  .tb-nav-menu { flex-wrap: wrap; gap: .9rem; overflow: visible; }
  .gah-sec-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .tb-author-bio { flex-direction: column; }
  .gah-hero-plate { padding: 1.1rem 1.2rem; box-shadow: 6px 6px 0 var(--mustard); }
  .gah-sheet-plate { padding: 1.2rem 1.3rem; box-shadow: 6px 6px 0 var(--mustard); }
}
