@font-face {
  font-family:Instrument Sans;
  src:url("assets/instrument-sans.woff2") format("woff2");
  font-weight:400 700;
  font-display:swap;
}

:root {
  --paper:#f4f0e6;
  --plate:#fcfaf4;
  --ink:#181917;
  --quiet:#575951;
  --line:#cec7b8;
  --fire:#b73824;
  --copper:#f88467;
  --blue:#316379;
  --graph:#191c1b;
  --grey:#66665c;
  --theta:#24505b;
  --air:#fffdf8;
  color-scheme:light;
  scroll-behavior:smooth;
  font-family:Instrument Sans,system-ui,sans-serif;
}

*,*::before,*::after {
  box-sizing:border-box;
}

body {
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font-size:16px;
  line-height:1.55;
}

a {
  color:inherit;
  text-underline-offset:4px;
}

a:hover {
  color:var(--fire);
}

button,select,input {
  font:inherit;
  color:inherit;
}

input[type=range] {
  width:100%;
  margin:.55rem 0 .2rem;
  accent-color:var(--fire);
  min-height:30px;
  cursor:ew-resize;
}

button,select {
  border:1px solid var(--line);
  border-radius:3px;
  background:var(--air);
  cursor:pointer;
}

:where(a,button,select,input,summary):focus-visible {
  outline:3px solid #176174;
  outline-offset:3px;
}

button:hover {
  border-color:var(--ink);
}

button[aria-pressed=true] {
  border-color:var(--fire);
}

[hidden] {
  display:none!important;
}

.wrap {
  width:min(1296px,calc(100% - 88px));
  margin-inline:auto;
}

.skip {
  position:fixed;
  inset:10px auto auto 10px;
  z-index:6;
  background:white;
  padding:.7rem;
  transform:translateY(-130%);
}

.skip:focus {
  transform:none;
}

.masthead {
  border-bottom:1px solid var(--line);
}

.mast-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:70px;
}

.mast-inner img {
  display:block;
  width:136px;
  height:auto;
}

.mast-inner nav {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:clamp(.75rem,2.5vw,2.4rem);
  font-size:.87rem;
  font-weight:600;
}

.mast-inner a {
  text-decoration:none;
}

.mast-inner nav a:hover {
  text-decoration:underline;
}

.external {
  color:var(--fire);
}

.hero {
  padding-block:clamp(3rem,6vw,6rem) clamp(2.7rem,5.2vw,5rem);
  display:grid;
  grid-template-columns:1.03fr .97fr;
  align-items:center;
  gap:clamp(2.25rem,6vw,5.5rem);
}

.eyebrow {
  font-weight:700;
  color:var(--fire);
  font-size:.74rem;
  letter-spacing:.105em;
  text-transform:uppercase;
  margin:0 0 .8rem;
}

.eyebrow span {
  display:inline-block;
  margin:0 .45rem .175em;
  width:16px;
  border-bottom:1px solid currentColor;
}

h1,h2,h3,p,figure {
  margin:0;
}

h1 {
  font-size:clamp(3.2rem,6vw,6rem);
  line-height:.985;
  letter-spacing:-.05em;
  word-spacing:.025em;
  font-weight:650;
  text-wrap:balance;
  max-width:11ch;
}

h1 span {
  color:var(--fire);
}

h2 {
  font-size:clamp(2.05rem,4.3vw,3.85rem);
  line-height:1.03;
  font-weight:640;
  letter-spacing:-.043em;
  word-spacing:.035em;
  text-wrap:balance;
}

h3 {
  font-size:clamp(1.12rem,1.8vw,1.36rem);
  font-weight:670;
  letter-spacing:-.028em;
  line-height:1.2;
}

.lede {
  margin-top:1.35rem;
  font-size:clamp(1.03rem,1.6vw,1.25rem);
  max-width:45ch;
  color:var(--quiet);
}

.hero-ask {
  font-weight:630;
  margin-top:.85rem;
  max-width:45ch;
  line-height:1.5;
}

.hero-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:1.28rem;
  margin-top:1.6rem;
  font-size:.9rem;
  font-weight:650;
}

.hero-actions a:not(.primary) {
  text-decoration:none;
}

.hero-actions a:not(.primary):hover {
  text-decoration:underline;
}

.hero-actions span {
  margin-left:.3rem;
}

.primary {
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  background:var(--fire);
  border:1px solid var(--fire);
  border-radius:2px;
  color:white;
  text-decoration:none;
  padding:.65rem 1rem;
}

.primary:hover {
  background:#8a271c;
  color:white;
}

