/*
 * Scoped reset + typography + layout. Nothing here touches html/body or any
 * selector outside .fl-site. The reset uses :where() so it has zero specificity
 * beyond .fl-site and every component class overrides it regardless of order.
 */
@font-face {
  font-family: "FL Geist";
  src: url("../fonts/GeistVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FL Geist Mono";
  src: url("../fonts/GeistMonoVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.fl-site {
  position: relative; /* anchors the nav sentinel at the top of the site root */
  font-family: var(--fl-font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fl-ink);
  background: var(--fl-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  /* clip, not hidden: hidden would make this the scroll container and break the sticky nav */
  overflow-x: clip;
}
.fl-site,
.fl-site *,
.fl-site *::before,
.fl-site *::after {
  box-sizing: border-box;
}
.fl-site :where(h1, h2, h3, h4, p, figure, blockquote, ol, ul, dl, dd) {
  margin: 0;
}
.fl-site :where(h1, h2, h3, h4) {
  font-size: inherit;
  font-weight: inherit;
}
.fl-site :where(ol, ul) {
  padding: 0;
  list-style: none;
}
.fl-site :where(a) {
  color: inherit;
  text-decoration: none;
}
.fl-site :where(img, svg, video) {
  display: block;
  max-width: 100%;
}
.fl-site :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  margin: 0;
}
.fl-site :where(button) {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.fl-site [hidden] {
  display: none !important;
}

/* Focus ring, identical on every interactive element */
.fl-site a:focus-visible,
.fl-site button:focus-visible,
.fl-site summary:focus-visible,
.fl-site input:focus-visible,
.fl-site select:focus-visible,
.fl-site textarea:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--fl-bg),
    0 0 0 4px var(--fl-focus);
}

.fl-skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 60;
  padding: 12px 20px;
  border-radius: var(--fl-radius-pill);
  background: var(--fl-primary-bg);
  color: var(--fl-primary-fg);
  font-size: 14px;
  font-weight: 500;
}
.fl-skip:focus {
  top: 12px;
}

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

/* Shared content column: 1400px including gutters, so content is 1272px at lg */
.fl-container {
  max-width: var(--fl-container);
  margin-inline: auto;
  padding-inline: var(--fl-gutter);
}
@media (min-width: 1024px) {
  .fl-container {
    padding-inline: var(--fl-gutter-lg);
  }
}

/* Put on the heading that carries the section id: lands 24px under the sticky nav */
.fl-anchor {
  scroll-margin-top: 92px; /* 68px nav + 24px */
}
@media (min-width: 1024px) {
  .fl-anchor {
    scroll-margin-top: 112px; /* 88px nav + 24px */
  }
}

.fl-mono {
  font-family: var(--fl-font-mono);
  font-variant-numeric: tabular-nums;
}

/* Type scale */
.fl-h1 {
  font-size: 46px;
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 300;
}
.fl-h2 {
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 300;
}
.fl-lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fl-ink-2);
}
@media (min-width: 768px) {
  .fl-h1 {
    font-size: 64px;
  }
  .fl-h2 {
    font-size: 44px;
  }
}
@media (min-width: 1024px) {
  .fl-h1 {
    font-size: clamp(56px, 6vw, 84px);
  }
  .fl-h2 {
    font-size: clamp(42px, 5vw, 56px);
  }
  .fl-lead {
    font-size: 17px;
  }
}
