:root {
  color-scheme: light dark;
  --paper: #f7f5ef;
  --ink: #1e2622;
  --muted: #535e56;
  --line: #bcc4b9;
  --card: #e8ede3;
  --accent: #8f3c20;
  --carbon: #305a49;
  --carbon-ink: #f7f9ed;
  --fable: #ffd5a7;
  --fable-ink: #503519;
  --neither: #f8f8f1;
  --button: #213e32;
  --button-ink: #fffaf0;
  --focus: #235d9e;
  --serif: "Instrument Serif", "Baskerville", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151b18;
    --ink: #f0f1e9;
    --muted: #bbc5ba;
    --line: #536155;
    --card: #24332a;
    --accent: #ffab82;
    --carbon: #a3c5ac;
    --carbon-ink: #17332b;
    --fable: #e5a96b;
    --fable-ink: #2d2015;
    --neither: #37453a;
    --button: #cee8c8;
    --button-ink: #1c3329;
    --focus: #a9d6ff;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; font: 1rem/1.52 var(--sans); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.shell { width: min(100% - 2.25rem, 77rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 1; top: .5rem; left: .5rem; background: var(--paper); padding: .8rem; }

.mast { min-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); }
.wordmark { display: flex; align-items: center; gap: .8rem; font: 600 1.5rem/1 var(--serif); letter-spacing: -.045em; }
.mark { display: flex; align-items: center; gap: 2px; height: 1.45rem; transform: skew(-13deg); }
.mark i { height: 100%; width: 5px; background: var(--ink); }
.mark i:nth-child(2) { height: 75%; }
.mark i:last-child { height: 50%; }
.publisher { font: 800 .88rem/1 var(--sans); letter-spacing: .12em; }
.opening { display: grid; gap: 1.9rem; padding-block: 2rem 2.8rem; align-items: start; }
.intro h1 { font: 400 clamp(3.25rem, 8vw, 6.65rem)/.93 var(--serif); letter-spacing: -.058em; }
.intro em { font-weight: 400; color: var(--accent); }
.intro > p:not(.practice-note) { max-width: 29rem; margin-top: 1.35rem; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; margin-block: 1.25rem .55rem; }
.button { display: inline-flex; align-items: center; gap: .95rem; min-height: 2.8rem; padding: .65rem 1rem; border: 1px solid var(--button); border-radius: 4px; background: var(--button); color: var(--button-ink); font-weight: 650; text-decoration: none; }
.button:hover { text-decoration: underline; text-underline-offset: .2em; }
.text-link { font-weight: 600; font-size: .89rem; }
.actions .text-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; }
.practice-note { max-width: 29rem; font-size: .82rem; color: var(--muted); }

.pilot { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1rem, 2.3vw, 2.1rem); scroll-margin: 1rem; min-width: 0; }
.card-metadata { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.kicker, .card-metadata time { font: 500 .73rem/1.25 var(--mono); color: var(--muted); }
.kicker { text-transform: uppercase; letter-spacing: .11em; }
.pilot h2 { font: 400 clamp(2.4rem, 4.5vw, 3.45rem)/1.02 var(--serif); letter-spacing: -.045em; margin-block: 1.05rem .35rem; }
.scope { font-size: .85rem; color: var(--muted); }
figure { margin-block: 1.45rem 1rem; }
figcaption { font-weight: 650; font-size: .85rem; margin-bottom: .55rem; }
.strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; }
.outcome { display: grid; place-items: center; aspect-ratio: 1.1; min-height: 1.5rem; border: 1px solid transparent; border-radius: 2px; font: 600 .82rem/1 var(--mono); }
.carbon { color: var(--carbon-ink); background: var(--carbon); }
.fable { color: var(--fable-ink); background: var(--fable); border-color: var(--fable-ink); }
.neither, .both { color: var(--ink); background: var(--neither); border: 1px dashed var(--muted); }
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: .9rem; }
.counts div { display: flex; flex-direction: column-reverse; align-items: start; padding-left: .7rem; border-left: 1px solid var(--line); }
.counts div:first-child { padding: 0; border: 0; }
.counts dt, .threshold, .details-body p { font-size: .84rem; }
.counts dt { color: var(--muted); }
.counts dd { font: 500 1.65rem/1.15 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.threshold { padding-bottom: 1rem; color: var(--muted); }
.threshold strong { color: var(--ink); }
details { border-top: 1px solid var(--line); }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 2.8rem; margin-bottom: -.65rem; font-weight: 650; font-size: .9rem; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary:hover { text-decoration: underline; text-underline-offset: .22em; }
.disclosure { display: block; width: .5rem; height: .5rem; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); margin-right: .25rem; }
details[open] .disclosure { transform: translateY(2px) rotate(225deg); }
.details-body { margin-top: .65rem; }
.details-body p { color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin-block: .75rem; font-size: clamp(.74rem, 1.3vw, .85rem); font-variant-numeric: tabular-nums; }
th, td { padding: .5rem .1rem; text-align: center; border-bottom: 1px solid var(--line); }
th:first-child { text-align: left; }
.filetype { font-weight: 400; }
.method { border-top: 1px solid var(--ink); padding-block: 2rem 2.5rem; }
.method > h2, .experiment h2 { font: 400 clamp(2rem, 3.4vw, 3rem)/1.05 var(--serif); letter-spacing: -.045em; }
.notes { display: grid; gap: 1.55rem; margin-top: 1.45rem; }
.notes h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.notes p, .experiment > p { color: var(--muted); font-size: .94rem; line-height: 1.58; }
.notes p + p { margin-top: .65rem; }
.experiment { display: grid; gap: .9rem; border-top: 1px solid var(--line); padding-block: 1.8rem 2.2rem; }
.experiment .kicker { margin-bottom: .65rem; color: var(--accent); }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 2rem; border-top: 1px solid var(--ink); padding-block: 1.05rem 1.5rem; }
.footer-brand { font: 600 1.2rem/1.2 var(--serif); letter-spacing: -.035em; }
footer nav { display: flex; flex-wrap: wrap; gap: .3rem 1.15rem; }
footer a { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; font-size: .86rem; }

@media (min-width: 40rem) {
  .shell { width: min(100% - 5rem, 77rem); }
  .opening { grid-template-columns: 1fr 1fr; gap: clamp(1.45rem, 4vw, 4rem); padding-block: 2.8rem; }
  .intro { padding-top: .35rem; }
  .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .experiment { grid-template-columns: 1fr 1.45fr; align-items: start; gap: 2rem; }
}
@media (min-width: 65rem) {
  .mast { min-height: 5.6rem; }
  .wordmark { font-size: 1.8rem; }
  .opening { grid-template-columns: 1.12fr 1fr; gap: clamp(3rem, 7vw, 7.5rem); padding-block: 4.2rem; }
  .intro { padding-top: 1.05rem; }
  .intro > p:not(.practice-note) { margin-top: 1.65rem; }
  .actions { margin-top: 1.65rem; }
  .method { padding-block: 2.6rem 3.15rem; }
  .notes { gap: 3rem; margin-top: 1.8rem; }
  .experiment { padding-block: 2.3rem 2.65rem; }
}
@media (forced-colors: active) {
  .outcome, .button { border: 1px solid ButtonText; }
  .neither { border-style: dashed; }
}
