/* ============================================================
   Substratics — Design System
   Fonts: Newsreader (serif) · Inter (sans) · JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..700;1,6..72,300..700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Design Tokens --- */
:root {
  --bg:           #faf9f7;
  --bg-off:       #f3f1ed;
  --text:         #1a1a18;
  --text-muted:   #6b6b67;       /* 5.2:1 on --bg  (AA normal) */
  --text-faint:   #73736d;       /* 4.6:1 on --bg  (AA normal) — was #9e9e98 (2.7:1, failed) */
  --border:       #908a7c;       /* 3.2:1 on --bg  (AA non-text UI) — was #d4cfc5 (1.4:1) */
  --border-light: #d4cfc5;       /* decorative only; not carrying information */

  --substrate:       #1e3a5f;
  --substrate-light: #eef3fb;
  --operators:       #7c2d12;
  --operators-light: #fef4ee;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;  --s4: 1rem;
  --s5: 1.25rem;  --s6: 1.5rem;   --s8: 2rem;     --s10: 2.5rem;
  --s12: 3rem;    --s16: 4rem;    --s20: 5rem;

  --max-site:    1200px;
  --max-article: 68ch;

  --lh-tight:  1.15;
  --lh-snug:   1.3;
  --lh-normal: 1.55;
  --lh-loose:  1.8;
}

/* Dark mode — system */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #111110;
    --bg-off:       #1a1918;
    --text:         #e8e4db;
    --text-muted:   #8a877f;       /* 5.0:1 on --bg (AA) */
    --text-faint:   #807d73;       /* 4.7:1 on --bg (AA) — was #5a5850 (2.4:1, failed) */
    --border:       #6a655a;       /* 3.1:1 on --bg (AA non-text UI) — was #2e2c28 (1.8:1) */
    --border-light: #2e2c28;       /* decorative only */
    --substrate:       #7bafd4;
    --substrate-light: #0c1825;
    --operators:       #e0886a;
    --operators-light: #1f0f08;
  }
}

/* Dark mode — explicit toggle */
[data-theme="dark"] {
  --bg:           #111110;
  --bg-off:       #1a1918;
  --text:         #e8e4db;
  --text-muted:   #8a877f;       /* 5.0:1 on --bg */
  --text-faint:   #807d73;       /* 4.7:1 on --bg */
  --border:       #6a655a;       /* 3.1:1 on --bg */
  --border-light: #2e2c28;
  --substrate:       #7bafd4;
  --substrate-light: #0c1825;
  --operators:       #e0886a;
  --operators-light: #1f0f08;
}

[data-theme="light"] {
  --bg:           #faf9f7;
  --bg-off:       #f3f1ed;
  --text:         #1a1a18;
  --text-muted:   #6b6b67;       /* 5.2:1 on --bg */
  --text-faint:   #73736d;       /* 4.6:1 on --bg */
  --border:       #908a7c;       /* 3.2:1 on --bg */
  --border-light: #d4cfc5;
  --substrate:       #1e3a5f;
  --substrate-light: #eef3fb;
  --operators:       #7c2d12;
  --operators-light: #fef4ee;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: var(--lh-loose);
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}

