/* ============================================================================
   EIP article theme
   Scope: ARTICLES ONLY  (index.html is the application, NOT covered here).
   Principle: professional, easy to read, think tank quality or better.
   Reference DNA: delegation_decoded.html
                  (newspaper / Foreign Affairs / Brookings / Economist feel).

   How to inherit:
     1) <link rel="stylesheet" href="theme.css">
     2) <link href="https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
     3) Write semantic HTML -- theme styles it.  No body class required.

   Components -- write semantic HTML, theme styles it:
     <header class="masthead">
       <p class="eyebrow">SECTION DOT KICKER</p>
       <h1 class="title">Big italic title</h1>
       <p class="subtitle">Subtitle in serif</p>
       <p class="byline">BYLINE DATE SOURCE</p>
     </header>
     <article>
       <section>
         <div class="section-mark">
           <span class="numeral">I</span>
           <span class="kicker">SECTION KICKER</span>
         </div>
         <h2>Section title <em>italic part</em></h2>
         <p class="lead">Lead paragraph.</p>
         <p class="dropcap">First letter drop caps.</p>
         <blockquote class="pullquote">A pull quote.</blockquote>
         <aside class="mirror"><h4>Mirror</h4><p>Historical aside.</p></aside>
         <div class="lane">
           <p class="lane-label">LANE LABEL</p>
           <dl><dt>Term</dt><dd>Definition.</dd></dl>
         </div>
       </section>
     </article>
     <div class="latitude"><span class="line"></span><span class="mark">42N</span><span class="line"></span></div>
     <footer class="colophon">EIP <span class="dot">.</span> 2026</footer>
   ============================================================================ */


/* ============================================================================
   1. TOKENS (universal, skin-agnostic)
   ============================================================================ */
:root {
  /* 8-point spacing grid + fine + hero */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 80px;

  --r-sm: 4px;
  --r:    8px;
  --r-lg: 12px;

  --font-serif: "Spectral", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
                "Helvetica Neue", Roboto, "Microsoft YaHei", sans-serif;
  --font-mono:  "IBM Plex Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.10);
  --shadow:    0 2px 8px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);

  --t-fast: 140ms;
  --t-base: 200ms;

  /* Single unified container width (Adam directive 2026-05-13): all 1100px.
     Every container (masthead / article / article.wide / think-tank / body)
     uses 1100. Text elements (h1.title / subtitle / lead / h2) drop their
     max-width constraints and fill the container. */
  --w-prose:      1100px;
  --w-think-tank: 1100px;
  --w-wide:       1100px;
  --w-masthead:   1100px;
  --w-content:    1100px;
  --w-roster:     1100px;
}


/* ============================================================================
   2. SKIN: editorial-light (the only skin -- think-tank canonical, paper-feel)
   Source DNA: delegation_decoded.html
   ============================================================================ */
:root {
  --bg:          #F4EFE6;
  --paper-tint:  #EDE6D6;
  --bg-card:     #EDE6D6;
  --bg-input:    #FFFFFF;
  --bg-chip:     #E5DDC9;
  --border:      #C8BFAE;
  --border-soft: #DDD3BE;

  --text:        #0D1B2A;
  --text-dim:    #2A3848;
  --text-muted:  #6B6357;

  --accent:      #8B2635;
  --accent-hover:#A03345;
  --accent-bg:   rgba(139,38,53,.10);

  --tone-primary:#3D6B43;
  --tone-peer:   #2C5282;
  --tone-stress: #8B2635;
  --tone-final:  #3D6B43;
  --tone-warn:   #B27500;
}


/* ============================================================================
   3. PAPER GRAIN (newspaper texture)
   ============================================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0.07 0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.45;
}
main, article, header, section, footer, aside { position: relative; z-index: 2; }


/* ============================================================================
   5. RESET + BASELINE
   ============================================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ============================================================================
   6. TYPOGRAPHY -- think-tank heading rhythm
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text);
  margin: 0 0 var(--s-3) 0;
}
h1 {
  /* Default h1 is the ordinary article heading -- NOT a newspaper hero.
     Sans, neutral weight, moderate size.  Long technical titles like
     "AI Hype Cycle Core Contradiction + LLM Revenue Algorithm..." wrap
     cleanly without becoming dramatic italic single-word stacks.
     For dramatic newspaper-style hero, use <h1 class="title"> which
     opts into 64px italic serif treatment. */
  font-family: var(--font-sans);
  font-weight: 600;
  font-style: normal;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 var(--s-3) 0;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
