/* MASSUNG design tokens. Change values here, nowhere else. */
/* Type: Mona Sans (variable weight 200–900, width 75–125, true italic) + Martian Mono for data. Both OFL, self-hosted. */
@font-face { font-family: 'Mona Sans'; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; src: url('../fonts/mona-sans-var.woff2') format('woff2'); }
@font-face { font-family: 'Mona Sans'; font-style: italic; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; src: url('../fonts/mona-sans-var-italic.woff2') format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; src: url('../fonts/martian-mono-var.woff2') format('woff2'); }

:root {
  color-scheme: light;

  /* colour: Bone & Forest (brand palette, locked 2026-11-15). Primitives first, then the names the CSS uses. */
  --paper: #FFFFFF;
  --bone-50: #F7F4EE;
  --bone-100: #F2EEE6;
  --bone-200: #E9E4D9;
  --bone-300: #E3DBCC;
  --bone-400: #D2C8B6;
  --stone-500: #8E877B;
  --stone-600: #66615A;
  --stone-700: #3B3833;
  --ink-800: #2A2A2A;
  --ink-900: #111111;
  --forest-950: #0A1F0F;
  --forest-900: #0F2A15;
  --forest-800: #173A1D;
  --forest-700: #1F4D25;
  --moss-200: #B7C8B0;
  --rex-700: #1F5C12;
  --rex-600: #2F7A18;
  --sprout-300: #8FD16A;
  --sage-100: #E6EFDF;
  --error-600: #B3261E;
  --error-200: #FFB4AB;

  --bone: var(--bone-100);
  --bone-2: var(--bone-200);
  --bone-3: var(--bone-300);
  --ink: var(--ink-900);
  --ink-2: var(--ink-800);
  --body: var(--stone-700);
  --sec: var(--stone-600);
  --hair: rgba(17, 17, 17, .10);
  --hair-dark: rgba(255, 255, 255, .12);
  --field: var(--stone-500);   /* input borders: 3.6:1 on white */
  --green: var(--rex-600);
  --error: var(--error-600);

  /* type */
  --font-display: 'Mona Sans', 'Arial Black', sans-serif;
  --font-body: 'Mona Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-data: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* display voice: wide, black, forward-leaning */
  --display-weight: 900;
  --display-width: 125%;
  --display-style: italic;
  --display-track: -.025em;
  --t-h1: clamp(2.125rem, .9rem + 4.6vw, 4.75rem);
  --t-h2: clamp(1.875rem, 1.1rem + 2.8vw, 3.5rem);
  --t-h3: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);

  /* layout */
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --header-h: 64px;

  /* shape */
  --r-1: 12px;
  --r-2: 16px;
  --r-3: 24px;
  --r-4: 32px;
  --pill: 999px;

  /* elevation: three soft layers. Shadows are never animated directly; a pseudo-element fades in instead. */
  --e1: 0 1px 2px rgba(17, 17, 17, .06), 0 2px 8px rgba(17, 17, 17, .05);
  --e2: 0 2px 4px rgba(17, 17, 17, .05), 0 14px 32px -10px rgba(17, 17, 17, .18);
  --e3: 0 4px 8px rgba(17, 17, 17, .06), 0 32px 64px -20px rgba(17, 17, 17, .30);
  --glow: 0 10px 26px -8px rgba(47, 122, 24, .55);   /* rex-600 */
  --glow-2: 0 18px 38px -10px rgba(47, 122, 24, .70);
  --raised: linear-gradient(180deg, var(--paper) 0%, var(--bone-50) 100%);
  --stage: radial-gradient(90% 75% at 50% 36%, var(--bone-50) 0%, var(--bone-100) 50%, var(--bone-300) 100%);
  /* surfaces: light from above, a floor line, and fine grain so large areas never read flat */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .2 0 0 0 0 .14 0 0 0 .16 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .14 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* studio: key light high and centred, a curved wall-to-floor sweep, light bouncing off the floor, edges falling off */
  --studio:
    radial-gradient(42% 46% at 50% 30%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(80% 30% at 50% 100%, rgba(255, 252, 245, .70) 0%, rgba(255, 252, 245, 0) 100%),
    radial-gradient(130% 100% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(74, 58, 34, .14) 100%),
    radial-gradient(140% 40% at 50% 70%, var(--bone-300) 0%, rgba(227, 219, 204, 0) 100%),
    linear-gradient(180deg, var(--bone-100) 0%, #ECE6DB 55%, var(--bone-300) 70%, #E9E3D7 100%);
  /* forest band: light from above, a faint sprout glow off the floor */
  --forest-stage:
    radial-gradient(50% 70% at 50% 0%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(60% 50% at 50% 115%, rgba(143, 209, 106, .18) 0%, rgba(143, 209, 106, 0) 100%),
    linear-gradient(180deg, var(--forest-800) 0%, var(--forest-900) 60%, var(--forest-950) 100%);

  /* motion: one curve */
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 900px) { :root { --header-h: 72px; } }
