/* Duguva "modern" layer: design tokens + base primitives. Owned by HEADER agent; other files only consume these. */
:root {
	--navy: #13223C;
	--navy-deep: #102C5B;
	--blue: #335CA2;
	--orange: #FF5B2E;
	--paper: #F4F6F9;
	--white: #FFFFFF;
	--ink: #0E1726;
	--muted: #5B6779;
	--line: #DCE2EB;
	--blue-tint: #E8EEF8;

	--font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--fs-display: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
	--fs-h2: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
	--fs-h3: 1.25rem;
	--fs-body: 1rem;
	--fs-small: .875rem;

	--r-control: 4px;
	--r-tile: 10px;
	--r-hero: 20px;
	--shadow-float: 0 1px 2px rgb(14 23 38 / .06), 0 12px 32px -8px rgb(14 23 38 / .22);
	--section: clamp(64px, 8vw, 120px);
	--max: 1280px;
	--gutter: clamp(16px, 4vw, 32px);

	--ease-out: cubic-bezier(.2, .7, .2, 1);
	--t-fast: 150ms;
	--t-med: 200ms;
}

body.modern {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.6;
	font-feature-settings: normal;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.modern h1, body.modern h2, body.modern h3, body.modern h4 {
	font-family: var(--font);
	font-weight: 600;
	letter-spacing: -.02em;
	text-wrap: balance;
}
body.modern h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.03em; }
body.modern h2 { font-size: var(--fs-h2); line-height: 1.1; }
body.modern h3 { font-size: var(--fs-h3); line-height: 1.3; }
body.modern p { text-wrap: pretty; }
body.modern .tnum, body.modern table { font-variant-numeric: tabular-nums; }

/* Focus: blue ring on light, white on dark (.on-dark or inside navy surfaces) */
body.modern :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
	border-radius: var(--r-control);
}
body.modern :where(.on-dark) :where(a, button, input, [tabindex]):focus-visible {
	outline-color: var(--white);
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; box-sizing: border-box;
	border-radius: var(--r-control); border: 1px solid transparent;
	font: 600 1rem/1 var(--font); letter-spacing: 0; text-decoration: none; cursor: pointer;
	transition: background-color var(--t-fast) ease-out, color var(--t-fast) ease-out, border-color var(--t-fast) ease-out, transform 80ms ease-out;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: #ff6f47; }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.on-dark .btn--secondary { color: var(--white); border-color: var(--white); }
.on-dark .btn--secondary:hover { background: var(--white); color: var(--navy); }

/* Signature strand rule (max one per page) */
.strand {
	display: block; width: 48px; height: 3px; border-radius: 1px;
	background: repeating-linear-gradient(115deg, var(--orange) 0 4px, transparent 4px 6px);
}

/* Text links */
body.modern .prose a:not(.btn), .link {
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