img { max-width: 100%; display: block; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -200%;
  left: var(--s4);
  z-index: 999;
  padding: var(--s2) var(--s6);
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

a { color: inherit; text-decoration-skip-ink: auto; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }

/* Screen-reader-only (visually hidden, available to assistive tech) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 var(--s6);
}

.masthead-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.theme-toggle {
  appearance: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-muted); }

.masthead-wordmark {
  text-align: center;
  padding: var(--s5) 0 var(--s4);
  transition: padding 0.18s ease;
}
.masthead-wordmark h1 {
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: -0.015em;
  line-height: var(--lh-tight);
  margin-bottom: var(--s3);
}
.masthead-wordmark h1 a { text-decoration: none; color: var(--text); }
.masthead-wordmark h1 a:hover { text-decoration: none; }
.tagline {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
}

.masthead-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) 0;
  border-top: 1px solid var(--border-light);
  gap: var(--s4);
  flex-wrap: wrap;
}
.masthead-date {
  font-family: var(--sans);
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.site-nav {
  display: flex;
  gap: var(--s6);
  list-style: none;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
}
.site-nav a { text-decoration: none; color: var(--text-muted); transition: color 0.1s; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-substrate a { color: var(--substrate) !important; }
.nav-operators a { color: var(--operators) !important; }

/* Compact masthead for article pages */
.masthead-compact .masthead-wordmark { padding: var(--s4) 0 var(--s3); }
.masthead-compact .masthead-wordmark h1 { font-size: 1.5rem; }
.masthead-compact .tagline { display: none; }

/* Collapsed masthead — triggered by scroll listener */
.masthead.collapsed { border-bottom: 1px solid var(--border); }
.masthead.collapsed .masthead-kicker { display: none; }
.masthead.collapsed .masthead-date { display: none; }
.masthead.collapsed .masthead-wordmark { padding: var(--s2) 0; }
.masthead.collapsed .masthead-wordmark h1 { font-size: 1.5rem; margin-bottom: 0; letter-spacing: -0.02em; }
.masthead.collapsed .tagline {
  display: inline;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-muted);
  margin-left: var(--s3);
}
.masthead.collapsed .masthead-bottom {
  border-top: none;
  padding: var(--s2) 0;
}
.masthead.collapsed .masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s6);
}
.masthead.collapsed .masthead-wordmark {
  text-align: left;
  grid-column: 1;
  grid-row: 1;
}
.masthead.collapsed .masthead-bottom {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: var(--s10) var(--s6) var(--s20);
}

/* ============================================================
   FRONT PAGE — SECTION BLOCKS
   ============================================================ */
.section-block { margin-bottom: var(--s20); }
.section-block + .section-block {
  padding-top: var(--s16);
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--s5);
  margin-bottom: var(--s8);
  padding-bottom: var(--s4);
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.s-substrate .section-head { border-bottom-color: var(--substrate); }
.s-operators .section-head { border-bottom-color: var(--operators); }

.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.s-substrate .section-eyebrow { color: var(--substrate); }
.s-operators .section-eyebrow { color: var(--operators); }

.section-head h2 {
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.section-sub {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-left: auto;
}

.section-more {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.1s;
}
.section-more:hover { color: var(--text); text-decoration: none; }

/* ============================================================
   DIRECTION C — TYPOGRAPHIC FEED
   ============================================================ */

/* Shared beat label — all-caps, tracked, tiny */
.beat {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
  display: inline-block;
}
.s-substrate .beat { color: var(--substrate); }
.s-operators .beat { color: var(--operators); }

/* Featured article — the section's lead, source-order index 0 */
.featured {
  padding-bottom: var(--s10);
  margin-bottom: var(--s8);
  border-bottom: 1px solid var(--border-light);
}
.featured h3 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin-bottom: var(--s5);
  max-width: 22ch;
}
.featured h3 a { text-decoration: none; color: var(--text); }
.featured h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.featured .dek {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: var(--lh-normal);
  color: var(--text);
  margin-bottom: var(--s5);
  max-width: 62ch;
}
.featured .byline {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.featured .byline time { color: var(--text-muted); }

/* List items — subsequent articles in each section */
.article-list { list-style: none; }
.article-list-item {
  display: block;
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--border-light);
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: -0.012em;
  margin-bottom: var(--s3);
  max-width: 40ch;
}
.article-list-item h3 a { text-decoration: none; color: var(--text); }
.article-list-item h3 a:hover { text-decoration: underline; text-underline-offset: 0.12em; }
.article-list-item .dek {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: var(--lh-normal);
  color: var(--text);
  margin-bottom: var(--s3);
  max-width: 56ch;
}
.article-list-item .byline {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* "See all" link below each section */
.section-all {
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}
.s-substrate .section-all { border-top-color: var(--substrate); }
.s-operators .section-all { border-top-color: var(--operators); }
.section-all a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: var(--s2);
  transition: opacity 0.15s;
}
.section-all a:hover { opacity: 0.65; text-decoration: none; }
.section-all .arrow { font-family: var(--sans); font-weight: 400; }

