/**
 * Design tokens.
 *
 * "Ember on charcoal": the amber, orange and red come straight from the phoenix
 * in the logo, the charcoal from its swoosh. Components read the --px-fg family
 * rather than fixed colours, so a dark section only has to redefine them.
 */

@font-face {
	font-family: "Sora";
	src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 800;
	font-style: normal;
	font-display: swap;
}

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

:root {
	/* Brand */
	--px-amber: #ffb000;
	--px-orange: #ff6a13;
	--px-red: #d7261e;
	--px-ember: #c2410c; /* Orange that is safe for text on a light ground. */
	--px-flame: linear-gradient(100deg, #ffb000 0%, #ff6a13 58%, #d7261e 100%);
	--px-flame-soft: linear-gradient(100deg, #ffb000 0%, #ff8a0c 55%, #ff6a13 100%);

	/* Grounds */
	--px-char: #16130f;
	--px-char-2: #1f1a15;
	--px-char-3: #2c251e;
	--px-paper: #fbf6ee;
	--px-white: #fff;

	/* Foreground, redefined by dark sections */
	--px-fg: #1f1a15;
	--px-fg-muted: #5f564b;
	--px-accent: var(--px-ember);
	--px-surface: #fff;
	--px-line: #e0d2bd;
	--px-icon-ground: #fff1dc;
	--px-icon-fg: var(--px-ember);

	/* Type */
	--px-font-display: "Sora", "Segoe UI", system-ui, sans-serif;
	--px-font-body: "Inter", "Segoe UI", system-ui, sans-serif;

	/* Space */
	--px-space-1: 4px;
	--px-space-2: 8px;
	--px-space-3: 12px;
	--px-space-4: 16px;
	--px-space-5: 24px;
	--px-space-6: 32px;
	--px-space-7: 48px;
	--px-space-8: 64px;
	--px-gutter: clamp(16px, 4vw, 32px);
	--px-section: clamp(64px, 8vw, 112px);

	/* Shape: one corner sweeps wide, like a wing feather */
	--px-radius: 18px;
	--px-radius-sm: 12px;
	--px-feather: 20px 96px 20px 20px;

	--px-shadow: 0 18px 44px -24px rgba(44, 30, 12, .28);
	--px-shadow-ember: 0 22px 50px -22px rgba(255, 106, 19, .5);
	--px-ease: cubic-bezier(.22, .8, .24, 1);
	--px-header: 84px;
}

.px-section--dark,
.px-hero,
.px-pagehead,
.px-site-footer,
.px-panel,
.px-map__card {
	--px-fg: #f7f2ea;
	--px-fg-muted: #c6bcae;
	--px-accent: var(--px-amber);
	--px-surface: rgba(255, 255, 255, .05);
	--px-line: rgba(255, 255, 255, .14);
	--px-icon-ground: rgba(255, 176, 0, .14);
	--px-icon-fg: var(--px-amber);
}

@media (max-width: 1024px) {
	:root {
		--px-header: 72px;
		--px-feather: 16px 64px 16px 16px;
	}
}
