@font-face {
  font-family: Geist;
  src: url("site-fonts/Geist-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url("site-fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  font-style: italic;
  src: url("site-fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-display: swap;
}
:root {
  --paper: #f6f3eb;
  --ink: #202622;
  --muted: #535b54;
  --rule: #c9cbc0;
  --signal: #b63d25;
  --display: Instrument, Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(20px, 5vw, 84px);
  color-scheme: light;
  scrollbar-color: #92978d var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 Geist, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: .99; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(4rem, 7.1vw, 7.15rem); }
h2 { font-size: clamp(2.8rem, 4.6vw, 4.8rem); }
h1 em, h2 em { color: var(--signal); }
h3 { font-size: 1.1rem; line-height: 1.3; }
p { max-width: 66ch; }
a { color: inherit; text-underline-offset: .23em; text-decoration-thickness: 1px; }
a:hover { color: var(--signal); }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 3px solid #2b73ad; outline-offset: 3px; }
::selection { background: #ffca9f; color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.wrap { width: min(1440px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: fixed; top: .6rem; left: var(--gutter); z-index: 10; padding: .7rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--rule); }
.mast, nav, .brand, .actions { display: flex; align-items: center; }
.mast { justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { gap: 11px; text-decoration: none; font-size: clamp(16px, 1.5vw, 22px); font-weight: 700; letter-spacing: -.035em; }
.brand img { width: 32px; }
nav { gap: clamp(16px, 2.9vw, 48px); font-size: .875rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: .5em; }
.nav-repo { gap: 6px; border-left: 1px solid var(--rule); padding-left: clamp(16px, 2.6vw, 38px); }
.actions { gap: 24px; flex-wrap: wrap; margin-top: 30px; font-size: .93rem; }
.action, .text-link { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; font-size: .93rem; }
.action { background: var(--ink); color: #fff; border-radius: 4px; padding: 12px 18px; text-decoration: none; }
.action:hover { background: var(--signal); color: white; }
.text-link span, .action span { font-family: system-ui, sans-serif; text-decoration: none; }
.text-link { text-decoration: underline; }
.hero { display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: clamp(32px, 5vw, 86px); padding-block: clamp(64px, 6.3vw, 108px); }
.hero-copy p, .method-preview > div > p, .setup-band p { margin-top: 22px; }
.hero-copy p { max-width: 42ch; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.19rem); }
.mono, .clock, .time-ticks, .frequency-ticks { font: 12px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.recording { --rim: #383d43; color: #f8f4eb; background: #191d23; border-radius: 9px; min-width: 0; padding: 0 clamp(16px, 2vw, 29px); }
.record-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-block: 19px 16px; border-bottom: 1px solid var(--rim); }
.record-head > :first-child { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.record-head i { background: #ffad77; width: 8px; height: 8px; border-radius: 50%; }
.record-head .mono, .plot-key, .time-ticks, .frequency-ticks, .clock { color: #c9c8c4; }
.spectral-readout { padding: 11px 0 14px; }
.plot-key { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; min-height: 36px; }
.ridge-toggle { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.ridge-toggle input { width: 15px; height: 15px; margin: 0; accent-color: #a4e5da; }
.plot-grid { display: grid; grid-template-columns: 31px 1fr; }
.frequency-ticks { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; }
.plot { position: relative; overflow: hidden; background: #141722; border: 1px solid #504047; }
.plot img { width: 100%; height: clamp(195px, 17vw, 290px); object-fit: fill; }
.ridge, .playhead { position: absolute; inset: 0; pointer-events: none; }
.ridge { color: #a4e5da; width: 100%; height: 100%; }
.playhead { width: 1px; background: #fff3cd; }
.time-ticks { grid-column: 2; position: relative; height: 18px; margin-top: 5px; font-size: 10px; }
.time-ticks span { position: absolute; transform: translateX(-50%); }
.time-ticks span:first-child { transform: none; }
.time-ticks span:nth-child(2) { left: 23.47%; }
.time-ticks span:nth-child(3) { left: 46.93%; }
.time-ticks span:nth-child(4) { left: 70.40%; }
.time-ticks span:nth-child(5) { left: 93.86%; }
.transport { padding-block: 12px; border-block: 1px solid var(--rim); }
.transport audio { display: block; width: 100%; }
.transport audio:not([controls]) { display: none; }
.transport-controls { display: flex; align-items: center; gap: 14px; }
.listen { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 0; min-height: 44px; background: transparent; color: white; font-size: 14px; white-space: nowrap; }
.play-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: #ffc59b; }
.play-icon::before { content: ""; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid #222621; margin-left: 3px; }
.playing .play-icon::before { width: 4px; height: 12px; border-block: 0; border-inline: 3px solid #222621; margin: 0; }
.listen:hover .play-icon { background: #ffe2c7; }
.seek { cursor: ew-resize; flex: 1; min-width: 20px; height: 30px; accent-color: #ffc59b; }
.clock { white-space: nowrap; font-size: 11px; }
.recording figcaption { color: #b4b7bc; font-size: 11px; padding: 11px 0 14px; }
.recording a:hover { color: white; }
.audio-error { font-size: 14px; }
.case-band { background: #e9e7da; padding-block: clamp(52px, 6vw, 94px); border-block: 1px solid var(--rule); }
.case-heading, .split, .section-intro, .step-spread { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(32px, 6vw, 100px); }
.case-heading { align-items: end; margin-bottom: 34px; }
.case-heading p, .section-intro p, .step-spread p { color: var(--muted); }
.case-heading .text-link, .step-spread .text-link { margin-top: 8px; }
.case-spread { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(190px, .7fr); align-items: center; gap: clamp(30px, 4.8vw, 80px); }
.margin-note { border-block: 1px solid #aeb3a6; padding-block: 18px; }
.margin-note h3 { font: 400 clamp(52px, 5vw, 86px)/1 var(--display); }
.margin-note h3 small { font-size: .58em; }
.margin-note p { font-size: .94rem; margin: 12px 0 6px; }
.method-preview { padding-block: clamp(64px, 7vw, 118px); }
.method-preview .text-link { margin-top: 12px; }
.method-preview > div > p { max-width: 40ch; }
.setup-band { background: #232a26; color: var(--paper); padding-block: clamp(50px, 6.5vw, 100px); }
.setup-band h2 em { color: #ffc398; }
.setup-band p { color: #d1d5ca; }
.setup-band .text-link { margin-top: 12px; }
.setup-band a:hover { color: #ffbb8f; }
.setup-code h3 { font-size: 1rem; }
.setup-code p { font-size: .94rem; margin-top: 12px; }
pre { background: #161d19; border: 1px solid #50594f; color: #ffcb9a; border-radius: 5px; padding: 17px 19px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font: .88em/1.6 var(--mono); }
footer { border-top: 1px solid var(--rule); }
footer .mast { min-height: 100px; }
footer nav { flex-wrap: wrap; }
footer .brand { font-size: 16px; }
footer .brand img { width: 25px; }
/* Field notes and method share the printed figures and reading grid. */
.page-heading { padding-block: clamp(54px, 6.8vw, 104px) 32px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 6%; align-items: end; }
.page-heading p { color: var(--muted); font-size: 1.05rem; }
.page-jumps { border-block: 1px solid var(--rule); gap: 4px 28px; flex-wrap: wrap; padding-block: 4px; }
.page-jumps a:hover { text-decoration: underline; }
.section { padding-block: clamp(48px, 5.8vw, 90px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-intro { align-items: start; margin-bottom: 32px; }
[id] { scroll-margin-top: 22px; }
.reading-note { display: grid; grid-template-columns: .48fr 1fr; gap: 24px; margin-block: 24px; padding: 22px 0; border-top: 1px solid var(--rule); }
.reading-note h3, .result-list h3 { font-weight: 400; font-family: var(--display); font-size: 2rem; line-height: 1.08; }
.reading-note p, .result-list p { color: var(--muted); }
.result-list { border-bottom: 1px solid var(--rule); }
.result-list article { display: grid; grid-template-columns: 1fr .64fr 1.6fr; gap: 26px; border-top: 1px solid var(--rule); padding-block: 24px; align-items: baseline; }
.result-list strong { color: var(--signal); font: 400 1.8rem/1.2 var(--display); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.evidence-figure { min-width: 0; }
.figure-heading { display: flex; align-items: center; justify-content: space-between; font-size: 13px; gap: 12px; border-top: 1px solid var(--rule); padding: 10px 0; }
.figure-link { display: block; cursor: zoom-in; background: #fff; }
.figure-link img { width: 100%; }
.evidence-figure figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }
.pair + .evidence-figure, .evidence-figure + .evidence-figure { margin-top: 30px; }
.pair .evidence-figure { margin-top: 0; }
.step-spread { grid-template-columns: .77fr 1.23fr; }
.step-spread h2 + p { margin-top: 20px; }
.next-page { padding-block: 24px 44px; }
.doppler-demo { --bg: #232a26; --surface: #29322c; --text: #f6f3eb; --muted: #ced1c9; --accent: #ffc49c; --line: #667066; background: var(--bg); color: var(--text); border-radius: 8px; overflow: hidden; min-width: 0; color-scheme: dark; }
.instrument-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 24px; font-size: 14px; }
.instrument-heading > span:last-child { color: var(--muted); font-size: 13px; }
.demo-phase { color: var(--accent); font-size: 13px; }
.doppler-scene { display: block; width: 100%; height: auto; }
.doppler-scene text { fill: var(--muted); font: 14px "Geist", Arial, sans-serif; }
.flight-line { stroke: var(--line); stroke-dasharray: 5 9; fill: none; }
.wavefronts { fill: none; stroke: var(--accent); stroke-opacity: .35; stroke-width: 1.4; }
.aircraft { fill: var(--text); }
.sound-link { fill: none; stroke: var(--accent); stroke-dasharray: 3 6; opacity: .6; }
.receiver-halo { fill: var(--bg); stroke: var(--accent); stroke-opacity: .6; }
.receiver { stroke: var(--accent); fill: none; stroke-width: 2; }
.chart-grid { stroke: var(--line); fill: none; }
.pitch-curve { stroke: var(--accent); stroke-width: 3; fill: none; }
.chart-cursor { stroke: var(--accent); stroke-opacity: .45; }
.pitch-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.demo-controls { padding: 24px; }
.demo-transport { display: grid; grid-template-columns: auto minmax(0, 1fr) 190px; align-items: center; gap: 24px; }
.pitch-readout { display: grid; min-width: 0; gap: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.pitch-readout output { font-size: 16px; }
.demo-parameters { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-settings { margin-top: 16px; border-top: 1px solid var(--line); }
.demo-settings summary { padding-top: 10px; min-height: 44px; color: var(--muted); font-size: 13px; cursor: pointer; }
.demo-settings summary:hover { color: var(--accent); }
.demo-settings .demo-parameters { margin-top: 8px; padding-top: 8px; border-top: 0; }
.demo-parameters label { min-width: 0; }
.demo-parameters label > span { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.demo-parameters output { color: var(--text); font-variant-numeric: tabular-nums; }
[data-receiver] { cursor: ns-resize; touch-action: none; }
.receiver-hit { fill: transparent; }
[data-receiver]:hover .receiver-halo { stroke-opacity: 1; }
.play-button, .viewer-close { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; padding: 10px 18px; color: var(--text); background: transparent; font-size: 14px; min-width: 128px; min-height: 44px; }
.play-button:hover, .viewer-close:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: translateY(-2px); }
.play-button:active, .viewer-close:active { transform: translateY(1px); }
.timeline-label { min-width: 0; color: var(--muted); font-size: 13px; display: grid; gap: 4px; }
.doppler-demo input[type="range"] { width: 100%; min-width: 0; accent-color: var(--accent); cursor: ew-resize; min-height: 44px; margin: 0; }
.physics-detail { border-bottom: 1px solid var(--line); padding-top: 24px; padding-bottom: 24px; font-size: 16px; }
.physics-detail summary { cursor: pointer; color: var(--accent); min-height: 44px; align-content: center; }
.physics-detail > div { max-width: 760px; color: var(--muted); padding-top: 18px; }
.physics-detail p + p { margin-top: 15px; }
.physics-detail a { display: inline-block; margin-top: 18px; min-height: 44px; }
.doppler-demo .demo-controls { padding: 16px 20px; }
.doppler-demo .demo-transport { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.demo-transport .timeline-label { grid-row: 2; grid-column: 1 / -1; }
.doppler-demo .play-button { justify-self: start; }
.doppler-demo .pitch-readout { grid-column: 2; grid-row: 1; }
.doppler-demo input { accent-color: #ffc49c; }
.doppler-scene text { font: 19px Geist, sans-serif; }
.doppler-demo .demo-settings summary { display: list-item; align-content: center; }
.physics-detail { padding-block: 14px; border-color: var(--rule); }
.physics-detail summary, .physics-detail a { color: var(--signal); }
.physics-detail > div { padding-top: 4px; color: var(--muted); }
.figure-viewer { background: var(--paper); color: var(--ink); width: min(1480px, 96vw); max-height: 94dvh; padding: 22px; border: 0; border-radius: 6px; }
.figure-viewer::backdrop { background: rgb(15 19 20 / .9); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.viewer-close { min-width: 88px; background: var(--ink); color: white; border: 0; }
.viewer-close:hover { background: var(--signal); color: white; }
.figure-viewer img { max-height: 65dvh; width: auto; margin-inline: auto; object-fit: contain; }
.figure-viewer[aria-busy="true"] img { visibility: hidden; }
.viewer-status, .viewer-caption { margin-top: 14px; font-size: 14px; }
.viewer-original { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
body:has(.figure-viewer[open]) { overflow: hidden; }
@media (max-width: 900px) {
  .hero { grid-template-columns: .82fr 1.18fr; gap: 24px; }
  .record-head { align-items: start; flex-direction: column; gap: 3px; }
  .case-spread { grid-template-columns: 1.6fr .8fr; gap: 24px; }
  .transport-controls { flex-wrap: wrap; gap: 6px 10px; }
  .seek { order: 3; flex-basis: 100%; }
  .clock { margin-left: auto; }
  .actions { gap: 12px; }
}
@media (max-width: 730px) {
  .mast { flex-wrap: wrap; gap: 0 18px; padding-block: 12px 6px; }
  .site-header nav { flex: 1 1 290px; justify-content: flex-end; gap: 20px; }
  .hero, .case-heading, .split, .page-heading, .section-intro, .case-spread, .step-spread { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-block: 42px; }
  h1 { font-size: clamp(64px, 12.8vw, 90px); }
  .hero-copy p { max-width: 47ch; margin-top: 17px; }
  .actions { margin-top: 18px; gap: 20px; }
  .record-head { flex-direction: row; align-items: center; }
  .transport-controls { flex-wrap: nowrap; }
  .seek { order: 0; flex-basis: 0; }
  .case-heading { margin-bottom: 20px; }
  .margin-note { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: baseline; }
  .margin-note p { margin: 0; }
  .margin-note .text-link { grid-column: 2; justify-self: start; }
  .page-heading { padding-block: 42px 24px; }
  .pair, .reading-note { grid-template-columns: 1fr; gap: 16px; }
  .result-list article { grid-template-columns: 1fr auto; gap: 10px; }
  .result-list article > div { grid-column: 1/-1; }
  .result-list strong { font-size: 1.45rem; }
  .reading-note h3, .result-list h3 { font-size: 1.65rem; }
  .section-intro { margin-bottom: 22px; gap: 16px; }
  footer .mast { padding-block: 20px; gap: 8px 20px; }
  .demo-parameters { gap: 15px; }
  .demo-parameters label > span { flex-wrap: wrap; gap: 0 5px; }
}
@media (max-width: 530px) {
  .site-header nav { justify-content: space-between; flex-basis: 100%; gap: 8px; }
  .nav-repo { padding-left: 13px; }
  .site-header .mast { padding-bottom: 2px; }
  .brand img { width: 27px; height: 27px; }
  .frequency-ticks, .time-ticks { font-size: 9px; }
  .record-head .mono { font-size: 10px; }
  .recording { padding-inline: 12px; }
  .transport-controls { gap: 8px; }
  .listen { gap: 6px; font-size: 13px; }
  .play-icon { width: 32px; height: 32px; }
  .clock { font-size: 10px; }
  .figure-viewer { padding: 12px; }
  .doppler-scene text { font-size: 23px; }
  .doppler-demo .demo-controls { padding-inline: 12px; }
}
@media (max-width: 365px) {
  .margin-note { display: block; }
  .result-list article { display: block; }
  .result-list strong { display: block; margin-block: 5px; }
}
.app-preview { margin-top: 14px; border-top: 1px solid #50594f; }
.app-preview summary { padding: 12px 0; font-size: .94rem; }
.app-preview img { width: 100%; margin-top: 6px; border-radius: 4px; }
