/*
Theme Name:   Stronger With Time Child
Theme URI:    https://strongerwithtime.org
Description:  Zine / Brutalist-editorial child theme for strongerwithtime.org — near-black canvas, electric-teal accent, thick hard borders, broken offset grid, oversized Instrument Serif display. Custom GeneratePress child.
Author:       Brittney Adams
Template:     generatepress
Version:      1.0.0
*/

/* ============================================================
   STRONGER WITH TIME — DESIGN SYSTEM
   Prototype:  Zine / Brutalist-editorial
   Palette:    near-black #16161A + electric teal #35D0BA + off-white
   Fonts:      Instrument Serif (display) / Geist (body) / Geist Mono (meta)
   Motion:     ~1 (CWV-first) — CSS hover/active only + scroll progress bar
   与 5 个已建站（暖/柔杂志编辑脸 + 浅底 + 圆角）明确区隔：dark-first + 硬方角 + 粗黑边框。
   ============================================================ */

:root {
  /* Brutalist zine palette — dark canvas, one cold neon accent, locked */
  --color-primary: #35D0BA;        /* electric teal (accent used as "primary") */
  --color-primary-dark: #0E0E11;   /* deepest black for dark sections */
  --color-primary-soft: #1D1D22;   /* raised panel */
  --color-bg: #16161A;             /* near-black canvas */
  --color-bg-deep: #0E0E11;        /* deeper black band */
  --color-accent: #35D0BA;         /* electric teal (the ONLY accent) */
  --color-accent-soft: #7FE3D5;    /* light teal */
  --color-accent-deep: #23A791;    /* deep teal */
  --color-charcoal: #EDEDED;       /* body text (light on dark) */
  --color-ink: #FFFFFF;            /* headline ink */
  --color-muted: #8A8A94;          /* grey meta */
  --color-line: #33333B;           /* hairline on dark */
  --color-white: #1D1D22;          /* "card" surface = raised panel, NOT white */
  --color-border: #EDEDED;         /* brutalist hard border (off-white) */
  --color-accent-ink: #0E0E11;     /* text on teal fills */

  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  --max-w: 1320px;
  --max-w-wide: 1440px;
  --max-w-narrow: 760px;
  /* Brutalist: hard square corners everywhere */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --bd: 3px;                       /* thick border width */
}

/* ============================================================
   GLOBAL
   ============================================================ */
body, .entry-content, .widget {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: var(--color-bg);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-top: 2.2em; margin-bottom: 0.5em; }
h3 { font-size: 1.5rem; margin-top: 1.8em; margin-bottom: 0.45em; }

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover { color: var(--color-accent-soft); text-decoration-color: var(--color-accent); }
p { margin: 0 0 1.2em; }

blockquote {
  border-left: var(--bd) solid var(--color-accent);
  background: var(--color-primary-soft);
  padding: 1.4rem 1.6rem;
  margin: 2.2em 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--color-ink);
}

hr { border: none; height: var(--bd); background: var(--color-border); margin: 3em 0; }
img { max-width: 100%; height: auto; }
figure { margin: 2em 0; }
figcaption { font-family: var(--font-mono); font-size: 0.82rem; color: var(--color-muted); margin-top: 0.5rem; text-align: left; letter-spacing: 0.02em; }

/* eyebrow / kicker — mono, teal */
.tb-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
}

/* ============================================================
   1. ANNOUNCEMENT BAR
   ============================================================ */
.tb-announce {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.55rem 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tb-announce strong { color: var(--color-accent-ink); font-weight: 600; }
.tb-announce a { color: inherit; text-decoration: underline; }

/* ============================================================
   2. MASTHEAD — oversized Instrument Serif, mono meta, hard rule
   ============================================================ */
.tb-masthead {
  background: var(--color-bg);
  border-bottom: var(--bd) solid var(--color-border);
  padding: 0;
}
.tb-masthead-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.4rem);
  display: block;
}
.tb-masthead-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* top strip: date left (block), edition right (absolute) */
.tb-masthead .tb-masthead-meta:not(.right) {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-line);
}
.tb-masthead .tb-masthead-meta.right {
  position: absolute;
  top: 0.7rem;
  right: clamp(1.1rem, 4vw, 2.4rem);
  text-align: right;
}
.tb-masthead-title {
  display: block;
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  line-height: 0.9;
  text-decoration: none;
  margin: 1.5rem 0 0.5rem;
}
.tb-masthead-title:hover { color: var(--color-ink); }
.tb-masthead-tagline {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0 0 1.4rem;
  letter-spacing: 0.03em;
  max-width: 66ch;
  text-transform: none;
}
@media (max-width: 700px) {
  .tb-masthead .tb-masthead-meta.right { position: static; text-align: left; padding-bottom: 0.4rem; }
}

