/* ===== Fonts (self-hosted) ===== */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400; 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: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0030-0039, U+002E, U+002C, U+0024, U+0025, U+20AC, U+00A3;
}

/* ===== Page baseline ===== */
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-feature-settings: "ss01", "cv11";
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(124,111,240,.08), transparent 60%),
    radial-gradient(900px 500px at -5% 20%, rgba(94,234,212,.05), transparent 60%);
  background-attachment: fixed;
}

/* ===== Headings ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); font-weight: 500; }
h2 { font-size: var(--fs-h2); font-weight: 500; }
h3 { font-size: var(--fs-md); font-weight: 500; letter-spacing: -.01em; line-height: var(--lh-snug); }
h4 { font-size: var(--fs-sm); font-weight: 500; text-transform: none; }

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

/* ===== Links inside copy ===== */
main a:not(.btn):not(.brand) {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-2);
  transition: color var(--dur-fast) var(--ease-spring),
              border-color var(--dur-fast) var(--ease-spring);
}
main a:not(.btn):not(.brand):hover {
  color: var(--color-success);
  border-color: var(--color-success);
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: clamp(20px, 4vw, 40px);
  margin-inline: auto;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--color-surface); color: var(--color-text);
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-2);
  z-index: 100;
  transition: top var(--dur-base) var(--ease-spring);
}
.skip-link:focus { top: 16px; }

/* ===== Section spacing ===== */
.section {
  padding-block: clamp(64px, 9vw, 128px);
  position: relative;
}
.section + .section { border-top: 1px solid var(--color-border); }
.section__title { max-width: 22ch; margin-block: var(--space-3) var(--space-5); }
.section__lede { max-width: 60ch; color: var(--color-text-mut); font-size: var(--fs-md); }
