/* ============================================================
   base.css — reset, font, typography rules, focus
   ============================================================ */
@font-face {
  font-family: "Darker Grotesque";
  src: url("../assets/fonts/DarkerGrotesque.woff2") format("woff2"),
       url("../assets/fonts/DarkerGrotesque-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: var(--t-1);
  line-height: var(--lh-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums slashed-zero;
  font-kerning: normal;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; line-height: var(--lh-tight); text-wrap: balance; letter-spacing: -0.01em; }
p, li, dd, figcaption { text-wrap: pretty; }
p, li, dd, dt, figcaption, h1, h2, h3, h4, blockquote { max-width: var(--measure); }
ul, ol { padding-left: 1.2em; }

sup, sub { font-size: 0.72em; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.55em; }
sub { bottom: -0.25em; }

img, canvas, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

[tabindex="-1"]:focus-visible { outline: none; }

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

::selection { background: var(--black); color: var(--white); }
