/* Tapelist guides (the pages web/tools/build.py writes). Same fonts, colors and tape motif as index.html.
   The CDN keeps this file for a week: after a change, raise ?v= in web/tools/content.py (CSS) and build again. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-var-latin.woff2") format("woff2"); font-weight: 500 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-sans-var-latin.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --bg: #f1f3f4; --surface: #ffffff; --ink: #101418; --muted: #55606b; --line: #d6dce1; --field-line: #7b8794;
  --tape: #ffc81e; --tape-ink: #1a1400; --link: #1f5fbf; --focus: #1f5fbf;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1013; --surface: #161b20; --ink: #e8edf1; --muted: #9aa6b1; --line: #29323a; --field-line: #6b7682;
    --link: #7fb0ff; --focus: #7fb0ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1013; --surface: #161b20; --ink: #e8edf1; --muted: #9aa6b1; --line: #29323a; --field-line: #6b7682;
  --link: #7fb0ff; --focus: #7fb0ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }

/* Top bar: full width, with its content on the same 760px column as the text. The tape strip hangs under it. */
header { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px max(20px, calc(50% - 360px)); }
header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; background:
  repeating-linear-gradient(90deg, var(--tape-ink) 0 2px, transparent 2px 96px) 0 0 / 100% 10px no-repeat,
  repeating-linear-gradient(90deg, var(--tape-ink) 0 1.5px, transparent 1.5px 48px) 0 0 / 100% 7px no-repeat,
  repeating-linear-gradient(90deg, var(--tape-ink) 0 1px, transparent 1px 12px) 0 0 / 100% 4px no-repeat,
  var(--tape); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.35rem/1 var(--display); font-stretch: 118%; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--tape); display: grid; place-items: center; flex: none; }
header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 .78rem/1.5 var(--mono); }
header nav a { color: var(--muted); }

main { max-width: 760px; margin: 0 auto; padding: 52px 20px 0; display: grid; gap: 36px; }
.intro { display: grid; gap: 14px; }
h1 { font-size: clamp(2rem, 6.4vw, 2.9rem); font-weight: 800; font-stretch: 112%; line-height: 1.04; }
h2 { font-size: 1.45rem; font-weight: 800; font-stretch: 108%; line-height: 1.12; padding-top: 14px; border-top: 4px solid var(--tape); }
h3 { font-size: 1.08rem; font-weight: 700; font-stretch: 104%; line-height: 1.25; letter-spacing: 0; margin-top: 8px; }
section { display: grid; gap: 12px; }
ul { margin: 0; padding-left: 1.15em; display: grid; gap: 6px; }
.muted { color: var(--muted); font-size: .9rem; }
.intro .muted { font: 500 .76rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.quick { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--tape); border-radius: 10px; padding: 16px 18px; font-size: 1.06rem; }

/* Steps: a real sequence, so numbered, with the home page's "01" counters. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 14px; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; align-self: start; padding-top: 6px; border-top: 3px solid var(--ink); font: 500 .8rem/1 var(--mono); color: var(--muted); }
.steps strong, .steps span { grid-column: 2; }
.steps strong { font-family: var(--display); font-weight: 700; font-stretch: 104%; font-size: 1.08rem; line-height: 1.3; }

/* The worked example: one item, laid out like a row of the report. */
.example { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 8px; max-width: 520px; }
.example .label { font: 500 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.example .big { font-weight: 600; line-height: 1.3; }
.example dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; border-top: 1px solid var(--line); padding-top: 10px; font-size: .95rem; }
.example dt { color: var(--muted); }
.example dd { margin: 0; }

.cta { background: var(--surface); border: 2px solid var(--ink); border-radius: 10px; padding: 22px; gap: 14px; }
.cta h2 { border-top: 0; padding-top: 0; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 2px solid var(--tape); background: var(--tape); color: var(--tape-ink); font-weight: 600; text-decoration: none; }
.store:hover { filter: brightness(.96); }
.store + .store { background: transparent; color: var(--ink); border-color: var(--field-line); }

footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 28px max(20px, calc(50% - 360px)) 48px; display: grid; gap: 12px; font-size: .88rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
