/* The testers' pages (/play, /link, /privacy, /terms): the home page's tokens (index.html), one sheet for them all. */
@font-face { font-family: "Cinzel"; font-weight: 600; font-display: swap; src: url("/assets/fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("/assets/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }

:root {
	/* The home page's tokens (index.html): night-blue sky, gilded lettering, parchment for text. */
	--ink: #0e162b;
	--ink-2: #16203b;
	--parchment: #eee5cf;
	--parchment-dim: #c9bfa7;
	--gold: #d8ad55;
	--gold-bright: #f0cf86;
	--moss: #9db487;
	--ember: #e09a7a;
	--rule: rgba(216, 173, 85, 0.35);
	--card: rgba(14, 22, 43, 0.78);
	--display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
	--text: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
	min-height: 100vh;
	background: var(--ink);
	color: var(--parchment);
	font-family: var(--text);
	font-size: clamp(1.06rem, 0.98rem + 0.3vw, 1.18rem);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

.backdrop {
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse at 50% 30%, rgba(14, 22, 43, 0.35), rgba(14, 22, 43, 0.92) 70%),
		url("/assets/backdrop.jpg") center / cover no-repeat,
		var(--ink);
}

.sheet {
	width: min(100%, 44rem);
	margin: 0 auto;
	padding: max(2.2rem, env(safe-area-inset-top)) 16px max(2rem, env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.kicker {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--moss);
	display: flex;
	align-items: center;
	gap: 0.8rem;
}
.kicker::before { content: ""; width: 2.2rem; height: 1px; background: var(--moss); }
.kicker a { color: inherit; text-decoration: none; }

h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
	line-height: 1.05;
	letter-spacing: 0.04em;
	color: var(--gold);
	background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #a97f34);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.lead { margin: 0; font-size: 1.15em; color: var(--parchment); text-wrap: pretty; }
.lead em { color: var(--gold-bright); }

.card {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 4px;
	padding: clamp(1.1rem, 3vw, 1.6rem);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	min-width: 0;
}

h2 {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: 0.92rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}
h2::before { content: "✦"; font-size: 0.8em; color: var(--gold-bright); }
p { margin: 0; }
.dim { color: var(--parchment-dim); }
.small { font-size: 0.88em; }

form { display: flex; flex-direction: column; gap: 0.75rem; }
label { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--parchment-dim); }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
input.code {
	flex: 1 1 15rem;
	min-width: 0;
	padding: 0.7rem 0.85rem;
	font-family: var(--mono);
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--parchment);
	background: rgba(238, 229, 207, 0.06);
	border: 1px solid var(--rule);
	border-radius: 3px;
}
input.code::placeholder { color: rgba(238, 229, 207, 0.32); }
input.code:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* The report's form: the page's fields in the text's face (the code's field above is the one in capitals). */
.field {
	width: 100%;
	min-width: 0;
	padding: 0.6rem 0.8rem;
	font-family: var(--text);
	font-size: 1.02rem;
	line-height: 1.45;
	color: var(--parchment);
	background: rgba(238, 229, 207, 0.06);
	border: 1px solid var(--rule);
	border-radius: 3px;
}
.field::placeholder { color: rgba(238, 229, 207, 0.36); font-style: italic; }
.field:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
textarea.field { min-height: 9.5rem; resize: vertical; }
input.field[type="file"] { padding: 0.45rem 0.6rem; font-size: 0.92rem; color: var(--parchment-dim); }
input.field[type="file"]::file-selector-button {
	margin-right: 0.8rem;
	padding: 0.35rem 0.8rem;
	font-family: var(--display);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--parchment);
	background: transparent;
	border: 1px solid var(--rule);
	border-radius: 3px;
	cursor: pointer;
}
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; }
.grid2 > div { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
legend { padding: 0; margin-bottom: 0.35rem; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--parchment-dim); }
.kinds { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kinds label { margin: 0; }
.kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kinds span {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	font-family: var(--display);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--parchment);
	border: 1px solid var(--rule);
	border-radius: 3px;
	cursor: pointer;
}
.kinds input:checked + span { color: var(--ink); background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, #b98b3c); border-color: transparent; }
.kinds input:focus-visible + span { outline: 2px solid var(--parchment); outline-offset: 2px; }
.sent { color: var(--moss); min-height: 1.4em; }
.reports { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.report { border-top: 1px solid var(--rule); padding-top: 0.9rem; display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.report:first-child { border-top: 0; padding-top: 0; }
.report-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; }
.report-head b { font-weight: 500; color: var(--parchment); overflow-wrap: anywhere; }
.tag { font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.12rem 0.5rem; border: 1px solid var(--rule); border-radius: 2px; color: var(--parchment-dim); }
.tag.open { color: var(--gold-bright); }
.tag.seen { color: var(--parchment); }
.tag.fixed { color: var(--moss); border-color: rgba(157, 180, 135, 0.5); }
.tag.wontfix { color: var(--ember); border-color: rgba(224, 154, 122, 0.45); }
.report-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--parchment-dim); }
.reply { white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid var(--gold); padding-left: 0.9rem; }
.reply-by { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.15rem; }

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.72rem 1.4rem;
	font-family: var(--display);
	font-weight: 700;
	font-size: 0.86rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, #b98b3c);
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.button:hover { filter: brightness(1.06); }
.button:focus-visible { outline: 2px solid var(--parchment); outline-offset: 2px; }
.button[disabled] { opacity: 0.6; cursor: wait; }
.button.quiet { color: var(--parchment); background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.download { align-self: flex-start; font-size: 0.95rem; padding: 0.9rem 1.8rem; }

.error { color: var(--ember); min-height: 1.4em; }
.facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; color: var(--parchment-dim); }
.facts b { font-weight: 500; color: var(--parchment); }
.notes { white-space: pre-wrap; border-left: 2px solid var(--rule); padding-left: 0.9rem; }
.hash { font-family: var(--mono); font-size: 0.78em; color: var(--parchment-dim); overflow-wrap: anywhere; }
ol, ul { margin: 0; padding-left: 1.35rem; display: flex; flex-direction: column; gap: 0.45rem; }
code, .path { font-family: var(--mono); font-size: 0.86em; overflow-wrap: anywhere; color: var(--gold-bright); }
.stack { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.welcome p { font-size: 1.2em; }
.welcome b { color: var(--gold-bright); font-weight: 500; }

footer {
	padding: 0 16px max(1.5rem, env(safe-area-inset-bottom));
	text-align: center;
	font-family: var(--display);
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(238, 229, 207, 0.45);
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--parchment-dim); }

/* Accounts (docs/ACCOUNTS.md): the sign-in's choices, the link page's code, the plain pages (privacy, terms). */
.or { display: flex; align-items: center; gap: 0.8rem; color: var(--parchment-dim); font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.google { align-self: flex-start; }
.shown-code { font-family: var(--mono); font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); letter-spacing: 0.18em; color: var(--gold-bright); }
.ok { color: var(--moss); }
details summary { cursor: pointer; color: var(--parchment-dim); }
details[open] summary { margin-bottom: 0.6rem; }
.prose h2 { margin-top: 0.4rem; }
.prose ul { gap: 0.3rem; }
a { color: var(--gold-bright); }
footer a + a::before { content: "·"; margin: 0 0.7rem; }
