/* The site's look: the game's menu (white words over its dark scene, khaki
 * only for what's lit: a focused field, a status). */
/* The fonts, served from here (the pages' CSP takes nothing from elsewhere):
 * Inter, the game's, for the words; Antonio, for its name. Both
 * the Latin subset Google Fonts serves; their licences beside them. */
@font-face {
	font-family: Inter;
	font-weight: 400;
	font-display: swap;
	src: url(/fonts/inter-400.woff2) format("woff2");
}

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

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

@font-face {
	font-family: Antonio;
	font-weight: 700;
	font-display: block;
	src: url(/fonts/antonio-700.woff2) format("woff2");
}

:root {
	--bg: #07080a;
	/* Words a warm off-white, a little lighter than the title's bone, so the
	 * two sit together; no pure white anywhere. */
	--text: #f2eee6;
	--soft: rgba(242, 238, 230, 0.85);
	--dim: rgba(242, 238, 230, 0.62);
	--line: rgba(228, 221, 204, 0.35);
	--rule: rgba(228, 221, 204, 0.12);
	--bone: #e4ddcc;
	--accent: #b8a97a;
	--accent-lit: #c9bb8e;
	--ink: #0b0c0e;
	--danger: #f07f72;
	--notice: #ffd900;
	--gutter: clamp(16px, 4vw, 48px);
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
	color: var(--text);
}

[hidden] {
	display: none !important;
}

/* The scene, fixed behind everything: on home darkened only at the foot,
 * under the hero; on every other page, darkened all over. */
.backdrop {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: var(--bg);
}

.backdrop img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 40% 55%;
}

.backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(4, 5, 7, 0.55);
}

.home .backdrop::after {
	background: linear-gradient(
		180deg,
		rgba(4, 5, 7, 0) 62%,
		rgba(4, 5, 7, 0.8) 100%
	);
}

.bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px var(--gutter);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.bar a {
	color: var(--dim);
	text-decoration: none;
}

.bar a:hover {
	color: var(--text);
}

.bar nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.bar .brand {
	color: var(--bone);
	font-family: Antonio, Inter, sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

main {
	flex: 1 0 auto;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 48px 16px;
}

h1,
h2 {
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

h1 {
	margin: 0 0 24px;
	font-size: 28px;
	line-height: 1.2;
	color: var(--bone);
}

h2 {
	margin: 32px 0 8px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--dim);
}

/* Home: the name and the one button over the scene's foot. */
.home main {
	max-width: none;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 96px var(--gutter);
}

.hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}

.hero .actions {
	align-items: center;
	gap: 28px;
	margin: 0;
}

.hero .quiet {
	color: var(--dim);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
}

.hero .quiet:hover {
	color: var(--text);
}

/* The game's name: SPOILS OF centred over ZAVTRA, in a heavy military
 * stencil, bone rather than white. */
.lockup {
	margin: 0;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	color: var(--bone);
	font-family: Antonio, Inter, sans-serif;
	font-weight: 700;
	font-size: clamp(64px, 10vw, 144px);
	line-height: 0.85;
	letter-spacing: 0.04em;
}

.lockup .of {
	font-size: 0.45em;
	letter-spacing: 0.06em;
	margin-bottom: 0.12em;
}

