/* ==========================================================================
   DESIGN TOKENS — Inside Manilva (visual variant 4: Moscatel wine, Duquesa turquoise,
   vineyard green and sand; Lora and Nunito Sans). 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: "Lora";
	src: url("../fonts/lora-latin-variable.woff2") format("woff2");
	font-weight: 400 700;
	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: "Nunito Sans";
	src: url("../fonts/nunito-sans-latin-variable.woff2") format("woff2");
	font-weight: 200 1000;
	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: #4A1F3D;          /* Moscatel wine — primary (12.2:1 on sand) */
	--da-blue-deep: #35152B;     /* footer */
	--da-blue-mid: #5E2D4F;      /* raised surfaces on dark */
	--da-terracotta: #138585;    /* Duquesa turquoise — decorative use, large type (4.0:1 on sand) */
	--da-terracotta-strong: #0B6B6E; /* turquoise for text/buttons on light (AA 6.3:1 with white, 5.7:1 on sand) */
	--da-terracotta-soft: #6FD3CF;   /* turquoise on dark backgrounds (AA 7.7:1 on wine) */
	--da-sage: #7E9A52;          /* vineyard green — rules, fills */
	--da-sage-strong: #55702F;   /* vineyard green for text (AA 5.1:1 on sand) */
	--da-sage-tint: #ECF0E2;
	--da-surface: #F8F3EA;       /* sand surface */
	--da-surface-deep: #EFE7D8;
	--da-white: #FFFFFF;

	/* ---- Text colours derived from the primary (not pure black) ------- */
	--da-ink: #4A1F3D;           /* headings — 12.2:1 on sand */
	--da-text: #2E2430;          /* body — 13.5:1 on sand */
	--da-text-muted: #675C66;    /* secondary — 5.8:1 on sand */
	--da-text-on-dark: #FFFFFF;
	--da-text-on-dark-muted: #E3CFDD; /* 9.2:1 on wine */
	--da-rule: #DDD5C8;
	--da-rule-strong: #4A1F3D;
	--da-rule-on-dark: rgba(255, 255, 255, 0.2);
	--da-border-input: #7F7480;  /* 4.5:1 on white — WCAG 1.4.11 */

	/* ---- Semantic ----------------------------------------------------- */
	--da-bg: var(--da-surface);
	--da-accent: var(--da-terracotta-strong);
	--da-focus: #138585;
	--da-error: #A12B1F;         /* 6.9:1 on white */
	--da-success: #2F5E43;
	--da-verify-bg: #FBE6C2;
	--da-verify-text: #6B3A0C;
	--da-overlay: rgba(53, 21, 43, 0.52);
	--da-placeholder: #E6DCCB;
	--da-placeholder-dark: #6B3A5E;

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

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