/**
 * Wareoff design tokens.
 *
 * Every colour, size and duration the theme uses is a custom property here.
 * Components never use raw values. The second block hands the same values
 * to Wareoff Distribution Suite (its --wds-* tokens), so the plugin's own
 * screens follow the theme without copying their CSS.
 *
 * Contrast on white (WCAG): green-900 8.2, green-950 11.1, green-700 4.2
 * (large text and icons only), green-500 2.9 (fills only, never text),
 * ink 14.9, ink-muted 5.7, field border 3.7 (non-text minimum 3).
 */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/inter/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/inter/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/inter/inter-latin-700-normal.woff2") format("woff2");
}

/* A local fallback sized like Inter (0.8.0): while Inter loads, text set in
   Arial (or Liberation Sans, its metric twin on Linux) takes the same room,
   so the page does not jump when Inter arrives. Values from Inter's and
   Arial's font metrics. */
@font-face {
	font-family: "Inter Fallback";
	src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
	ascent-override: 90.2%;
	descent-override: 22.48%;
	line-gap-override: 0%;
	size-adjust: 107.4%;
}

:root {
	/* Brand */
	--wot-green-950: #06452d;
	--wot-green-900: #075b37;
	--wot-green-700: #0a8f48;
	--wot-green-500: #27ae60;
	--wot-green-100: #e8f2ec;
	--wot-green-50: #f1f7f3;

	/* Neutrals */
	--wot-ink: #172b24;
	--wot-ink-muted: #5d6a65; /* 0.6.0: was #65736b, below 4.5:1 on the soft status fills */
	--wot-ink-inverse: #ffffff;
	--wot-ink-inverse-muted: #c9d8cf;
	--wot-canvas: #f6f9f7;
	--wot-surface: #ffffff;
	--wot-line: #e5ece7;
	--wot-line-strong: #7a8981;

	/* Status: text colour on its soft background is at least 5.6 : 1 */
	--wot-success: #0b6b3a;
	--wot-success-soft: #e6f4ec;
	--wot-warning: #8a5300;
	--wot-warning-soft: #fdf1d8;
	--wot-danger: #b42318;
	--wot-danger-soft: #fdecea;
	--wot-info: #1d5c8a;
	--wot-info-soft: #e5f0f8;

	/* Roles */
	--wot-color-primary: var(--wot-green-900);
	--wot-color-primary-hover: var(--wot-green-950);
	--wot-color-accent: var(--wot-green-500);
	--wot-color-link: var(--wot-green-900);
	--wot-color-focus: var(--wot-green-900);

	/* Type */
	--wot-font-sans: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wot-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--wot-text-xs: 0.75rem;
	--wot-text-sm: 0.875rem;
	--wot-text-base: 1rem;
	--wot-text-lg: 1.125rem;
	--wot-text-xl: 1.25rem;
	--wot-text-2xl: 1.5rem;
	--wot-text-3xl: 1.875rem;
	--wot-text-4xl: 2.25rem;
	--wot-text-5xl: 3rem;
	--wot-leading-text: 1.5;
	--wot-leading-heading: 1.2;

	/* Space: 4 px base */
	--wot-space-1: 0.25rem;
	--wot-space-2: 0.5rem;
	--wot-space-3: 0.75rem;
	--wot-space-4: 1rem;
	--wot-space-5: 1.5rem;
	--wot-space-6: 2rem;
	--wot-space-7: 3rem;
	--wot-space-8: 4rem;
	--wot-space-9: 6rem;

	/* Shape */
	--wot-radius-control: 6px;
	--wot-radius-card: 10px;
	--wot-radius-pill: 999px;
	--wot-shadow-raised: 0 1px 2px rgba(23, 43, 36, 0.06), 0 4px 12px rgba(23, 43, 36, 0.06);
	--wot-shadow-menu: 0 8px 24px rgba(23, 43, 36, 0.14);

	/* Layout */
	--wot-container: 1240px;
	--wot-container-text: 760px;
	--wot-gutter: 1rem;
	--wot-header-height: 4.5rem;
	--wot-touch: 2.75rem;

	/* Motion */
	--wot-duration: 180ms;
	--wot-ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (min-width: 768px) {
	:root {
		--wot-gutter: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--wot-duration: 0ms;
	}
}

/* Wareoff Distribution Suite tokens, mapped to the theme's. :root:root
   outranks the plugin's own :root block whatever the load order. */
:root:root {
	--wds-color-primary: var(--wot-green-900);
	--wds-color-primary-strong: var(--wot-green-950);
	--wds-color-primary-soft: var(--wot-green-100);
	--wds-color-accent: var(--wot-green-500);
	--wds-color-accent-soft: var(--wot-green-50);
	--wds-color-ink: var(--wot-ink);
	--wds-color-ink-muted: var(--wot-ink-muted);
	--wds-color-line: var(--wot-line);
	--wds-color-surface: var(--wot-surface);
	--wds-color-canvas: var(--wot-canvas);
	--wds-color-success: var(--wot-success);
	--wds-color-success-soft: var(--wot-success-soft);
	--wds-color-warning: var(--wot-warning);
	--wds-color-warning-soft: var(--wot-warning-soft);
	--wds-color-danger: var(--wot-danger);
	--wds-color-danger-soft: var(--wot-danger-soft);
	--wds-color-info: var(--wot-info);
	--wds-color-info-soft: var(--wot-info-soft);
	--wds-radius-sm: var(--wot-radius-control);
	--wds-radius: var(--wot-radius-card);
	--wds-font-mono: var(--wot-font-mono);
}
