@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Core canvas — calm, nearly black, intentionally flat. */
  --ds-canvas-1000: #050506;
  --ds-canvas-950: #09090b;
  --ds-canvas-900: #101014;
  --ds-surface-800: #17171c;
  --ds-surface-700: #202027;

  /* Type and lines. */
  --ds-paper-100: #f4f2f5;
  --ds-paper-300: #d2ced6;
  --ds-muted-500: #97939d;
  --ds-muted-700: #66636d;
  --ds-line-soft: rgba(244, 242, 245, 0.1);
  --ds-line-active: rgba(244, 242, 245, 0.24);

  /* One chromatic signal across every interactive state and reflection. */
  --ds-signal-pink: #ff9fc4;
  --ds-signal-violet: var(--ds-signal-pink);
  --ds-orbit-violet: var(--ds-signal-pink);
  --ds-orbit-blue: #a39aa1;
  --ds-orbit-pink: var(--ds-signal-pink);
  --ds-signal-lime: #d2ced6;
  --ds-signal-white: #ffffff;

  /* Dark glass — reserved for floating controls and transient layers. */
  --ds-glass-fill: rgba(24, 24, 30, 0.54);
  --ds-glass-fill-strong: rgba(18, 18, 23, 0.74);
  --ds-glass-line: rgba(255, 255, 255, 0.16);
  --ds-glass-highlight: rgba(255, 255, 255, 0.3);
  --ds-glass-blur: 22px;
  --ds-glass-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);

  --ds-bg: var(--ds-canvas-950);
  --ds-surface: var(--ds-surface-800);
  --ds-text: var(--ds-paper-100);
  --ds-text-muted: var(--ds-muted-500);
  --ds-line: var(--ds-line-soft);
  --ds-accent: var(--ds-signal-pink);

  /* Typography — expressive headings, neutral UI, retro notes. */
  --font-heading: "Bricolage Grotesque", "Inter", Arial, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --font-note: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ds-font-display: var(--font-heading);
  --ds-font-ui: var(--font-body);
  --ds-font-note: var(--font-note);
  --ds-type-hero: clamp(4.4rem, 11.5vw, 11.25rem);
  --ds-type-display: clamp(3.25rem, 7vw, 7.25rem);
  --ds-type-title: clamp(2.2rem, 4vw, 4.25rem);
  --ds-type-body-lg: clamp(1.15rem, 1.75vw, 1.55rem);
  --ds-type-body: 1rem;
  --ds-type-label: 0.75rem;

  /* Spacing — based on an 8px rhythm. */
  --ds-space-1: 0.5rem;
  --ds-space-2: 1rem;
  --ds-space-3: 1.5rem;
  --ds-space-4: 2rem;
  --ds-space-5: 3rem;
  --ds-space-6: 4rem;
  --ds-space-7: 6rem;
  --ds-space-8: 8rem;
  --ds-page-x: clamp(1.25rem, 4vw, 4.5rem);

  /* Geometry. */
  --ds-frame: 1px;
  --ds-radius-xs: 0.45rem;
  --ds-radius-sm: 0.8rem;
  --ds-radius-md: 1.4rem;
  --ds-radius-lg: 2.2rem;
  --ds-radius-pill: 999px;
  --ds-max: 96rem;

  /* Light is reactive and local. */
  --ds-glow-soft: 0 0 30px rgba(255, 159, 196, 0.1);
  --ds-glow-active: 0 0 54px rgba(255, 159, 196, 0.22);
  --ds-glow-hot: 0 0 30px rgba(255, 159, 196, 0.3);

  /* Motion. */
  --ds-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ds-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ds-ease-snap: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ds-time-fast: 160ms;
  --ds-time-base: 360ms;
  --ds-time-slow: 900ms;
}

@media (max-width: 720px) {
  :root {
    --ds-type-hero: clamp(3.5rem, 19vw, 7rem);
    --ds-type-display: clamp(2.7rem, 14vw, 5rem);
    --ds-space-8: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ds-time-fast: 0ms;
    --ds-time-base: 0ms;
    --ds-time-slow: 0ms;
  }
}
