/* ==========================================================================
   Base: reset, type, layout primitives, utilities
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--surface);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---- Headings -------------------------------------------------------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  margin: 0 0 0.4em;
  text-wrap: balance;
}
.display { font-size: var(--step-6); font-weight: 800; font-style: italic; line-height: var(--leading-tight); text-transform: uppercase; }
h1, .h1 { font-size: var(--step-5); font-weight: 800; line-height: 0.98; }
h2, .h2 { font-size: var(--step-4); line-height: 1.02; }
h3, .h3 { font-size: var(--step-3); }
h4, .h4 { font-size: var(--step-2); font-weight: 600; }

/* The slanted headline echoes the badge wordmark. Use on H1/H2 only. */
.slant { font-style: italic; text-transform: uppercase; }

.lead { font-size: var(--step-1); line-height: 1.45; color: var(--text-muted); max-width: 56ch; }
.meta { font-size: var(--step--1); color: var(--text-muted); }
.sku  { font-size: var(--step--1); color: var(--text-muted); letter-spacing: var(--tracking-label); }

/* ---- Layout primitives ----------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); background: var(--surface); color: var(--text); }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

.stack > * + * { margin-top: var(--stack, var(--space-4)); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.grid { display: grid; gap: var(--gap, var(--gutter)); grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 260px), 100%), 1fr)); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-head h2 { margin: 0; }

/* ---- Utilities ------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--antic-blue); color: var(--white); padding: var(--space-2) var(--space-4); }
.skip-link:focus { top: var(--space-2); }
.text-muted { color: var(--text-muted); }
.chamfer { clip-path: polygon(var(--c, var(--chamfer)) 0, calc(100% - var(--c, var(--chamfer))) 0, 100% var(--c, var(--chamfer)), 100% calc(100% - var(--c, var(--chamfer))), calc(100% - var(--c, var(--chamfer))) 100%, var(--c, var(--chamfer)) 100%, 0 calc(100% - var(--c, var(--chamfer))), 0 var(--c, var(--chamfer))); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
