/* Self-hosted fonts. Drop woff2 files into /assets/fonts/ before launch.
   Inter:        https://rsms.me/inter/  (download Inter Web → extract Inter-{weight}.woff2)
   JetBrains:    https://www.jetbrains.com/lp/mono/  (download → JetBrainsMono-{weight}.woff2) */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { image-orientation: from-image; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--promo-h) + var(--nav-h) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* Typography primitives */
.eyebrow {
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.h1, h1 {
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
}
.h2, h2 {
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
}
.h3, h3 {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.display {
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: var(--fs-display);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--text);
}
.lead {
  font-size: var(--fs-lead);
  color: var(--text-body);
  font-weight: 500;
}
.mono {
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
}

/* Layout primitives */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(var(--s-6), 10vw, var(--s-8));
  position: relative;
}
.section--flush { padding-block: 0; }

/* A11y */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--action);
  color: var(--action-ink);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-weight: 700;
  z-index: 100;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
  border-radius: 2px;
  box-shadow: 0 0 0 5px rgba(244, 246, 248, 0.10);
}
