@font-face {
	font-family: "Mona Sans";
	src: url("/fonts/Mona-Sans.var.woff2") format("woff2");
	font-weight: 200 900;
	font-stretch: 75% 125%;
	font-display: swap;
}

:root {
	--paper: oklch(1 0 0);
	--sunk: oklch(0.975 0.004 265);
	--ink: oklch(0.16 0.02 265);
	--muted: oklch(0.47 0.02 265);
	--hair: oklch(0.9 0.008 265);
	--brand: oklch(0.52 0.09 190);
	--brand-ink: oklch(1 0 0);
	--signal: oklch(0.52 0.19 335);
	--ok: oklch(0.5 0.11 160);
	--danger: oklch(0.52 0.18 25);
	--radius: 10px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: oklch(0.17 0.015 265);
		--sunk: oklch(0.21 0.015 265);
		--ink: oklch(0.95 0.008 265);
		--muted: oklch(0.72 0.015 265);
		--hair: oklch(0.3 0.015 265);
		--brand: oklch(0.72 0.1 190);
		--brand-ink: oklch(0.17 0.015 265);
		--signal: oklch(0.74 0.15 335);
		--ok: oklch(0.75 0.12 160);
		--danger: oklch(0.72 0.15 25);
		color-scheme: dark;
	}
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 16px/1.55 "Mona Sans", system-ui, -apple-system, sans-serif;
	font-variation-settings: "wdth" 100;
}

a {
	color: inherit;
	text-decoration-color: color-mix(in oklch, currentColor 40%, transparent);
	text-underline-offset: 0.18em;
}
a:hover {
	text-decoration-color: currentColor;
}

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

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wrap {
	max-width: 760px;
	margin-inline: auto;
	padding-inline: 20px;
}
.wrap.wide {
	max-width: 1080px;
}

/* ---------- Header and footer ---------- */

.top {
	border-bottom: 1px solid var(--hair);
}
.top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 60px;
}
.mark {
	font-weight: 750;
	font-size: 19px;
	letter-spacing: -0.02em;
	font-variation-settings: "wdth" 112;
	text-decoration: none;
}
.top nav {
	display: flex;
	gap: 20px;
	font-size: 15px;
}
.top nav a {
	text-decoration: none;
	color: var(--muted);
}
.top nav a:hover {
	color: var(--ink);
}

main {
	padding-top: 48px;
	padding-bottom: 72px;
}

.foot {
	border-top: 1px solid var(--hair);
	color: var(--muted);
	font-size: 14px;
	padding: 28px 0 40px;
}
.foot p {
	margin: 0 0 6px;
	max-width: 62ch;
}

/* ---------- Type ---------- */

h1 {
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.025em;
	font-weight: 720;
	font-variation-settings: "wdth" 108;
	margin: 0 0 16px;
	text-wrap: balance;
}
h2 {
	font-size: 21px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	font-weight: 680;
	margin: 0 0 10px;
}
.lead {
	font-size: 18px;
	color: var(--muted);
	max-width: 60ch;
	margin: 0 0 20px;
}
.meta,
.help {
	color: var(--muted);
	font-size: 14px;
}
.narrow {
	max-width: 520px;
}
section + section {
	margin-top: 56px;
}

/* ---------- Controls ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font: inherit;
	font-weight: 620;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.btn:hover {
	background: color-mix(in oklch, var(--ink) 86%, var(--paper));
}
.btn.quiet {
	background: transparent;
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--hair);
}
.btn.quiet:hover {
	background: var(--sunk);
}
.btn.danger {
	background: var(--danger);
	color: var(--paper);
}
button.link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

input,
select {
	font: inherit;
	font-size: 16px;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--hair);
	border-radius: 8px;
	background: var(--paper);
	color: var(--ink);
	width: 100%;
}
input:focus-visible,
select:focus-visible {
	border-color: var(--brand);
	outline-offset: 0;
}
label {
	font-weight: 600;
	font-size: 14px;
}
.stack-form {
	display: grid;
	gap: 8px;
	max-width: 420px;
}
.stack-form .btn {
	margin-top: 8px;
	justify-self: start;
}
form.inline {
	display: flex;
	gap: 8px;
	max-width: 520px;
}
.row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.row form {
	margin: 0;
}

.notice {
	padding: 12px 14px;
	border-radius: 8px;
	margin: 0 0 20px;
	max-width: 62ch;
	border-left: 3px solid;
	background: var(--sunk);
}
.notice.ok {
	border-color: var(--ok);
}
.notice.error {
	border-color: var(--danger);
}

/* ---------- The stack ---------- */

