/*
 * pawntoqueen.com: one "PAWN TO QUEEN" holding page (and its 404 page), the same look as
 * h4rdboot.com's holding page (x4pe.studio's style).
 *
 * Zen Kaku Gothic New (a modern Japanese sans), subset to the characters the two pages use (SIL OFL,
 * see ../fonts/LICENSE.txt): if the text changes, re-make the subset (Google Fonts css2 ?text=...)
 * or new characters fall back to the system font. The Content-Security-Policy allows no inline
 * styles, so all styling is here.
 */

@font-face {
	font-family: "Zen Kaku Gothic New";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/zen-kaku-gothic-new-300.woff2?v=1") format("woff2");
}

:root {
	color-scheme: dark;
	--ink: #0d0d10;
	--paper: #f2efe8;
	--muted: #8e8a83;
	--gold: #c9a96e;
	--vermilion: #c8402f;
	--sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	display: grid;
	grid-template-rows: 1fr auto;
	min-height: 100%;
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}

main {
	display: grid;
	place-items: center;
	padding: 4rem 1rem;
}

.stage {
	text-align: center;
}

/* Wide letter-spacing also follows the last letter: pad the start by the same amount so the
   word stays centred. Three words (13 letters, not h4rdboot's 8), so smaller than h4rdboot's to
   stay on one line on a phone; text-wrap balance splits it evenly if a screen is narrower still. */
h1 {
	margin: 0;
	padding-left: 0.08em;
	font-size: clamp(1.75rem, 9.5vw, 6rem);
	text-wrap: balance;
	font-weight: 300;
	letter-spacing: 0.08em;
	line-height: 1.05;
}

.rule {
	display: block;
	width: 3rem;
	height: 2px;
	margin: 2.25rem auto 0;
	background: var(--vermilion);
}

.back {
	display: inline-block;
	margin-top: 2rem;
	color: var(--gold);
	letter-spacing: 0.1em;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.back:hover,
.back:focus {
	color: var(--paper);
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 4px;
}

footer {
	padding: 1.5rem;
	color: var(--muted);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-align: center;
}
