:root {
  --iron: #17130f;
  --soot: #2a221b;
  --rust: #5a3a28;
  --brass: #d2a44a;
  --brass-hi: #efd08a;
  --brass-dim: #8a6a32;
  --enamel: #e7edf2;
  --enamel-deep: #d3dce4;
  --ink: #1b1713;
  --ink-soft: #5c5348;
  --needle: #c4452f;
  --rod: #7a7268;
  --focus: #efd08a;
  --display: "Big Shoulders Display", "Arial Narrow", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --beam: 1.15rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--enamel);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 420;
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--needle);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1.15rem; }
.prose p:last-child { margin-bottom: 0; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.brand { color: var(--brass-hi); }
.langsw { color: var(--enamel-deep); }
.langsw a[aria-current="page"] { color: var(--brass-hi); }

.hero {
  background:
    radial-gradient(1200px 480px at 80% -10%, #3a2a1c 0%, transparent 60%),
    linear-gradient(180deg, #1c1712 0%, var(--iron) 55%, #120f0c 100%);
  color: var(--enamel);
  padding: 0 0 3.2rem;
  border-bottom: 6px solid var(--brass);
}
.hero .topbar { color: var(--enamel-deep); }
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 1.6rem 0 0.8rem;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.15rem, 7.2vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  max-width: 16ch;
  text-wrap: balance;
}
.standfirst {
  max-width: 42rem;
  font-size: 1.14rem;
  line-height: 1.55;
  color: #d5dde4;
  margin: 0 0 1.8rem;
}

.scale {
  margin-top: 0.4rem;
}
.scale-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.scale-head h2 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0;
  letter-spacing: 0.01em;
}
.scale-head p {
  margin: 0;
  color: #c9d2da;
  font-size: 1rem;
  max-width: 46rem;
}

.stage {
  position: relative;
  background:
    linear-gradient(180deg, #211b16 0%, #191410 100%);
  border: 1px solid #3a3229;
  box-shadow: inset 0 1px 0 #4a3d30, 0 24px 40px #0006;
  padding: 0.9rem 0.9rem 0.4rem;
}
.beam-wrap { position: relative; }
#beam {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 400;
}
#fulcrum {
  position: absolute;
  left: 4.2%;
  right: 4.2%;
  top: 22%;
  width: auto;
  margin: 0;
  appearance: none;
  background: transparent;
  height: 2.2rem;
  cursor: pointer;
}
#fulcrum::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
#fulcrum::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 28px;
  background: transparent;
  border: 0;
}
#fulcrum::-moz-range-track { background: transparent; height: 4px; border: 0; }
#fulcrum::-moz-range-thumb {
  width: 22px;
  height: 28px;
  background: transparent;
  border: 0;
}

.controls {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}
.search {
  position: relative;
}
.search input[type="search"] {
  width: 100%;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem 0.5rem;
  border: 1px solid #4a3f33;
  background: #120f0c;
  color: var(--enamel);
  border-radius: 0;
}
.search input::placeholder { color: #8a8074; }
.suggest {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  top: calc(100% - 1px);
  background: #120f0c;
  border: 1px solid #4a3f33;
  max-height: 14rem;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  display: none;
}
.suggest.open { display: block; }
.suggest button {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--enamel);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.suggest button[aria-selected="true"],
.suggest button:hover { background: #2c241c; }
.suggest small {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--brass);
}
.hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #9aa3ab;
  margin: 0.35rem 0 0;
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.presets span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  width: 100%;
}
.presets button {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: transparent;
  color: var(--enamel);
  border: 1px solid #5a4c3c;
  padding: 0.32rem 0.55rem;
  cursor: pointer;
}
.presets button[aria-pressed="true"],
.presets button:hover {
  background: var(--brass);
  color: var(--iron);
  border-color: var(--brass);
}

.readout {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--brass-hi);
  min-height: 2.6rem;
  margin: 0.3rem 0 0.6rem;
}
.readout-pans {
  display: block;
  margin-top: 0.35rem;
  color: #c9d2da;
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 62rem;
}

.essay {
  padding: 3.2rem 0 2rem;
}
.essay h2 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.85rem;
  max-width: 22ch;
}
.essay h2:first-child { margin-top: 0; }

.sources {
  background: var(--enamel-deep);
  padding: 3rem 0 2.2rem;
  border-top: 1px solid #b7c0c8;
}
.sources h2 {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.7rem;
  margin: 0 0 0.9rem;
}
.sources ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}
.sources li { margin: 0 0 0.55rem; }
.sources a { color: #6a3b16; }
.note {
  font-size: 0.98rem;
  color: var(--ink-soft);
}

footer {
  padding: 1.4rem 0 3.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: space-between;
}
footer a { color: var(--ink); }

.totop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-decoration: none;
  background: var(--iron);
  color: var(--enamel);
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--brass-dim);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}
.totop.is-on {
  opacity: 1;
  pointer-events: auto;
}
.no-js .totop {
  position: static;
  opacity: 1;
  pointer-events: auto;
  background: transparent;
  color: var(--ink);
  border: 0;
  display: inline-block;
  margin-top: 1rem;
}

noscript p {
  background: #2a221b;
  color: var(--enamel);
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}

@media (min-width: 720px) {
  .controls {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
@media (max-width: 500px) {
  body { font-size: 1.05rem; }
  h1 { max-width: 12ch; }
  .shell { width: min(1120px, calc(100% - 1.35rem)); }
  #beam { aspect-ratio: 1200 / 400; }
}