.hero {
	max-width: 720px;
}
.hero h1 {
	font-size: clamp(36px, 7vw, 64px);
	font-variation-settings: "wdth" 115;
	letter-spacing: -0.035em;
}

.tiers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 40px;
}
.tier {
	border: 1px solid var(--hair);
	border-radius: 14px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	scroll-margin-top: 24px;
}
.tier:target {
	border-color: var(--brand);
}
.tier h2 {
	font-size: 24px;
	margin: 0;
	font-variation-settings: "wdth" 110;
}
.tier .blurb {
	margin: 4px 0 0;
	color: var(--muted);
}
.price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}
.price .amount {
	font-size: 44px;
	font-weight: 740;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}
.price .once {
	color: var(--muted);
}
.price .vs {
	flex-basis: 100%;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}
.grants {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 14px;
	flex: 1;
}
.grants li {
	display: grid;
	gap: 2px;
	padding-left: 14px;
	border-left: 2px solid var(--brand);
}
.grants span {
	color: var(--muted);
	font-size: 15px;
}
.tier form {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}
.left {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.waitlist {
	background: var(--sunk);
	border-radius: 14px;
	padding: 28px;
	margin-top: 32px;
}
.waitlist p {
	color: var(--muted);
	margin: 0 0 16px;
}

.how ol {
	padding-left: 22px;
	display: grid;
	gap: 10px;
	max-width: 64ch;
}
.terms dl {
	display: grid;
	grid-template-columns: minmax(180px, 240px) 1fr;
	gap: 14px 28px;
	margin: 0;
	max-width: 880px;
}
.terms dt {
	font-weight: 640;
}
.terms dd {
	margin: 0;
	color: var(--muted);
}

/* ---------- Account ---------- */

.account-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 20px;
}
.account-head form {
	color: var(--muted);
	font-size: 14px;
}
.purchase {
	border: 1px solid var(--hair);
	border-radius: 14px;
	padding: 22px;
	margin-top: 20px;
}
.purchase header .meta {
	margin: 0;
}
.licenses {
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
	display: grid;
	gap: 10px;
}
.license {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 8px 16px;
	padding: 12px 0;
	border-top: 1px solid var(--hair);
}
.license > div {
	display: grid;
}
.license .where {
	color: var(--muted);
	font-size: 14px;
}
.license.revoked .code {
	text-decoration: line-through;
	color: var(--muted);
}
.code {
	font: 600 15px/1.3 ui-monospace, "SF Mono", Menlo, monospace;
	letter-spacing: 0.04em;
	user-select: all;
	background: var(--sunk);
	padding: 6px 10px;
	border-radius: 6px;
}
.refund {
	margin-top: 16px;
	border-top: 1px solid var(--hair);
	padding-top: 14px;
}
.refund summary {
	cursor: pointer;
	color: var(--muted);
	font-size: 15px;
}
.refund p {
	max-width: 62ch;
}
.empty {
	padding: 28px;
	background: var(--sunk);
	border-radius: 14px;
	margin-top: 20px;
}
.empty p {
	margin: 0 0 14px;
}
.scopes {
	padding-left: 20px;
	margin: 0 0 24px;
}

/* ---------- Admin and dev ---------- */

.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}
.card {
	border: 1px solid var(--hair);
	border-radius: 14px;
	padding: 22px;
	max-width: none;
}
table {
	border-collapse: collapse;
	width: 100%;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}
th,
td {
	text-align: left;
	padding: 8px 10px 8px 0;
	border-bottom: 1px solid var(--hair);
}
th {
	font-weight: 600;
	color: var(--muted);
	font-size: 13px;
}
.reveal {
	border: 2px solid var(--brand);
	border-radius: 14px;
	padding: 20px;
	margin: 20px 0;
}
pre {
	font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
	background: var(--sunk);
	padding: 14px;
	border-radius: 8px;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
}
.clients {
	list-style: none;
	padding: 0;
	margin: 12px 0 0;
	display: grid;
	gap: 8px;
	font-size: 14px;
}
.clients li {
	display: grid;
}
.mail {
	border-top: 1px solid var(--hair);
	padding: 16px 0;
}

@media (max-width: 760px) {
	main {
		padding-top: 32px;
	}
	.tiers,
	.grid-2 {
		grid-template-columns: 1fr;
	}
	.terms dl {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.terms dd {
		margin-bottom: 12px;
	}
	form.inline {
		flex-direction: column;
	}
	.license {
		grid-template-columns: 1fr;
	}
	.license .btn,
	.license .code {
		justify-self: start;
	}
}