/* ============================================================
   LAYOUT RESET (keep base behavior — do NOT add .tb-main>*{display:block})
   ============================================================ */
.tb-main { display: block !important; width: 100%; }
.tb-main > * { width: 100%; }

/* ---- Navigation: mono, boxed, teal-fill hover ---- */
.tb-nav {
  background: var(--color-bg-deep);
  border-top: var(--bd) solid var(--color-border);
  border-bottom: var(--bd) solid var(--color-border);
  width: 100%;
}
.tb-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.4rem);
}
.tb-nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0;
}
.tb-nav-menu li { list-style: none; margin: 0; padding: 0; }
.tb-nav-menu li a {
  display: block;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  text-decoration: none;
  border-right: 1px solid var(--color-line);
  border-bottom: none;
  transition: background 0.12s, color 0.12s;
}
.tb-nav-menu li:first-child a { border-left: 1px solid var(--color-line); }
.tb-nav-menu li a:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.tb-nav-menu li.current-menu-item > a { background: var(--color-primary-soft); color: var(--color-accent); }
@media (max-width: 640px) {
  .tb-nav-menu li a { padding: 0.7rem 0.75rem; font-size: 0.7rem; letter-spacing: 0.1em; }
}

/* ============================================================
   3. HERO — broken offset grid, thick frame
   ============================================================ */
.tb-hero {
  background: var(--color-bg);
  padding: clamp(2.4rem, 5vw, 4rem) 0;
  border-bottom: var(--bd) solid var(--color-border);
}
.tb-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 0;
}
@media (max-width: 950px) { .tb-hero-inner { grid-template-columns: 1fr; } }

.tb-hero-main {
  display: flex; flex-direction: column;
  border: var(--bd) solid var(--color-border);
  border-right: none;
}
@media (max-width: 950px) { .tb-hero-main { border-right: var(--bd) solid var(--color-border); } }
.tb-hero-main .tb-eyebrow { margin: 0 0 0.9rem; padding: 1.6rem 1.8rem 0; }
.tb-hero-main h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.3rem);
  font-weight: 400;
  line-height: 0.98;
  margin: 0 1.8rem 1rem;
}
.tb-hero-main .lead {
  font-size: 1.06rem;
  color: var(--color-muted);
  margin: 0 1.8rem 1.5rem;
  line-height: 1.55;
  max-width: 54ch;
}
.tb-hero-cover {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-primary-soft);
  border-bottom: var(--bd) solid var(--color-border);
  margin: 0;
  order: -1;
}
.tb-hero-cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.05); }
.tb-hero-cta {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 0.85rem 1.6rem;
  border: var(--bd) solid var(--color-border);
  box-shadow: 6px 6px 0 var(--color-border);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: flex-start;
  margin: 0 1.8rem 2rem;
  transition: transform 0.12s, box-shadow 0.12s;
}
.tb-hero-cta:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--color-accent); color: var(--color-accent-ink); }

