/* Model Brief — one page, no build step.
   Palette: ink, paper, one accent. Secondary text is paper at 62%,
   hairlines are paper at 12%; no fourth hue.
   Motion is CSS only: a slow drift on each rule, an accent that answers the
   pointer, and one rise on first paint. All of it stops under reduced motion. */

:root {
	--ink: #0C0C0E;
	--paper: #F4F2ED;
	--accent: #FF5233;
	--accent-lit: #FF6A4D;
	--dim: rgb(244 242 237 / 62%);
	--faint: rgb(244 242 237 / 12%);

	--serif: "Iowan Old Style", Charter, "Palatino Linotype", Palatino, Georgia, serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	--t-sm: 0.875rem;
	--t-base: 1.0625rem;
	--t-md: 1.1875rem;
	--t-lg: 1.75rem;
	--t-xl: clamp(2.125rem, 6.4vw, 3.5rem);
	--t-price: clamp(3rem, 11vw, 4.75rem);

	--wrap: 46rem;
	--gutter: 1.5rem;
}

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

html {
	background: var(--ink);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var(--paper);
	font: 400 var(--t-base)/1.55 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* One light behind the masthead, so the ink is not flat at the top. */
body::before {
	content: "";
	position: fixed;
	inset: -20vh 0 auto;
	height: 70vh;
	background: radial-gradient(60% 100% at 50% 0%, rgb(255 82 51 / 7%), transparent 70%);
	pointer-events: none;
	z-index: -1;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

::selection {
	background: var(--accent);
	color: var(--ink);
}

a {
	color: var(--paper);
	text-decoration: underline;
	text-decoration-color: var(--faint);
	text-underline-offset: 0.22em;
	transition: text-decoration-color 180ms ease, color 180ms ease;
}

a:hover {
	color: var(--accent-lit);
	text-decoration-color: var(--accent);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* Masthead: the mark, nothing beside it. The name is in the headline. */

.masthead {
	padding-top: 2rem;
	padding-bottom: 0;
}

.mark {
	display: block;
}

/* Sections stack with one hairline between each. The hairline is a gradient
   that drifts; the accent travels across it once every twenty-two seconds. */

main > section {
	position: relative;
	padding: 4.5rem 0;
}

main > section::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(
		90deg,
		var(--faint) 0%,
		var(--faint) 34%,
		rgb(255 82 51 / 60%) 50%,
		var(--faint) 66%,
		var(--faint) 100%
	);
	background-size: 300% 100%;
	animation: rule 22s linear infinite;
}

main > section:first-child {
	padding-top: 3.5rem;
}

main > section:first-child::before {
	display: none;
}

@keyframes rule {
	from {
		background-position: 150% 0;
	}

	to {
		background-position: -150% 0;
	}
}

/* First paint: each block rises once, in reading order. */

header,
main > section,
footer {
	animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

main > section:nth-child(1) {
	animation-delay: 40ms;
}

main > section:nth-child(2) {
	animation-delay: 110ms;
}

main > section:nth-child(3) {
	animation-delay: 180ms;
}

main > section:nth-child(4) {
	animation-delay: 250ms;
}

main > section:nth-child(5) {
	animation-delay: 320ms;
}

footer {
	animation-delay: 390ms;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(0.75rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

h1 {
	margin: 0;
	font-family: var(--serif);
	font-size: var(--t-xl);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.022em;
	text-wrap: balance;
}

h2 {
	margin: 0 0 2rem;
	font-family: var(--serif);
	font-size: var(--t-lg);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.012em;
}

/* The issue: number, what changed, what it means. The accent bar answers the
   pointer, and the number warms up with it. */

.issue ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: item;
	display: grid;
	gap: 2.25rem;
}

.issue li {
	counter-increment: item;
	margin-left: -1.125rem;
	padding-left: 1rem;
	border-left: 2px solid transparent;
	transition: border-color 260ms ease, padding-left 260ms ease;
}

.issue li::before {
	content: "0" counter(item);
	display: block;
	margin-bottom: 0.6rem;
	color: var(--accent);
	font: 500 var(--t-sm)/1 var(--sans);
	letter-spacing: 0.08em;
	transition: color 260ms ease, letter-spacing 260ms ease;
}

.issue li:hover {
	border-left-color: var(--accent);
	padding-left: 1.375rem;
}

.issue li:hover::before {
	letter-spacing: 0.16em;
}

.changed {
	margin: 0;
	font: 600 var(--t-md)/1.35 var(--sans);
	letter-spacing: -0.008em;
}

.means {
	margin: 0.5rem 0 0;
	color: var(--dim);
	max-width: 54ch;
}

/* The one action. */

.signup h2 {
	margin-bottom: 1.5rem;
}

.signup form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

.signup input[type="email"] {
	flex: 1 1 15rem;
	min-width: 0;
	padding: 0.9rem 1rem;
	color: var(--paper);
	background: rgb(244 242 237 / 5%);
	border: 1px solid var(--faint);
	border-radius: 3px;
	font: 400 var(--t-base)/1.2 var(--sans);
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.signup input[type="email"]::placeholder {
	color: var(--dim);
}

.signup input[type="email"]:focus {
	border-color: var(--accent);
	background: rgb(244 242 237 / 7%);
	box-shadow: 0 0 0 3px rgb(255 82 51 / 14%);
	outline: none;
}

.signup button {
	flex: 1 1 8rem;
	padding: 0.9rem 1.5rem;
	color: var(--ink);
	background: var(--accent);
	border: 0;
	border-radius: 3px;
	font: 600 var(--t-base)/1.2 var(--sans);
	cursor: pointer;
	transition: background 180ms ease, box-shadow 220ms ease, transform 120ms ease;
}

.signup button:hover {
	background: var(--accent-lit);
	box-shadow: 0 0 0 1px rgb(255 82 51 / 40%), 0 10px 28px -14px rgb(255 82 51 / 80%);
}

.signup button:active {
	transform: translateY(1px);
}

.signup button:disabled {
	cursor: progress;
	opacity: 0.7;
}

/* The one line the form answers with, where the form was. */
.note {
	margin: 1.25rem 0 0;
	color: var(--paper);
	font-size: var(--t-base);
}

.note:empty {
	display: none;
}

.note[data-ok="false"] {
	color: var(--accent-lit);
}

.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Price. */

.free h2 {
	margin: 0;
	font-size: var(--t-lg);
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 0.6rem;
}

.price {
	color: var(--accent);
	font-size: var(--t-price);
	line-height: 0.9;
	font-feature-settings: "tnum";
}

.or {
	margin: 0;
	color: var(--dim);
	font-size: var(--t-md);
}

footer {
	position: relative;
	padding-top: 2.25rem;
	padding-bottom: 3.5rem;
}

footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: var(--faint);
}

footer p {
	margin: 0;
	color: var(--dim);
	font-size: var(--t-sm);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Nothing moves for a reader who asked for that. */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 30rem) {
	:root {
		--gutter: 1.25rem;
	}

	main > section {
		padding: 3.5rem 0;
	}

	h1 {
		letter-spacing: -0.018em;
	}

	.issue ol {
		gap: 2rem;
	}

	.issue li {
		margin-left: 0;
		padding-left: 0.875rem;
	}
}

/* Articles: one column, 640px, no sidebar and no cards. The palette, the type
   scale and the hairlines are the landing page's, unchanged. */

.read {
	max-width: 40rem;
}

.crumbs {
	margin: 0 0 2.5rem;
	color: var(--dim);
	font-size: var(--t-sm);
}

.crumbs a,
.crumbs .here {
	color: var(--dim);
	text-decoration-color: transparent;
}

.crumbs a:hover {
	color: var(--paper);
	text-decoration-color: var(--accent);
}

.crumbs span {
	padding-inline: 0.5rem;
}

.label {
	margin: 0 0 0.75rem;
	color: var(--accent);
	font: 500 var(--t-sm)/1 var(--sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

main.read h1 {
	margin-bottom: 2.25rem;
}

main.read h2 {
	margin: 2.75rem 0 0.75rem;
}

main.read article > h2:first-child {
	margin-top: 0;
}

main.read p {
	margin: 0 0 1.1rem;
	max-width: 62ch;
}

main.read ul {
	margin: 0 0 1.1rem;
	padding-left: 1.15rem;
	max-width: 62ch;
}

main.read li {
	margin-bottom: 0.4rem;
}

main.read code {
	font: 400 0.9375rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--paper);
	background: rgb(244 242 237 / 7%);
	padding: 0.1em 0.35em;
	border-radius: 2px;
}

/* A comparison table is the one place a wide page is allowed to scroll. */

.scroll {
	margin: 0 0 1.5rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--t-sm);
	line-height: 1.4;
}

th,
td {
	padding: 0.6rem 0.7rem 0.6rem 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--faint);
}

th {
	color: var(--dim);
	font-weight: 600;
	white-space: nowrap;
}

td {
	font-variant-numeric: tabular-nums;
}

/* The questions block, and the same content as FAQPage in the JSON-LD. */

.faq {
	margin: 0 0 1.5rem;
	max-width: 62ch;
}

.faq dt {
	margin-top: 1rem;
	font-weight: 600;
}

.faq dd {
	margin: 0.2rem 0 0;
	color: var(--dim);
}

.checked,
.hub-link {
	color: var(--dim);
	font-size: var(--t-sm);
}

.checked {
	margin: 2.5rem 0 0.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--faint);
}

.hub-link {
	margin: 0 0 3.5rem;
}

main.read .signup {
	margin-top: 2rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--faint);
}

main.read .signup h2 {
	margin: 0 0 1.25rem;
}

/* A hub: a one-line description and its articles as a list, one hairline each. */

.hub-line {
	margin: 0 0 3rem;
	color: var(--dim);
	font-size: var(--t-md);
}

ul.articles {
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: none;
}

ul.articles li {
	margin: 0;
	padding: 1.5rem 0;
	border-top: 1px solid var(--faint);
}

ul.articles li:last-child {
	padding-bottom: 0;
}

ul.articles a {
	font-family: var(--serif);
	font-size: 1.3125rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.012em;
	text-decoration: none;
}

ul.articles a:hover {
	color: var(--accent);
}

ul.articles time {
	display: block;
	margin-top: 0.4rem;
	color: var(--accent);
	font: 500 var(--t-sm)/1 var(--sans);
	letter-spacing: 0.08em;
}

ul.articles p {
	margin: 0.5rem 0 0;
	color: var(--dim);
	font-size: var(--t-sm);
	max-width: 58ch;
}
