@font-face {
  font-family: "Grift"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../assets/fonts/grift-400.woff2") format("woff2");
}
@font-face {
  font-family: "Grift"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../assets/fonts/grift-500.woff2") format("woff2");
}
@font-face {
  font-family: "Grift"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../assets/fonts/grift-600.woff2") format("woff2");
}
@font-face {
  font-family: "Grift"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../assets/fonts/grift-700.woff2") format("woff2");
}

/* Metric-matched fallback, so text does not reflow when Grift swaps in. Only
   700 is preloaded, so 400, 500 and 600 arrive later. The overrides are close
   approximations, not measured metrics. */
@font-face {
  font-family: "Grift Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 98%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute loses to any author display rule, so a `display: grid`
   container stays on screen while claiming to be hidden. This was masking the
   secondary work grid, which only looked hidden because it was empty and
   therefore zero-height. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--step-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.shell { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main > section { padding-block: var(--section-gap); }
#hero { padding-block: 0; }

.label {
  font-family: var(--font-mono); font-size: var(--step-xs); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-300);
}
.muted { color: var(--grey-400); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green-900); color: var(--white);
  padding: 10px 16px; border-radius: 0; text-decoration: none;
  transition: top 0.18s ease;
}
.skip:focus { top: 12px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