/* ============================================================
   ARTICLE LAYOUT
   ============================================================ */
.article-outer {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: var(--s8) var(--s6) var(--s20);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: var(--s8);
  transition: color 0.1s;
}
.back-link:hover { color: var(--text); text-decoration: none; }

.article-header {
  max-width: var(--max-article);
  margin: 0 auto var(--s10);
}

.section-tag {
  font-family: var(--sans);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}
.article-outer.substrate .section-tag { color: var(--substrate); }
.article-outer.operators .section-tag { color: var(--operators); }

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  margin-bottom: var(--s5);
}
.article-header .dek {
  font-style: italic;
  font-size: 1.125rem;
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin-bottom: var(--s5);
}
.article-header .byline {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--border-light);
}
.article-outer.substrate .article-header .byline { border-bottom-color: var(--substrate); }
.article-outer.operators .article-header .byline { border-bottom-color: var(--operators); }

/* Prose body */
.prose {
  max-width: var(--max-article);
  margin: 0 auto;
}
.prose > * + * { margin-top: var(--s6); }
.prose p { line-height: var(--lh-loose); }

/* Drop cap */
.prose > p:first-child::first-letter {
  float: left;
  font-size: 3.75em;
  line-height: 0.78;
  padding-right: 0.06em;
  padding-top: 0.04em;
  font-weight: 300;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: var(--lh-snug);
  margin-top: var(--s12) !important;
}

.prose ol, .prose ul { padding-left: var(--s6); }
.prose li { margin-bottom: var(--s3); }
.prose li strong { font-weight: 600; }

.prose blockquote {
  margin: var(--s8) 0;
  padding: var(--s4) var(--s6);
  border-left: 3px solid var(--border);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: var(--lh-normal);
}
.article-outer.substrate .prose blockquote { border-left-color: var(--substrate); }
.article-outer.operators .prose blockquote { border-left-color: var(--operators); }

.prose pre {
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--s5) var(--s6);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  tab-size: 2;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bg-off);
  border: 1px solid var(--border-light);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.prose pre code { background: none; border: none; padding: 0; font-size: inherit; }

/* ============================================================
   FIELD PROMPT — practice block at foot of article
   ============================================================ */
.field-prompt {
  margin-top: var(--s12);
  padding-top: var(--s8);
  border-top: 2px solid var(--border);
}
.article-outer.substrate .field-prompt { border-top-color: var(--substrate); }
.article-outer.operators .field-prompt { border-top-color: var(--operators); }

.field-prompt h2 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 0 !important;
  margin-bottom: var(--s4);
}

.field-prompt-note {
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: var(--lh-normal);
  color: var(--text-muted);
  padding: var(--s4) var(--s5);
  background: var(--bg-off);
  border-left: 3px solid var(--border);
  margin-bottom: var(--s5);
}
.article-outer.substrate .field-prompt-note { border-left-color: var(--substrate); }
.article-outer.operators .field-prompt-note { border-left-color: var(--operators); }

.field-prompt-preamble {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--s4);
}

.field-prompt pre[data-role="field-prompt"] {
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--s5) var(--s6);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  white-space: pre;
  tab-size: 2;
  user-select: all;
}

.field-prompt-ops {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--s4);
  letter-spacing: 0.01em;
}

.endnote {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: var(--lh-normal);
  margin-top: var(--s12);
  padding-top: var(--s6);
  border-top: 1px solid var(--border-light);
}

/* Prev/next nav */
.article-nav {
  max-width: var(--max-article);
  margin: var(--s12) auto 0;
  padding-top: var(--s8);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  gap: var(--s6);
  font-family: var(--sans);
  font-size: 0.8125rem;
}
.article-nav a { text-decoration: none; color: var(--text-muted); max-width: 45%; transition: color 0.1s; }
.article-nav a:hover { color: var(--text); text-decoration: none; }
.nav-label { font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: var(--s1); }
.nav-prev { text-align: left; }
.nav-next { text-align: right; margin-left: auto; }