h2 {
  font-weight: 600;
  font-size: 30px;
  line-height: 1.32;
  letter-spacing: -0.012em;
  margin: var(--s-6) 0 var(--s-4) 0;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
h2 em { font-style: italic; }
h3 {
  font-weight: 600;
  font-style: italic;
  font-size: 22px;
  line-height: 1.28;
  margin: var(--s-6) 0 var(--s-3) 0;
}
h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: var(--s-5) 0 var(--s-2) 0;
}

p {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 var(--s-4) 0;
  hyphens: auto;
}
p strong { color: var(--text); font-weight: 600; }
p em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text);
}

ul, ol {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  padding-left: var(--s-5);
  margin: 0 0 var(--s-4) 0;
}
li { margin: 0 0 var(--s-2) 0; }
ul li::marker { color: var(--accent); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 1px 6px;
  background: var(--bg-card);
  color: var(--accent);
  border-radius: var(--r-sm);
}
pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

a {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(to right, var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  border-bottom: 1px solid var(--border);
  transition: background-size var(--t-base) ease;
}
a:hover { background-size: 100% 1px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-sm); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::-webkit-scrollbar-track { background: transparent; }


/* ============================================================================
   7. CONTAINERS
   ============================================================================ */
.container        { max-width: var(--w-prose); margin: 0 auto; padding: var(--s-7) var(--s-6); }
.container-wide   { max-width: var(--w-wide);  margin: 0 auto; padding: var(--s-7) var(--s-6); }
.container-roster { max-width: var(--w-wide);  margin: 0 auto; padding: var(--s-7) var(--s-6); }

/* article = prose reading column (660); .wide = section-mark + tables (1080) */
article      { max-width: var(--w-prose); margin: 0 auto; padding: var(--s-8) var(--s-6) var(--s-6); }
article.wide { max-width: var(--w-wide); }


/* ============================================================================
   8. ARTICLE BODY MODE
   When no .masthead present  -> body itself is the container (980px max,
                                 hype_cycle pattern: simple <body><header>...).
   When .masthead present     -> body stays full-bleed (delegation_decoded
                                 pattern: per-component .masthead/.container).
   :has() is supported in Chrome 105+, Firefox 121+, Safari 15.4+ (Mar 2023+).
   ============================================================================ */
body:not(:has(.masthead)) {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-6);
}
body:not(:has(.masthead)) > header {
  margin: 0 0 var(--s-6) 0;
  padding: 0 0 var(--s-5) 0;
  border-bottom: 2px solid var(--border);
}
body:not(:has(.masthead)) > footer {
  margin: var(--s-9) 0 0 0;
  padding: var(--s-4) 0 var(--s-7) 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
}


/* ============================================================================
   8b. MASTHEAD (full page-header treatment, delegation_decoded pattern)
   ============================================================================ */
.masthead {
  max-width: var(--w-masthead);
  margin: 0 auto;
  padding: 80px 64px 56px;
  border-bottom: 1px solid var(--border);
}
.masthead .top-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: var(--s-2) 0;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--s-8);
}
.masthead .top-rule .compass {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 13px;
  color: var(--text-muted);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-5) 0;
}
.eyebrow .dot { display: inline-block; margin: 0 var(--s-2); color: var(--text-muted); }

h1.title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 0 0 18px 0;
  text-wrap: balance;
}
h1.title br { display: block; }

.subtitle {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-dim);
  margin: 0 0 24px 0;
}

.author-line {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 18px 0 36px 0;
  line-height: 1.5;
}
.author-line strong { font-weight: 600; color: var(--text); letter-spacing: 0.12em; }
.author-line .dot   { color: var(--text-muted); margin: 0 6px; }

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 24px 0;
  font-weight: 400;
}
.lead em { font-style: italic; }

.byline {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}


/* ============================================================================
   9. SECTION RHYTHM
   ============================================================================ */
section {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--border-soft);
  position: relative;
}
section:first-of-type { border-top: none; }

.section-mark {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.section-mark .numeral {
  font-family: var(--font-serif);
  font-size: 38px;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1;
}
.section-mark .kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  flex: 1;
  padding-bottom: var(--s-1);
  transform: translateY(-6px);
}


/* ============================================================================
   10. EDITORIAL FLOURISH (dropcap / pullquote / lane / latitude / mirror)
   ============================================================================ */
