/* Download host. Same tokens as the marketing site (tokens.css is generated into
 * both trees because the hosts are different origins). The page is the sage
 * ground with the paper grain over it; the download tile is a cream plate with
 * the on-paper tokens inside it. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--surface); }
body { margin: 0; position: relative; isolation: isolate; background: var(--surface); color: var(--ink); font: var(--type-body-web); min-height: 100vh; }
/* The grain: fixed, full viewport, multiplied over the ground, under all content, no pointer events. */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.13; mix-blend-mode: multiply; background-image: url(/assets/brand/paper-grain.svg); background-size: 180px 180px; }
a { color: var(--teal-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: var(--mint); color: var(--ink); }
p, h1, h2 { margin: 0; }
svg { display: block; }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-paper); color: var(--ink-on-paper); padding: 1px 5px; border-radius: var(--radius-sm); }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 720px) { .wrap { padding: 0 var(--space-8); } }
.mark { width: 28px; height: 22px; overflow: visible; flex: none; }
.mark .o { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.mark .eye { fill: var(--teal); }
.mark .lens { fill: none; }
.mark .ring { fill: none; stroke: var(--monocle); stroke-width: 1.65; }
.mark .pupil { fill: var(--ink); }
.mark .stem, .mark .smile { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-width: 1.1; }
.wordmark { font: var(--type-wordmark); font-size: 14px; line-height: 16px; letter-spacing: var(--track-wordmark); text-transform: uppercase; color: var(--ink); }
.label { font: var(--type-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-muted); }
.readout { font: var(--type-readout); font-variant-numeric: tabular-nums; }
.site-header { border-bottom: 1px solid var(--hairline); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-6); height: 60px; }
.lockup { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); }
.lockup:hover { text-decoration: none; }
.site-nav { margin-left: auto; display: flex; gap: var(--space-6); }
.site-nav a { font: var(--type-strong); font-size: 15px; color: var(--ink); }
main { padding: var(--space-12) 0 var(--space-16); }
main .wrap { display: grid; gap: var(--space-6); }
h1 { font: var(--type-h1); text-wrap: balance; }
.lede { font: var(--type-lede); color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.state { display: inline-flex; align-items: center; gap: var(--space-1); font: var(--type-readout); font-size: 11px; line-height: 14px; color: var(--ink-muted); }
.state i { width: 7px; height: 7px; border-radius: var(--radius-pill); display: inline-block; }
.state.pending i { width: 5px; height: 5px; border: 1.5px solid var(--attention); }
.state.resolved i { background: var(--resolved); }
.state.info i { background: var(--readout); }
/* The download is a distinct object, so it gets a card: the mascots' cream in
 * both themes, with the on-paper ink, rules and links inside it. */
.card {
  --ink: var(--ink-on-paper); --ink-muted: var(--ink-muted-on-paper); --hairline: var(--hairline-on-paper); --teal-text: var(--green-deep); --focus: var(--ink-on-paper);
  color: var(--ink); background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-4);
}
.card ::selection { background: var(--green-visor); color: var(--ink-on-paper); }
.card .row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-6); align-items: baseline; }
.card .row .readout { text-align: right; }
.card .hair { height: 1px; background: var(--hairline); }
.btn { --focus: inherit; display: inline-flex; align-items: center; justify-content: center; font: var(--type-strong); font-size: 17px; line-height: 24px; padding: var(--space-3) var(--space-6); border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--monocle); color: var(--on-monocle); cursor: pointer; justify-self: start; }
.btn:hover { text-decoration: none; filter: brightness(0.94); }
.sum { font: var(--type-readout); color: var(--ink-muted); word-break: break-all; }
.small { font: var(--type-small); font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.site-footer { border-top: 1px solid var(--hairline); padding: var(--space-8) 0 var(--space-12); font: var(--type-small); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.site-footer a { color: var(--ink); }
