:root {
  /* ---------- Colour: cream / ink / burgundy (sampled against the listening room) ---------- */
  --cream: #f3ebdf; /* main background */
  --ink: #1c1512; /* text: soft near-black, warm */
  --burgundy: #5a1822; /* the one accent */
  --muted: rgba(28, 21, 18, 0.55); /* secondary text: ink at 55% */
  --line: rgba(28, 21, 18, 0.16); /* hairlines */
  --cream-muted: rgba(243, 235, 223, 0.62); /* secondary text on ink / burgundy */
  --cream-line: rgba(243, 235, 223, 0.2);

  /* older names, kept so every page keeps working (they point at the palette above) */
  --color-black: var(--ink);
  --color-ink: var(--ink);
  --color-white: #ffffff;
  --color-off-white: var(--cream);
  --color-paper: #eae1d3;
  --color-burgundy: var(--burgundy);
  --color-burgundy-deep: #430c15;
  --color-burgundy-bright: #8c1c2e;
  --color-line: var(--line);
  --color-line-inverse: var(--cream-line);
  --color-muted: var(--muted);
  --color-muted-inverse: var(--cream-muted);

  /* Surfaces (theme-swappable) */
  --surface: var(--cream);
  --on-surface: var(--ink);
  --surface-inverse: var(--ink);
  --on-surface-inverse: var(--cream);

  /* ---------- Type ---------- */
  --font-sans: 'Neue Montreal', 'Helvetica Neue', Arial, sans-serif;
  /* Newsreader on the homepage; the project pages only load Fraunces, so they keep it for now */
  --font-serif: 'Newsreader', 'Fraunces', 'Times New Roman', serif;
  /* the logo keeps its own face (index.html loads this one weight just for it) */
  --font-logo: 'Fraunces', 'Times New Roman', serif;

  /* The homepage scale: use only these five */
  --fs-display-xl: clamp(3.5rem, 8vw, 8rem); /* hero-scale statements */
  --fs-display-l: clamp(2.75rem, 5.5vw, 5.5rem); /* project names, section titles */
  --fs-serif-m: 1.45rem; /* lists, lead text */
  --fs-body: 1rem; /* Neue Montreal */
  --fs-label: 0.72rem; /* Neue Montreal, uppercase, tracked, muted */

  --lh-display: 1;
  --lh-serif: 1.7;
  --lh-body: 1.55;
  --ls-display: -0.02em;
  --ls-label: 0.08em;
  --measure: 60ch; /* longest line of running text */

  /* older sizes, still used by the listening room UI and the project pages */
  --fs-hero: clamp(3.2rem, 3vw + 6.5rem, 10.5rem);
  --fs-display: clamp(2.4rem, 2vw + 4.5rem, 6.5rem);
  --fs-h1: clamp(1.9rem, 1.4vw + 3rem, 4rem);
  --fs-h2: clamp(1.4rem, 0.8vw + 1.4rem, 2.1rem);
  --fs-h3: clamp(1.1rem, 0.5vw + 1rem, 1.5rem);
  --fs-body-lg: clamp(1.05rem, 0.3vw + 1rem, 1.35rem);
  --fs-small: 0.8125rem;
  --fs-micro: 0.6875rem;

  --lh-tight: 0.92;
  --lh-heading: 1.05;

  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.08em;
  --ls-wider: 0.18em;

  /* ---------- Grid ---------- */
  --container-max: 1680px;
  --edge: clamp(20px, 3.4vw, 56px); /* side margin, everywhere */
  --gutter: clamp(12px, 1.2vw, 22px);
  --cols-desktop: 12;
  --cols-tablet: 8;
  --cols-mobile: 4;

  /* ---------- Space ---------- */
  --section-space: clamp(5rem, 9vw, 9rem); /* between homepage sections */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;
  --space-3xl: 13rem;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.3s;
  --dur-med: 0.6s;
  --dur-slow: 1.1s;

  /* ---------- Chrome ---------- */
  --nav-h: 84px;
  --z-nav: 100;
  --z-overlay: 200;
}

@media (max-width: 1024px) {
  :root {
    --nav-h: 68px;
  }
}