.dropcap::first-letter {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: 72px;
  line-height: 0.85;
  float: left;
  color: var(--accent);
  padding: 6px 10px 0 0;
  margin-top: 4px;
}

.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.35;
  color: var(--text);
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: var(--s-6) 0;
  margin: var(--s-7) 0;
  max-width: none;
  letter-spacing: -0.005em;
}
.pullquote::before {
  content: "--";
  display: block;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 16px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: var(--s-3);
  text-transform: uppercase;
}

.lane {
  margin: var(--s-6) 0;
  padding: var(--s-5) 0 var(--s-2);
  border-top: 1px solid var(--border-soft);
}
.lane:first-of-type { border-top: none; }
.lane .lane-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.lane h3 { margin: 0 0 var(--s-3) 0; }
.lane dl { margin: var(--s-3) 0 0 0; font-family: var(--font-sans); font-size: 16px; color: var(--text-dim); }
.lane dt {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: var(--s-3) 0 var(--s-1) 0;
}
.lane dt:first-child { margin-top: 0; }
.lane dd { margin: 0; line-height: 1.55; }

.latitude {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-7) auto;
  max-width: var(--w-prose);
  color: var(--text-muted);
}
.latitude .line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border) 0, var(--border) 4px, transparent 4px, transparent 9px);
}
.latitude .mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.08em;
}

aside.mirror {
  background: transparent;
  border-left: 3px solid var(--accent);
  padding: var(--s-2) 0 var(--s-2) var(--s-6);
  margin: var(--s-6) 0;
}
aside.mirror h4 { margin-top: 0; }
aside.mirror p {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

.closing p {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
}

.colophon {
  max-width: var(--w-prose);
  margin: var(--s-6) auto var(--s-9);
  padding: var(--s-5) var(--s-7) 0;
  border-top: 1px solid var(--text);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.colophon .dot { color: var(--border); margin: 0 var(--s-2); }


/* ============================================================================
   10b. THINK-TANK (recommended reading list)
   ============================================================================ */
.think-tank {
  max-width: var(--w-think-tank);
  margin: var(--s-8) auto 0 auto;
  padding: var(--s-7) var(--s-7) var(--s-6);
  border-top: 1px solid var(--border);
}
.think-tank h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--s-2) 0;
  letter-spacing: -0.012em;
  max-width: none;
}
.think-tank .roman {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 0 0 var(--s-5) 0;
}
.think-tank .lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 var(--s-6) 0;
}
.think-tank ul { list-style: none; padding: 0; margin: 0; }
.think-tank li {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border-soft);
}
.think-tank li:last-child { border-bottom: none; }
.think-tank a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  background-image: none;
  transition: border-color 160ms;
}
.think-tank a:hover { border-bottom-color: var(--accent); }
.think-tank .pub {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: var(--s-1);
}


/* ============================================================================
   11. SCROLL PROGRESS BAR
   ============================================================================ */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 50;
  transition: width 120ms linear;
}


/* ============================================================================
   12. ARTICLE COMPONENTS (data-brief / argument blocks)
   ============================================================================ */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-4) 0;
}
.panel.tldr {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-input));
}
.panel.verdict,
.verdict {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--tone-final);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-4) 0;
}
.panel.verdict h3,
.verdict h3 { color: var(--tone-final); margin-top: 0; }

.scenario {
  border-left: 3px solid var(--border);
  padding-left: var(--s-4);
  margin: var(--s-4) 0;
}
.scenario.s-soft   { border-left-color: var(--tone-primary); }
.scenario.s-crash  { border-left-color: var(--tone-stress); }
.scenario.s-bifurc { border-left-color: var(--tone-peer); }

.prob {
  display: inline-block;
  padding: 2px var(--s-3);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  margin-left: var(--s-2);
}
.prob-low  { background: var(--bg-chip); color: var(--text-muted); }
.prob-mid  { background: var(--accent-bg); color: var(--accent); }
.prob-high { background: rgba(214,106,91,.18); color: var(--tone-stress); }

.formula {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--tone-primary);
  margin: var(--s-3) 0;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.7;
}


