/* ==========================================================================
   1 · TOKENS — every value from Style Guide v1, as CSS variables.
   Change a value here and it changes everywhere.
   ========================================================================== */

/* Fonts (self-hosted, latin subset, OFL licensed — see /assets/fonts) */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/fraunces-latin-500-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2");
}

:root {
	/* Brand colors */
	--navy: #0F2638;
	--teal: #0F5E58;
	--cta-green: #186B50;
	--cta-green-hover: #12553F;
	--coral: #E0473A;          /* logo only */
	--aqua: #E3F0EE;

	/* Backgrounds and lines */
	--cream: #FBF9F5;
	--white: #FFFFFF;
	--sand: #EFEAE2;
	--sand-line: #E2D9CA;
	--line: #E7E1D6;

	/* Logo */
	--logo-teal: #1E8F88;
	--logo-aqua: #8FD0CB;

	/* Text */
	--text: #2E3B45;
	--text-muted: #4A5560;
	--text-subtle: #5A6570;
	--on-dark: #E2ECF2;
	--on-dark-muted: #C3D4DE;
	--on-dark-accent: #9EDBD5;
	--on-teal: #E6F4F2;

	/* Context colors — sections override these (see layout.css [data-bg]),
	   so one .card / .eyebrow / .btn works on every background. */
	--bg: var(--cream);
	--fg: var(--text);
	--fg-muted: var(--text-muted);
	--fg-subtle: var(--text-subtle);
	--heading: var(--navy);
	--accent: var(--teal);
	--link: var(--teal);
	--border: var(--line);
	--surface: var(--white);

	/* Type */
	--font-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Sizes grow smoothly from phone (390px) to desktop (1280px). */
	--fs-hero: clamp(2.375rem, 1.5rem + 3.6vw, 4rem);         /* 38 → 64 */
	--fs-h2: clamp(2rem, 1.62rem + 1.57vw, 2.875rem);         /* 32 → 46 */
	--fs-h3: clamp(1.625rem, 1.57rem + 0.22vw, 1.75rem);      /* 26 → 28 */
	--fs-feature: clamp(1.25rem, 1.2rem + 0.22vw, 1.375rem);  /* 20 → 22 */
	--fs-lead: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem); /* 17 → 21 */
	--fs-body: clamp(1rem, 0.98rem + 0.11vw, 1.0625rem);      /* 16 → 17 */
	--fs-card-title: 1.25rem;                                 /* 20 */
	--fs-card: 0.96875rem;                                    /* 15.5 */
	--fs-small: 0.90625rem;                                   /* 14.5 (minimum) */
	--fs-button: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);     /* 15 → 16 */
	--fs-label: clamp(0.75rem, 0.73rem + 0.11vw, 0.8125rem);  /* 12 → 13 */

	--lh-tight: 1.1;
	--lh-snug: 1.25;
	--lh-body: 1.65;
	--tracking-label: 0.16em;
	--tracking-tagline: 0.08em;

	/* Spacing */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-section: clamp(3.5rem, 2.2rem + 5.4vw, 6.5rem);   /* 56 → 104 */
	--space-gutter: clamp(1.25rem, 0.98rem + 1.12vw, 2rem);   /* 20 → 32 */
	--space-head: 3rem;                                       /* 48 */
	--space-columns: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);     /* 32 → 56 */
	--space-card: clamp(1.25rem, 1.14rem + 0.45vw, 1.625rem); /* 20 → 26 */
	--space-grid: 1.25rem;                                    /* 20 */
	--content-max: 1240px;

	/* Shapes */
	--radius-pill: 999px;
	--radius-card: 22px;
	--radius-panel: 28px;
	--radius-arch: 180px;

	--shadow-soft: 0 1px 2px rgba(15, 38, 56, 0.04), 0 8px 24px rgba(15, 38, 56, 0.06);
	--shadow-lift: 0 2px 4px rgba(15, 38, 56, 0.06), 0 18px 48px rgba(15, 38, 56, 0.14);

	--focus-ring: 0 0 0 3px var(--white), 0 0 0 5px var(--teal);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--tap-min: 44px;
}
