/* Daily Model Drift, pre-launch page. Drift Observatory palette and type (docs/ART-DIRECTION.md).
   No red anywhere: nothing has drifted, because nothing has been measured yet. */
@font-face{font-family:Instrument Serif;src:url('../fonts/InstrumentSerif-Regular.498efd46.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Instrument Serif;src:url('../fonts/InstrumentSerif-Italic.08939b8b.ttf') format('truetype');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:Instrument Serif Fallback;src:local('Times New Roman'),local(TimesNewRomanPSMT),local('Liberation Serif'),local(Tinos);font-weight:400;font-style:normal;size-adjust:83%;ascent-override:119%;descent-override:37%;line-gap-override:0%}
@font-face{font-family:Instrument Serif Fallback;src:local('Times New Roman Italic'),local(TimesNewRomanPS-ItalicMT),local('Liberation Serif Italic'),local('Tinos Italic');font-weight:400;font-style:italic;size-adjust:91%;ascent-override:109%;descent-override:34%;line-gap-override:0%}

:root{
  --ground:#0f0e0c;--secondary:#171512;--paper:#ece5d6;
  --strong:rgb(236 229 214 / 82%);--muted:rgb(236 229 214 / 62%);--line:rgb(236 229 214 / 48%);--quiet:rgb(236 229 214 / 35%);--rule:rgb(236 229 214 / 12%);
  --serif:Instrument Serif,Instrument Serif Fallback,Georgia,serif;--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --pad:clamp(20px,4vw,56px)
}
*{box-sizing:border-box}
html{background:var(--ground);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--paper);font:16px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif}
h1,h2,h3,p,figure,dl,dd,ol,pre{margin:0}
ol{padding:0;list-style:none}
h1,h2,.status-title,.step-number,.rules h3,.models tbody th,.feed-link,.colophon-name,.numeral{font-family:var(--serif);font-weight:400}
em,i{font-weight:400}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:5px}
a:hover{text-decoration-thickness:2px}
a:focus-visible{outline:1px solid var(--paper);outline-offset:5px}
code,pre{font-family:var(--mono);font-size:.875em}
.label,.masthead,.ledger dt,.specimen dt,.models thead th,.model-detail,.channel-name,.progress-scale,.hero-links{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;letter-spacing:.12em;line-height:1.6;text-transform:uppercase}
.label{color:var(--muted)}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link{position:absolute;left:var(--pad);top:-100px;z-index:5;background:var(--ground);padding:10px 14px;border:1px solid var(--paper)}
.skip-link:focus{top:12px}

/* Masthead */
.masthead{display:flex;gap:20px;align-items:center;justify-content:space-between;min-height:56px;padding:12px var(--pad);border-bottom:1px solid var(--rule);color:var(--strong)}
.masthead a{text-decoration:none}
.mast-mid,.mast-date{display:none}

/* Hero */
.hero{padding:44px var(--pad) 0}
.hero-kicker{margin-bottom:22px}
h1{font-size:clamp(50px,9.4vw,146px);line-height:.92;letter-spacing:-.02em;max-width:13.5ch;text-wrap:balance}
.lede{max-width:34em;margin-top:28px;font-size:clamp(17px,1.4vw,20px);line-height:1.55;color:var(--strong)}
.hero-links{display:flex;flex-wrap:wrap;gap:8px 28px;margin-top:26px}
.hero-links a{display:inline-flex;align-items:center;min-height:24px}
.hero-links a::after{content:"\2193";margin-left:.6em;font-family:system-ui,sans-serif;letter-spacing:0}