/* The other pages: their words in a dark pane over the darkened scene. */
.panel {
	max-width: 440px;
	margin: 0 auto;
	padding: 32px;
	background: rgba(7, 8, 10, 0.6);
	border: 1px solid var(--rule);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.panel p {
	color: var(--soft);
}

label {
	display: block;
	margin-bottom: 24px;
	color: var(--dim);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* A field's name, its hint at the right. */
label .name {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}

.hint {
	letter-spacing: 0.02em;
	text-transform: none;
	text-align: right;
}

input {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	color: var(--text);
	font: inherit;
	font-size: 17px;
	letter-spacing: normal;
	text-transform: none;
}

input:focus {
	outline: none;
	border-bottom-color: var(--accent);
}

/* Buttons: bone words in a bone outline, filled bone under the pointer. */
button,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 28px;
	background: transparent;
	border: 1px solid var(--bone);
	color: var(--bone);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

button:hover,
.button:hover {
	background: var(--bone);
	border-color: var(--bone);
	color: var(--ink);
}

button:disabled {
	opacity: 0.5;
	cursor: default;
}

button:disabled:hover {
	background: transparent;
	color: var(--bone);
}

button.secondary {
	margin-top: 24px;
	border-color: transparent;
	color: var(--dim);
	padding: 0;
}

button.secondary:hover {
	background: transparent;
	color: var(--text);
}

.actions button.secondary {
	margin-top: 0;
	padding: 0 16px;
}

.button.big {
	min-height: 52px;
	padding: 0 36px;
	font-size: 15px;
}

.error {
	min-height: 1.5em;
	color: var(--danger);
	font-size: 14px;
}

.panel p.error {
	color: var(--danger);
}

.aside {
	margin: 16px 0 0;
	font-size: 14px;
}

.panel p.aside {
	color: var(--dim);
}

dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 24px;
	margin: 0;
}

dt {
	color: var(--dim);
}

dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.status,
.panel p.status {
	color: var(--accent-lit);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 0;
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	color: var(--text);
}

/* Account and download: no pane, the words straight on the darkened scene,
 * their heading in the title's face. */
.sheet {
	max-width: 640px;
	margin: 0 auto;
	padding-top: 4vh;
}

.sheet h1 {
	margin: 0 0 32px;
	color: var(--bone);
	font-family: Antonio, Inter, sans-serif;
	font-size: clamp(44px, 6vw, 72px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
}

.sheet p {
	color: var(--soft);
}

/* Label and value a row each, ruled between. */
.rows {
	grid-template-columns: 120px 1fr;
	gap: 0;
	border-bottom: 1px solid var(--rule);
}

.rows dt,
.rows dd {
	padding: 16px 0;
	border-top: 1px solid var(--rule);
}

.rows dt {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 24px;
}

.rows dd {
	font-size: 17px;
	line-height: 24px;
}

.rows .status {
	font-size: 13px;
}

/* A launcher each, as a tile: this computer's first, outlined bright. */
.platforms {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 0 0 24px;
}

.platform {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	background: rgba(7, 8, 10, 0.5);
	border: 1px solid rgba(228, 221, 204, 0.25);
	color: var(--bone);
	text-decoration: none;
}

.platform.mine {
	border-color: var(--bone);
}

.platform:hover {
	background: var(--bone);
	border-color: var(--bone);
	color: var(--ink);
}

.platform .os {
	font-family: Antonio, Inter, sans-serif;
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.platform .what {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.7;
}

.hero .status {
	margin: 0;
}

/* The closed alpha's notice (AlphaNotice): a hazard stripe along its
 * top, a warning and CLOSED ALPHA in the title's face, then what it means. */
.panel.notice {
	position: relative;
	margin-bottom: 16px;
	padding: 22px 32px 18px;
	overflow: hidden;
}

.panel.notice::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: repeating-linear-gradient(-45deg, var(--notice) 0 10px, transparent 10px 20px);
	opacity: 0.55;
}

.notice-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--notice);
	font-family: Antonio, Inter, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.panel .notice-head {
	color: var(--notice);
}

.panel.notice > p:not(.notice-head),
.notice ul {
	margin: 0;
	color: var(--soft);
	font-size: 14px;
	line-height: 1.6;
}

.notice ul {
	margin-top: 6px;
	padding: 0;
	list-style: none;
}

.notice li {
	position: relative;
	padding-left: 16px;
}

.notice li + li {
	margin-top: 2px;
}

/* A small square for each point, in the notice's colour. */
.notice li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.7em;
	width: 4px;
	height: 4px;
	background: var(--notice);
}

/* On the download page, the notice across the sheet's width. */
.sheet .notice {
	max-width: none;
	margin-bottom: 24px;
}

/* Home: CLOSED ALPHA stamped under the name. */
.title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

/* (Antonio leaves some 0.14em over its capitals: the padding's uneven to
 * centre them, or, where browsers can, the line's trimmed to them.) */
.stamp {
	margin: 0;
	padding: 4px 12px 6px;
	border: 1px solid var(--notice);
	color: var(--notice);
	font-family: Antonio, Inter, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

@supports (text-box: trim-both cap alphabetic) {
	.stamp {
		padding: 7px 12px;
		text-box: trim-both cap alphabetic;
	}

	.notice-head {
		text-box: trim-both cap alphabetic;
	}
}
