/* Reset, typography and page frame. Elements only, plus a few layout helpers. */

@layer base {
*, *::before, *::after { box-sizing: border-box; }

html {
  /* Room for the scrollbar on every page, so short and long pages line up and the
     layout does not shift sideways between them. */
  scrollbar-gutter: stable;
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

/* The orange band at the top of every page (from variant B4). */
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; border-top: var(--band) solid var(--orange); }
main { flex: 1; }
img, svg { max-width: 100%; }

a {
  color: var(--link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  &:hover { text-decoration-thickness: 2px; }
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-stretch: var(--narrow); line-height: 1.1; }
h1 { font-size: var(--step-3); font-weight: 750; letter-spacing: -0.01em; margin: var(--space-3) 0 var(--space-4); }
h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.005em; margin: var(--space-6) 0 var(--space-4); }
h3 { font-size: var(--step-1); font-weight: 700; margin: var(--space-5) 0 var(--space-3); }
p { margin: 0 0 var(--space-4); }
small { font-size: 0.85rem; }
dl { margin: 0; }
td, th, dd { font-variant-numeric: tabular-nums; }

code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.9em; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); overflow-x: auto; }

input, select, button, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--space-5); } /* width: auto margins in a flex column would shrink it */
@media (max-width: 48rem) { .wrap { padding: 0 var(--space-4); } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: absolute; left: -999rem; z-index: 10;
  &:focus { left: var(--space-4); top: var(--space-4); background: var(--bg); color: var(--link); padding: var(--space-2) var(--space-3); }
}
}

/* Archivo, tuned (owner keeps the font, 2026-12-04): numbers outside tables also in
   tabular figures, so values in cards and lists line up; paragraphs avoid a lone last
   word; secondary text one notch heavier, as grey Archivo at 400 reads thin. */
@layer base {
:is(.value, .podium__value, .product-size, .tile__meta, .kb-meta, time, strong) { font-variant-numeric: tabular-nums; }
p { text-wrap: pretty; }
:is(.lede, .kb-card__summary, .kb-feature__summary, .tile__text, .table-note) { font-weight: 450; line-height: 1.5; }
}
