/* Layout shell + the fixed rem type scale (DESIGN.md §3): single sans,
   weights carry hierarchy, tabular numerals wherever a number is data. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, .display { font-size: 2.125rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2, .headline { font-size: 1.4375rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h3, .title { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; margin: 0; }
.label { font-size: 0.8125rem; font-weight: 500; line-height: 1.35; }
.price { font-size: 1.75rem; font-weight: 650; line-height: 1.15; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
p { margin: 0 0 var(--sp-sm); max-width: 70ch; }

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-sm); }

/* Pinned to its containing block's origin on purpose: without top/left these
   land at their static position, and a static position inside something wide
   (a scrolling chip row, a table wider than the phone) sits past the right
   edge and drags the whole page into horizontal scroll. */
.visually-hidden {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 var(--sp-md); width: 100%; }

main { padding-block: var(--sp-xl) var(--sp-2xl); flex: 1; }
.section { margin-top: var(--sp-2xl); }
.section > h2 { margin-bottom: var(--sp-md); }

@media (max-width: 640px) {
  h1, .display { font-size: 1.75rem; }
  main { padding-block: var(--sp-lg) var(--sp-xl); }
  .section { margin-top: var(--sp-xl); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