/* Hero side: "This week's reading" — boxed, mono heading */
.tb-hero-side {
  background: var(--color-bg-deep);
  border: var(--bd) solid var(--color-border);
  padding: 1.4rem 1.5rem;
  align-self: stretch;
}
.tb-hero-side h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin: 0 0 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--color-line);
}
.tb-hero-side ol { list-style: none; counter-reset: minilist; padding: 0; margin: 0; }
.tb-hero-side li {
  counter-increment: minilist;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--color-line);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.7rem;
  align-items: start;
}
.tb-hero-side li:last-child { border-bottom: none; padding-bottom: 0; }
.tb-hero-side li:first-child { padding-top: 0; }
.tb-hero-side li::before {
  content: counter(minilist, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-accent);
  line-height: 1.3;
}
.tb-hero-side li a {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.12;
  color: var(--color-ink);
  text-decoration: none;
}
.tb-hero-side li a:hover { color: var(--color-accent); }
.tb-hero-side li .tb-mini-cat {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

/* ============================================================
   4. EDITOR'S LETTER — boxed avatar, mono sig
   ============================================================ */
.tb-letter {
  background: var(--color-bg-deep);
  border-top: var(--bd) solid var(--color-border);
  border-bottom: var(--bd) solid var(--color-border);
  padding: clamp(2.6rem, 5vw, 4rem) clamp(1.1rem, 4vw, 2.4rem);
}
.tb-letter-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.8rem;
  align-items: start;
}
@media (max-width: 700px) { .tb-letter-inner { grid-template-columns: 1fr; } }
.tb-letter-avatar {
  width: 96px; height: 96px;
  border: var(--bd) solid var(--color-border);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.4rem; font-weight: 400;
}
.tb-letter .tb-eyebrow { margin-bottom: 0.6rem; display: block; }
.tb-letter h3 {
  font-family: var(--font-serif);
  font-size: 1.9rem; font-weight: 400;
  margin: 0.2rem 0 0.9rem; line-height: 1.1;
}
.tb-letter p {
  font-family: var(--font-sans);
  font-size: 1.02rem; font-style: normal;
  color: var(--color-muted);
  line-height: 1.6; margin: 0 0 0.8rem;
  max-width: 62ch;
}
.tb-letter .tb-signature {
  font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 0.7rem;
}

/* ============================================================
   5. GENERIC SECTION HEAD
   ============================================================ */
.tb-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.8rem, 5vw, 4.5rem) clamp(1.1rem, 4vw, 2.4rem);
}
.tb-section.full { max-width: 100%; }
.tb-section.full > .tb-section-body { max-width: var(--max-w); margin: 0 auto; }
.tb-section.dark { background: var(--color-bg-deep); color: var(--color-charcoal); }
.tb-section.dark h2 { color: var(--color-ink); }
.tb-section.dark .tb-eyebrow { color: var(--color-accent); }
.tb-section.bg-deep {
  background: var(--color-bg-deep);
  border-top: var(--bd) solid var(--color-border);
  border-bottom: var(--bd) solid var(--color-border);
  max-width: 100%;
}
.tb-section.bg-deep > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

.tb-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.2rem;
  border-bottom: var(--bd) solid var(--color-border);
  padding-bottom: 1rem;
  gap: 1rem;
}
.tb-section.dark .tb-section-head { border-bottom-color: var(--color-border); }
.tb-section-head-left { display: flex; flex-direction: column; gap: 0.35rem; }
.tb-section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.35rem 0 0; font-weight: 400; line-height: 1;
}
.tb-section-head .tb-more {
  font-family: var(--font-mono);
  font-size: 0.74rem; color: var(--color-accent);
  text-decoration: none; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500;
  white-space: nowrap; padding-bottom: 0.3rem;
}
.tb-section.dark .tb-section-head .tb-more { color: var(--color-accent); }
.tb-section-head .tb-more:hover { color: var(--color-ink); }

/* ============================================================
   6. CATEGORY GRID — brutalist cover cards, shared thick frame
   ============================================================ */
.tb-catgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--bd) solid var(--color-border);
}
@media (max-width: 900px) { .tb-catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tb-catgrid { grid-template-columns: 1fr; } }
.tb-catcard {
  position: relative; display: block;
  aspect-ratio: 3/4; overflow: hidden;
  text-decoration: none; background: var(--color-primary-soft);
  border-right: var(--bd) solid var(--color-border);
  border-bottom: var(--bd) solid var(--color-border);
}
.tb-catgrid .tb-catcard:nth-child(4n) { border-right: none; }
.tb-catgrid .tb-catcard:last-child { border-right: none; }
@media (max-width: 900px) {
  .tb-catgrid .tb-catcard:nth-child(4n) { border-right: var(--bd) solid var(--color-border); }
  .tb-catgrid .tb-catcard:nth-child(2n) { border-right: none; }
}
.tb-catcard img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(0.3) contrast(1.05);
  transition: filter 0.2s;
}
.tb-catcard:hover img { filter: grayscale(0) contrast(1.05); }
.tb-catcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,17,0.1) 0%, rgba(14,14,17,0.85) 100%);
}
.tb-catcard-text { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; z-index: 2; }
.tb-catcard-name {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 400; line-height: 1.05; margin: 0;
  color: #fff;
}
.tb-catcard-count {
  font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-accent); margin-top: 0.4rem; font-weight: 500;
}

/* ============================================================
   7. EDITORIAL SPREAD (used on archives) — thick divider
   ============================================================ */
