:root {
  --ink: #10182f;
  --ink-soft: #2c3550;
  --paper: #f6f1e8;
  --paper-deep: #ebe2d3;
  --yellow: #f2c35b;
  --coral: #f06f52;
  --blue: #4169e1;
  --blue-soft: #83a4ff;
  --green: #d7e7dd;
  --line: rgba(16, 24, 47, 0.2);
  --display: "Arial Narrow", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.65; }
a { color: inherit; text-underline-offset: 0.16em; }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: 0.65rem 0.9rem; background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.skip-link:focus { top: 1rem; }
.site-header { max-width: 1240px; margin: 0 auto; padding: 1.35rem 2rem; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); font-family: var(--display); }
.wordmark { text-decoration: none; font-weight: 900; letter-spacing: 0.1em; font-size: 0.85rem; }
.wordmark span { color: var(--coral); }
nav { display: flex; gap: 1.3rem; align-items: center; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--coral); }
.language-link { border: 1px solid var(--ink); padding: 0.22rem 0.5rem; }
main { max-width: 1240px; margin: 0 auto; padding: 0 2rem 6rem; }
.hero { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; padding: 5rem 0 4.2rem; }
.hero-copy { max-width: 680px; }
.eyebrow, .section-mark { margin: 0 0 0.75rem; color: var(--blue); font-family: var(--display); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 0.98; letter-spacing: -0.045em; }
h1 { max-width: 12ch; font-size: clamp(3.8rem, 8vw, 7.6rem); font-weight: 900; }
h2 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.deck { max-width: 34rem; margin: 1.8rem 0 1.25rem; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.35; }
.hook { max-width: 38rem; margin: 0; font-size: 1rem; color: var(--ink-soft); }
.hook strong { color: var(--coral); font-family: var(--display); font-size: 1.2rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.4rem 0 2rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.metric { display: flex; flex-direction: column; gap: 0.15rem; }
.metric strong { font-family: var(--display); font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 0.95; }
.metric span { max-width: 10ch; color: var(--ink-soft); font-family: var(--display); font-size: 0.68rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.05em; }
.jump-link { display: inline-block; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 0.15rem; }
.jump-link:hover, .jump-link:focus-visible { color: var(--coral); }
.hero-figure { margin: 0; background: var(--ink); color: var(--paper); min-height: 460px; padding: 1.4rem; position: relative; overflow: hidden; }
.hero-figure::after { content: ""; position: absolute; inset: 1rem; border: 1px solid rgba(246, 241, 232, 0.25); pointer-events: none; }
.hero-figure-top { position: relative; z-index: 1; display: flex; justify-content: space-between; color: var(--yellow); font-family: var(--display); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; }
.hero-diagram { position: absolute; inset: 4rem 2rem 5rem; border: 1px solid rgba(131, 164, 255, 0.35); background-image: linear-gradient(rgba(131, 164, 255, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(131, 164, 255, 0.14) 1px, transparent 1px); background-size: 36px 36px; }
.hero-diagram::before { content: ""; position: absolute; left: 50%; top: 14%; bottom: 14%; border-left: 1px dashed var(--blue-soft); }
.diagram-segment { position: absolute; left: 50%; top: 50%; height: 31%; width: 1.25rem; transform-origin: 50% 0; }
.diagram-front { background: var(--yellow); transform: rotate(36deg); }
.diagram-rear { background: var(--coral); transform: rotate(214deg); }
.diagram-joint { position: absolute; left: calc(50% - 0.65rem); top: calc(50% - 0.65rem); width: 1.3rem; height: 1.3rem; border: 4px solid var(--ink); background: var(--paper); border-radius: 50%; }
.diagram-arrow { position: absolute; font: 900 2.2rem/1 var(--display); color: var(--blue-soft); }
.arrow-one { left: 63%; top: 25%; }
.arrow-two { left: 28%; top: 64%; }
.diagram-label { position: absolute; font: 800 0.68rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); }
.label-front { left: 65%; top: 21%; }.label-rear { left: 24%; top: 77%; }
.hero-figure figcaption { position: absolute; z-index: 1; left: 1.4rem; right: 1.4rem; bottom: 1.35rem; color: var(--paper-deep); font-size: 0.92rem; line-height: 1.4; }
.reading-column { max-width: 780px; margin: 0 auto; }
.text-section, .equation-section, .fall-section, .sources-section, .method-section { padding: 5.5rem 0; border-top: 1px solid var(--line); }
.text-section h2, .equation-section h2, .fall-section h2, .sources-section h2 { margin-bottom: 1.55rem; }
.text-section p, .equation-section > p, .fall-section > p, .sources-section > p, .method-section p { font-size: 1.12rem; }
.pull-quote { margin: 2rem 0 0; padding: 1.15rem 1.4rem; border-left: 7px solid var(--coral); background: var(--paper-deep); font-family: var(--display); font-size: 1.32rem; font-weight: 800; line-height: 1.2; }
.scene-section { margin: 0 -9rem; padding: 5rem 9rem; background: var(--ink); color: var(--paper); }
.scene-section .section-mark { color: var(--yellow); }.scene-section .section-heading p:last-child { max-width: 48rem; color: var(--paper-deep); font-size: 1.1rem; }
.mechanics-figure { margin: 2rem 0 0; }.canvas-wrap { position: relative; border: 1px solid rgba(242, 195, 91, 0.38); }.canvas-wrap canvas { display: block; width: 100%; height: auto; min-height: 350px; }.canvas-readout { position: absolute; left: 1rem; right: 1rem; bottom: 0.8rem; display: flex; justify-content: space-between; font: 800 0.7rem var(--display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--yellow); pointer-events: none; }.mechanics-figure figcaption { margin-top: 0.8rem; color: var(--paper-deep); font-size: 0.88rem; }
.controls { margin-top: 1.5rem; }.mode-row { display: flex; gap: 0.65rem; margin-bottom: 1.4rem; }.mode-button, .run-button, .reset-button { border: 1px solid var(--paper); background: transparent; color: var(--paper); padding: 0.7rem 0.85rem; font-family: var(--display); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }.mode-button:hover, .mode-button:focus-visible, .mode-button.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }.control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }.range-control { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.7rem; align-items: center; font-family: var(--display); }.range-control > span { color: var(--paper-deep); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }.range-control output { color: var(--yellow); font-size: 0.9rem; font-weight: 900; }.range-control input { grid-column: 1 / -1; width: 100%; accent-color: var(--yellow); }.result-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(246, 241, 232, 0.3); }.result-row > div { display: flex; flex-direction: column; }.result-label, .fall-result span { color: var(--paper-deep); font: 800 0.7rem var(--display); text-transform: uppercase; letter-spacing: 0.08em; }.result-row strong, .fall-result strong { color: var(--yellow); font: 900 clamp(2.2rem, 5vw, 4.3rem)/0.9 var(--display); }.result-row p { margin: 0; max-width: 19rem; color: var(--paper-deep); font-size: 0.85rem; text-align: right; }.button-row { display: flex; gap: 0.7rem; margin-top: 1.6rem; }.run-button { background: var(--coral); border-color: var(--coral); color: var(--ink); }.run-button:hover, .run-button:focus-visible { background: var(--yellow); border-color: var(--yellow); }.reset-button { color: var(--paper-deep); }.reset-button:hover, .reset-button:focus-visible { color: var(--paper); border-color: var(--paper); }
.sequence-list { margin-top: 2.2rem; border-top: 1px solid var(--line); }.sequence-step { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }.step-number { color: var(--coral); font: 900 1.4rem/1 var(--display); }.sequence-step h3 { margin-bottom: 0.35rem; }.sequence-step p { margin: 0; color: var(--ink-soft); }
.equation-section { position: relative; }.equation { margin: 2rem 0 !important; padding: 1.4rem 1rem; background: var(--ink); color: var(--yellow); font: 900 clamp(1.35rem, 3vw, 2.4rem)/1.15 var(--display); text-align: center; overflow-x: auto; white-space: nowrap; }.equation sub { font-size: 0.55em; }.body-test-section { padding-bottom: 5.2rem; }.fall-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: end; }.fall-section .section-heading p:last-child { margin-bottom: 0; }.fall-tool { padding: 1.3rem; background: var(--paper-deep); }.fall-tool .range-control input { accent-color: var(--coral); }.fall-result { display: flex; flex-direction: column; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }.fall-result strong { color: var(--coral); }.limit-note { grid-column: 1 / -1; margin: 0; padding: 1rem 0 0; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 0.95rem !important; }
.source-claims { margin: 2rem 0 1.5rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }.source-claims li { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }.source-claims strong { font-family: var(--display); line-height: 1.2; }.source-claims span { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; }.source-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 2rem; margin: 2rem 0 0; padding-left: 1.1rem; font-size: 0.92rem; }.method-section { padding-bottom: 0; }.method-section h2 { font-size: 1.7rem; letter-spacing: -0.02em; }.method-section p { color: var(--ink-soft); font-size: 0.95rem; }.safety-note { padding: 0.8rem 1rem; border-left: 4px solid var(--yellow); background: var(--paper-deep); }.site-footer { max-width: 1240px; margin: 0 auto; padding: 1.25rem 2rem 2.25rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font: 700 0.72rem var(--display); text-transform: uppercase; letter-spacing: 0.05em; }.site-footer a { text-decoration: none; }.site-footer a:hover, .site-footer a:focus-visible { color: var(--coral); }.not-found main { max-width: 780px; min-height: 70vh; margin: 0 auto; padding: 12rem 2rem 4rem; }.not-found h1 { max-width: none; font-size: clamp(3rem, 8vw, 7rem); }.not-found p:not(.eyebrow) { font-size: 1.25rem; margin: 1.5rem 0 2rem; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; min-height: auto; }.hero-figure { min-height: 420px; max-width: 680px; }.scene-section { margin: 0 -2rem; padding: 4rem 2rem; } }
@media (max-width: 640px) { .site-header { padding: 1rem; align-items: flex-start; gap: 1rem; }.wordmark { max-width: 10rem; line-height: 1.1; }.site-header nav { gap: 0.65rem; flex-wrap: wrap; justify-content: flex-end; }.site-header nav a:not(.language-link) { display: none; } main { padding: 0 1rem 4rem; }.hero { padding: 3.3rem 0 3rem; gap: 2.5rem; }.hero h1 { font-size: clamp(3.3rem, 16vw, 5.5rem); }.deck { font-size: 1.2rem; }.metrics { gap: 0.5rem; }.metric strong { font-size: 1.45rem; }.metric span { font-size: 0.6rem; }.hero-figure { min-height: 360px; padding: 1rem; }.hero-diagram { inset: 3.5rem 1rem 4.5rem; background-size: 28px 28px; }.scene-section { margin: 0 -1rem; padding: 3.5rem 1rem; }.canvas-wrap canvas { min-height: 265px; }.control-grid, .fall-section { grid-template-columns: 1fr; gap: 1.2rem; }.result-row { display: block; }.result-row p { margin-top: 1rem; text-align: left; }.source-claims li { grid-template-columns: 1fr; gap: 0.4rem; }.source-links { grid-template-columns: 1fr; }.text-section, .equation-section, .fall-section, .sources-section, .method-section { padding: 4rem 0; }.text-section p, .equation-section > p, .fall-section > p, .sources-section > p, .method-section p { font-size: 1.05rem; }.site-footer { padding: 1rem; flex-direction: column; }.equation { font-size: 1.25rem; text-align: left; } }
@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; } }
