/* SPDX-License-Identifier: AGPL-3.0-or-later */
/* The beta's signed-out front page: the shared Kink Imperiet card (kinkimperiet/site and the login card in
   fluxer_app/src/kinkimperiet/theme.css): brand panel left, content right; the header band on phones. */

@font-face { font-family: 'KI Grotesque'; src: url('fonts/darker-grotesque-500.woff2') format('woff2'); font-weight: 400 649; size-adjust: 120%; font-display: swap; }
@font-face { font-family: 'KI Grotesque'; src: url('fonts/darker-grotesque-800.woff2') format('woff2'); font-weight: 650 1000; size-adjust: 120%; font-display: swap; }
@font-face { font-family: 'KI Plex Mono'; src: url('fonts/ibm-plex-mono-regular.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
	color-scheme: dark;
	--page: #0c0c0c;
	--panel: #131313;
	--raised: #1b1b1b;
	--line: #303030;
	--ink: #cccccc;
	--text: #aaaaaa;
	--muted: #999999;
	--red: #cc0000;
	--red-hover: #e00000;
	--red-ink: #ff4d4d;
	--sans: 'KI Grotesque', 'Helvetica Neue', Arial, sans-serif;
	--mono: 'KI Plex Mono', Consolas, Monaco, monospace;
	--pad: 40px;
}

* { box-sizing: border-box; }
html { background: var(--page); }
html.ki-check .box { visibility: hidden; }
body {
	display: grid;
	place-items: center;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	padding: 16px;
	background: var(--page);
	color: var(--text);
	font: 500 17px/1.5 var(--sans);
}
p, h1 { margin: 0; }
a { color: var(--red-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 2px; }
.accent { color: var(--red-hover); }

.box {
	display: grid;
	grid-template-columns: 288px 1fr;
	width: min(800px, 100%);
	min-height: 448px;
	margin-top: -40px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-top: 2px solid var(--red);
}
.brand-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 32px 24px;
	background: var(--raised);
	border-inline-end: 1px solid var(--line);
	text-align: center;
}
.logo { display: block; flex: none; width: 128px; height: 128px; }
.wordmark { color: var(--ink); font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.caption { margin-top: 6px; color: var(--muted); font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

.content { display: flex; flex-direction: column; }
.body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px var(--pad); }
h1 { color: var(--ink); font-size: 48px; font-weight: 750; line-height: 1; letter-spacing: -0.01em; }
.copy { margin-top: 12px; font-size: 20px; line-height: 26px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 148px;
	height: 40px;
	padding: 0 20px;
	border: 1px solid var(--line);
	background: #252525;
	color: var(--ink);
	font-size: 17px;
	font-weight: 700;
}
.button:hover { background: #303030; text-decoration: none; }
.button.primary { border-color: var(--red); background: var(--red); color: #fff; }
.button.primary:hover { border-color: var(--red-hover); background: var(--red-hover); }
.note { color: var(--muted); font-size: 15px; line-height: 20px; }

.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.links a { color: var(--muted); }
.links a:hover { color: var(--ink); }

.age { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 var(--pad); border-top: 1px solid var(--line); }
.badge { flex: none; width: 38px; height: 22px; border: 1px solid var(--red); color: var(--red-ink); font: 600 10px/20px var(--mono); letter-spacing: 0.06em; text-align: center; }
.age p { color: var(--muted); font-size: 17px; font-weight: 600; line-height: 22px; }

@media (max-width: 680px) {
	:root { --pad: 20px; }
	.box { grid-template-columns: 1fr; min-height: 0; margin-top: 0; }
	.brand-panel {
		flex-direction: row;
		justify-content: flex-start;
		gap: 10px;
		min-height: 84px;
		padding: 0 var(--pad) 0 calc(var(--pad) - 8px);
		border-inline-end: 0;
		border-bottom: 1px solid var(--line);
		text-align: start;
	}
	.logo { width: 64px; height: 64px; }
	.wordmark { font-size: 26px; }
	.caption { margin-top: 4px; }
	.body { padding: 28px var(--pad); }
	h1 { font-size: 40px; }
	.copy { font-size: 19px; line-height: 25px; }
	.button { flex: 1; }
}
