/*
 * Design tokens for the three visitor-selectable styles and light/dark modes.
 * A = Field notes (default), B = Alpine, C = Expedition.
 * The head script (functions.php) sets data-style and data-mode on <html> before first paint.
 * Without JavaScript, the :root defaults (style A, mode follows the device) apply.
 * Nothing outside this file should hard-code a colour or a font.
 */

/* ---- Style A: Field notes (also the no-JS default) ---- */
:root {
	color-scheme: light;
	--osp-bg: #f6f2ea;
	--osp-surface: #fffdf8;
	--osp-ink: #241f18;
	--osp-muted: #6f665a;
	--osp-line: #e2dacb;
	--osp-accent: #2f5d3a;
	--osp-accent-ink: #ffffff;
	--osp-warm: #b5562a;
	--osp-hl: #fff1c9;
	--osp-shadow: 0 1px 2px rgba(60, 45, 20, .08), 0 6px 20px rgba(60, 45, 20, .06);
	--osp-font-heading: 'Fraunces', Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
	--osp-font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--osp-font-num: var(--osp-font-heading);
	--osp-radius: 14px;
	--osp-radius-sm: 8px;
	--osp-border-w: 1px;
	--osp-heading-weight: 700;
	--osp-heading-transform: none;
	--osp-heading-tracking: -.01em;
	--osp-header-rule: 1px solid var(--osp-line);
	--osp-focus: 3px solid var(--osp-warm);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-mode]) {
		color-scheme: dark;
		--osp-bg: #171512;
		--osp-surface: #211e19;
		--osp-ink: #efe8da;
		--osp-muted: #a79d8c;
		--osp-line: #38332a;
		--osp-accent: #7fb48a;
		--osp-accent-ink: #10200f;
		--osp-warm: #e08a5c;
		--osp-hl: #3b3318;
		--osp-shadow: none;
	}
}

html[data-style="a"][data-mode="light"] {
	color-scheme: light;
	--osp-bg: #f6f2ea; --osp-surface: #fffdf8; --osp-ink: #241f18; --osp-muted: #6f665a; --osp-line: #e2dacb;
	--osp-accent: #2f5d3a; --osp-accent-ink: #ffffff; --osp-warm: #b5562a; --osp-hl: #fff1c9;
	--osp-shadow: 0 1px 2px rgba(60, 45, 20, .08), 0 6px 20px rgba(60, 45, 20, .06);
}
html[data-style="a"][data-mode="dark"] {
	color-scheme: dark;
	--osp-bg: #171512; --osp-surface: #211e19; --osp-ink: #efe8da; --osp-muted: #a79d8c; --osp-line: #38332a;
	--osp-accent: #7fb48a; --osp-accent-ink: #10200f; --osp-warm: #e08a5c; --osp-hl: #3b3318; --osp-shadow: none;
}

/* ---- Style B: Alpine ---- */
html[data-style="b"] {
	--osp-font-heading: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--osp-font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--osp-font-num: var(--osp-font-heading);
	--osp-radius: 10px;
	--osp-radius-sm: 8px;
	--osp-heading-weight: 800;
	--osp-heading-tracking: -.02em;
	--osp-header-rule: 3px solid var(--osp-accent);
}
html[data-style="b"][data-mode="light"] {
	color-scheme: light;
	--osp-bg: #eef2f5; --osp-surface: #ffffff; --osp-ink: #14202b; --osp-muted: #5b6b79; --osp-line: #d5dde4;
	--osp-accent: #1f5f8b; --osp-accent-ink: #ffffff; --osp-warm: #b24e0e; --osp-hl: #fff3d6;
	--osp-shadow: 0 1px 2px rgba(20, 40, 60, .07), 0 8px 24px rgba(20, 40, 60, .07);
}
html[data-style="b"][data-mode="dark"] {
	color-scheme: dark;
	--osp-bg: #0f1720; --osp-surface: #17222e; --osp-ink: #e8eef3; --osp-muted: #93a3b2; --osp-line: #263544;
	--osp-accent: #6cb4e4; --osp-accent-ink: #08202f; --osp-warm: #f0924a; --osp-hl: #2e2a18; --osp-shadow: none;
}

/* ---- Style C: Expedition ---- */
html[data-style="c"] {
	--osp-font-heading: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
	--osp-font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--osp-font-num: var(--osp-font-heading);
	--osp-radius: 3px;
	--osp-radius-sm: 3px;
	--osp-border-w: 1.5px;
	--osp-heading-weight: 700;
	--osp-heading-transform: uppercase;
	--osp-heading-tracking: .015em;
	--osp-shadow: none;
	--osp-header-rule: 4px solid var(--osp-ink);
}
html[data-style="c"][data-mode="light"] {
	color-scheme: light;
	--osp-bg: #f1efe9; --osp-surface: #fbfaf6; --osp-ink: #1b1a17; --osp-muted: #67635a; --osp-line: #d9d5c8;
	--osp-accent: #c2410c; --osp-accent-ink: #ffffff; --osp-warm: #0f766e; --osp-hl: #ffe9d1;
}
html[data-style="c"][data-mode="dark"] {
	color-scheme: dark;
	--osp-bg: #121211; --osp-surface: #1c1b19; --osp-ink: #f1ede4; --osp-muted: #9a9488; --osp-line: #2f2d29;
	--osp-accent: #f97316; --osp-accent-ink: #1a0e03; --osp-warm: #2dd4bf; --osp-hl: #3a2412;
}
