/* =========================================================
   4AddedValue — Colors & Type
   Editorial Scandinavian: inky blue, sky, bone.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,300;8..60,400;8..60,500;8..60,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ---------- Brand colors ---------- */
  /* Primary — inky blue (depth, trust, the "rots in de branding") */
  --ink-900: #0A1F38;     /* deepest — for type and dense surfaces */
  --ink-800: #0E2A47;     /* primary brand blue */
  --ink-700: #173A5E;
  --ink-600: #245580;

  /* Sky — open, airy, "wijds, helder, zon" */
  --sky-500: #4A7FB5;
  --sky-400: #7DA9D6;
  --sky-300: #A9C5E2;
  --sky-200: #D2E0EE;
  --sky-100: #EAF1F8;

  /* Bone — warm neutrals, paper, light */
  --bone-50:  #FFFFFF;
  --bone-100: #FAFAF7;    /* page background */
  --bone-200: #F4F1EA;    /* alt surface */
  --bone-300: #E8E4DA;    /* dividers, soft cards */
  --bone-400: #C9C3B5;
  --bone-500: #8C8779;

  /* Ink black — never pure black */
  --black-900: #111418;
  --black-700: #2A2D33;
  --black-500: #5A5E66;
  --black-300: #9498A0;

  /* Accent — used sparingly */
  --sun-500: #E8B547;     /* warm sun, a single point of light */

  /* ---------- Semantic colors ---------- */
  --color-bg:           var(--bone-100);
  --color-bg-alt:       var(--bone-200);
  --color-surface:      var(--bone-50);
  --color-surface-2:    var(--bone-300);

  --color-fg:           var(--ink-900);
  --color-fg-muted:     var(--black-500);
  --color-fg-subtle:    var(--black-300);
  --color-fg-inverse:   var(--bone-100);

  --color-accent:       var(--ink-800);
  --color-accent-hover: var(--ink-700);
  --color-link:         var(--ink-800);

  --color-border:       var(--bone-300);
  --color-border-strong:var(--bone-400);
  --color-divider:      var(--bone-300);

  /* ---------- Type families ---------- */
  --font-serif: "Source Serif 4", "Tiempos Headline", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---------- Type scale ----------
     Editorial: large, generous, with breathing room. */
  --fs-12: 0.75rem;     /* 12 — micro labels, eyebrows */
  --fs-14: 0.875rem;    /* 14 — captions, meta */
  --fs-16: 1rem;        /* 16 — UI, small body */
  --fs-18: 1.125rem;    /* 18 — body */
  --fs-20: 1.25rem;     /* 20 — large body / lead */
  --fs-24: 1.5rem;      /* 24 — H4 */
  --fs-32: 2rem;        /* 32 — H3 */
  --fs-44: 2.75rem;     /* 44 — H2 */
  --fs-64: 4rem;        /* 64 — H1 */
  --fs-96: 6rem;        /* 96 — display */

  /* ---------- Line heights ---------- */
  --lh-tight:   1.05;
  --lh-snug:    1.2;
  --lh-normal:  1.45;
  --lh-relaxed: 1.6;

  /* ---------- Letter spacing ---------- */
  --tracking-display: -0.02em;
  --tracking-heading: -0.015em;
  --tracking-body:    0;
  --tracking-label:   0.12em;     /* uppercase labels */

  /* ---------- Spacing ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ---------- Radii ----------
     Restrained. Editorial design uses very little rounding. */
  --radius-none: 0;
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --radius-pill: 999px;

  /* ---------- Borders ---------- */
  --border-hair: 1px solid var(--color-border);
  --border-rule: 1px solid var(--ink-900);

  /* ---------- Shadows ----------
     Soft, paper-like; never heavy. */
  --shadow-xs: 0 1px 2px rgba(14, 42, 71, 0.04);
  --shadow-sm: 0 2px 8px rgba(14, 42, 71, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 42, 71, 0.08);
  --shadow-lg: 0 24px 48px rgba(14, 42, 71, 0.10);

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.32, 0.08, 0.24, 1);
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-base: 240ms;
  --duration-slow: 480ms;

  /* ---------- Layout ---------- */
  --measure-narrow: 32rem;   /* 512px — readable line */
  --measure-base:   42rem;   /* 672px */
  --measure-wide:   64rem;   /* 1024px */
  --container:      80rem;   /* 1280px */
}

/* =========================================================
   Semantic typography classes
   ========================================================= */

.t-display {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3rem, 6vw + 1rem, var(--fs-96));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-variation-settings: "opsz" 144, "SOFT" 0;
  color: var(--color-fg);
}

.t-h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw + 0.5rem, var(--fs-64));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-variation-settings: "opsz" 96;
  color: var(--color-fg);
}

.t-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, var(--fs-44));
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  font-variation-settings: "opsz" 72;
  color: var(--color-fg);
}

.t-h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-32);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  font-variation-settings: "opsz" 48;
  color: var(--color-fg);
}

.t-h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: var(--lh-snug);
  color: var(--color-fg);
}

.t-lead {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-20);
  line-height: var(--lh-relaxed);
  color: var(--color-fg);
}

.t-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-18);
  line-height: var(--lh-relaxed);
  color: var(--color-fg);
}

.t-body-sm {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  color: var(--color-fg);
}

.t-meta {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--color-fg-muted);
}

.t-eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-12);
  line-height: var(--lh-normal);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

.t-quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-32);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  color: var(--color-fg);
}

/* =========================================================
   Base reset for documents using these tokens
   ========================================================= */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-18);
  line-height: var(--lh-relaxed);
  color: var(--color-fg);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
}

a { color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--ink-800); color: var(--bone-100); }
