@font-face {
  font-family: "Geist";
  src: url("../assets/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Calm Swiss Architectural Light Palette */
  --bg-paper: #fafafa;
  --bg-surface: #ffffff;
  --bg-subtle: #f2f4f7;
  --bg-frame: #0e1117;

  /* Ink & Typography Contrast (>= 4.5:1 WCAG AA on #fafafa & #ffffff) */
  --ink-primary: #111214;
  --ink-secondary: #4b5563;
  --ink-muted: #555e6b;
  --ink-inverse: #f8fafc;
  --ink-inverse-muted: #cbd5e1;

  /* Hairlines & Structural Dividers */
  --line-hairline: rgba(17, 18, 20, 0.08);
  --line-medium: rgba(17, 18, 20, 0.14);
  --line-strong: rgba(17, 18, 20, 0.24);
  --line-inverse: rgba(248, 250, 252, 0.16);

  /* Single Precision Accent (Deep Cobalt Blue) */
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: rgba(29, 78, 216, 0.06);
  --accent-line: rgba(29, 78, 216, 0.28);

  /* Typography: 2 Families (Geist Latin/Numerals + CJK Neo-Grotesk) */
  --font-sans: "Geist", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Monaco", "Consolas",
    monospace;

  /* Strict 3-Step Body Hierarchy (Hero H1 & Brand Wordmark Exempt) */
  --text-heading: clamp(1.375rem, 2vw, 1.75rem);
  --text-body: 1rem;
  --text-meta: 0.875rem;

  /* Spacing Scale (Density = 3 Spacious Editorial) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5.5rem;

  /* Swiss Grid Geometry & Shape Lock */
  --container-max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --nav-h: 64px;
  --radius-sm: 4px;
  --radius-md: 6px;

  /* Calibrated Motion (MOTION_INTENSITY = 2) */
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);

  /* Tinted Architectural Elevation */
  --shadow-frame: 0 10px 28px rgba(17, 18, 20, 0.05),
    0 1px 3px rgba(17, 18, 20, 0.04);
  --shadow-dialog: 0 28px 72px rgba(17, 18, 20, 0.36);
}

@media (max-width: 767px) {
  :root {
    --nav-h: 56px;
    --space-8: 3rem;
    --space-9: 3.75rem;
  }
}
