/*
 * Washier — design tokens voor index2
 * ------------------------------------
 * Bron: "Warm Editorial Nocturne (Light)".
 * Eén warm, redactioneel lichtpalet: perkament, espresso, perzik, salie,
 * ochre en koraal. Geen losse donkere variant meer; alle componenten halen
 * kleur, ruimte, typografie, radius, schaduw en motion uit dit bestand.
 */

:root {
	/* ── Ruimte ───────────────────────────────────────────────────────── */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 14px;
	--space-4: 20px;
	--space-5: 28px;
	--space-6: 40px;
	--space-8: 48px;
	--space-10: 56px;
	--space-12: 64px;
	--space-16: 80px;
	--gutter: 0px;
	/* Marge van de pagina links/rechts: zit op body (de oude sitestijl gaf
	   daar 20px). Eén knop voor alle index2-pagina's. */
	--page-gutter: 15px;
	--section-gap: clamp(20px, 5vw, 28px);
	--card-pad: clamp(14px, 4vw, 20px);

	/* Componentmaten: één standaard per rol. */
	--control-height: 44px;
	--control-height-sm: 36px;
	--control-pad-y: 10px;
	--control-pad-x: 12px;
	--icon-tile-size: 32px;
	--icon-tile-size-sm: 24px;
	--close-size: 34px;
	--avatar-size: 54px;
	--avatar-ring: 3px;

	/* ── Vorm ─────────────────────────────────────────────────────────── */
	--radius-xs: 4px;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-sheet: 24px;
	--radius-pill: 9999px;
	--radius-pill-soft: 10px;
	/* Semantische aliassen: gebruik deze in componenten. */
	--radius-card: var(--radius-xl);
	--radius-tile: var(--radius-md);
	--radius-input: var(--radius-sm);

	/* ── Typografie ───────────────────────────────────────────────────── */
	--font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-serif: Georgia, "Times New Roman", serif;
	--font-mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
	--font-emphasis: "Fraunces", var(--font-serif);
	--text-3xs: 0.5625rem;  /* 9px */
	--text-2xs: 0.625rem;   /* 10px */
	--text-xs: 0.6875rem;   /* 11px */
	--text-xs-plus: 0.75rem;/* 12px */
	--text-sm: 0.8125rem;   /* 13px */
	--text-base: 0.8125rem; /* 13px — 1px kleiner dan de oude 14px basis */
	--text-md: 1rem;        /* 16px */
	--text-lg: 1.25rem;     /* 20px */
	--text-xl: 1.5rem;      /* 24px */
	--text-2xl: 1.875rem;   /* 30px */
	--leading-tight: 1.2;
	--leading-snug: 1.35;
	--leading-normal: 1.55;
	--tracking-tight: -0.03em;
	--tracking-snug: -0.02em;
	--tracking-tight-sm: -0.01em;
	--tracking-normal: 0.02em;
	--tracking-wide-sm: 0.04em;
	--tracking-wide-md: 0.06em;
	--tracking-wide-lg: 0.08em;
	--tracking-wide: 0.12em;
	--tracking-label: var(--tracking-wide);
	--leading-compact: 1.15;
	--leading-snug-sm: 1.3;
	--leading-comfort: 1.45;
	--leading-label: 1.35;
	--label-size: var(--text-xs);
	--label-weight: 600;
	--meta-size: var(--text-2xs);
	--meta-weight: 500;
	--micro-size: var(--text-3xs);
	--body-size: var(--text-base);
	--value-size: var(--text-sm);
	--card-title-size: 1.0625rem;
	--section-title-size: var(--text-md);
	--accordion-title-size: var(--text-md);
	--display-title-size: 1.6rem;
	--display-title-leading: 1.18;
	--display-title-pad: 7px;
	--detail-title-size: clamp(1.55rem, 6.4vw, 2rem);
	--detail-title-size-sm: 1.4rem;
	--icon-action-size: 34px;

	/* ── Motion ───────────────────────────────────────────────────────── */
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
	--dur-fast: 150ms;
	--dur-base: 220ms;
	--dur-slow: 300ms;

	/* ── Diepte ───────────────────────────────────────────────────────── */
	--shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.04);
	--shadow-sm: 0 2px 8px -2px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.03);
	--shadow-md: 0 12px 28px -16px rgba(28, 25, 23, 0.18), 0 2px 6px rgba(28, 25, 23, 0.04);
	--shadow-lg: 0 24px 48px -24px rgba(28, 25, 23, 0.22), 0 4px 12px rgba(28, 25, 23, 0.05);
	--shadow-sheet: 0 -20px 56px -28px rgba(28, 25, 23, 0.26);
	--shadow-glow: 0 0 20px -5px rgba(232, 169, 122, 0.2);
	--shadow-tabbar: 0 -6px 18px -12px rgba(28, 25, 23, 0.18);
	--shadow-badge: 0 1px 4px rgba(28, 25, 23, 0.18);

	/* ── Glas en lagen ────────────────────────────────────────────────── */
	--blur: 14px;
	--z-nav: 70;
	--z-tabbar: 80;
	--z-scrim: 90;
	--z-sheet: 100;
	--z-toast: 120;
	/* Lokale stapeling binnen een component (bijv. node of navknop). */
	--z-raised: 2;
	/* Boven alle globale site- en JS-overlays (o.a. 10000), onder de browserlimiet. */
	--z-overlay: 99999;

	/* ── Kleuren ──────────────────────────────────────────────────────── */
	--bg: #fff8f5;
	--surface-1: #ffffff;
	--surface-2: #faf4ef;
	--surface-3: #f5eee9;
	--surface-sheet: #fff8f5;
	--border: rgba(140, 130, 122, 0.16);
	--border-strong: #d6cec7;
	--text: #1c1917;
	--text-secondary: #57534e;
	--text-muted: #78716c;
	--color-primary: #e8a97a;
	--color-primary-dark: #693d17;
	--color-secondary: #a8c79a;
	--color-secondary-dark: #284521;
	--color-tertiary: #e8be6c;
	--color-tertiary-dark: #412d00;
	--color-quaternary: #d46b7a;
	--color-quaternary-dark: #5a1320;
	--accent: #e8a97a;
	--accent-soft: #ffdcc4;
	--accent-strong: #693d17;
	--on-accent: #4d2602;
	--venue-action: #631523;
	/* Venue-bezoekkaarten (statsdetail in de index2-overlay). */
	--venue-visit-bg: #fcf7f4;
	--venue-visit-card-border: #efe8e3;
	--venue-visit-soft: #fce8ee;
	--venue-visit-soft-border: #f4c6d2;
	--venue-visit-accent: #631523;
	--venue-visit-dot: #d16b7c;
	--venue-visit-track: #f5efea;
	--venue-visit-fill: #d16b7c;
	--on-inverse: #ffffff;
	--success: #7d9b76;
	--success-soft: #ccecbc;
	--warning: #5e4300;
	--warning-soft: #ffdea4;
	--scrim: rgba(28, 25, 23, 0.3);
	--tab-bg: rgba(255, 248, 245, 0.92);
	--focus-ring: rgba(232, 169, 122, 0.45);
	--on-inverse-border: color-mix(in srgb, var(--on-inverse) 25%, transparent);
	--on-inverse-fill: color-mix(in srgb, var(--on-inverse) 14%, transparent);
	--on-inverse-fill-strong: color-mix(in srgb, var(--on-inverse) 24%, transparent);
	--photo-caption-scrim-strong: rgba(28, 25, 23, 0.95);
	--photo-caption-scrim-mid: rgba(28, 25, 23, 0.45);
	--photo-caption-scrim-none: rgba(28, 25, 23, 0);
	--photo-caption-gradient: radial-gradient(ellipse 50% 100% at left bottom, var(--photo-caption-scrim-strong) 0%, var(--photo-caption-scrim-mid) 45%, var(--photo-caption-scrim-none) 100%);
	--photo-title-gradient: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--text) 82%, var(--accent-strong)) 0%, var(--text) 72%);

	/* Hero (licht redactioneel). */
	--hero-from: #e8a97a;
	--hero-to: #d99564;
	--hero-peach: #693d17;
	--hero-peach-soft: #ffdcc4;
	--hero-amber: #e8be6c;
	--hero-tile-bg: rgba(232, 169, 122, 0.1);
	--hero-tile-border: rgba(140, 130, 122, 0.16);
	--hero-pill-bg: #faf4ef;
	--hero-icon-tile: #ffdcc4;
	--hero-green: #a8c79a;
	--dark-brown: #1c1917;

	/* Gekleurde vlakken met lichte tekst binnen het palet. */
	--hero-bg: #e8a97a;
	--hero-bg-strong: #693d17;
	--hero-border: #4d2602;
	--hero-on-bg: #f5eee9;
	--hero-on-bg-muted: #ffdcc4;
	--checkin-bg: #a8c79a;
	--checkin-bg-strong: #284521;
	--checkin-border: #1d3616;
	--checkin-on-bg: #f5eee9;
	--checkin-on-bg-muted: #ccecbc;

	/* ActivityGroupCard binnen donkere check-ins. */
	--activity-group-surface: #495e3e;
	--activity-group-on: #ffffff;
	--activity-group-block-bg: rgba(255, 255, 255, 0.06);
	--activity-group-open-header-bg: rgba(0, 0, 0, 0.14);
	--activity-group-open-body-bg: rgba(255, 255, 255, 0.04);
	--activity-group-separator: rgba(255, 255, 255, 0.08);
	--activity-group-chip-bg: rgba(255, 255, 255, 0.10);
	--activity-group-chevron: rgba(255, 255, 255, 0.75);
	--activity-group-tree: rgba(255, 255, 255, 0.16);
	--activity-group-icon: rgba(255, 255, 255, 0.90);
	--activity-node: #e8c5a8;
	--activity-item-divider: rgba(255, 255, 255, 0.08);
	--activity-item-time: rgba(255, 255, 255, 0.55);
	--activity-item-subtitle: rgba(255, 255, 255, 0.72);
	--activity-rating: #e8c5a8;
	--activity-artist: #e8c5a8;
	--activity-rate-link: #e8c5a8;
	--activity-gold-bg: rgba(232, 197, 168, 0.08);
	--activity-gold-glow: rgba(232, 197, 168, 0.28);
	--activity-light-gold-bg: rgba(232, 169, 122, 0.12);
	--activity-light-gold-glow: rgba(232, 169, 122, 0.22);

	/* Stop- en ritkaarten (licht). */
	--stop-bg-from: #ffffff;
	--stop-bg-to: #faf4ef;
	--stop-border: rgba(140, 130, 122, 0.16);
	--stop-quote-bar: #e8a97a;
	--ride-bg: #faf4ef;
	--ride-border: rgba(140, 130, 122, 0.16);
	--ride-pill: #f5eee9;
	--timeline-rail: #d6cec7;
	--node-stop-bg: #e8a97a;
	--node-stop-icon: #ffffff;
	--node-transport-bg: #f5eee9;
	--node-transport-icon: #78716c;
	--rating: #e8be6c;
	--weather-line: #57534e;
	--nav-active: #693d17;

	/* Dagbijlage: WEER en VRIENDEN als afgesloten dossier onder de tijdlijn. */
	--appendix-bg: #f6efea;
	--appendix-border: #eae1da;
	--appendix-divider: #dfd8d4;
	--appendix-rule: #e4dad3;
	--appendix-weather-bg: var(--surface-1);
	--appendix-weather-border: #d7e0ce;

	/* Vriendenrij: componenttokens op het hoofdpalet. */
	--friend-card-bg: var(--surface-1);
	--friend-title: var(--text);
	--friend-link: var(--color-primary-dark);
	--friend-ring-warm: var(--color-primary);
	--friend-ring-green: var(--color-secondary-dark);
	--friend-avatar-bg: var(--surface-3);
	--friend-avatar-text: var(--text-muted);
	--friend-loc-bg: color-mix(in srgb, var(--color-secondary-dark) 58%, var(--color-secondary) 42%);
	--friend-name: var(--text-muted);
	--friend-name-active: var(--text);
	--friend-divider: var(--border);

	/* Weergrafiek in de dagbijlage. */
	--app-width: 448px;
	--app-bottom-pad: 132px;
	--status-dot-size: 5px;
	--hero-photo-size: 96px;
	--hero-photo-size-sm: 80px;
	--photo-tile-height: 91px;
	--map-height: 120px;
	--week-photo-size: 56px;
	--friend-item-width: 68px;
	--friend-loc-max: 64px;
	--friend-emoji-size: 21px;
	--appendix-icon-size: 13px;
	--photo-nav-size: 40px;
	--search-icon-left: 14px;
	--search-input-pad-left: 42px;
	--tabbar-column: 56px;
	--tabbar-column-sm: 50px;
	--tabbar-add-size: 52px;
	--tabbar-add-size-sm: 46px;
	--tabbar-strip: 5px;
	--tabbar-pad: 6px;
	--tab-height: 48px;
	--tab-icon-width: 32px;
	--tab-icon-height: 24px;
	--tab-add-lift: 9px;
	--badge-size: 15px;

	/* Herbruikbare diepte- en bewegingswaarden. */
	--focus-outline: 3px solid var(--focus-ring);
	--focus-outline-offset: 2px;
	--shadow-focus: 0 0 0 3px var(--focus-ring);
	--shadow-selected: 0 0 0 1px var(--accent);
	--shadow-photo: 0 24px 60px color-mix(in srgb, var(--text) 72%, transparent);
	--shadow-tile: 0 2px 8px rgba(28, 25, 23, 0.03);
	--shadow-tile-hover: 0 4px 14px rgba(28, 25, 23, 0.06);
	--shadow-add: 0 8px 18px color-mix(in srgb, var(--accent) 32%, transparent);
	--gradient-photo-scrim: linear-gradient(to top, rgba(28, 25, 23, 0.82), rgba(28, 25, 23, 0));
	--gradient-overlay-caption: linear-gradient(transparent, rgba(28, 25, 23, 0.72));
	--dur-details: 0.6s;
	--dur-carousel: 1.95s;
	--dur-venue: 1.7s;
	--dur-gold: 5s;
	--blur-strong: 22px;
	--blur-card: 6px;
	--blur-photo: 10px;
	--blur-subtle: 3px;
	--blur-xs: 2px;

	--weather-chart-width: 322px;

	/* Dagtijdlijn (journey). */
	--journey-bar-height: 10px;
	--journey-row-height: 16px;
	--journey-node-size: 8px;

	/* Tijdlijn: één maat voor rail, knoop en stip. */
	--timeline-gutter: 28px;
	--timeline-rail-x: 9px;
	--timeline-rail-width: 2px;
	--timeline-node-x: -26.5px;
	--timeline-node-size: 16px;
	--timeline-node-dot: 6px;
	--timeline-node-border: 2px;
	--stop-title-size: 1.5625rem;
	--stop-title-size-collapsed: 1.3125rem;
	--stop-title-size-travel: 1.0625rem;

	/* Categorie-accenten (tijdlijn, sheets, iconen). */
	--cat-checkin: #693d17;
	--cat-checkin-soft: #ffdcc4;
	--cat-travel: #7d9b76;
	--cat-travel-soft: #ccecbc;
	--cat-photo: #d99564;
	--cat-photo-soft: #fcebef;
	--cat-music: #d46b7a;
	--cat-music-soft: #fcebef;
	--cat-book: #5e4300;
	--cat-book-soft: #ffdea4;
	--cat-movie: #d46b7a;
	--cat-movie-soft: #fcebef;
	--cat-tv: #7d9b76;
	--cat-tv-soft: #ccecbc;
	--cat-game: #693d17;
	--cat-game-soft: #ffdcc4;
	--cat-activity: #5e4300;
	--cat-activity-soft: #ffdea4;
	--cat-weather: #d99564;
	--cat-weather-soft: #ffdcc4;
	--cat-coding: #693d17;
	--cat-coding-soft: #f5eee9;

	/* Alias-tokens volgens Stitch-categorieën. */
	--cat-laden: var(--cat-checkin);
	--cat-eten: var(--cat-activity);
	--cat-rit: var(--cat-travel);
	--cat-verblijf: var(--cat-checkin);
	--cat-overig: var(--cat-tv);
}

