/* ==========================================================================
   DESIGN TOKENS — Hello Chios (visual variant 5: black-pebble charcoal, Aegean blue,
   Mesta stone and whitewash; EB Garamond and Commissioner). The variable names
   are shared with variant 1 (--da-blue is the primary colour,
   --da-terracotta the accent).
   All colour, type, spacing, radius, motion and layout values live here.
   ========================================================================== */

/* Self-hosted fonts (OFL). Latin subset, variable weight. */
@font-face {
	font-family: "EB Garamond";
	src: url("../fonts/eb-garamond-latin-variable.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
	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: "Commissioner";
	src: url("../fonts/commissioner-latin-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	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;
}

:root {
	/* ---- Brand palette ------------------------------------------------ */
	--da-blue: #1F2428;          /* black-pebble charcoal (Mavra Volia) — primary (14.8:1 on whitewash) */
	--da-blue-deep: #15191C;     /* footer */
	--da-blue-mid: #2C3338;      /* raised surfaces on dark */
	--da-terracotta: #1C70B5;    /* Aegean blue — decorative use, large type (4.9:1 on whitewash) */
	--da-terracotta-strong: #155C96; /* Aegean blue for text/buttons on light (AA 7.0:1 with white, 6.6:1 on whitewash) */
	--da-terracotta-soft: #7FC0F0;   /* Aegean blue on dark backgrounds (AA 8.0:1 on charcoal) */
	--da-sage: #B38B5D;          /* Mesta stone — rules, fills */
	--da-sage-strong: #7A5A35;   /* Mesta stone for text (AA 5.9:1 on whitewash) */
	--da-sage-tint: #F1EBE1;
	--da-surface: #FAF8F4;       /* whitewash surface */
	--da-surface-deep: #F0ECE4;
	--da-white: #FFFFFF;

	/* ---- Text colours derived from the primary (not pure black) ------- */
	--da-ink: #1F2428;           /* headings — 14.8:1 on whitewash */
	--da-text: #24282C;          /* body — 14.0:1 on whitewash */
	--da-text-muted: #5D646A;    /* secondary — 5.7:1 on whitewash */
	--da-text-on-dark: #FFFFFF;
	--da-text-on-dark-muted: #C9D2D9; /* 10.2:1 on charcoal */
	--da-rule: #DCD8D0;
	--da-rule-strong: #1F2428;
	--da-rule-on-dark: rgba(255, 255, 255, 0.2);
	--da-border-input: #787F86;  /* 4.1:1 on white — WCAG 1.4.11 */

	/* ---- Semantic ----------------------------------------------------- */
	--da-bg: var(--da-surface);
	--da-accent: var(--da-terracotta-strong);
	--da-focus: #1C70B5;
	--da-error: #A12B1F;         /* 6.9:1 on white */
	--da-success: #2F5E43;
	--da-verify-bg: #FBE6C2;
	--da-verify-text: #6B3A0C;
	--da-overlay: rgba(21, 25, 28, 0.52); /* the full-screen hero overlay, as on variant 1 */
	--da-placeholder: #E4DFD6;
	--da-placeholder-dark: #3A434A;

	/* ---- Typography --------------------------------------------------- */
	--da-font-serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--da-font-sans: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--da-fs-xs: 0.8125rem;                                  /* 13 */
	--da-fs-sm: 0.9375rem;                                  /* 15 */
	--da-fs-base: 1.0625rem;                                /* 17 */
	--da-fs-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	--da-fs-lg: clamp(1.3125rem, 1.15rem + 0.7vw, 1.75rem);
	--da-fs-xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
	--da-fs-2xl: clamp(2rem, 1.45rem + 2.4vw, 3.5rem);
	--da-fs-3xl: clamp(2.5rem, 1.6rem + 4vw, 5.25rem);
	--da-fs-display: clamp(2.75rem, 1.4rem + 6vw, 7rem);

	--da-lh-tight: 1.05;
	--da-lh-heading: 1.15;
	--da-lh-body: 1.65;
	--da-tracking-caps: 0.14em;
	--da-measure: 68ch;           /* max line length for reading */
	--da-measure-narrow: 52ch;

	/* ---- Spacing (4px base) ------------------------------------------- */
	--da-space-1: 0.25rem;
	--da-space-2: 0.5rem;
	--da-space-3: 0.75rem;
	--da-space-4: 1rem;
	--da-space-5: 1.5rem;
	--da-space-6: 2rem;
	--da-space-7: 3rem;
	--da-space-8: 4rem;
	--da-space-9: 6rem;
	--da-space-10: 8rem;
	--da-section-y: clamp(4.5rem, 3rem + 6vw, 9.5rem);
	--da-gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
	--da-grid-gap: clamp(1.25rem, 0.75rem + 2vw, 3rem);

	/* ---- Layout ------------------------------------------------------- */
	--da-container: 1320px;
	--da-header-h: 4.25rem;

	/* ---- Radii (restrained, editorial) -------------------------------- */
	--da-radius-sm: 4px;
	--da-radius: 6px;
	--da-radius-lg: 12px;

	/* ---- Motion ------------------------------------------------------- */
	--da-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--da-dur: 220ms;
	--da-dur-reveal: 800ms;

	/* ---- Elevation ---------------------------------------------------- */
	--da-shadow: 0 1px 2px rgba(31, 36, 40, 0.06), 0 12px 32px rgba(31, 36, 40, 0.08);
}

@media (min-width: 960px) {
	:root {
		--da-header-h: 5rem;
	}
}
