/* ==========================================================================
   DESIGN TOKENS — Discover Mijas (visual variant 3: azulete blue, whitewash and geranium
   red, with sierra pine; Newsreader and Source Sans 3). 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: "Newsreader";
	src: url("../fonts/newsreader-latin-variable.woff2") format("woff2");
	font-weight: 200 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: "Source Sans 3";
	src: url("../fonts/source-sans-3-latin-variable.woff2") format("woff2");
	font-weight: 200 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: #1F3570;          /* Azulete blue (the flowerpots of Mijas Pueblo) — primary */
	--da-blue-deep: #162857;     /* footer */
	--da-blue-mid: #2A4583;      /* raised surfaces on dark */
	--da-terracotta: #C8434E;    /* geranium red accent — decorative use, large type (4.5:1 on whitewash) */
	--da-terracotta-strong: #A8323C; /* geranium for text/buttons on light (AA 6.6:1 with white, 6.2:1 on whitewash) */
	--da-terracotta-soft: #F2959A;   /* geranium on dark backgrounds (AA 5.3:1 on blue) */
	--da-sage: #7A9670;          /* sierra pine — rules, fills */
	--da-sage-strong: #4C6644;   /* sierra pine for text (AA 6.0:1 on whitewash) */
	--da-sage-tint: #E7EDE3;
	--da-surface: #FAF8F3;       /* whitewash surface */
	--da-surface-deep: #EFEBE2;
	--da-white: #FFFFFF;

	/* ---- Text colours derived from the blue (not pure black) ---------- */
	--da-ink: #1F3570;           /* headings — 11.0:1 on whitewash */
	--da-text: #2B3048;          /* body — 12.2:1 on whitewash */
	--da-text-muted: #5A6078;    /* secondary — 5.9:1 on whitewash */
	--da-text-on-dark: #FFFFFF;
	--da-text-on-dark-muted: #C9D0E4; /* 7.6:1 on blue */
	--da-rule: #DAD7CF;
	--da-rule-strong: #1F3570;
	--da-rule-on-dark: rgba(255, 255, 255, 0.2);
	--da-border-input: #737993;  /* 4.3:1 on white — WCAG 1.4.11 */

	/* ---- Semantic ----------------------------------------------------- */
	--da-bg: var(--da-surface);
	--da-accent: var(--da-terracotta-strong);
	--da-focus: #C8434E;
	--da-error: #A12B1F;         /* 6.9:1 on white */
	--da-success: #2F5E43;
	--da-verify-bg: #FBE6C2;
	--da-verify-text: #6B3A0C;
	--da-overlay: rgba(22, 40, 87, 0.52);
	--da-placeholder: #E3DED3;
	--da-placeholder-dark: #34508F;

	/* ---- Typography --------------------------------------------------- */
	--da-font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--da-font-sans: "Source Sans 3", 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, 53, 112, 0.06), 0 12px 32px rgba(31, 53, 112, 0.08);
}

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