.hero-plate {
  color:#f5efe5;
  background:var(--graph);
  border:1px solid #373b35;
  padding:clamp(.95rem,2.6vw,2.1rem);
  box-shadow:6px 6px 0 #d8cab7;
  min-width:0;
  position:relative;
  overflow:hidden;
}

.hero-plate::after {
  content:"";
  position:absolute;
  inset:8px;
  border:1px solid #8e928827;
  pointer-events:none;
}

.plate-header {
  z-index:1;
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#c8cdbe;
  font:650 clamp(.57rem,1vw,.77rem)/1.35 Instrument Sans,sans-serif;
  letter-spacing:.12em;
  border-bottom:1px solid #666a61;
  padding:.2rem 0 .8rem;
}

.plate-header span:last-child {
  text-align:right;
}

#hero-figure {
  height:clamp(133px,15vw,222px);
  display:grid;
  align-items:center;
}

.hero-plate svg {
  width:100%;
  height:100%;
  display:block;
}

.plate-results {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.75rem;
  border-block:1px solid #666a61;
  margin-top:.12rem;
  padding:.8rem 0 .9rem;
}

.plate-results div:nth-child(2) {
  border-left:1px solid #666a61;
  padding-left:1rem;
}

.plate-results strong {
  display:block;
  font-size:clamp(2.15rem,4.2vw,3.7rem);
  letter-spacing:-.06em;
  line-height:1;
  font-variant-numeric:tabular-nums;
  font-weight:580;
}

.plate-results div:nth-child(2) strong {
  color:var(--copper);
}

.plate-results span {
  display:block;
  color:#d4d9cb;
  font-size:.84rem;
  line-height:1.3;
  margin-top:.42rem;
}

.hero-plate p {
  color:#c5ccbe;
  font-size:.83rem;
  margin-top:.86rem;
  max-width:45ch;
}

.section {
  border-top:1px solid var(--line);
  padding-block:clamp(2.55rem,5vw,4.65rem);
  scroll-margin-top:12px;
}

.section-heading {
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:end;
  gap:clamp(1rem,4vw,4rem);
  margin-bottom:1.7rem;
}

.section-heading>p {
  line-height:1.5;
  max-width:55ch;
  color:var(--quiet);
  font-size:1.03rem;
}

.section-heading strong {
  color:var(--ink);
}

.bench {
  border:1px solid var(--line);
  background:var(--plate);
}

.bench-toolbar,.trial-tools,.evidence-control {
  display:grid;
  gap:1rem;
  align-items:end;
}

.bench-toolbar {
  grid-template-columns:1.15fr 1.3fr .9fr auto;
  padding:1.15rem 1.25rem;
  border-bottom:1px solid var(--line);
}

.trial-tools {
  grid-template-columns:1fr 1fr 1.2fr;
  padding:1.05rem 1.25rem;
  border-bottom:1px solid var(--line);
}

.trial-note {
  align-self:center;
  font-size:.82rem;
  color:var(--quiet);
  line-height:1.45;
  max-width:45ch;
}

label {
  display:block;
  font-weight:640;
  font-size:.83rem;
}

select {
  display:block;
  padding:.55rem 1.6rem .55rem .62rem;
  width:100%;
  margin-top:.35rem;
  min-height:44px;
}

.subtle {
  padding:.5rem .78rem;
  min-height:44px;
  font-weight:650;
  font-size:.83rem;
  line-height:1.25;
}