.tb-spread {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: center;
  padding: 3rem 0; border-bottom: var(--bd) solid var(--color-border);
}
.tb-spread:last-child { border-bottom: none; }
.tb-spread.reverse .tb-spread-image { order: 2; }
@media (max-width: 800px) {
  .tb-spread, .tb-spread.reverse { grid-template-columns: 1fr; gap: 1.6rem; }
  .tb-spread.reverse .tb-spread-image { order: 0; }
}
.tb-spread-image {
  overflow: hidden; aspect-ratio: 4/5;
  background: var(--color-primary-soft);
  border: var(--bd) solid var(--color-border);
}
.tb-spread-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.12) contrast(1.03); }
.tb-spread-text .tb-eyebrow { margin-bottom: 0.8rem; }
.tb-spread-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 400;
  line-height: 1.08; margin: 0 0 1rem;
}
.tb-spread-text h3 a { color: inherit; text-decoration: none; }
.tb-spread-text h3 a:hover { color: var(--color-accent); }
.tb-spread-text .tb-spread-excerpt {
  font-size: 1.02rem; color: var(--color-muted);
  margin-bottom: 1.2rem; line-height: 1.6;
}
.tb-spread-text .tb-spread-read {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent); font-weight: 500; text-decoration: none;
  border-bottom: 2px solid var(--color-accent); padding-bottom: 2px;
}

/* ============================================================
   8. PULL QUOTE BAND — full teal block, brutalist
   ============================================================ */
.tb-pullquote {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-top: var(--bd) solid var(--color-border);
  border-bottom: var(--bd) solid var(--color-border);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.1rem, 4vw, 2.4rem);
  text-align: left;
}
.tb-pullquote-inner { max-width: var(--max-w); margin: 0 auto; }
.tb-pullquote .tb-eyebrow { color: var(--color-accent-ink); opacity: 0.7; margin-bottom: 1.2rem; }
.tb-pullquote blockquote {
  background: transparent; border: none;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.18; color: var(--color-accent-ink);
  padding: 0; margin: 0 0 1rem; font-weight: 400; max-width: 26ch;
}
.tb-pullquote .tb-pullquote-source {
  font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent-ink); opacity: 0.85;
}
.tb-pullquote .tb-pullquote-source a { color: var(--color-accent-ink); }

/* ============================================================
   9. RECENT POSTS — broken asymmetric grid, shared thick frame
   First item spans 2 columns (feature). N items → clean 3-col fill.
   ============================================================ */
.tb-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--bd) solid var(--color-border);
}
@media (max-width: 950px) { .tb-mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tb-mosaic { grid-template-columns: 1fr; } }

.tb-mosaic-item {
  background: var(--color-bg);
  overflow: hidden;
  border-right: var(--bd) solid var(--color-border);
  border-bottom: var(--bd) solid var(--color-border);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.tb-mosaic-item:nth-child(3n) { border-right: none; }
@media (max-width: 950px) {
  .tb-mosaic-item:nth-child(3n) { border-right: var(--bd) solid var(--color-border); }
  .tb-mosaic-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) { .tb-mosaic-item { border-right: none; } }

.tb-mosaic-item .tb-mosaic-cover {
  aspect-ratio: 16/10; overflow: hidden;
  background: var(--color-primary-soft);
  border-bottom: var(--bd) solid var(--color-border);
}
.tb-mosaic-item .tb-mosaic-cover img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.12) contrast(1.03); transition: transform 0.3s ease;
}
.tb-mosaic-item:hover .tb-mosaic-cover img { transform: scale(1.04); }

/* "big" = 2-column feature (first item). Keeps a clean 3-col fill. */
.tb-mosaic-item.big { grid-column: span 2; }
.tb-mosaic-item.big .tb-mosaic-cover { aspect-ratio: 2/1; }
@media (max-width: 950px) { .tb-mosaic-item.big { grid-column: auto; } }
/* neutralize base's tall/wide aspect tweaks (we use a flat brutalist grid) */
.tb-mosaic-item.tall .tb-mosaic-cover,
.tb-mosaic-item.wide .tb-mosaic-cover { aspect-ratio: 16/10; }

