@font-face {
  font-family: "Solaris";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../assets/fonts/Solaris-Regular.woff2") format("woff2");
}

:root {
  /* Native form controls / `<select>` popups follow page theme (reduces light flash in dark mode). */
  color-scheme: dark;
  --color-black: #0f0101;
  --color-white: #f4f1e9;
  --color-grey: #b5ae9b;
  /* Figma “DARK GRAY” — portrait tile backing behind headshots. */
  --color-stone: #6a6158;
  --color-archive-cream: #e8e2d6;
  --color-archive-card: #bdb7a4;
  --color-archive-card-text: #160201;

  --theme-bg: var(--color-black);
  --theme-text: var(--color-white);
  --theme-muted: var(--color-grey);
  --theme-border: var(--color-white);
  --theme-button-bg: var(--color-white);
  --theme-button-text: var(--color-black);
  --theme-button-hover-bg: #dad6cb;
  --theme-card-bg: var(--color-archive-card);
  --theme-card-text: var(--color-archive-card-text);
  --theme-archive-text: var(--color-archive-cream);
  --theme-logo-filter: none;
  --theme-horizon-bg: var(--color-black);

  --grid-columns: 12;
  --grid-gap: 1rem;
  --page-gutter: 24px;

  /* Sub-section horizontal inset (`is-style-life-section-inset`, mission-split).
     Applied inside `.life-main`, additive to `--page-gutter`. Zero below 768px. */
  --life-section-inset-inline: clamp(2rem, 9vw, 7.5rem);

  --framed-border: 1px solid var(--theme-border);
  --framed-radius: 24px;

  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-display: "Solaris", "Space Grotesk", sans-serif;

  /*
   * Heading scale.
   *  h1 — single page heading. Centered by default (page hero, narrow intro).
   *  h2 — major section heading. Fluid clamp on desktop; shrunk by a media query on mobile (see main.css).
   *  h3 — sub-section heading. Same scale as the previous h2.
   */
  --type-h1-size: 48px;
  --type-h1-line: 1.21;
  --type-h2-size: clamp(2rem, 1rem + 2.4vw, 2rem);
  --type-h2-line: 1.08;
  --type-h3-size: 1.625rem;
  --type-h3-line: 1.23;
  --type-sub-size: 16px;
  --type-sub-line: 20px;
  --type-body-size: 16px;
  --type-body-line: 23px;
  --type-body-sm-size: 14px;
  --type-body-sm-line: 20px;

  /* Pill actions (exoplanet CTA, mailing submit, narrow block CTAs). */
  --life-action-btn-font-size: var(--type-body-sm-size);
  --life-action-btn-line-height: 1.4;
  --life-action-btn-letter-spacing: 0.08em;
  --life-action-btn-radius: 13px;
  --life-action-btn-padding-block: 0.65rem;
  --life-action-btn-padding-inline: 1.25rem;
}

:root[data-life-theme="light"] {
  color-scheme: light;
  --theme-bg: var(--color-white);
  --theme-text: var(--color-black);
  --theme-muted: var(--color-stone);
  --theme-border: var(--color-black);
  --theme-button-bg: var(--color-black);
  --theme-button-text: var(--color-white);
  --theme-button-hover-bg: #202020;
  --theme-card-bg: var(--color-grey);
  --theme-card-text: var(--color-black);
  --theme-archive-text: var(--color-black);
  --theme-logo-filter: brightness(0) saturate(100%);
  --theme-horizon-bg: var(--color-white);
}

@media (min-width: 1200px) {
  :root {
    --page-gutter: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --life-section-inset-inline: 0;
  }
}
