/* ============================================================
   Aparto — design-system.css
   The single source of truth for design tokens. Nothing in this
   file selects an element; it only declares custom properties
   and loads the typeface.

   This site is dark-only by design. There is deliberately no
   light theme and no prefers-color-scheme block — the palette
   below is the palette, everywhere.
   ============================================================ */

/* ---------------- Typeface ---------------- */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------------- Brand palette ---------------- */

  --bg: #0a0908;
  --bg-alt: #0e0c0a;
  --bg-surface: #14110e;
  --bg-detail: #0c0a09;
  --ink: #f3efe7;
  --muted: #a89e90;
  --hairline: #312c25;
  --dot: #5c5344;
  --ivory-text: #f5f1ea;
  --accent: #46a558;

  /* Pure white sits deliberately outside the warm palette. It is used only
     where maximum contrast is the point — the primary button fill and the
     focus ring — because warming those reduces legibility and, for the focus
     ring, accessibility. Do not use it for type or surfaces. */
  --white: #ffffff;

  /* ---------------- Section veils ----------------
     Translucent fills, not solid colours: the Vanta topology
     canvas sits at z-index -1 behind the whole document and
     reads through these. Swapping any of them for an opaque
     colour switches the animation off for that section. */

  --veil-stats: rgba(10, 9, 8, 0.5);
  --veil-detail-a: rgba(12, 10, 9, 0.68);
  --veil-detail-b: rgba(14, 12, 10, 0.66);
  --veil-card: rgba(20, 17, 14, 0.78);
  --veil-about: rgba(7, 6, 5, 0.74);
  --veil-footer: rgba(5, 4, 4, 0.8);

  /* ---------------- Typography ---------------- */

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);

  /* Fluid scale, interpolating between a 320px and a 1280px
     viewport. Steps are px-derived but expressed in rem so a
     reader's own font-size setting still scales the page. */

  --step--1: clamp(0.8125rem, 0.792rem + 0.10vw, 0.875rem);   /* 13 → 14 */
  --step-0: clamp(1rem, 0.979rem + 0.10vw, 1.0625rem);        /* 16 → 17 */
  --step-1: clamp(1.125rem, 1.063rem + 0.31vw, 1.3125rem);    /* 18 → 21 */
  --step-2: clamp(1.3125rem, 1.188rem + 0.63vw, 1.6875rem);   /* 21 → 27 */
  --step-3: clamp(1.5625rem, 1.354rem + 1.04vw, 2.1875rem);   /* 25 → 35 */
  --step-4: clamp(1.875rem, 1.542rem + 1.67vw, 2.875rem);     /* 30 → 46 */
  --step-5: clamp(2.25rem, 1.667rem + 2.92vw, 4rem);          /* 36 → 64 */

  --leading-tight: 1.12;
  --leading-snug: 1.35;
  --leading-body: 1.55;
  --leading-loose: 1.65;

  --tracking-tight: -0.01em;
  --tracking-overline: 0.18em;

  /* ---------------- Spacing (4px base) ---------------- */

  --space-1: 0.25rem;   /* 4  */
  --space-2: 0.5rem;    /* 8  */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 2.5rem;    /* 40 */
  --space-8: 3rem;      /* 48 */
  --space-9: 4rem;      /* 64 */
  --space-10: 5rem;     /* 80 */
  --space-11: 6.25rem;  /* 100 */
  --space-12: 8rem;     /* 128 */

  /* ---------------- Radii ---------------- */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ---------------- Elevation ---------------- */

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 22px 52px rgba(0, 0, 0, 0.5);

  /* ---------------- Layout & motion ---------------- */

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