.tb-mosaic-item .tb-mosaic-body {
  padding: 1rem 1.1rem 1.2rem; flex: 1;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.tb-mosaic-item .tb-mosaic-meta {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--color-accent); font-weight: 500;
}
.tb-mosaic-item .tb-mosaic-title {
  font-family: var(--font-serif); font-size: 1.32rem;
  font-weight: 400; line-height: 1.08; margin: 0;
}
.tb-mosaic-item.big .tb-mosaic-title { font-size: 1.85rem; }
.tb-mosaic-item .tb-mosaic-excerpt {
  font-size: 0.9rem; color: var(--color-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tb-mosaic-item .tb-mosaic-date {
  font-family: var(--font-mono); font-size: 0.66rem;
  color: var(--color-muted); margin-top: auto; letter-spacing: 0.05em;
}

/* ============================================================
   9b. "BY SECTION" — mono index rows, teal underline heads
   ============================================================ */
.tb-bysection {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}
@media (max-width: 950px) { .tb-bysection { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tb-bysection { grid-template-columns: 1fr; } }

.tb-bysection-block { display: flex; flex-direction: column; }
.tb-bysection-block h3 {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400;
  margin: 0 0 1rem; padding-bottom: 0.6rem;
  border-bottom: var(--bd) solid var(--color-accent);
  display: inline-block; align-self: flex-start;
}
.tb-bysection-block h3 a { color: inherit; text-decoration: none; }
.tb-bysection-block h3 a:hover { color: var(--color-accent); }

.tb-bysection-list {
  list-style: none; padding: 0; margin: 0 0 0.8rem;
  display: flex; flex-direction: column;
}
.tb-bysection-list li {
  border-bottom: 1px solid var(--color-line);
  padding: 0.75rem 0;
  display: grid; grid-template-columns: 64px 1fr; gap: 0.8rem; align-items: start;
}
.tb-bysection-list .tb-bysection-thumb {
  width: 64px; height: 64px; overflow: hidden;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-line);
}
.tb-bysection-list .tb-bysection-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2); }
.tb-bysection-list .tb-bysection-title {
  font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.15;
  margin: 0; font-weight: 400;
}
.tb-bysection-list .tb-bysection-title a { color: var(--color-ink); text-decoration: none; }
.tb-bysection-list .tb-bysection-title a:hover { color: var(--color-accent); }
.tb-bysection-list .tb-bysection-date {
  font-family: var(--font-mono); font-size: 0.66rem;
  color: var(--color-muted); margin-top: 0.25rem;
}
.tb-bysection-block .tb-bysection-more {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  color: var(--color-accent); text-decoration: none;
  margin-top: 0.4rem; align-self: flex-start;
}
.tb-bysection-block .tb-bysection-more:hover { color: var(--color-ink); }

/* ============================================================
   10. NEWSLETTER BAND — boxed panel, mono form, no radius
   ============================================================ */
.tb-newsletter {
  background: var(--color-bg-deep);
  border-top: var(--bd) solid var(--color-border);
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.1rem, 4vw, 2.4rem);
  text-align: left;
}
.tb-newsletter-inner {
  max-width: 720px; margin: 0;
  border: var(--bd) solid var(--color-border);
  background: var(--color-bg);
  padding: 2rem 2.2rem;
}
.tb-newsletter .tb-eyebrow { color: var(--color-accent); margin-bottom: 0.6rem; }
.tb-newsletter h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-ink); font-weight: 400;
  margin: 0.4rem 0 0.6rem;
}
.tb-newsletter p { color: var(--color-muted); font-size: 1rem; margin-bottom: 1.4rem; max-width: 55ch; }
.tb-newsletter-form { display: flex; gap: 0; max-width: 100%; margin: 0; flex-wrap: wrap; justify-content: flex-start; }
.tb-newsletter-form input[type="email"] {
  flex: 1 1 240px;
  padding: 0.85rem 1rem;
  border: var(--bd) solid var(--color-border);
  background: var(--color-bg-deep);
  color: var(--color-charcoal);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.tb-newsletter-form input[type="email"]::placeholder { color: var(--color-muted); }
.tb-newsletter-form button {
  background: var(--color-accent); color: var(--color-accent-ink);
  border: var(--bd) solid var(--color-border); border-left: none;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: background 0.12s;
}
.tb-newsletter-form button:hover { background: var(--color-ink); }
.tb-newsletter-note { font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-muted); margin-top: 1rem; letter-spacing: 0.03em; }
.tb-newsletter-note a { color: var(--color-accent); }

