/* ==========================================================================
   BASE — reset, document, typography primitives
   ========================================================================== */

@view-transition { navigation: auto; }

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--navy-600) var(--ink);
}

body {
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img,
picture,
svg,
canvas,
video { display: block; max-width: 100%; }

img { height: auto; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

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

::selection {
  background: var(--lime);
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-wrap: balance;
  font-variation-settings: 'wdth' var(--wdth, 112), 'wght' var(--wght, 800);
}

p { text-wrap: pretty; }

hr {
  border: 0;
  height: var(--rule);
  background: var(--line-soft);
}

/* --- Utility ------------------------------------------------------------ */

.u-mono {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.u-lime { color: var(--lime); }
.u-ash  { color: var(--ash); }

.u-lede {
  font-size: var(--step-1);
  line-height: 1.4;
  color: color-mix(in oklab, var(--paper) 86%, transparent);
  max-width: 46ch;
}

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

.skip-link {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 50%;
  translate: -50% -120%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: translate var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { translate: -50% 0; }