/* Fig. 1: calibration trace */
.plate{margin:48px calc(-1 * var(--pad)) 0;border-top:1px solid var(--rule)}
.channel{display:grid;grid-template-columns:1fr;border-bottom:1px solid var(--rule);padding:8px var(--pad) 0}
.channel-name{color:var(--muted);letter-spacing:.1em}
.channel-note{text-transform:none;letter-spacing:0}
.channel svg{display:block;width:100%;height:40px;overflow:visible;background-image:repeating-linear-gradient(90deg,var(--rule) 0 1px,transparent 1px 100%);background-size:10% 100%;animation:pen 4.2s cubic-bezier(.25,.55,.25,1) backwards}
.trace-line{fill:none;stroke:var(--paper);stroke-width:1.25;stroke-linejoin:round}
.channel:nth-child(2) svg{animation-delay:.14s}
.channel:nth-child(3) svg{animation-delay:.28s}
.channel:nth-child(4) svg{animation-delay:.42s}
.channel:nth-child(5) svg{animation-delay:.56s}
.is-pending .trace-line{stroke:var(--line);stroke-dasharray:.004 .008}
.is-pending svg{animation:none}
/* The pen writes left to right; the clip reveals the trace without redrawing or inventing anything. */
@keyframes pen{from{clip-path:inset(-20px 100% -20px 0)}to{clip-path:inset(-20px 0 -20px 0)}}
.plate figcaption{padding:14px var(--pad) 0;max-width:calc(46em + 2 * var(--pad));color:var(--muted);font-size:14px;line-height:1.55}
.plate figcaption em,.reading-note em{font-family:var(--serif);font-size:18px;color:var(--paper)}

/* Sections */
.section{display:grid;gap:20px;padding:64px var(--pad);border-top:1px solid var(--rule)}
.status{margin-top:56px}
h2,.status-title{font-size:clamp(36px,5.4vw,78px);line-height:.98;letter-spacing:-.015em;max-width:17ch;text-wrap:balance}
.section-body>*+*{margin-top:28px}
.section-body>h2+*{margin-top:30px}
.prose{max-width:38em}
.prose p+p{margin-top:1em}
.section-note{max-width:44em;color:var(--muted);font-size:15px}
.status-lead{max-width:38em;color:var(--strong)}