/* ============================================================
   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.22rem; line-height: 1.6; color: var(--color-ink);
}
.single .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.8rem; float: left; line-height: 0.8;
  padding: 0.2rem 0.6rem 0 0; color: var(--color-accent);
}

.tb-post-header { max-width: var(--max-w-narrow); margin: 2.5rem auto 1.5rem; padding: 0 clamp(1.1rem, 4vw, 2.4rem); }
.tb-breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-muted); letter-spacing: 0.08em; margin-bottom: 1rem; text-transform: uppercase; }
.tb-breadcrumb a { color: var(--color-accent); text-decoration: none; }
.tb-breadcrumb a:hover { color: var(--color-accent-soft); }
.tb-post-cat {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-accent-ink); background: var(--color-accent);
  padding: 0.35rem 0.85rem; border: var(--bd) solid var(--color-border);
  text-decoration: none; font-weight: 600; margin-bottom: 1rem;
}
.tb-post-cat:hover { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.tb-post-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 400; line-height: 1.02; margin: 0.3rem 0 1.2rem; }
.tb-post-meta {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-muted);
  letter-spacing: 0.04em; display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center;
}
.tb-post-meta strong { color: var(--color-charcoal); font-weight: 500; }

.tb-post-cover { max-width: var(--max-w-wide); margin: 2rem auto 3rem; padding: 0 clamp(1.1rem, 4vw, 2.4rem); }
.tb-post-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: var(--bd) solid var(--color-border); filter: grayscale(0.12) contrast(1.04); }

/* FTC disclosure box */
.ftc-disclosure {
  max-width: var(--max-w-narrow); margin: 0 auto 2.5rem;
  background: var(--color-primary-soft);
  border-left: var(--bd) solid var(--color-accent);
  padding: 1rem 1.25rem; font-size: 0.92rem; color: var(--color-charcoal);
}
.ftc-disclosure p { margin: 0; }
.ftc-disclosure a { color: var(--color-accent); }
.entry-content .ftc-disclosure { margin-left: 0; margin-right: 0; }

/* In-article pull quote */
.single .entry-content blockquote {
  border-left: none; background: transparent; text-align: left;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.35;
  color: var(--color-accent); padding: 1.6rem 0; margin: 2.5rem 0;
  border-top: var(--bd) solid var(--color-accent);
  border-bottom: var(--bd) solid var(--color-accent);
}

/* In-article newsletter prompt */
.tb-inline-cta {
  background: var(--color-primary-soft);
  border: var(--bd) solid var(--color-border);
  padding: 1.6rem 1.4rem; margin: 2.5rem 0; text-align: left;
}
.tb-inline-cta strong { font-family: var(--font-serif); font-size: 1.3rem; display: block; margin-bottom: 0.4rem; color: var(--color-ink); }
.tb-inline-cta p { font-size: 0.92rem; color: var(--color-muted); margin: 0 0 0.8rem; }
.tb-inline-cta a {
  display: inline-block; background: var(--color-accent); color: var(--color-accent-ink);
  padding: 0.55rem 1.2rem; border: var(--bd) solid var(--color-border);
  text-decoration: none; font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}

/* Author bio */
.tb-author-bio {
  max-width: var(--max-w-narrow); margin: 4rem auto 2rem; padding: 2rem;
  background: var(--color-primary-soft);
  border: var(--bd) solid var(--color-border);
  display: grid; grid-template-columns: 96px 1fr; gap: 1.6rem; align-items: start;
}
@media (max-width: 540px) { .tb-author-bio { grid-template-columns: 1fr; } }
.tb-author-avatar {
  width: 96px; height: 96px;
  border: var(--bd) solid var(--color-border);
  background: var(--color-accent); color: var(--color-accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 2rem;
}
.tb-author-bio .tb-eyebrow { margin-bottom: 0.4rem; display: block; }
.tb-author-bio h4 { margin: 0 0 0.4rem; font-size: 1.25rem; font-family: var(--font-serif); font-weight: 400; }
.tb-author-bio p { font-size: 0.96rem; color: var(--color-muted); margin: 0 0 0.4rem; line-height: 1.6; }
.tb-author-bio a { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-accent); }

