:root {
  color-scheme: light;
  --paper: #f3eee2;
  --ink: #20241b;
  --muted: #565747;
  --dark: #191e18;
  --deep: #242d23;
  --light: #faf2dc;
  --soft: #cbc7af;
  --brass: #f5c776;
  --rule: #cfc8b4;
  --serif: Georgia, "Times New Roman", serif;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body, figure, h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { background: var(--brass); color: var(--dark); }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.opening { color: var(--light); background: var(--dark); }
.mast { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #4d5140; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 25px/1 var(--serif); text-decoration: none; white-space: nowrap; }
.wordmark svg { color: var(--brass); width: 26px; height: 26px; }
.wordmark svg, .primary svg { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.mast nav { display: flex; gap: clamp(18px, 3vw, 45px); }
.mast nav a, .archive-link { font-size: 14px; }
.mast nav a { text-decoration: none; }
.mast nav a:hover { text-decoration: underline; }
.archive-link { color: var(--soft); }
.skip { position: absolute; top: 12px; left: 18px; z-index: 2; padding: 12px 16px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }
.hero { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(30px, 6.4vw, 98px); align-items: center; min-height: 650px; padding-block: 62px 74px; }
.hero h1 { font: 400 clamp(49px, 6.5vw, 96px)/.99 var(--serif); letter-spacing: -.043em; }
.hero h1 em { display: block; color: var(--brass); font-weight: inherit; }
.hero-text p { margin-top: 28px; max-width: 34ch; font-size: clamp(17px, 1.45vw, 21px); color: var(--soft); }
.primary { margin-top: 34px; display: inline-flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 50px; padding: 11px 17px; border: 1px solid var(--brass); color: var(--brass); text-decoration: none; font-weight: 650; }
.primary:hover { background: var(--brass); color: var(--dark); }
.primary svg { width: 18px; height: 18px; }
.plate { position: relative; background: #e8dec6; padding: 33px clamp(14px, 3vw, 42px) 12px; color: var(--ink); }
.plate img { width: 100%; max-height: 435px; object-fit: contain; mix-blend-mode: multiply; }
.plate-label { position: absolute; top: 10px; left: 14px; font-size: 12px; font-weight: 650; }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 15px; padding-top: 12px; font-size: 12px; }
.hero-art figcaption { color: var(--soft); }
.section-head { display: flex; justify-content: space-between; gap: 22px; align-items: end; margin-bottom: 28px; }
.section-head p { max-width: 31ch; color: var(--muted); }
h2 { font: 400 clamp(36px, 4.5vw, 66px)/1.05 var(--serif); letter-spacing: -.035em; }
.lab, .history { padding-block: clamp(62px, 8vw, 112px); }
.bench { --lit: #ffd587; --idle: #b4bb9f; color: var(--light); background: var(--deep); }
.bench-top, .bench-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px clamp(16px, 4vw, 48px); }
.bench-top { border-bottom: 1px solid #58614e; color: #d8ddc6; font-size: 13px; }
.bench-top i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; background: #a4b690; }
.circuit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 34px clamp(12px, 3.7vw, 45px); list-style: none; background: linear-gradient(#344030 1px, transparent 1px), linear-gradient(90deg, #344030 1px, transparent 1px); background-size: 22px 22px; }
.node { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 160px; color: var(--idle); transition: color .28s ease; }
.node:not(:last-child)::after { position: absolute; top: 47%; left: 75%; width: calc(50% + 12px); height: 1px; content: ""; background: #768269; }
.node svg { width: min(112px, 100%); height: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.node span { font-size: 14px; font-weight: 620; }
.bench[data-phase="1"] .antenna, .bench[data-phase="2"] .coherer, .bench[data-phase="3"] .bell, .bench[data-phase="4"] .bell { color: var(--lit); }
.bench[data-phase="1"] .antenna::after, .bench[data-phase="2"] .coherer::after { background: linear-gradient(90deg, #768269 0 30%, var(--lit) 50%, #768269 70%); background-size: 250% 100%; animation: transmit .6s ease-out both; }
.bench[data-phase="3"] .bell-shape { transform-origin: 56px 24px; animation: ring .6s ease-out both; }
@keyframes transmit { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(12deg); } 45% { transform: rotate(-8deg); } 70% { transform: rotate(4deg); } }
.bench-bottom { border-top: 1px solid #58614e; }
.readout-caption { display: block; color: var(--soft); font-size: 12px; }
.readout p { font-size: clamp(15px, 2vw, 22px); font-weight: 650; }
.bench[data-phase="4"] .readout p { color: var(--lit); }
#signal { min-height: 48px; min-width: 180px; padding: 8px 13px; background: var(--brass); color: var(--dark); border: 1px solid transparent; border-radius: 2px; font: 700 14px/1.2 system-ui, sans-serif; cursor: pointer; }
#signal:hover { background: #ffdd9c; }
#signal[aria-disabled="true"] { background: #d6c6a5; cursor: progress; }
#signal:focus-visible { outline-color: var(--lit); }
.bench-notes { margin-top: 18px; border-bottom: 1px solid var(--rule); }
.bench-notes summary { width: fit-content; padding-block: 12px; font-weight: 650; cursor: pointer; }
.bench-notes p { padding: 2px 0 20px; max-width: 68ch; }
.portrait-section { background: #e8e0cc; }
.portrait-layout { display: grid; grid-template-columns: minmax(170px, .65fr) 1fr; gap: clamp(32px, 8vw, 124px); align-items: center; padding-block: clamp(54px, 7vw, 92px); }
.portrait { max-width: 350px; }
.portrait img { width: 100%; mix-blend-mode: multiply; filter: grayscale(100%); }
.years { margin-block: 18px; color: #695a36; font: 26px/1.2 var(--serif); }
.portrait-text > p:last-child { max-width: 53ch; font-size: 18px; }
.history, .sources { display: grid; grid-template-columns: .7fr 1fr; gap: clamp(25px, 7vw, 92px); }
.history ol, .sources ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.history li, .sources li { display: grid; gap: 8px 20px; padding-block: 19px; border-bottom: 1px solid var(--rule); }
.history li { grid-template-columns: minmax(85px, .33fr) 1fr; }
.history time { color: #695a36; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
h3 { font: 400 25px/1.2 var(--serif); }
.history p { margin-top: 6px; color: var(--muted); }
.source-section { color: var(--light); background: var(--dark); }
.sources { padding-block: 52px; }
.sources ul, .sources li { border-color: #4d5140; }
.sources li span { color: var(--soft); font-size: 13px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding-block: 24px; color: var(--muted); font-size: 13px; }
.footer > span { font: 22px/1 var(--serif); color: var(--ink); }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 56px); }
  .hero { min-height: 0; padding-block: 55px; gap: 32px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .mast { min-height: 0; align-items: start; padding-block: 17px 12px; gap: 13px; flex-wrap: wrap; }
  .mast nav { order: 2; width: 100%; gap: 25px; }
  .mast nav a, .archive-link { padding-block: 6px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
  .hero h1 { font-size: clamp(41px, 10.5vw, 62px); }
  .hero-text p { margin-top: 16px; }
  .primary { margin-top: 20px; }
  .plate { padding-inline: 24px; }
  .plate img { max-height: 390px; }
  .section-head { display: grid; gap: 12px; }
  .lab .bench { margin-inline: -16px; }
  .circuit { padding: 16px 10px; gap: 8px; }
  .node { min-height: 108px; }
  .node:not(:last-child)::after { left: 84%; width: calc(32% + 8px); top: 42%; }
  .node svg { width: min(78px, 100%); }
  .node span { font-size: 12px; }
  .bench-bottom { display: grid; grid-template-columns: 1fr; align-items: start; }
  #signal { width: 100%; }
  .portrait-layout, .history, .sources { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
  .history li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