/* Status readings */
.reading-block{padding-top:24px;border-top:1px solid var(--rule)}
.reading{display:flex;flex-direction:column;gap:2px}
.numeral{font-size:clamp(64px,10vw,150px);line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.numeral-text{font-size:clamp(40px,6vw,88px)}
.unit{font-family:var(--mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.numeral .unit{font-size:14px;vertical-align:.9em;margin-left:.5em}
.counts{display:flex;flex-wrap:wrap;gap:4px clamp(24px,4vw,64px);margin-top:4px}
.count{display:inline-flex;flex-direction:column}
.count .numeral{min-width:1.15em}
.progress{display:flex;gap:3px;margin-top:20px;height:30px}
.cell{flex:1;border:1px solid var(--line)}
.cell.is-on{background:var(--paper);border-color:var(--paper)}
.progress-scale{display:flex;justify-content:space-between;margin-top:8px;color:var(--muted)}
.reading-note{max-width:40em;margin-top:14px;color:var(--muted);font-size:14px}
.ledger{display:grid;border-top:1px solid var(--rule)}
.ledger>div{display:grid;gap:2px;padding:12px 0;border-bottom:1px solid var(--rule)}
.ledger dt{color:var(--muted)}
.ledger dd{font-size:15px}

/* Method */
.steps{display:grid;border-top:1px solid var(--rule)}
.steps li{display:grid;grid-template-columns:44px 1fr;column-gap:8px;padding:18px 0;border-bottom:1px solid var(--rule)}
.step-number{grid-row:span 2;font-size:34px;line-height:1;font-style:italic;color:var(--muted)}
.steps h3{font-size:16px;font-weight:600;line-height:1.4}
.steps p{color:var(--strong);font-size:15px}
.families{max-width:52em;font-size:15px;color:var(--strong)}
.families .label{display:block;margin-bottom:4px}
.aside{max-width:46em;padding:18px 20px;border:1px solid var(--line)}
.aside p+p{margin-top:6px}

/* Specimens */
.specimens{display:grid;gap:36px}
.specimen{display:grid;gap:12px;align-content:start;padding-top:14px;border-top:1px solid var(--line)}
.specimen pre{padding:16px;background:var(--secondary);border:1px solid var(--rule);white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
.specimen pre code{font-size:inherit}
.specimen dl{display:grid;gap:10px}
.specimen dt{color:var(--muted)}
.specimen dd{font-size:15px}

/* House rules */
.rules{counter-reset:rule;border-top:1px solid var(--rule)}
.rules li{counter-increment:rule;display:grid;grid-template-columns:44px 1fr;column-gap:8px;padding:18px 0;border-bottom:1px solid var(--rule)}
.rules li::before{content:counter(rule);grid-row:span 2;font-family:var(--serif);font-style:italic;font-size:34px;line-height:1;color:var(--muted)}
.rules h3{font-size:clamp(24px,2.4vw,32px);line-height:1.1}
.rules p{margin-top:6px;max-width:40em;color:var(--strong);font-size:15px}

/* Instruments */
.models{width:100%;border-collapse:collapse;text-align:left}
.models th,.models td{padding:12px 14px 12px 0;border-bottom:1px solid var(--rule);vertical-align:baseline}
.models thead th{color:var(--muted);font-weight:400;border-bottom-color:var(--line)}
.models tbody th{font-size:clamp(21px,2.2vw,30px);line-height:1.15}
.model-detail{display:block;margin-top:4px;color:var(--muted);letter-spacing:.08em}
.models td{font-size:15px;color:var(--strong)}
.models .is-pending td:last-child{font-style:italic}

/* Follow */
.feed-line{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}
.feed-link{font-size:clamp(52px,8vw,112px);line-height:1;letter-spacing:-.02em;text-underline-offset:10px}
.feed-line+p{margin-top:18px}

/* Colophon */
.colophon{padding:40px var(--pad) 56px;border-top:1px solid var(--rule);color:var(--muted);font-size:14px}
.colophon p{max-width:52em}
.colophon-name{font-size:28px;color:var(--paper);margin-bottom:6px}

/* 404 */
.not-found main{padding-bottom:96px}
.not-found h1{margin-top:4px}

@media (min-width:700px){
  .mast-mid,.mast-date{display:inline}
  .hero{padding-top:64px}
  .channel{grid-template-columns:minmax(180px,2fr) 10fr;align-items:center;padding-top:0}
  .channel svg{height:54px}
  .ledger>div{grid-template-columns:minmax(200px,1fr) 2fr;gap:20px}
  .specimens{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:28px}
}
@media (min-width:1000px){
  .section{grid-template-columns:3fr 9fr;column-gap:0;padding-block:96px}
  .section-head{padding-right:24px}
  .section-body{padding-left:clamp(24px,3vw,48px);border-left:1px solid var(--rule)}
  .hero{padding-top:48px}
  .hero-grid{display:grid;grid-template-columns:9fr 3fr;column-gap:clamp(24px,3vw,48px);align-items:end}
  .hero-grid h1{max-width:none;font-size:clamp(50px,8.4vw,136px)}
  .hero-side .lede{margin-top:0;font-size:16px}
  .plate{margin-top:40px}
  .channel svg{height:46px}
  .steps{grid-template-columns:repeat(5,1fr);border-bottom:1px solid var(--rule)}
  .steps li{display:block;padding:20px 22px 24px;border-bottom:0;border-left:1px solid var(--rule)}
  .steps li:first-child{border-left:0;padding-left:0}
  .step-number{display:block;font-size:44px;margin-bottom:22px}
  .steps h3{margin-bottom:8px}
  .rules{display:grid;grid-template-columns:1fr 1fr;column-gap:48px}
}
@media (prefers-reduced-motion:reduce){
  .channel svg{animation:none}
  html{scroll-behavior:auto}
}
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
}
