/* ── Light, the default. White ground, documentary ink, one civic blue. ── */
:root, :root[data-theme="light"] {
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #4b4f58;
  --line: #e6e7ea;
  --accent: #1e40af;   /* deep civic blue, 8.7:1 on white */
  --card: #fafafa;
  --btn-fg: #ffffff;
  --btn-bg: #16181d;
}
:root[data-theme="dark"] {
  --bg: #0c0f14;
  --fg: #f4f4f5;
  --muted: #a3a7b0;
  --line: #23262d;
  --accent: #8ab4f8;
  --card: #12151b;
  --btn-fg: #0c0f14;
  --btn-bg: #f4f4f5;
}
* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
main { max-width: 760px; margin: 0 auto; padding: 64px 24px 48px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 56px;
}
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
#theme-toggle {
  color: var(--fg); background: transparent;
  border: 1px solid var(--line); padding: 8px; cursor: pointer;
  line-height: 0; display: inline-flex; align-items: center; justify-content: center;
}
#theme-toggle:hover { border-color: var(--fg); }
#theme-toggle svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: inline; }
.intro {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; margin-bottom: 44px;
}
.portrait {
  width: 220px; height: 220px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--line); display: block;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px; font-weight: 400; line-height: 1.12;
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.role { font-size: 16px; color: var(--muted); }
.role b { color: var(--fg); font-weight: 600; }
.rule { border: 0; border-top: 2px solid var(--fg); width: 56px; margin: 0 0 44px; }
p { color: var(--muted); margin-bottom: 18px; font-size: 16.5px; }
p strong { color: var(--fg); font-weight: 600; }
section { margin-bottom: 46px; }
h2 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 20px;
}
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--accent); }
.diagram { border: 1px solid var(--line); display: block; width: 100%; height: auto; }
.diagram-dark { display: none; }
:root[data-theme="dark"] .diagram-light { display: none; }
:root[data-theme="dark"] .diagram-dark { display: block; }
.caption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.caption a { font-weight: 600; }
.diagram-link { display: block; cursor: zoom-in; }
.figure-wide { width: min(960px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.reels { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 4px; }
.reel { border: 1px solid var(--line); background: var(--card); }
.reel > a { display: block; text-decoration: none; color: inherit; }
.reel-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.12); transition: background .15s ease;
}
.reel > a:hover .reel-play { background: rgba(0,0,0,.28); }
.reel-play svg { width: 52px; height: 52px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.reel-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; }
.reel-name { font-weight: 600; color: var(--fg); font-size: 14.5px; }
.reel-unit { color: var(--muted); font-size: 12.5px; }
.reel-dur { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.archive { background: var(--card); border: 1px solid var(--line); padding: 28px; }
.archive p { margin-bottom: 18px; }
.cta {
  display: inline-block; background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 15px; padding: 12px 22px; text-decoration: none;
  margin-right: 10px; margin-bottom: 10px;
}
.cta:hover { opacity: .85; }
.cta.secondary {
  background: transparent; color: var(--fg); border: 1px solid var(--fg);
}
ul.links { list-style: none; }
ul.links li { border-bottom: 1px solid var(--line); }
ul.links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 13px 2px; text-decoration: none; color: var(--fg); font-weight: 500;
}
ul.links a span { color: var(--muted); font-weight: 400; font-size: 14px; text-align: right; }
ul.links a:hover { color: var(--accent); }
ul.press { list-style: none; }
ul.press li { border-bottom: 1px solid var(--line); }
ul.press a {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 15px 2px; text-decoration: none;
}
.press-text { flex: 1; min-width: 0; }
.press-thumb {
  width: 168px; height: 110px; object-fit: cover; object-position: top;
  flex-shrink: 0; border: 1px solid var(--line); display: block;
}
.press-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 4px; }
.press-outlet {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.press-date { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.press-title { font-size: 16px; font-weight: 600; color: var(--fg); line-height: 1.4; }
ul.press a:hover .press-title { color: var(--accent); }
footer {
  border-top: 1px solid var(--line); padding-top: 20px;
  font-size: 13px; color: var(--muted);
}
a { color: var(--accent); }
@media (max-width: 520px) {
  h1 { font-size: 34px; }
  main { padding-top: 40px; }
  .intro { flex-direction: column-reverse; align-items: flex-start; }
  .portrait { width: 160px; height: 160px; }
  .press-thumb { width: 104px; height: 70px; }
  .reels { grid-template-columns: 1fr; }
}

/* ── Site navigation, added with the interior pages. ── */
.sitenav {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: -22px 0 42px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.sitenav a {
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); text-decoration: none;
}
.sitenav a:hover, .sitenav a[aria-current="page"] { color: var(--fg); }
.sitenav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.backhome { font-size: 13px; color: var(--muted); text-decoration: none; }
.backhome:hover { color: var(--fg); }
.lede { font-size: 18.5px; color: var(--fg); margin-bottom: 26px; }
.factlist { list-style: none; }
.factlist li { border-bottom: 1px solid var(--line); padding: 11px 2px; display: flex; gap: 16px; justify-content: space-between; }
.factlist .when { color: var(--muted); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.factlist .what { color: var(--fg); font-size: 15.5px; }
.source { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
