/* tokens: docs/public/m.css */
:root {
  --s1: 0.875rem; --s2: 1.0625rem; --s3: 1.25rem; --s4: 2rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #fff; --fg: #111; --mute: #5c5c5c; --rule: #e6e6e6; --wash: #f6f6f6; --acc: #b4450c;
  --col: 42rem; --wide: 64rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111; --fg: #ececec; --mute: #a3a3a3; --rule: #2a2a2a; --wash: #1b1b1b; --acc: #f08a4b; }
}

/* tin.ad site layout. Tokens (sizes, faces, colours, column) come from docs/public/m.css, the docs design system:
   site/build.mjs copies its :root blocks, so tin.ad and tin.ad/docs cannot drift. Spacing is the same 8-pt grid in px. */
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--s2)/1.6 var(--sans) }
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 24px }
nav { display: flex; gap: 24px; align-items: baseline; padding: 24px 0; font-size: var(--s1) }
nav a { color: var(--mute); text-decoration: none }
nav a:first-child { color: var(--fg); font-weight: 600; margin-right: auto }
nav a[aria-current="page"] { color: var(--fg) }
nav a:hover { color: var(--fg) }
main { padding: 48px 0 64px }
h1 { font-size: var(--s4); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 24px; font-weight: 650 }
h2 { font-size: var(--s3); line-height: 1.3; margin: 64px 0 16px; font-weight: 600 }
p, ul, ol, table, pre { margin: 0 0 16px }
ul, ol { padding-left: 24px }
li { margin: 0 0 8px }
a { color: var(--acc); text-underline-offset: 0.15em }
a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px }
.lead { font-size: var(--s3); line-height: 1.5 }
.muted, figcaption, small { color: var(--mute); font-size: var(--s1) }
code, pre { font-family: var(--mono); font-size: var(--s1) }
pre { background: var(--wash); padding: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere }
pre .p { color: var(--mute); user-select: none }
:not(pre) > code { background: var(--wash); padding: 2px 4px }
figure { margin: 0 0 16px }
table { border-collapse: collapse; width: 100%; font-size: var(--s1) }
th, td { text-align: left; vertical-align: top; padding: 8px 16px 8px 0; border-top: 1px solid var(--rule) }
th { font-weight: 600; color: var(--mute) }
td code { overflow-wrap: anywhere }
td:last-child a { white-space: nowrap }
td.n { font-variant-numeric: tabular-nums; white-space: nowrap }
.cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: baseline; margin-top: 24px }
.cta a.primary { font-weight: 600 }
footer { border-top: 1px solid var(--rule); padding: 24px 0 48px; font-size: var(--s1); color: var(--mute) }
footer a { color: var(--mute) }
@media (max-width: 30rem) { h1 { font-size: 1.625rem } .lead { font-size: var(--s2) } nav { gap: 16px } }