.ranger label {
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.ranger output {
  font-variant-numeric:tabular-nums;
  color:var(--fire);
  font-weight:700;
  text-align:right;
  white-space:nowrap;
}

.chart-pair,.evidence-pair,.depth-pair {
  display:grid;
  grid-template-columns:1fr 1fr;
}

.chart {
  padding:1.15rem 1.1rem .8rem;
  min-width:0;
}

.chart-pair .chart + .chart {
  border-left:1px solid var(--line);
}

.chart-header {
  min-height:55px;
}

.chart-header p,.matrix p {
  font-size:.8rem;
  color:var(--quiet);
  margin:.3rem 0 .35rem;
}

.plot {
  min-height:224px;
  display:block;
  position:relative;
  overflow:hidden;
}

.plot svg {
  display:block;
  width:100%;
  height:auto;
}

.scrub {
  touch-action:pan-y;
  cursor:crosshair;
}

.chart figcaption {
  font-size:.74rem;
  color:var(--quiet);
  display:flex;
  flex-wrap:wrap;
  gap:.35rem .95rem;
  line-height:1.35;
  padding-top:.28rem;
  min-height:28px;
}

.key {
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:.3rem;
}

.key::before {
  content:"";
  width:13px;
  border-top:2px solid var(--key-color,currentColor);
  display:inline-block;
}

.key.dashed::before {
  border-top-style:dashed;
}

.key.dotted::before {
  border-top-style:dotted;
}

.key.dot::before {
  width:6px;
  height:6px;
  background:var(--key-color);
  border-radius:50%;
  border:0;
}

.key.fire {
  --key-color:var(--fire);
}

.key.ink {
  --key-color:var(--ink);
}

.key.blue {
  --key-color:var(--blue);
}

.key.grey {
  --key-color:var(--grey);
}

.axis {
  fill:#56564d;
  font:11px Instrument Sans,sans-serif;
}

.axis-title {
  fill:#56564d;
  font:600 11px Instrument Sans,sans-serif;
}

.rule-grid {
  stroke:#dfd8ca;
  stroke-width:1;
}

.zero {
  stroke:#a79b88;
}

.cutline {
  stroke:var(--fire);
  stroke-width:1.3;
  stroke-dasharray:4 3;
}

.geometry-guide {
  stroke:#70675c;
  stroke-width:1;
  stroke-dasharray:4 4;
}

.bench-result {
  border-top:1px solid var(--line);
  padding:1.05rem 1.25rem;
  display:grid;
  gap:1rem;
  grid-template-columns:1fr auto;
  align-items:center;
  background:#f3ecdd;
}

.bench-result p {
  font-size:.9rem;
}

.bench-result strong,.probe strong {
  font-variant-numeric:tabular-nums;
}

.bench-result .subtle {
  background:var(--plate);
}

.bench-footer {
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  padding:.55rem 1.25rem;
  font-size:.76rem;
  color:var(--quiet);
  min-height:45px;
}

.link-button {
  padding:.45rem 0;
  border:0;
  background:transparent;
  text-decoration:underline;
  text-underline-offset:3px;
  font-size:.8rem;
}

.link-button:hover {
  color:var(--fire);
}

#share-url {
  width:min(100%,30rem);
}

.evidence-control {
  grid-template-columns:minmax(185px,.9fr) 1.1fr auto;
  border-block:1px solid var(--line);
  padding:.8rem 0 1rem;
  margin-bottom:1rem;
}

.evidence-pair {
  gap:1rem;
  grid-template-columns:1fr 1.06fr;
}

.chart-light,.matrix,.probe {
  border:1px solid var(--line);
  background:var(--plate);
}

.matrix {
  padding:1.1rem;
}

.matrix table {
  width:100%;
  border-collapse:collapse;
  margin-top:.7rem;
  font-size:.85rem;
  table-layout:fixed;
}

.matrix caption {
  position:absolute;
  clip-path:inset(50%);
  height:1px;
  width:1px;
  overflow:hidden;
}

.matrix :is(th,td) {
  border-bottom:1px solid var(--line);
  padding:.53rem .45rem;
  text-align:left;
  vertical-align:middle;
}

.matrix th:first-child {
  width:72px;
  padding-left:0;
}

.matrix thead th {
  color:var(--quiet);
  font-weight:600;
  font-size:.74rem;
}

.matrix td button {
  display:block;
  width:100%;
  padding:.55rem;
  text-align:left;
  font-weight:700;
  background:rgba(183,56,36,var(--heat,.08));
  border-color:transparent;
  min-height:59px;
  font-variant-numeric:tabular-nums;
}

.matrix td button:hover {
  border-color:var(--fire);
}

.matrix td button[aria-pressed=true] {
  border-color:var(--fire);
  box-shadow:inset 0 0 0 1px var(--fire);
}

.matrix td small {
  display:block;
  color:var(--quiet);
  font-size:.7rem;
  font-weight:550;
}

.matrix .single-reference {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:.65rem;
  margin-top:.5rem;
  border:0;
}

.single-reference button {
  border:0;
  text-decoration:underline;
  text-underline-offset:3px;
  background:transparent;
  padding:.35rem 0;
  font-weight:650;
}

.finding {
  margin-top:1.15rem;
  padding:.95rem 1rem .95rem 1.2rem;
  max-width:100ch;
  border-left:3px solid var(--fire);
  background:#eee5d7;
  color:var(--ink);
}

.finding p {
  font-size:.92rem;
}

.depth-pair {
  grid-template-columns:1.3fr 1fr;
  gap:1rem;
}

.probe {
  padding:1.15rem;
}

.probe .ranger {
  margin-top:1.12rem;
}

.small {
  font-size:.82rem;
  line-height:1.5;
  color:var(--quiet);
}

.probe .small {
  margin-top:.8rem;
}

.probe .sim-value {
  font-variant-numeric:tabular-nums;
}

.probe .principal-row {
  display:grid;
  grid-template-columns:1.25fr 1fr 1fr;
  gap:.55rem;
  padding:.38rem 0;
  border-block-end:1px solid var(--line);
  align-items:center;
  font-size:.84rem;
}

