/*
 * The website's one stylesheet. Dark only, like the sign-in page, and the
 * same brand colour: the orange the issuer's theme states as its `primary`.
 * System fonts, so the page loads nothing but itself.
 */

:root {
	--brand: hsl(12 84% 53%);
	--brand-strong: hsl(12 84% 60%);
	--bg: hsl(240 6% 7%);
	--panel: hsl(240 6% 11%);
	--line: hsl(240 6% 20%);
	--text: hsl(0 0% 94%);
	--muted: hsl(240 5% 64%);
	--danger: hsl(0 72% 62%);
	--ok: hsl(145 55% 55%);
	--radius: 12px;
	--measure: 60rem;
}

* {
	box-sizing: border-box;
}

html {
	color-scheme: dark;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--brand-strong);
}

.wrap {
	max-width: var(--measure);
	margin: 0 auto;
	padding: 0 1.25rem;
}

header.site {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 0;
}

header.site .wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--text);
	text-decoration: none;
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

header.site .wordmark img {
	height: 1.75rem;
	width: auto;
}

nav a,
nav button {
	margin-left: 1rem;
}

.hero {
	padding: 4rem 0 3rem;
}

.hero h1 {
	font-size: clamp(2.25rem, 6vw, 3.75rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin: 0 0 1rem;
	max-width: 16ch;
}

.hero p.lead {
	font-size: 1.2rem;
	color: var(--muted);
	max-width: 44ch;
	margin: 0 0 2rem;
}

.points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
	padding: 0 0 3rem;
	margin: 0;
	list-style: none;
}

.points li {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.25rem;
}

.points h2 {
	font-size: 1.05rem;
	margin: 0 0 0.4rem;
}

.points p {
	margin: 0;
	color: var(--muted);
}

section.panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2rem;
	margin: 0 0 3rem;
}

section.panel h2 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
}

section.panel > p {
	color: var(--muted);
	margin: 0 0 1.25rem;
	max-width: 52ch;
}

form.row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

input[type='email'] {
	flex: 1 1 16rem;
	font: inherit;
	padding: 0.7rem 0.9rem;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--text);
}

input[type='email']:focus {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
}

button,
a.button {
	font: inherit;
	font-weight: 600;
	padding: 0.7rem 1.1rem;
	border-radius: 8px;
	border: 1px solid transparent;
	background: var(--brand);
	color: white;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

button:hover,
a.button:hover {
	background: var(--brand-strong);
}

button.quiet,
a.button.quiet {
	background: transparent;
	border-color: var(--line);
	color: var(--text);
}

button.quiet:hover,
a.button.quiet:hover {
	border-color: var(--muted);
	background: transparent;
}

button[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.note {
	min-height: 1.5rem;
	margin: 0.75rem 0 0;
	color: var(--muted);
}

.note[data-tone='danger'] {
	color: var(--danger);
}

.note[data-tone='success'] {
	color: var(--ok);
}

dl.account {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.5rem 1.5rem;
	margin: 0;
}

dl.account dt {
	color: var(--muted);
}

dl.account dd {
	margin: 0;
	word-break: break-all;
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.95em;
	background: var(--bg);
	padding: 0.1em 0.35em;
	border-radius: 4px;
}

.badge {
	display: inline-block;
	font-size: 0.8rem;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--muted);
	margin-left: 0.5rem;
}

.badge[data-tone='success'] {
	border-color: var(--ok);
	color: var(--ok);
}

article.prose {
	max-width: 40rem;
	padding: 2rem 0 4rem;
}

article.prose h1 {
	letter-spacing: -0.02em;
}

article.prose p,
article.prose li {
	color: var(--muted);
}

footer.site {
	border-top: 1px solid var(--line);
	padding: 1.5rem 0 3rem;
	color: var(--muted);
	font-size: 0.9rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

footer.site a {
	color: var(--muted);
}

/* The `hidden` attribute, which the display rules on buttons above would
   otherwise beat: a hidden "Your account" link showed on first load. */
[hidden] {
	display: none !important;
}
