/* keesriphagen.nl: design tokens
   Source: 02 DESIGN/03 SPECS/DESIGN-SYSTEM-EN-HOUVAST_v3.md
   Colour and type for the shared foundation. Project-page "world" colours
   are added later, per project. */

:root {
  /* Colour: light overviews */
  /* Kees t213u: a softer, paper-like off-white with a faint static film grain (was #F2F1EC, flat) */
  --paper: #ECE9E2;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='1' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 1.75'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23g)' opacity='0.08'/%3E%3C/svg%3E");
    /* Kees t218u/t219u: all grain is now a 512 px tile of fine single-octave noise (baseFrequency 1.3), so no visible repeat; under 1 KB each */
  /* Kees t220u: one grain strength everywhere, between the first and the Films grain (--grain light, --grain-dark on black; t221u: dark a bit subtler) */
  /* Kees t214u: much stronger grain on the Films overview, light specks on black for Music videos (t217u: stronger, .13 to .24) */
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='1' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -3 1.75'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23g)' opacity='0.045'/%3E%3C/svg%3E");
  --ink: #111111;
  --grey: #62625D; /* was #686863; darker so it keeps 4.8:1 on the paper with the t220u grain (t213u, t220u) */
  --rule: #D3D0C8;
  --placeholder: #9C9A94;
  --ph: #9C9A94;

  /* Colour: dark surfaces (project pages, dark chrome) */
  --bone: #F3F1EC;
  --night: #0B0B0C;

  /* Type families */
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;

  /* Type scale (round 78, Kees t256u/t257u): six sizes on a ~1.33 scale.
     Outfit for everything readable, Roboto Mono only for small uppercase labels.
     Weights: 500 headings, 400 text, 300 lead and light accents. */
  --t1: clamp(52px, 8.4vw, 128px); /* Display: page and project titles */
  --t2: clamp(28px, 2.8vw, 40px);  /* Heading: sections, cards, next project, contact */
  --t3: clamp(19px, 1.5vw, 22px);  /* Lead (300) and small titles (500) */
  --t4: 16px;                      /* Body: text, nav, credits, links */
  --t5: 14px;                      /* Small: roles, aka titles, filters, details */
  --t6: 11px;                      /* Label: Roboto Mono, uppercase */
  --track-label: 0.08em;

  /* Older token names, kept as aliases of the scale */
  --f-display: var(--t1);
  --f-h1: var(--t1);
  --f-h2: var(--t2);
  --f-h2-strip: var(--t2);
  --f-lead: var(--t3);
  --f-body: var(--t4);
  --f-body-tight: var(--t4);
  --f-meta: var(--t6);
  --f-meta-sm: var(--t6);
  --f-menu: var(--t4);

  --w-display: 500;
  --w-h1: 500;
  --w-h2: 500;
  --w-lead: 300;
  --w-body: 400;
  --w-meta: 400;

  --track-display: -0.03em;
  --track-h1: -0.03em;
  --track-h2: -0.02em;
  --track-lead: 0;
  --track-meta: var(--track-label);
  --track-menu: 0;

  --lh-display: 0.92;
  --lh-h1: 0.92;
  --lh-lead: 1.38;
  --lh-body: 1.5;
  --lh-body-loose: 1.6;

  /* Grid: 24 columns, 0 gutter, 24 px rows on desktop */
  --cols: 24;
  --row: 24px;
  --gutter: 0px;

  /* Chrome */
  --nav-height: 88px;
  --nav-pad-x: 48px;
  --nav-link-gap: 34px;
  --logo-height-nav: 24px;
  --logo-height-nav-mobile: 19px;
  --logo-height-footer: 22px;
  --footer-pad-top: 72px;
  --footer-pad-bottom: 56px;
}

@media (max-width: 700px) {
  :root {
    --cols: 6;
    --nav-height: 68px;
    --nav-pad-x: 20px;
    --logo-height-nav: 19px;
  }
}
