/* Base layer — from the approved mockup (BASE block) + template utilities. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
/* film grain over everything (signature material, pointer-events off) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }
[hidden][hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex: none; stroke-width: 1.75; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.icon--missing { display: inline-block; width: 20px; height: 20px; outline: 1px dashed var(--color-error); }

:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300; padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--color-brand); color: var(--color-brand-ink); font-weight: 600; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--color-text-3); }

#main:focus { outline: none; }
