/* Night River: the one token file of the site. Every literal colour of the site lives here and nowhere else.
   One theme: dark by the owner's order (60 percent or more dark, but colourful). The page states color-scheme: dark.
   The scene (assets/js/river/engine.js) reads its colours from these tokens too. */

/* Type: Arno Pro (display) + Verlag (text), the site's one pair (main\assets\css\type.css, joined 2026-10-14).
   Arno Display has one light display cut: it answers every display weight, so no heading gets a faked bold. */
@font-face { font-family: "Arno Display"; src: url("../fonts/arno-light-display.woff2?v=20261016") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Arno Display"; src: url("../fonts/arno-light-italic-display.woff2?v=20261016") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Arno"; src: url("../fonts/arno-italic.woff2?v=20261016") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Verlag"; src: url("../fonts/verlag-book.woff2?v=20261016") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Verlag"; src: url("../fonts/verlag-book-italic.woff2?v=20261016") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Verlag"; src: url("../fonts/verlag-bold.woff2?v=20261016") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Arno Display Fallback"; src: local("Georgia"); size-adjust: 75.4%; ascent-override: 91.3%; descent-override: 41.4%; line-gap-override: 26.5%; }
@font-face { font-family: "Verlag Fallback"; src: local("Segoe UI"); size-adjust: 87.2%; ascent-override: 91.8%; descent-override: 22.9%; line-gap-override: 22.9%; }

:root {
  color-scheme: dark;

  /* grounds: the night */
  --color-bg: #0b0a20;            /* deep indigo, the page ground */
  --color-bg-deep: #070617;       /* the darkest ground: footer, code wells */
  --color-surface: #15123a;       /* indigo panel */
  --color-surface-2: #1e1650;     /* plum-indigo panel, one step up */
  --color-plum: #33195f;          /* plum ground for accents */
  --color-night-blue: #101d52;    /* night blue ground */
  --color-header: #0d0b27;        /* the header's own ground */

  /* inks */
  --color-ink: #f5f1ff;           /* main text: lilac white */
  --color-ink-muted: #c3bde6;     /* secondary text */
  --color-ink-dim: #a29cd0;       /* captions, meta */
  --color-ink-on-bright: #0b0a20; /* ink on the brand gradient and on warm buttons */

  /* the river: the brand gradient, the one literal gradient of the house */
  --color-river-blue: #4191E1;
  --color-river-mint: #41E1B5;
  --color-river-cyan: #22D3EE;
  --gradient-brand: linear-gradient(100deg, #4191E1 0%, #41E1B5 55%, #22D3EE 100%);
  --color-moon: #cfd6ff;          /* the thin source of the river */

  /* lantern accents, used with restraint */
  --color-coral: #ff8a6b;
  --color-marigold: #ffbe55;

  /* product inks (text-safe on the dark grounds) */
  --color-mneme: #6fb0f2;
  --color-skills: #5fe8c2;
  --color-orion: #5fdcf2;

  /* lines, focus, states */
  --color-line: #2c2760;          /* hairline on the grounds */
  --color-line-strong: #453d8a;
  --color-control-line: #766dd0;  /* the edge of a button or a field: 3 to 1 against every ground */
  --color-ring: #ffbe55;          /* focus ring: marigold, solid */
  --color-success: #5fe8c2;
  --color-warning: #ffbe55;
  --color-error: #ff8a6b;

  /* scrims and glass over the scene (alpha on the night ground) */
  --color-scrim: rgb(11 10 32 / 0.72);
  --color-scrim-strong: rgb(11 10 32 / 0.88);
  --color-glass: rgb(21 18 58 / 0.78);
  --color-glass-line: rgb(207 214 255 / 0.14);
  --color-shadow: rgb(3 2 14 / 0.55);

  /* the scene's own colours (linear light is worked out by the engine) */
  --scene-zenith: #0a0b2e;
  --scene-mid: #2a1458;
  --scene-teal: #1c8f9b;
  --scene-coral: #ff7a59;
  --scene-gold: #ffb547;
  --scene-floor: #05051a;
  --scene-star-cool: #cfe0ff;
  --scene-star-warm: #ffd9a8;

  /* the press palette of the brand page: facts to quote, shown as swatches */
  --press-cyan: #1FB6E8; --press-mint: #41E1B5; --press-lilac: #C9A3D8; --press-plum: #7B2A7C; --press-amber: #C9914E; --press-ink: #07070B;

  /* type */
  --font-display: "Arno Display", "Arno Display Fallback", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-serif: "Arno", "Arno Display Fallback", "Iowan Old Style", Georgia, serif;
  --font-text: "Verlag", "Verlag Fallback", "Avenir Next", Avenir, "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --font-body: var(--font-text);
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;   /* no third face is shipped */

  --text-xs: clamp(0.8125rem, 0.6rem + 0.18vw, 0.875rem);     /* 13 at 1920, 14 on a large screen */
  --text-sm: clamp(0.9375rem, 0.7rem + 0.2vw, 1rem);          /* 15 at 1920, 16 on a large screen */
  --text-base: clamp(1.0625rem, 0.75rem + 0.26vw, 1.1875rem); /* 17 at 1920, 19 on a large screen */
  --text-lg: clamp(1.25rem, 0.9rem + 0.3vw, 1.4375rem);        /* 20 at 1920, 23 on a large screen */
  --text-xl: clamp(1.5rem, 1.05rem + 0.38vw, 1.75rem);         /* 24 at 1920, 28 on a large screen */
  --text-2xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
  --text-hero: clamp(2.75rem, 1.1rem + 6.4vw, 7.25rem);
  --text-hero-2: clamp(2.5rem, 1.2rem + 4.4vw, 5.25rem);   /* the first line of an inner page */

  /* space: the 4 px grid */
  --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: 6rem; --space-10: 8rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --measure: 62ch;
  --header-h: 4rem;

  --radius-sm: 0.5rem; --radius-md: 0.875rem; --radius-lg: 1.25rem; --radius-xl: 1.75rem; --radius-pill: 999px;

  /* motion */
  --duration-fast: 150ms; --duration-normal: 200ms; --duration-slow: 300ms;
  --duration-page: 900ms;           /* one authored page-scale arrival */
  --duration-scene: 1400ms;         /* a scene-length reveal */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
}
