/* SCL design tokens.
   Brand: Millie's SCL brand final, 2026-10-07 (SCLWEB-8), Rooted Rings in pink.
   Source: Source Code Labs/SCL Brand/SCL-brand-final-2026-10-07/README.md
   Colour and type live here and nowhere else. Spacing, grid and radius are
   unchanged from the 10/2 scaffold. Lines, surfaces and the soft ink on Basalt
   are mixes of the five brand colours, never new colours. */

/* Self-hosted variable fonts, both SIL Open Font License. */
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin-wght.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand palette */
  --basalt: #1A1C1F;
  --pearl: #EEEBE4;
  --peony: #FF7EB6;     /* on Basalt only, 7.3:1 */
  --cochineal: #C0265E; /* links and buttons on Pearl only, 4.8:1 */
  --ash: #5E6064;       /* captions and secondary text on Pearl, 5.3:1 */

  /* colour roles, Pearl ground (default) */
  --c-bg: var(--pearl);
  --c-surface: color-mix(in srgb, var(--basalt) 5%, var(--pearl));
  --c-ink: var(--basalt);
  --c-ink-soft: var(--ash);
  --c-line: color-mix(in srgb, var(--basalt) 14%, var(--pearl));
  --c-accent: var(--cochineal);
  --c-accent-ink: var(--pearl);
  --c-link: var(--cochineal);
  --c-focus: var(--cochineal);

  /* type: Jost for the name and headlines, Hanken Grotesk for body */
  --f-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-display: 500;
  --fw-body: 400;

  /* fluid type scale, 360px to 1440px */
  --t-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --t-sm: clamp(0.9rem, 0.87rem + 0.15vw, 0.98rem);
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.13rem);
  --t-lg: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --t-xl: clamp(1.6rem, 1.4rem + 0.9vw, 2.25rem);
  --t-2xl: clamp(2.1rem, 1.7rem + 1.8vw, 3.5rem);
  --t-3xl: clamp(2.6rem, 2rem + 3vw, 4.75rem);

  /* wordmark: never under 14px tall on screen (brand rule 4) */
  --logo-h: clamp(1.15rem, 1rem + 0.5vw, 1.5rem);

  /* spacing, 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --s-section: clamp(4rem, 3rem + 5vw, 8rem);

  /* layout */
  --w-max: 72rem;
  --w-text: 40rem;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --shadow: 0 1px 2px rgb(26 28 31 / 0.08), 0 4px 16px rgb(26 28 31 / 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Basalt ground. Any block with this class flips every colour role,
   so Peony replaces Cochineal and Ash gives way to a lighter soft ink. */
.on-basalt,
.section--alt {
  --c-bg: var(--basalt);
  --c-surface: color-mix(in srgb, var(--pearl) 6%, var(--basalt));
  --c-ink: var(--pearl);
  --c-ink-soft: color-mix(in srgb, var(--pearl) 72%, var(--basalt));
  --c-line: color-mix(in srgb, var(--pearl) 16%, var(--basalt));
  --c-accent: var(--peony);
  --c-accent-ink: var(--basalt);
  --c-link: var(--peony);
  --c-focus: var(--peony);
}