/* ============================================================
   ARCHIVE PAGES
   ============================================================ */
.archive-head {
  padding-bottom: var(--s8);
  margin-bottom: var(--s10);
  border-bottom: 2px solid var(--border);
}
.page-inner.substrate .archive-head { border-bottom-color: var(--substrate); }
.page-inner.operators .archive-head { border-bottom-color: var(--operators); }

.archive-eyebrow {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.substrate .archive-eyebrow { color: var(--substrate); }
.operators .archive-eyebrow { color: var(--operators); }

.archive-head h1 {
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: var(--s2);
}
.archive-head p { font-style: italic; color: var(--text-muted); font-size: 1.0625rem; }

.rss-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: var(--s4);
  transition: color 0.1s;
}
.rss-link:hover { color: var(--text); text-decoration: none; }

.archive-list { list-style: none; }
.archive-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--s2) var(--s8);
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--border-light);
}
.archive-item:first-child { border-top: 1px solid var(--border-light); }

.archive-date {
  font-family: var(--sans);
  font-size: 0.6875rem;
  color: var(--text-faint);
  padding-top: 0.2rem;
}
.archive-beat {
  font-family: var(--sans);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}
.substrate .archive-beat { color: var(--substrate); }
.operators .archive-beat { color: var(--operators); }

.archive-item h2 { font-size: 1.125rem; font-weight: 400; line-height: var(--lh-snug); letter-spacing: -0.01em; margin-bottom: var(--s2); }
.archive-item h2 a { text-decoration: none; }
.archive-item h2 a:hover { text-decoration: underline; }
.archive-item .dek { font-style: italic; font-size: 0.875rem; color: var(--text-muted); line-height: var(--lh-normal); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-prose {
  max-width: var(--max-article);
  margin: 0 auto;
}
.about-prose .page-title { font-size: 2.25rem; font-weight: 300; letter-spacing: -0.025em; margin-bottom: var(--s3); }
.about-prose .page-subtitle { font-style: italic; color: var(--text-muted); font-size: 1.125rem; margin-bottom: var(--s10); padding-bottom: var(--s8); border-bottom: 1px solid var(--border-light); }
.about-prose p { margin-bottom: var(--s6); line-height: var(--lh-loose); }
.about-prose h2 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; margin: var(--s10) 0 var(--s4); }
.about-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  margin: var(--s8) 0;
}
.about-section-card { padding: var(--s5); border-left: 3px solid var(--border); }
.about-section-card.substrate-card { border-left-color: var(--substrate); background: var(--substrate-light); }
.about-section-card.operators-card { border-left-color: var(--operators); background: var(--operators-light); }
.about-section-card strong { display: block; font-size: 0.8125rem; font-weight: 600; font-family: var(--sans); margin-bottom: var(--s2); }
.about-section-card p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }

/* Newsletter */
.newsletter-block {
  margin-top: var(--s12);
  padding: var(--s8);
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.newsletter-block h3 { font-size: 1.125rem; font-weight: 400; margin-bottom: var(--s3); }
.newsletter-block p { font-size: 0.875rem; color: var(--text-muted); font-style: italic; margin-bottom: var(--s5); line-height: var(--lh-normal); }
.newsletter-form { display: flex; gap: var(--s3); flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 200px;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
}
.newsletter-form input::placeholder { color: var(--text-faint); }
.newsletter-form button {
  padding: var(--s3) var(--s6);
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.15s;
}
.newsletter-form button:hover { opacity: 0.8; }
.newsletter-note { font-family: var(--sans); font-size: 0.6875rem; color: var(--text-faint); margin-top: var(--s3); letter-spacing: 0.04em; text-transform: uppercase; }

/* ============================================================
   FOOTER
   ============================================================ */
.colophon {
  border-top: 1px solid var(--border);
  background: var(--bg-off);
  padding: var(--s10) var(--s6);
  margin-top: var(--s16);
}
.colophon-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s10);
  align-items: start;
}
.colophon-brand h4 { font-size: 1rem; font-weight: 400; margin-bottom: var(--s3); letter-spacing: -0.01em; }
.colophon-brand p { font-size: 0.8125rem; color: var(--text-muted); line-height: var(--lh-normal); }
.colophon-section h5 {
  font-family: var(--sans);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s4);
}
.colophon-section ul { list-style: none; }
.colophon-section li { margin-bottom: var(--s3); }
.colophon-section a { font-family: var(--sans); font-size: 0.8125rem; color: var(--text-muted); text-decoration: none; transition: color 0.1s; }
.colophon-section a:hover { color: var(--text); text-decoration: none; }
.colophon-bottom {
  max-width: var(--max-site);
  margin: var(--s8) auto 0;
  padding-top: var(--s6);
  border-top: 1px solid var(--border-light);
  font-family: var(--sans);
  font-size: 0.6875rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .colophon-inner { grid-template-columns: 1fr 1fr; }
  .featured h3 { font-size: clamp(2.5rem, 6vw, 2.75rem); }
}

