/*
	Named design values. Every colour, type size and spacing step used anywhere on the site is defined here and nowhere else, so the whole look can be changed from this one file.
	The map's own colours are in js/map/style.js, which reads the values it shares with the page from here.
*/

@font-face {
	font-family: "Overpass";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/static/fonts/overpass/overpass-latin-400.woff2") format("woff2");
	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: "Overpass";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/static/fonts/overpass/overpass-latin-ext-400.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Overpass";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/static/fonts/overpass/overpass-latin-600.woff2") format("woff2");
	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: "Overpass";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/static/fonts/overpass/overpass-latin-ext-600.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Overpass";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/static/fonts/overpass/overpass-latin-700.woff2") format("woff2");
	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: "Overpass";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/static/fonts/overpass/overpass-latin-ext-700.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Overpass";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("/static/fonts/overpass/overpass-latin-800.woff2") format("woff2");
	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: "Overpass";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("/static/fonts/overpass/overpass-latin-ext-800.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Overpass";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("/static/fonts/overpass/overpass-latin-900.woff2") format("woff2");
	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: "Overpass";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("/static/fonts/overpass/overpass-latin-ext-900.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
	/* Ground and ink. "Pavement" is the colour of open ground on the map and of the page behind panels. */
	--color-pavement: #e9ecea;
	--color-surface: #ffffff;
	--color-ink: #14213d;
	--color-ink-soft: #4a5568;
	--color-line: #cbd2cf;
	/* A fainter line, for dividing rows inside a panel. */
	--color-line-soft: #e1e5e3;
	/* The navy of the sky and water behind the front page's video, darker than ink, so the page has a colour before the video arrives. */
	--color-night: #0c1630;

	/* Signal yellow is reserved for the one main action and for the person's own position. */
	--color-signal: #ffc400;
	--color-signal-pressed: #e6b000;

	/* One colour per intent, like a transit line. Each is always shown with its letter as well, never alone. */
	--color-intent-known: #1f9d6b;
	--color-intent-new-friends: #2d6cdf;
	--color-intent-dating: #e5446d;
	--color-intent-activity: #f08a24;
	--color-intent-business: #6b5bd2;

	--color-danger: #c8102e;
	/* A proper name that could be mistaken for an ordinary word is set in this colour. */
	--color-proper-name: #c8102e;
	--color-focus: #2d6cdf;

	/* Map colours that the page also needs, for example in legends. */
	--color-water: #bcd3de;
	--color-park: #cfe0c3;

	/* Type. One family throughout. */
	--font-family: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-size-small: 0.8125rem;
	--font-size-body: 0.9375rem;
	--font-size-lead: 1.0625rem;
	--font-size-title: 1.375rem;
	--font-size-heading: 1.875rem;
	--font-size-display: clamp(2.5rem, 8vw, 4.5rem);
	--line-height-tight: 1.1;
	--line-height-body: 1.5;

	/* Spacing steps, in multiples of 4 pixels. */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 72px;

	/* Corners. A "plate" is a sign-shaped panel or button; "round" is for markers and pills. */
	--radius-plate: 8px;
	--radius-round: 999px;

	/* One shadow, for things that float over the map: a tight one that gives an edge and a wide one that gives height. */
	--shadow-float: 0 1px 2px rgb(20 33 61 / 0.1), 0 8px 24px rgb(20 33 61 / 0.16);

	/* How long a press or a panel takes to respond. */
	--duration-quick: 120ms;
	--duration-panel: 220ms;

	--header-height: 56px;

	/* How wide the list of people is beside the map on a wide screen. */
	--panel-width: 408px;
}
