:root {
  color-scheme: light;
  --paper: #f4f2ea;
  --ink: #192722;
  --muted: #4e6056;
  --line: #b9c2b6;
  --accent: #314f3b;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0 auto; width: min(1080px, 90%); color: var(--ink); background: var(--paper); font: 1rem/1.55 "Inter", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #ad481f; outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead, nav, .wordmark { display: flex; align-items: center; }
.masthead { justify-content: space-between; padding: 1.3rem 0; border-bottom: 1px solid var(--ink); gap: 1rem; }
.wordmark { gap: .6rem; font-weight: 720; text-decoration: none; letter-spacing: -.04em; }
.mark { background: var(--ink); color: #c9ec91; font: bold 1.15rem/1 var(--mono); padding: .4rem; border-radius: 2px; letter-spacing: -.12em; }
nav { gap: 1.3rem; font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover, summary:hover .protocol { text-decoration: underline; }
.intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: center; padding: clamp(2rem, 6vw, 5rem) 0; }
h1, h2, p { margin: 0; }
h1 { font: 500 clamp(3.25rem, 7vw, 6.4rem)/.95 "Instrument Serif", Georgia, serif; letter-spacing: -.065em; }
h1 em { color: var(--accent); }
.lede { max-width: 40ch; margin: 1.25rem 0; color: var(--muted); }
.jump { font-weight: 620; }
.specimen { background: #1b302b; color: #e4efdf; padding: clamp(1rem, 3vw, 2.25rem); border-top: 5px solid #bad684; }
.spec-head, .protocol { font: 600 .78rem/1.4 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.spec-head { color: #c9d9cd; border-bottom: 1px solid #52675b; padding-bottom: .8rem; }
.sample { font-size: clamp(.9rem, 2vw, 1.3rem); margin: 1.7rem 0 1rem; }
.sample strong { font-size: 1.65em; color: #c9ec91; }
.specimen p { font-size: .92rem; color: #d3dfd5; }
.heading { border-top: 2px solid var(--ink); padding: 1.5rem 0; }
h2 { font: 500 2rem/1.15 "Instrument Serif", Georgia, serif; letter-spacing: -.045em; }
.heading p, .note p { max-width: 75ch; color: var(--muted); margin-top: .65rem; }
code, pre { font-family: var(--mono); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; gap: 1rem; align-items: center; padding: 1.1rem .25rem; cursor: pointer; font-weight: 650; list-style: none; }
summary::-webkit-details-marker { display: none; }
.protocol { color: var(--accent); min-width: 4ch; }
summary::after { content: "+"; color: var(--accent); margin-left: auto; font: 1.3rem/1 var(--mono); }
details[open] summary::after { content: "−"; }
.note { padding: 0 .25rem 1.4rem; }
.note p:first-child { margin-top: 0; }
pre { max-width: 100%; overflow-x: auto; margin: 1rem 0; padding: 1rem; background: #e5e9de; border-left: 3px solid var(--accent); font-size: .9rem; }
.references { margin: 2rem 0 3.5rem; }
.references ul { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 0; margin: .8rem 0; list-style: none; }
@media (max-width: 680px) {
  .intro { grid-template-columns: 1fr; }
  nav { gap: .65rem; font-size: .82rem; }
  h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .references ul { flex-direction: column; }
}
