/* ==========================================================================
   Design tokens (Figma 172:2 "UI komponenti", 267:2 v2, 190:2 mobile)
   Montserrat is a variable font (weights 500-700). One file, montserrat-latin-baltic.woff2 (built by
   tools/fonts/build.sh), holds Latin and every Latvian/Lithuanian/Estonian letter, so the Latvian site
   loads (and preloads) just that file. The other faces cover only code points outside its unicode-range,
   so the browser never fetches two files for one text: latin-ext without the Baltic letters, latin with
   the few symbols only its file has, cyrillic without U+2116.
   ========================================================================== */

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("../fonts/montserrat-latin-baltic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0100-0101, U+0104-0105, U+010C-010D, U+0112-0113, U+0116-0119, U+0122-0123, U+012A-012B, U+012E-012F, U+0136-0137, U+013B-013C, U+0145-0146, U+0160-0161, U+016A-016B, U+0172-0173, U+017D-017E, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2116, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("../fonts/montserrat-latin.woff2") format("woff2");
	unicode-range: U+0131, U+0152-0153, U+02BB-02BC, U+2009, U+200B, U+2032-2033, U+2044, U+2191, U+2193, U+2215;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0106-010B, U+010E-0111, U+0114-0115, U+011A-0121, U+0124-0129, U+012C-012D, U+0130, U+0132-0135, U+0138-013A, U+013D-0144, U+0147-0151, U+0154-015F, U+0162-0169, U+016C-0171, U+0174-017C, U+017F-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("../fonts/montserrat-cyrillic-ext.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Fallback shown until Montserrat arrives (font-display: swap): Arial scaled to Montserrat's width and
   vertical metrics, so the swap does not move the text. Values from the font files (tools: fontTools,
   Liberation Sans as Arial): average advance of Latvian text, ascent 968 and descent 251 per 1000. */
@font-face {
	font-family: "Montserrat Fallback";
	font-weight: 100 600;
	src: local("Arial"), local("ArialMT"), local("Liberation Sans");
	size-adjust: 113.75%;
	ascent-override: 85.1%;
	descent-override: 22.07%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Montserrat Fallback";
	font-weight: 700 900;
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold");
	size-adjust: 109.84%;
	ascent-override: 88.13%;
	descent-override: 22.85%;
	line-gap-override: 0%;
}

:root {
	/* Colours */
	--c-ink: #181716;          /* Grafīts: headings, text, primary buttons, dark bands */
	--c-ink-80: #3d3d3b;       /* Grafīts 80: button hover, lines on dark */
	--c-muted: #707372;        /* Pelēks: body text, kickers, labels */
	--c-muted-60: #9a9c9a;     /* Pelēks 60: placeholder, disabled text */
	--c-muted-40: #bdbbb6;     /* Pelēks 40: text on dark, separators */
	--c-placeholder: #d1cfca;  /* Vietturis: image placeholders */
	--c-line: #dedbd6;         /* Līnija: borders, dividers */
	--c-line-soft: #d1cfc9;    /* FAQ dividers */
	--c-bg-2: #eeefef;         /* Fons 2: alternate sections, active nav item */
	--c-bg: #f5f4f1;           /* Fons: page background, inputs */
	--c-white: #fff;           /* Balts: cards, forms */
	--c-error: #b3261e;
	--c-success: #2e7d32;
	--c-on-dark: #b2b2b0;      /* footer links */
	--c-on-dark-muted: #7a7a78;/* footer bottom bar */
	--c-on-dark-soft: #b8b8b5; /* CTA text */

	/* Machine status tags (267:2) */
	--c-status-ink: #181716;
	--c-status-amber: #f2a900; /* Drīz pieejama */
	--c-status-blue: #1e5aa8;  /* Drīzumā */
	--c-status-red: #b42318;   /* Pārdota */

	/* Thwaites banner */
	--c-thwaites: #001c41;
	--c-thwaites-accent: #faa61a;

	/* Type */
	--font: "Montserrat", "Montserrat Fallback", "Helvetica Neue", Arial, sans-serif;
	--fw-medium: 500;
	--fw-bold: 700;

	/* Layout */
	--container: 1400px;
	--gutter: 40px;
	--section-y: 70px;
	--header-h: 100px;
	--gap: 24px;

	/* Motion */
	--ease: ease;
	--t-fast: 200ms;
	--t-accordion: 250ms;
}

@media (max-width: 1023px) {
	:root {
		--gutter: 32px;
		--header-h: 64px;
		--section-y: 56px;
	}
}

@media (max-width: 767px) {
	:root {
		--gutter: 16px;
		--section-y: 48px;
	}
}