/* Related posts */
.tb-related { max-width: var(--max-w); margin: 4rem auto 3rem; padding: 0 clamp(1.1rem, 4vw, 2.4rem); }
.tb-related h3 {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400;
  margin: 0 0 1.5rem; padding-bottom: 0.6rem;
  border-bottom: var(--bd) solid var(--color-border);
}
.tb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--bd) solid var(--color-border); }
@media (max-width: 700px) { .tb-related-grid { grid-template-columns: 1fr; } }
.tb-related-card {
  text-decoration: none; color: inherit; display: block;
  border-right: var(--bd) solid var(--color-border); background: var(--color-bg);
}
.tb-related-grid .tb-related-card:last-child { border-right: none; }
@media (max-width: 700px) { .tb-related-card { border-right: none; border-bottom: var(--bd) solid var(--color-border); } }
.tb-related-card .tb-related-cover {
  aspect-ratio: 4/3; overflow: hidden;
  background: var(--color-primary-soft);
  border-bottom: var(--bd) solid var(--color-border); margin-bottom: 0;
}
.tb-related-cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); }
.tb-related-card .tb-related-title {
  font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.1;
  margin: 0; font-weight: 400; padding: 1rem 1.1rem 1.2rem;
}
.tb-related-card:hover .tb-related-title { color: var(--color-accent); }

/* ============================================================
   12. ARCHIVE
   ============================================================ */
.tb-archive-hero {
  background: var(--color-bg-deep);
  padding: clamp(3rem, 5vw, 4rem) clamp(1.1rem, 4vw, 2.4rem) 3rem;
  border-bottom: var(--bd) solid var(--color-border);
  text-align: left;
}
.tb-archive-hero .tb-eyebrow { margin-bottom: 0.8rem; color: var(--color-accent); }
.tb-archive-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 400; margin: 0 0 0.6rem; }
.tb-archive-hero p { max-width: 640px; margin: 0; font-size: 1rem; color: var(--color-muted); line-height: 1.6; }

.tb-archive-grid {
  max-width: var(--max-w); margin: 3rem auto; padding: 0 clamp(1.1rem, 4vw, 2.4rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: var(--bd) solid var(--color-border);
}
@media (max-width: 900px) { .tb-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tb-archive-grid { grid-template-columns: 1fr; } }
.tb-archive-card {
  text-decoration: none; color: inherit; display: block;
  border-right: var(--bd) solid var(--color-border);
  border-bottom: var(--bd) solid var(--color-border);
  background: var(--color-bg);
}
.tb-archive-grid .tb-archive-card:nth-child(3n) { border-right: none; }
@media (max-width: 900px) {
  .tb-archive-grid .tb-archive-card:nth-child(3n) { border-right: var(--bd) solid var(--color-border); }
  .tb-archive-grid .tb-archive-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) { .tb-archive-card { border-right: none; } }
.tb-archive-card .tb-archive-cover {
  aspect-ratio: 4/3; overflow: hidden;
  background: var(--color-primary-soft);
  border-bottom: var(--bd) solid var(--color-border); margin-bottom: 0;
}
.tb-archive-cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.03); }
.tb-archive-card .tb-archive-meta {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--color-accent);
  margin: 1rem 1.1rem 0.4rem; font-weight: 500;
}
.tb-archive-card .tb-archive-title {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400;
  line-height: 1.1; margin: 0 1.1rem 0.5rem;
}
.tb-archive-card .tb-archive-excerpt {
  font-size: 0.92rem; color: var(--color-muted); line-height: 1.5;
  margin: 0 1.1rem 1.2rem;
}
.tb-archive-feature { max-width: var(--max-w); margin: 3rem auto 0; padding: 0 clamp(1.1rem, 4vw, 2.4rem); }
.tb-archive-feature .tb-spread { padding: 0 0 3rem; border-bottom: var(--bd) solid var(--color-border); }

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer, .site-info {
  background: var(--color-bg-deep);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border-top: var(--bd) solid var(--color-border);
}
.site-info a { color: var(--color-muted); text-decoration: none; }
.site-info a:hover { color: var(--color-accent); }
.footer-widgets, .site-info { padding: 2.5rem clamp(1.1rem, 4vw, 2.4rem); }

/* ============================================================
   14. READING PROGRESS BAR (CSS scroll-driven) — teal
   ============================================================ */
@supports (animation-timeline: scroll()) {
  .tb-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    background: var(--color-accent);
    transform-origin: left; transform: scaleX(0);
    animation: tb-progress linear; animation-timeline: scroll(root block);
    z-index: 9999;
  }
  @keyframes tb-progress { to { transform: scaleX(1); } }
}

/* ============================================================
   REDUCED MOTION — collapse the (already minimal) motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