@media (max-width: 680px) {
  html { font-size: 17px; }
  .masthead-inner { padding: 0 var(--s4); }
  .page-inner, .article-outer { padding-left: var(--s4); padding-right: var(--s4); }
  .archive-item { grid-template-columns: 1fr; }
  .archive-date { display: none; }
  .about-sections { grid-template-columns: 1fr; }
  .colophon-inner { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .section-sub, .section-more { display: none; }
  .site-nav { gap: var(--s4); }
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  .masthead-wordmark h1 { font-size: 1.625rem; }
  .colophon-inner { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
  .nav-next { text-align: left; margin-left: 0; }
}

/* ============================================================
   EDITORIAL CALENDAR
   ============================================================ */
.calendar-intro {
  max-width: 68ch;
  margin: 0 auto var(--s7);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.calendar-intro p { margin-bottom: var(--s3); }
.calendar-intro p:last-child { margin-bottom: 0; }

.calendar-block { margin-bottom: var(--s8); }
.calendar-block h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--text-muted);
  margin-bottom: var(--s5);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--border);
}

.calendar-list { list-style: none; padding: 0; margin: 0; }
.calendar-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--s5);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
}
.calendar-row:last-child { border-bottom: none; }
.calendar-row .cal-date {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding-top: 0.2rem;
}
.calendar-row .cal-date .cal-weekday {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}
.calendar-row .cal-body { min-width: 0; }

.cal-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2) var(--s3);
  margin-bottom: var(--s2);
  font-family: var(--sans);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cal-section { font-weight: 600; }
.cal-section.s-substrate { color: var(--substrate); }
.cal-section.s-operators { color: var(--operators); }
.cal-beat { color: var(--text-muted); font-weight: 500; }
.cal-column {
  color: var(--text-muted);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.75rem;
}

.calendar-row h3 {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin-bottom: var(--s2);
}
.calendar-row h3 a { text-decoration: none; color: var(--text); }
.calendar-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 0.2em; }
.calendar-row .cal-dek {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--s2);
}
.calendar-row .cal-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* Status: published — entry grayed, headline still legible */
.calendar-row.cal-published .cal-date,
.calendar-row.cal-published .cal-dek,
.calendar-row.cal-published .cal-tags { opacity: 0.65; }
.calendar-row.cal-published h3 a { color: var(--text-muted); }
.calendar-row.cal-published h3 a:hover { color: var(--text); }

/* Status: slipped — italic parenthetical in cal-meta */
.calendar-row.cal-slipped .cal-meta {
  color: var(--operators);
  font-style: italic;
}

@media (max-width: 600px) {
  .calendar-row { grid-template-columns: 1fr; gap: var(--s2); }
  .calendar-row .cal-date { padding-top: 0; }
  .calendar-row .cal-date .cal-weekday { display: inline; margin-right: var(--s2); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .masthead, .back-link, .site-nav, .theme-toggle,
  .article-nav, .newsletter-block, .colophon { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: none; }
  .prose { max-width: none; }
  h2 { page-break-after: avoid; }
  p { orphans: 3; widows: 3; }
  @page { margin: 2.5cm; }
}