/*
 * Donkere variant voor de snel-logchat in de plusje-overlay.
 * Geldt uitsluitend binnen de quick-overlay; de rest van index2 blijft licht.
 * De componenten blijven dezelfde tokens gebruiken en erven deze waarden.
 */
main.ys-page .ys-generic-overlay--quick {
	color-scheme: dark;
	--bg: #14100d;
	--surface-sheet: #17120f;
	--surface-1: #211a16;
	--surface-2: #1a1411;
	--surface-3: #2c231d;
	--border: rgba(246, 228, 210, 0.12);
	--border-strong: rgba(246, 228, 210, 0.28);
	--text: #f7efe7;
	--text-secondary: #d8c9bc;
	--text-muted: #a6968a;
	--accent: #e8a97a;
	--accent-soft: rgba(232, 169, 122, 0.16);
	--accent-strong: #f3c4a0;
	--on-accent: #2a1608;
	--on-inverse: #2a1608;
	--color-quaternary: #e08a96;
	--color-quaternary-dark: #f4b8c1;
	--success: #a8c79a;
	--warning: #f0cf8b;
	--warning-soft: rgba(120, 86, 20, 0.28);
	--scrim: rgba(8, 6, 5, 0.62);
	--focus-ring: rgba(232, 169, 122, 0.45);
	--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
	--shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, 0.75), 0 6px 16px rgba(0, 0, 0, 0.4);

	/* Goud voor het draaiende licht rond een niet-vandaag datum. */
	--quick-gold-1: #f7d88f;
	--quick-gold-2: #f0c96a;
	--quick-gold-3: #d9a944;
	--quick-gold-faint: rgba(240, 201, 106, 0.12);
	--quick-gold-border: rgba(240, 201, 106, 0.35);
	--quick-gold-glow: rgba(240, 201, 106, 0.45);
	--quick-gold-glow-soft: rgba(232, 190, 108, 0.22);
	--quick-gold-label: #f5d489;

	/* Licht tekstveld met donkere tekst, in een tint van de tertiary-kleur. */
	--quick-input-bg: #f6e6c4;
	--quick-input-bg-focus: #fff4d9;
	--quick-input-text: #2a1608;
	--quick-input-placeholder: #6b4f24;
	--quick-input-border: rgba(42, 22, 8, 0.22);
	--quick-input-border-focus: rgba(42, 22, 8, 0.5);
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--dur-fast: 1ms;
		--dur-base: 1ms;
		--dur-slow: 1ms;
	}
}
