/*
 * Skin District: het merk, en alleen hier.
 * Bron: brandbook oktober 2026 en de goedgekeurde demo (css/style.css, commit 0df85c4).
 * 60% basis (Linnen, Poeder), 30% accent (Dusty rose, Zand), 10% diep (Terra, Cacao, Espresso).
 * Cormorant Garamond voor koppen vanaf 26px, Inter voor tekst, labels en knoppen.
 */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	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: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
	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: "Cormorant Garamond";
	font-style: italic;
	font-weight: 500 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
	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;
}

@layer tokens {
	:root {
		/* 1. Brandbook-kleuren (primitieven, alleen in dit bestand gebruiken) */
		--sd-linnen: #f6f0e9;
		--sd-poeder: #efdcd5;
		--sd-rose: #ddb8ac;
		--sd-zand: #d9c1a8;     /* accent en haarlijnen, nooit voor tekst (1,7:1 op wit) */
		--sd-terra: #a65d3f;    /* knoppen en CTA; wit erop 4,9:1 */
		--sd-terra-dark: #8e4d33;
		--sd-cacao: #8a6552;    /* subtekst: 5,2:1 op wit, 4,6:1 op linnen; NIET op poeder (3,9:1) */
		--sd-espresso: #3e2a22; /* tekst: 13,5:1 op wit */
		--sd-white: #fff;
		--sd-ster: #f5a623;     /* reviewsterren bij producten (geel-oranje, alleen decoratief) */

		/* 2. Rollen */
		--hx-color-bg: var(--sd-white);
		--hx-color-surface-1: var(--sd-linnen);
		--hx-color-surface-2: var(--sd-poeder);
		--hx-color-surface-3: var(--sd-rose);
		--hx-color-text-1: var(--sd-espresso);
		--hx-color-text-2: var(--sd-cacao);
		--hx-color-border: var(--sd-zand);
		--hx-color-border-strong: var(--sd-cacao);
		--hx-color-brand: var(--sd-terra);
		--hx-color-brand-hover: var(--sd-terra-dark);
		--hx-color-brand-subtle: var(--sd-poeder);
		--hx-color-on-brand: var(--sd-white);
		--hx-color-accent: var(--sd-espresso);
		--hx-color-accent-hover: var(--sd-cacao);
		--hx-color-accent-subtle: var(--sd-linnen);
		--hx-color-on-accent: var(--sd-white);
		--hx-color-link: var(--sd-terra-dark);
		--hx-color-link-hover: var(--sd-espresso);
		--hx-color-focus: var(--sd-terra);
		--hx-color-selection: var(--sd-poeder);
		--hx-color-field-border: var(--sd-cacao);
		--hx-shadow-color: 18 29% 19%; /* espresso */

		/* 3. Typografie: maten exact uit de demo (h1 38-56px, h2 32-40px, h3 22-26px, tekst 15px) */
		--hx-font-body: "Inter", "Helvetica Neue", Arial, var(--hx-font-system);
		--hx-font-display: "Cormorant Garamond", Georgia, "Times New Roman", var(--hx-font-serif-system);
		--hx-heading-weight: var(--hx-weight-semibold);
		--hx-heading-leading: 1.15;
		--hx-heading-tracking: var(--hx-tracking-normal);
		--hx-step--2: 0.75rem;                            /* 12px: eyebrow, labels */
		--hx-step--1: 0.8125rem;                          /* 13px: kleine tekst */
		--hx-step-0: 0.9375rem;                           /* 15px: lopende tekst */
		--hx-step-1: clamp(0.9375rem, 1.2vw, 1.0625rem);  /* 15-17px: lead */
		--hx-step-2: clamp(1.375rem, 1.8vw, 1.625rem);    /* 22-26px: h3 */
		--hx-step-3: clamp(1.75rem, 2.3vw, 2rem);         /* 28-32px: kleine h2 */
		--hx-step-4: clamp(2rem, 2.8vw, 2.5rem);          /* 32-40px: h2 */
		--hx-step-5: clamp(2.375rem, 3.9vw, 3.5rem);      /* 38-56px: h1 */
		--hx-tracking-wide: 0.13em;                       /* eyebrow */

		/* 4. Vorm, ruimte, beweging */
		--hx-container-max: 82rem;                        /* 1312px */
		--hx-gutter: clamp(1.25rem, 4.4vw, 4rem);         /* 20-64px */
		--hx-section-space: clamp(4rem, 6.7vw, 6rem);     /* 64-96px */
		--hx-radius-control: var(--hx-radius-s);          /* 4px */
		--hx-radius-btn: var(--hx-radius-s);
		--hx-radius-card: var(--hx-radius-m);             /* 8px */
		--hx-radius-media: var(--hx-radius-s);
		--hx-ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
		--hx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
		--hx-duration-base: 250ms;

		/* Ruimte: vaste stappen zoals de demo (4/8/12/16/24/32/48/64/96px) in plaats van de vloeiende Hilux-schaal;
		   paren schalen van 320 tot 1440px tussen twee stappen. */
		--hx-space-3xs: 0.25rem;
		--hx-space-2xs: 0.5rem;
		--hx-space-xs: 0.75rem;
		--hx-space-s: 1rem;
		--hx-space-m: 1.5rem;
		--hx-space-l: 2rem;
		--hx-space-xl: 3rem;
		--hx-space-2xl: 4rem;
		--hx-space-3xl: 6rem;
		--hx-space-3xs-2xs: clamp(0.25rem, 0.1786rem + 0.3571vw, 0.5rem);
		--hx-space-2xs-xs: clamp(0.5rem, 0.4286rem + 0.3571vw, 0.75rem);
		--hx-space-xs-s: clamp(0.75rem, 0.6786rem + 0.3571vw, 1rem);
		--hx-space-s-m: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
		--hx-space-m-l: clamp(1.5rem, 1.3571rem + 0.7143vw, 2rem);
		--hx-space-l-xl: clamp(2rem, 1.7143rem + 1.4286vw, 3rem);
		--hx-space-xl-2xl: clamp(3rem, 2.7143rem + 1.4286vw, 4rem);
		--hx-space-2xl-3xl: clamp(4rem, 3.4286rem + 2.8571vw, 6rem);
		--hx-space-s-l: clamp(1rem, 0.7143rem + 1.4286vw, 2rem);
		--hx-space-m-xl: clamp(1.5rem, 1.0714rem + 2.1429vw, 3rem);
		--hx-space-l-2xl: clamp(2rem, 1.4286rem + 2.8571vw, 4rem);
		--hx-space-l-3xl: clamp(2rem, 0.8571rem + 5.7143vw, 6rem);
		--hx-space-xl-3xl: clamp(3rem, 2.1429rem + 4.2857vw, 6rem);

		/* Vaste tekstmaten uit de demo die niet op de typeschaal vallen. */
		--hx-weight-light: 300;
		--sd-text-2xs: 0.6875rem; /* 11px: merk op productkaart */
		--sd-text-s: 0.875rem;    /* 14px: kleine knop, meta */
		--sd-text-m: 1rem;        /* 16px */
		--sd-text-card: 1.1875rem; /* 19px: titel productkaart */
		--sd-text-h3: 1.625rem;   /* 26px: vaste h3 */
		--sd-text-h2s: 2rem;      /* 32px: kleine h2 */
		--sd-duration-zoom: 1s;   /* fotozoom bij hover */
		--sd-btn-height: 3rem;    /* 48px: knop zoals de demo */
		--sd-btn-height-l: 3.5rem;
		--sd-btn-height-s: 2.5rem;
		--hx-reveal-distance: 1.375rem; /* demo: fade-up 22px */
		--hx-duration-reveal: 800ms;
	}

	/* Donkere band (demo: section--cocoa): espresso met witte tekst. */
	[data-theme="dark"] {
		--hx-color-bg: var(--sd-espresso);
		--hx-color-surface-1: var(--sd-espresso);
		--hx-color-surface-2: var(--sd-cacao);
		--hx-color-surface-3: var(--sd-cacao);
		--hx-color-text-1: var(--sd-white);
		--hx-color-text-2: var(--sd-linnen);
		--hx-color-border: var(--sd-cacao);
		--hx-color-border-strong: var(--sd-zand);
		--hx-color-brand: var(--sd-white);
		--hx-color-brand-hover: var(--sd-poeder);
		--hx-color-brand-subtle: var(--sd-cacao);
		--hx-color-on-brand: var(--sd-espresso);
		--hx-color-link: var(--sd-white);
		--hx-color-link-hover: var(--sd-poeder);
		--hx-color-focus: var(--sd-poeder);
	}

	/* Op Poeder haalt Cacao geen 4,5:1: subtekst wordt daar Espresso. */
	[data-surface="2"] {
		--hx-color-text-2: var(--sd-espresso);
	}
}