/* ============================================================================
   13. TABLE (general + .roster editorial variant)
   ============================================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-4) 0;
  font-family: var(--font-sans);
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid var(--border-soft);
  padding: var(--s-2) var(--s-3);
  text-align: left;
  vertical-align: top;
}
th {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--text);
}
td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

table.roster thead th.idx { width: 48px; text-align: right; padding-right: var(--s-4); }
table.roster tbody td { color: var(--text-dim); }
table.roster tbody td.idx {
  text-align: right;
  padding-right: var(--s-4);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  width: 48px;
}
table.roster tbody tr:nth-child(odd) td { background: var(--bg-chip); }
table.roster td.company {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
}
table.roster td.exec { font-weight: 500; color: var(--text); }
table.roster td.exec .note {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--accent);
  margin-top: 3px;
}
table.roster td.sector { color: var(--text-muted); font-size: 14px; }


/* ============================================================================
   14. ABSENCES BOX (two-column listing)
   ============================================================================ */
.absences {
  background: var(--bg-card);
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: var(--s-6) var(--s-6) var(--s-5);
  margin: var(--s-6) 0;
}
.absences h4 { margin-top: 0; }
.absences ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5) 0;
  column-count: 2;
  column-gap: var(--s-6);
}
.absences ul li {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 var(--s-3) 0;
  color: var(--text);
  break-inside: avoid;
}
.absences ul li strong {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.absences ul li span {
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}


/* ============================================================================
   15. INLINE COLOR HELPERS
   ============================================================================ */
.text-red    { color: var(--tone-stress); }
.text-green  { color: var(--tone-primary); }
.text-blue   { color: var(--tone-peer); }
.text-yellow { color: var(--tone-warn, var(--accent)); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-accent { color: var(--accent); }

/* legacy short-form (compat with existing inline HTML) */
.red    { color: var(--tone-stress); }
.green  { color: var(--tone-primary); }
.blue   { color: var(--tone-peer); }
.yellow { color: var(--tone-warn, var(--accent)); }
.muted  { color: var(--text-muted); font-size: 13px; }


/* ============================================================================
   16. FADE-IN (intersection-observer pattern; JS toggles .visible)
   ============================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}


/* ============================================================================
   17. RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .masthead { padding: 56px 36px 40px; }
  article, article.wide { padding: var(--s-7) var(--s-6) var(--s-5); }
  .think-tank { padding: var(--s-6) var(--s-6) var(--s-5); }
  h1.title { font-size: 52px; }
  h1 { font-size: 26px; }
}
@media (max-width: 768px) {
  html, body { font-size: 17px; }
  body:not(:has(.masthead)) { padding: var(--s-5) var(--s-4); }
  .masthead { padding: 40px 24px 32px; }
  .masthead .top-rule {
    font-size: 10px;
    letter-spacing: 0.14em;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .container, .container-wide, .container-roster { padding: var(--s-6) var(--s-4); }
  article, article.wide { padding: var(--s-6) var(--s-4) var(--s-4); }
  .think-tank { padding: var(--s-5) var(--s-4) var(--s-4); }
  h1.title { font-size: 40px; max-width: none; }
  h1 { font-size: 22px; line-height: 1.28; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .subtitle { font-size: 19px; max-width: none; }
  .lead { font-size: 19px; }
  .pullquote { font-size: 22px; }
  .absences ul { column-count: 1; }
  table.roster { font-size: 13px; }
  table.roster thead th, table.roster tbody td { padding: var(--s-2) var(--s-1); }
  table.roster thead th.idx, table.roster tbody td.idx { width: 32px; padding-right: var(--s-2); }
  .dropcap::first-letter { font-size: 56px; }
  .latitude { padding: 0 var(--s-5); }
}
@media (max-width: 375px) {
  body:not(:has(.masthead)) { padding: var(--s-4) var(--s-3); }
  .masthead { padding: 32px 20px 24px; }
  .container, .container-wide, .container-roster { padding: var(--s-5) var(--s-3); }
  article, article.wide { padding: var(--s-5) var(--s-3); }
  h1.title { font-size: 34px; }
  h1 { font-size: 20px; line-height: 1.3; }
  h2 { font-size: 22px; }
  .lead { font-size: 17px; }
}


/* ============================================================================
   18. ACCESSIBILITY
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  #progress { transition: none; }
}


/* ============================================================================
   19. PRINT
   ============================================================================ */
@media print {
  body { background: white !important; color: black !important; }
  body::before, #progress { display: none !important; }
  section { page-break-inside: avoid; }
  a { color: black; border-bottom: none; background: none; }
  .panel { border: 1px solid #999; background: white; }
}
