/* ============================================================
   JURIDISCH REKENEN — Design Foundations
   Colors, typography, spacing, radii, shadows.
   Payoff: "Rekenen met het recht."
   ============================================================ */

/* ---------- Fonts ----------
   Beide bestanden zijn variabele fonts (latin-subset) met een wght-as:
   Inter 100 tot 900 (v4.001), Source Serif 4 200 tot 900 (v4.004).
   Eén @font-face per familie met het gewichtsbereik; de browser kiest het
   gewicht via de as. De bestanden -500/-600/-700 en Inter-500 zijn
   byte-gelijke kopieën die alleen nog bestaan voor _ds_manifest.json. */
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('fonts/SourceSerif4-500.woff2') format('woff2');
}

:root {
  /* ===========================================================
     BRAND CORE  (the four canonical brand colors)
     =========================================================== */
  --inktblauw:  #16243E;   /* primary, text, trust            */
  --rekengroen: #149A77;   /* accent, result/correct          */
  --papierwit:  #F6F7F4;   /* background, paper                */
  --leigrijs:   #5B6675;   /* secondary text                  */

  /* ===========================================================
     INK (navy) SCALE — derived from #16243E
     =========================================================== */
  --ink-950: #0E1626;
  --ink-900: #16243E;   /* canonical inktblauw */
  --ink-800: #1F3052;
  --ink-700: #2B3F66;
  --ink-600: #3C5079;
  --ink-500: #556288;
  --ink-400: #7B86A1;
  --ink-300: #A8AFC0;
  --ink-200: #D2D6E0;
  --ink-100: #E7E9F0;
  --ink-50:  #F2F3F7;

  /* ===========================================================
     GREEN (rekengroen) SCALE — derived from #149A77
     =========================================================== */
  --green-900: #0A4234;
  --green-800: #0C5C47;
  --green-700: #0F7A5E;
  --green-600: #149A77;  /* canonical rekengroen */
  --green-500: #18B68C;
  --green-400: #3FCBA4;
  --green-300: #7CDcC0;
  --green-200: #B3EBDD;
  --green-100: #DBF5EE;
  --green-50:  #ECFAF6;

  /* ===========================================================
     NEUTRAL (paper / slate) SCALE
     paper at the light end, leigrijs in the middle
     =========================================================== */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #F6F7F4;   /* canonical papierwit */
  --neutral-100: #EEF0EC;
  --neutral-200: #E4E6E0;   /* hairline borders */
  --neutral-300: #D2D5CF;
  --neutral-400: #AFB4AD;
  --neutral-500: #818A86;
  --neutral-600: #5B6675;   /* canonical leigrijs */
  --neutral-700: #444E5C;
  --neutral-800: #2C3540;
  --neutral-900: #1A2029;

  /* ===========================================================
     SEMANTIC — surfaces, text, borders
     =========================================================== */
  --bg:            var(--papierwit);
  --bg-sunken:     #EEF0EC;
  --surface:       var(--neutral-0);
  --surface-muted: #FBFCFA;

  --fg1:  var(--inktblauw);   /* primary text / headings */
  --fg2:  var(--leigrijs);    /* secondary text          */
  --fg3:  #8A93A0;            /* tertiary / captions     */
  --fg-on-dark:  #F6F7F4;
  --fg-on-green: #FFFFFF;

  --border:        var(--neutral-200);
  --border-strong: var(--neutral-300);
  --border-focus:  var(--rekengroen);

  --accent:        var(--rekengroen);
  --accent-hover:  #0F7A5E;   /* green-700 */
  --accent-press:  #0C5C47;   /* green-800 */
  --accent-subtle: var(--green-100);

  --primary:       var(--inktblauw);
  --primary-hover: #1F3052;   /* ink-800 */
  --primary-press: #0E1626;   /* ink-950 */

  /* ===========================================================
     STATUS — success / warning / danger / info
     =========================================================== */
  --success:        #149A77;
  --success-bg:     #ECFAF6;
  --success-border: #B3EBDD;

  --warning:        #B4791A;
  --warning-bg:     #FBF3E4;
  --warning-border: #EAD3A6;

  --danger:         #B4322B;
  --danger-bg:      #FBECEB;
  --danger-border:  #ECC3C0;

  --info:           #2B5F86;
  --info-bg:        #ECF1F7;
  --info-border:    #C4D4E6;

  /* ===========================================================
     TYPE — families
     =========================================================== */
  --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;

  /* tabular figures helper (apply to amounts) */
  --num-feat: "tnum" 1, "lnum" 1;

  /* ===========================================================
     TYPE — fluid display + heading scale (serif)
     =========================================================== */
  --display:    700 56px/1.05 var(--font-serif);
  --h1:         600 40px/1.12 var(--font-serif);
  --h2:         600 30px/1.18 var(--font-serif);
  --h3:         600 23px/1.25 var(--font-serif);
  --h4:         600 19px/1.3  var(--font-serif);

  /* body + UI (sans) */
  --body-lg:    400 18px/1.6  var(--font-sans);
  --body:       400 16px/1.6  var(--font-sans);
  --body-sm:    400 14px/1.55 var(--font-sans);
  --ui:         500 15px/1.2  var(--font-sans);
  --ui-sm:      500 13px/1.2  var(--font-sans);
  --label:      600 13px/1.3  var(--font-sans);
  --overline:   600 12px/1.4  var(--font-sans);
  --caption:    400 13px/1.45 var(--font-sans);

  /* amounts (sans, tabular) */
  --amount-xl:  600 48px/1.0  var(--font-sans);
  --amount-lg:  600 32px/1.05 var(--font-sans);
  --amount:     600 20px/1.1  var(--font-sans);

  --overline-tracking: 0.08em;

  /* ===========================================================
     SPACING — 4px base
     =========================================================== */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ===========================================================
     RADII
     =========================================================== */
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-pill: 999px;

  /* ===========================================================
     SHADOWS — soft, paper-like; navy-tinted
     =========================================================== */
  --shadow-xs: 0 1px 2px rgba(22, 36, 62, 0.06);
  --shadow-sm: 0 1px 3px rgba(22, 36, 62, 0.08), 0 1px 2px rgba(22, 36, 62, 0.04);
  --shadow-md: 0 4px 12px rgba(22, 36, 62, 0.08), 0 2px 4px rgba(22, 36, 62, 0.04);
  --shadow-lg: 0 12px 28px rgba(22, 36, 62, 0.12), 0 4px 8px rgba(22, 36, 62, 0.05);
  --shadow-focus: 0 0 0 3px rgba(20, 154, 119, 0.25);

  /* ===========================================================
     MOTION
     =========================================================== */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;
}

/* ============================================================
   SEMANTIC ELEMENT DEFAULTS (optional convenience layer)
   ============================================================ */
.jr-display { font: var(--display); color: var(--fg1); letter-spacing: -0.02em; }
.jr-h1 { font: var(--h1); color: var(--fg1); letter-spacing: -0.015em; }
.jr-h2 { font: var(--h2); color: var(--fg1); letter-spacing: -0.01em; }
.jr-h3 { font: var(--h3); color: var(--fg1); }
.jr-h4 { font: var(--h4); color: var(--fg1); }
.jr-body-lg { font: var(--body-lg); color: var(--fg1); }
.jr-body { font: var(--body); color: var(--fg1); }
.jr-body-sm { font: var(--body-sm); color: var(--fg2); }
.jr-caption { font: var(--caption); color: var(--fg3); }
.jr-overline {
  font: var(--overline); color: var(--fg2);
  text-transform: uppercase; letter-spacing: var(--overline-tracking);
}
.jr-amount {
  font: var(--amount); color: var(--fg1);
  font-feature-settings: var(--num-feat);
}
.jr-amount-xl {
  font: var(--amount-xl); color: var(--inktblauw);
  font-feature-settings: var(--num-feat); letter-spacing: -0.01em;
}
