/* De Bijlesbuurt · design tokens v2
 * Hallmark · design-system: design.md · theme: custom (bespoke) · vibe: "ruitjesschrift, balpen, markeerstift, ingeplakte foto's"
 * axes: light / geometric-sans + handwritten / chromatic-other (marker yellow + pen blue)
 * Every colour, font, space, radius, shadow, duration and easing used by site.css lives here.
 */

/* ── Self-hosted webfonts (OFL; no request to Google Fonts) ── */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-400-800-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback (fontTools vs Liberation Sans = Arial), so text does not jump when the font arrives */
@font-face {
  font-family: "Jakarta Fallback";
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 104.11%;
  ascent-override: 99.70%;
  descent-override: 21.32%;
  line-gap-override: 0%;
}

:root {
  /* ── Paper ── */
  --color-paper:   oklch(98.6% 0.006 95);   /* #fcfaf6 schriftpapier */
  --color-paper-2: oklch(96.4% 0.012 95);
  --color-paper-3: oklch(93% 0.018 95);
  --color-label:   oklch(99.3% 0.003 95);   /* wit etiket, ingeplakte foto, werkblad */

  /* ── Notebook material ── */
  --color-grid:    oklch(89% 0.030 245);    /* ruitjes */
  --color-line:    oklch(86% 0.045 245);    /* lijntjes op het lijntjesvel */
  --color-margin:  oklch(66% 0.150 25);     /* rode kantlijn */
  --color-tape:    oklch(91% 0.035 85);     /* plakband (multiply over de foto) */
  --color-note:    oklch(95.5% 0.080 100);  /* geeltje */
  --color-note-2:  oklch(94.5% 0.035 235);  /* blauw memoblaadje */

  /* ── Ink + pens ── */
  --color-ink:      oklch(24% 0.025 262);   /* gedrukte tekst, 15.8:1 */
  --color-ink-2:    oklch(40% 0.030 262);   /* 8.9:1 */
  --color-muted:    oklch(48% 0.025 262);   /* 6.3:1 */
  --color-rule:     oklch(84% 0.020 255);
  --color-rule-strong: oklch(58% 0.025 262);/* 4.1:1 — velden */
  --color-pen:      oklch(45% 0.160 263);   /* blauwe balpen: handschrift + links, 7.4:1 */
  --color-redpen:   oklch(54% 0.200 27);    /* rode nakijkpen: vinkjes, 5.4:1 */
  --color-marker:      oklch(92% 0.160 102);/* markeerstift; ink erop 13:1 */
  --color-marker-deep: oklch(87% 0.170 98);

  /* ── Schrift cover (footer) ── */
  --color-cover:      oklch(44% 0.130 258); /* blauwe kaft; label-wit erop 7.7:1 */
  --color-cover-deep: oklch(37% 0.120 258);

  /* ── Aliases kept for older/content pages ── */
  --color-accent:     var(--color-pen);
  --color-accent-deep: oklch(38% 0.150 263);
  --color-accent-ink: var(--color-label);
  --color-focus:      oklch(50% 0.200 263); /* 6:1 on paper, 5:1 on marker */
  --color-error:      oklch(50% 0.180 27);  /* 6.3:1 */
  --color-whatsapp:      oklch(50% 0.130 156);
  --color-whatsapp-deep: oklch(43% 0.115 156);

  /* ── Shadows ── */
  --shadow-ink:   0.1875rem 0.1875rem 0 var(--color-ink);   /* getekend: knoppen, werkbladen */
  --shadow-press: 0 0 0 var(--color-ink);
  --shadow-photo: 0 0.75rem 1.5rem -0.75rem oklch(24% 0.025 262 / 0.45);
  --shadow-note:  0 0.625rem 1.125rem -0.75rem oklch(24% 0.025 262 / 0.4);

  /* ── Type ── */
  --font-display: "Plus Jakarta Sans", "Jakarta Fallback", Arial, sans-serif;
  --font-body:    "Plus Jakarta Sans", "Jakarta Fallback", Arial, sans-serif;
  --font-hand:    "Kalam", "Segoe Print", "Bradley Hand", cursive;

  --text-sm:      0.875rem;                                  /* 14px */
  --text-base:    1.0625rem;                                 /* 17px */
  --text-md:      1.3125rem;                                 /* 21px */
  --text-xl:      clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);  /* h2, prijzen */
  --text-display: clamp(2.375rem, 1.5rem + 3.7vw, 4.25rem);  /* h1 (≤ 50 tekens) */

  /* ── Space (4 pt) ── */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;
  /* Sectie-ritme: krimpt op mobiel, desktop houdt 2xl / 3xl */
  --section-sm: clamp(var(--space-xl), 1rem + 5vw, var(--space-2xl));
  --section-lg: clamp(3.5rem, 1.5rem + 7vw, var(--space-3xl));

  /* ── Layout ── */
  --grid:       1.375rem;  /* ruitjesmaat: 22px */
  --shell-max:  72rem;
  --gutter:     clamp(var(--space-md), 4vw, var(--space-2xl));
  --margin-gap: clamp(var(--space-md), 0.5rem + 2.5vw, var(--space-xl));
  --header-h:   4rem;
  --measure:    62ch;

  /* ── Shape ── */
  --radius-btn:   0.5rem;
  --radius-card:  0.625rem;
  --radius-input: 0.5rem;
  --rule-hair:    1px;
  --rule-ink:     2px;

  /* ── Motion ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro:   120ms;
  --dur-short:   220ms;
  --dur-long:    420ms;

  /* ── Z-index ── */
  --z-base:   1;
  --z-raised: 10;
  --z-sticky: 200;
}
