/* Hallmark · shape: project page · genre: modern-minimal · theme: Rim (chosen: an instrument at night for test-equipment logs; the deal offered Console, Blueprint and Cobalt, all used) · rim: night · job: hire
 * hero: split, two real failing packets on the scope well · nav: plain bar · footer: plain ruled · imagery: real pilot-phase traces from the test campaign, no photographs · signature: the same rule verdict on both traces, the trees telling them apart
 * axes: dark/grotesk-sans/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 64px; }
h1, h2, h3 { font-weight: var(--display-weight); line-height: 1.02; }
h2 { letter-spacing: -0.03em; }
.num, code, pre { font-family: var(--font-outlier); font-weight: 400; font-variant-numeric: tabular-nums; }
code { font-size: 0.86em; }
p { color: var(--color-ink-2); }
a { color: var(--color-ink); text-decoration-color: transparent; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
::selection { background: color-mix(in oklab, var(--color-accent) 35%, transparent); color: var(--color-ink); }

/* chrome */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); }
.skip:focus-visible { top: var(--space-md); }
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav .container { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--nav-h); }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; font-size: var(--text-lg); font-weight: 500; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); font-weight: 500; }
.nav__links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: var(--space-2xs); color: var(--color-ink-2); }
.nav__links a:hover { color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
@media (max-width: 40rem) { .nav .container { flex-wrap: wrap; gap: 0 var(--space-md); } .nav__links { width: 100%; gap: var(--space-md); } }

/* controls */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: 0; background: none; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn { border-color: var(--color-muted-2); }
.btn:hover { border-color: var(--color-muted); background: var(--color-paper-2); }
.btn:active { background: var(--color-paper-3); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-focus); border-color: var(--color-focus); }
.btn--primary:active { background: var(--color-accent); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* hero */
.hero { border-bottom: var(--rule-hair) solid var(--color-rule); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; padding-block: var(--space-3xl) var(--space-2xl); }
.hero__text { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); justify-items: start; }
.hero h1 { max-width: 11ch; }
.hero .lead { max-width: 32ch; }
.byline { margin-top: calc(-1 * var(--space-sm)); font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 56rem) { .hero__grid { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-2xl); } }

/* the scope well */
.ticks { position: relative; }
.ticks::before, .ticks::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid var(--color-muted); pointer-events: none; z-index: var(--z-raised); }
.ticks::before { top: calc(-1 * var(--space-xs)); left: calc(-1 * var(--space-xs)); border-width: 1px 0 0 1px; }
.ticks::after { right: calc(-1 * var(--space-xs)); bottom: calc(-1 * var(--space-xs)); border-width: 0 1px 1px 0; }
.scope { margin: 0; padding: var(--space-lg); min-width: 0; background: var(--color-paper-2); }
.scope__title { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.trace-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 14rem); gap: var(--space-xs) var(--space-lg); align-items: center; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.trace-row:first-of-type { margin-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.trace-row__id { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--color-ink-2); }
.trace { display: block; width: 100%; height: auto; background: var(--color-paper-3); }
.trace .pt { fill: none; stroke: var(--color-accent-2); stroke-width: 2; stroke-linejoin: round; }
.trace .fit { stroke: var(--color-muted); stroke-width: 1; stroke-dasharray: 4 4; }
.verdicts { display: grid; gap: var(--space-xs); margin: 0; }
.verdicts div { display: grid; gap: var(--space-3xs); padding-left: var(--space-md); position: relative; }
.verdicts dt { font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); }
.verdicts dd { margin: 0; font-size: var(--text-sm); color: var(--color-ink); }
.verdicts .num { color: var(--color-ink); }
.verdicts .wrong dd { color: var(--color-muted); }
.verdicts .wrong del { text-decoration-color: var(--color-muted); }
.verdicts .pick::before { content: ""; position: absolute; left: 0; top: var(--space-2xs); width: 8px; height: 8px; background: var(--color-accent); }
.scope figcaption { margin-top: var(--space-md); max-width: 60ch; font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 40rem) { .scope { padding: var(--space-md); } .trace-row { grid-template-columns: minmax(0, 1fr); } }

/* sections */
main > section:not(.hero) { padding-block: var(--space-2xl); }
@media (min-width: 60rem) { main > section:not(.hero) { padding-block: var(--space-3xl); } }
main > section:not(.hero):not(.band) + section:not(.band) { border-top: var(--rule-hair) solid var(--color-rule); }
section h2 { margin-bottom: var(--space-xl); }
.band { background: var(--color-paper-2); color: var(--color-ink); border-block: var(--rule-hair) solid var(--color-rule); }
.band h2 { margin-bottom: var(--space-md); }
.band__lead { max-width: 52ch; margin-bottom: var(--space-xl); }

/* measurements as figures */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-sm); padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; }
.figures div + div { padding-left: var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
@media (min-width: 40.01rem) and (max-width: 60rem) { #results .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } #results .figures div:nth-child(3) { padding-left: 0; border-left: 0; } }
.figures dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); max-width: 24ch; }
.figures dd { margin: 0; font-variant-numeric: tabular-nums; font-size: var(--text-display-s); letter-spacing: -0.03em; line-height: 1; color: var(--color-ink); }
.figures dd span { font-size: 0.5em; color: var(--color-muted); letter-spacing: 0; }
@media (max-width: 40rem) { .figures div, .figures div + div { padding: var(--space-md) 0; border-left: 0; border-top: var(--rule-hair) solid var(--color-rule-2); } .figures div:first-child { border-top: 0; } }
.note { margin-top: var(--space-lg); max-width: 64ch; font-size: var(--text-sm); color: var(--color-muted); }

/* tables */
.scroll { overflow-x: auto; }
.scroll, pre { scroll-margin-top: calc(var(--nav-h) + var(--space-xl)); }
@media (max-width: 40rem) { #causes .opt { display: none; } tbody th { white-space: normal; } tbody th code { overflow-wrap: anywhere; } thead th { white-space: normal; } }
table { width: 100%; border-collapse: collapse; }
th, td { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; text-align: left; vertical-align: baseline; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
th:last-child, td:last-child { padding-right: 0; }
thead th { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); border-bottom-color: var(--color-rule); white-space: nowrap; }
tbody th { font-weight: 400; color: var(--color-ink); white-space: nowrap; }
td { color: var(--color-ink-2); }
tbody th, tbody td { border-bottom-color: var(--color-rule); }
.r { text-align: right; white-space: nowrap; }
td.num { color: var(--color-ink); }
tr.pick th { position: relative; padding-left: var(--space-md); }
tr.pick th::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: calc(-1 * var(--space-2xs)); background: var(--color-accent); }
tr.pick td, tr.pick th { background: var(--color-paper-2); }
@media (max-width: 40rem) { .scroll { background: linear-gradient(to left, var(--color-paper) 40%, transparent) right / var(--space-xl) 100% no-repeat local, linear-gradient(to left, color-mix(in oklab, var(--color-ink) 18%, transparent), transparent) right / var(--space-sm) 100% no-repeat scroll; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.split__text { display: grid; gap: var(--space-md); }
.split__text h2 { margin-bottom: var(--space-sm); }
.split__text p { max-width: 52ch; }
.register { margin: var(--space-sm) 0 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.register li { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-sm); color: var(--color-muted); text-wrap: pretty; }
pre { margin: 0; padding: var(--space-lg); overflow-x: auto; background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.75; }
pre code { font-size: 1em; }
@media (max-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* footer */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
.foot .container { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); justify-content: space-between; align-items: center; }
.foot p { color: var(--color-muted); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: currentColor; }