.probe .principal-row .channels {
  color:var(--quiet);
  font-size:.74rem;
}

.probe .principal-row strong {
  color:var(--fire);
}

.principal-row mark {
  color:inherit;
  background:none;
}

.power-probe p:not(.small) {
  font-size:.97rem;
  margin-top:.65rem;
}

.method-content {
  max-width:92ch;
}

.method-content details {
  padding:.75rem 0;
  border-top:1px solid var(--line);
}

.method-content details:last-child {
  border-bottom:1px solid var(--line);
}

.method-content summary {
  font-weight:650;
  cursor:pointer;
  color:var(--ink);
}

.method-content p {
  margin:.66rem 0;
  color:var(--quiet);
  font-size:.92rem;
}

.method-content p:empty {
  display:none;
}

.method-content .equation {
  font:1.13rem Georgia,serif;
  background:#ebe4d7;
  padding:.8rem 1rem;
  color:var(--ink);
  overflow:auto;
}

.method-content a:hover {
  text-decoration-thickness:2px;
}

.page-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  color:var(--quiet);
  border-top:1px solid var(--line);
  padding:1.25rem 0 2rem;
  font-size:.84rem;
}

.notice {
  padding:.6rem .9rem;
  border-left:3px solid var(--fire);
  margin:.5rem 0;
  color:var(--ink);
  background:#f5e5d7;
}

@media(max-width:960px) {
  .wrap {
    width:calc(100% - 50px);
  }
  .hero {
    gap:2.9rem;
  }
  h1 {
    font-size:clamp(3.05rem,7.3vw,5.5rem);
  }
  .bench-toolbar {
    grid-template-columns:1fr 1fr;
  }
  .trial-tools {
    grid-template-columns:1fr 1fr;
  }
  .trial-note {
    grid-column:1/-1;
    max-width:70ch;
  }
  .evidence-pair {
    grid-template-columns:1fr 1.05fr;
  }
  .chart {
    padding-inline:.9rem;
  }
  .chart-header {
    min-height:58px;
  }
}

@media(max-width:710px) {
  .wrap {
    width:calc(100% - 36px);
  }
  .mast-inner {
    min-height:64px;
  }
  .mast-inner img {
    width:112px;
  }
  .mast-inner nav {
    gap:.9rem;
    font-size:.77rem;
  }
  .mast-inner nav .external {
    display:none;
  }
  .hero,.section-heading,.chart-pair,.evidence-pair,.depth-pair {
    grid-template-columns:minmax(0,1fr);
  }
  .hero {
    gap:1.85rem;
    padding-top:2.5rem;
    padding-bottom:2.7rem;
  }
  .hero-copy h1 {
    max-width:12ch;
  }
  .hero-plate {
    max-width:520px;
  }
  .plate-results strong {
    font-size:2.55rem;
  }
  .section-heading {
    gap:.72rem;
    margin-bottom:1.25rem;
  }
  .section-heading>p {
    font-size:1rem;
  }
  .chart-pair .chart + .chart {
    border-left:0;
    border-top:1px solid var(--line);
  }
  .chart-header {
    min-height:48px;
  }
  .bench-toolbar,.trial-tools {
    padding-inline:.8rem;
  }
  .bench-result {
    grid-template-columns:1fr;
    padding-inline:.8rem;
  }
  .bench-result .subtle {
    justify-self:start;
  }
  .bench-footer {
    padding-inline:.8rem;
  }
  .evidence-control {
    grid-template-columns:1fr 1fr;
    gap:.75rem;
  }
  .evidence-control>label {
    grid-column:1/-1;
  }
  .plot {
    min-height:205px;
  }
}

@media(max-width:475px) {
  .bench-toolbar>label:nth-child(-n+2) {
    grid-column:1/-1;
  }
}

@media(max-width:375px) {
  .wrap {
    width:calc(100% - 26px);
  }
  .bench-toolbar,.trial-tools {
    gap:.68rem;
  }
  .bench-toolbar {
    grid-template-columns:minmax(0,1fr);
  }
  .hero-actions {
    gap:.6rem;
  }
  .hero-actions .primary {
    padding-inline:.65rem;
  }
  .chart,.matrix,.probe {
    padding-inline:.7rem;
  }
  .matrix th:first-child {
    width:59px;
  }
  .axis {
    font-size:10px;
  }
  .evidence-control {
    grid-template-columns:1fr;
  }
  .evidence-control .subtle {
    justify-self:start;
  }
}

@media(prefers-reduced-motion:reduce) {
  :root {
    scroll-behavior:auto;
  }
}
