/*
 * Instrument Serif, Instrument Sans and Martian Mono (code only): SIL Open
 * Font License 1.1 (fonts/OFL-*.txt).
 */
@font-face {
	font-family: "Instrument Serif";
	src: url(fonts/instrument-serif-latin-400-normal.woff2) format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Instrument Serif";
	src: url(fonts/instrument-serif-latin-400-italic.woff2) format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Instrument Sans";
	src: url(fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

@font-face {
	font-family: "Martian Mono";
	src: url(fonts/martian-mono-latin-wght-normal.woff2) format("woff2");
	font-weight: 100 800;
	font-display: swap;
}

/*
 * Warm tones from the photo of the plugin (ember, amber, cream), and the
 * golden black of its shadows; the sky of the photo (--sky, --sky-2) only as
 * touches of light in the front end band. Contrast (WCAG 2.2 AA): --ink-2 on
 * --paper 7:1, --accent on --paper 3.7:1 (large text and icons only),
 * --accent-2 on --paper 4.9:1, --night on --ember 5.2:1 (the count, the
 * band), --on-night-2 on --night 6.9:1. The light shimmer goes down to
 * 2.5:1 where it is gold, by choice: the yellow of the photo in the title of
 * the hero, a display size.
 */
:root {
	--paper: #fdf9f2;
	--paper-2: #f6efe3;
	--ink: #1a1611;
	--ink-2: #5e5446;
	--line: rgb(26 22 17 / 14%);
	--line-strong: rgb(26 22 17 / 40%);
	--accent: #cc6400;
	--accent-2: #b35000;
	--ember: #e0602a;
	--amber: #f0a044;
	--rust: #8f3515;
	--gold: #f7d49a;
	--cream: #fff1d6;
	--sky: #b7cdd6;
	--sky-2: #93a8c6;
	--night: #14110d;
	--on-night: #eee7db;
	--on-night-2: rgb(238 231 219 / 70%);
	--browser-tabs: #eee6d9;
	--browser-bar: #f6efe3;
	--browser-field: #fff;
	--browser-text: #3f372d;
	--browser-tab-text: #5e5446;
	--browser-dot: #d6cbba;
	--browser-hover: rgb(255 255 255 / 50%);
	--browser-line: rgb(0 0 0 / 10%);
	--shimmer: #cc5a00, #d09400, #cc6400, #d09400, #cc5a00;
	--gutter: clamp(16px, 4vw, 48px);

	/*
	 * One type scale: small text, body, lead, then the serif titles, fluid
	 * from phone to desktop.
	 */
	--text-xs: 0.8125rem;
	--text-s: 0.9375rem;
	--text-m: 1.0625rem;
	--text-l: clamp(1.0625rem, 0.3vw + 1rem, 1.25rem);
	--text-xl: clamp(1.375rem, 0.6vw + 1.2rem, 1.75rem);
	--text-2xl: clamp(1.625rem, 1vw + 1.3rem, 2.125rem);
	--text-3xl: clamp(2.75rem, 5.5vw, 5rem);
	--text-4xl: clamp(3.25rem, 8vw, 8rem);
	--text-5xl: clamp(3.75rem, 9.5vw, 9.5rem);

	/* One spacing scale, on a grid of 4 px, the largest steps fluid. */
	--space-2xs: 4px;
	--space-xs: 8px;
	--space-s: 12px;
	--space-m: 16px;
	--space-l: 24px;
	--space-xl: 32px;
	--space-2xl: 48px;
	--space-3xl: clamp(48px, 6vw, 88px);
	--space-section: clamp(80px, 11vw, 160px);
	--serif: "Instrument Serif", "Iowan Old Style", georgia, serif;
	--sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Martian Mono", ui-monospace, "SF Mono", menlo, consolas, monospace;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {

	:root {
		--paper: #14110d;
		--paper-2: #1d1914;
		--ink: #eee7db;
		--ink-2: #a39c91;
		--line: rgb(238 231 219 / 14%);
		--line-strong: rgb(238 231 219 / 40%);
		--accent: var(--amber);
		--accent-2: var(--ember);
		--browser-tabs: #0d0b08;
		--browser-bar: #221d17;
		--browser-field: #14110d;
		--browser-text: #d8d1c5;
		--browser-tab-text: #a39c91;
		--browser-dot: #3d362d;
		--browser-hover: rgb(255 255 255 / 6%);
		--browser-line: rgb(255 255 255 / 8%);
		--shimmer: var(--amber), var(--gold), #e8703a, var(--gold), var(--amber);
	}
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--text-m);
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

/* Film grain over the whole page, photos and flat colors alike. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 100;
	background-image: var(--noise);
	opacity: 0.4;
	mix-blend-mode: overlay;
	pointer-events: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-underline-offset: 0.22em;
	text-decoration-thickness: 1px;
}

/*
 * Code in Martian Mono, on a tint of the text color, so it reads on paper,
 * ember and night alike.
 */
code {
	padding: 0.1em 0.35em;
	border: 1px solid color-mix(in srgb, currentcolor 16%, transparent);
	background: color-mix(in srgb, currentcolor 7%, transparent);
	font-size: 0.8em;
	font-family: var(--mono);
	font-weight: 400;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/*
 * A block of code: the same tint, a line of accent, scrolled sideways (give
 * it tabindex="0" so a keyboard can scroll it too).
 */
pre {
	overflow-x: auto;
	tab-size: 4;
	margin: 0;
	padding: var(--space-m) var(--space-l);
	border-left: 2px solid var(--accent);
	background: color-mix(in srgb, currentcolor 7%, transparent);
	font-size: var(--text-s);
	line-height: 1.6;
}

pre code {
	padding: 0;
	border: 0;
	background: none;
	font-size: inherit;
	white-space: pre;
}

/* The color of the text, so the ring shows on paper, ember and night alike. */
:focus-visible {
	outline: 2px solid currentcolor;
	outline-offset: 4px;
}

/* Elements hidden by the script stay hidden, whatever their display. */
[hidden] {
	display: none !important;
}

.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 200;
	padding: var(--space-xs) var(--space-m);
	background: var(--ink);
	color: var(--paper);
}

.skip-link:focus {
	top: 16px;
}

.container {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.icon {
	width: 24px;
	height: 24px;
	flex: none;
	stroke-width: 1.5;
}

/* Type */
.display {
	font-family: var(--serif);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.02em;
	margin: 0;
	text-wrap: balance;
}

.display em {
	font-style: italic;
	color: var(--accent);
}

/*
 * A gradient moving through the words, like light through clouds; the padding
 * keeps the overhang of the italic inside the painted text.
 */
.display .shimmer {
	margin-inline: -0.08em -0.14em;
	padding-inline: 0.08em 0.14em;
	background: linear-gradient(100deg, var(--shimmer));
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: shimmer 9s linear infinite;
}

.display .shimmer--night {
	background-image: linear-gradient(100deg, var(--amber), var(--gold), #e8703a, var(--gold), var(--amber));
}

@keyframes shimmer {

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

@media (forced-colors: active) {

	.display .shimmer {
		background: none;
		color: CanvasText;
	}
}

.lead {
	font-size: var(--text-l);
	line-height: 1.5;
	color: var(--ink);
	max-width: 34em;
	margin: 0;
	text-wrap: pretty;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: var(--space-s);
	margin: 0 0 var(--space-l);
	font-size: var(--text-s);
	color: var(--ink-2);
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--accent);
}

.section__title {
	font-size: var(--text-3xl);
}

/* Reveal on scroll, only once the script can show them again. */
.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Buttons, flat: the label, and an arrow that moves on hover. */
.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-s) var(--space-m);
}

.actions--center {
	justify-content: center;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	min-height: 52px;
	padding: 0 var(--space-l);
	border: 1px solid var(--line);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-size: var(--text-m);
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease, --halo-x 0.8s var(--ease), --halo-y 0.8s var(--ease);
	position: relative;
	isolation: isolate;
}

/*
 * Hovered, a button lights up like the sun of the closing: ember, amber and
 * gold, a large halo of cream drawn halfway to the pointer and gliding after
 * it (--halo-x, --halo-y, set by site.js, registered so they transition; the
 * middle without them). --night on it keeps 5.2:1 at least.
 */
@property --halo-x {
	syntax: "<length-percentage>";
	inherits: true;
	initial-value: 50%;
}

@property --halo-y {
	syntax: "<length-percentage>";
	inherits: true;
	initial-value: 50%;
}

.button::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -1px;
	background:
		radial-gradient(circle 128px at var(--halo-x, 50%) var(--halo-y, 50%), var(--cream), rgb(255 241 214 / 0%)),
		linear-gradient(100deg, var(--ember), var(--amber) 55%, var(--gold));
	opacity: 0;
	transition: opacity 0.3s var(--ease);
}

.button__icon {
	display: inline-block;
	transition: transform 0.3s var(--ease);
}

/* The WordPress logo on the buttons that lead to WordPress.org. */
.button__logo {
	flex: none;
	width: 22px;
	height: 22px;
}

/* The light and the arrow that moves: not only a color. */
.button:hover {
	border-color: transparent;
	color: var(--night);
}

.button:hover::before {
	opacity: 1;
}

.button:hover .button__icon {
	transform: translate(2px, -2px);
}

.button:hover .button__icon--down {
	transform: translateY(3px);
}

.button--secondary {
	background: transparent;
	color: var(--ink);
}

.button--small {
	min-height: 40px;
	padding: 0 var(--space-m);
	font-size: var(--text-s);
}

.button--small .button__logo {
	width: 18px;
	height: 18px;
}

/* On the night of the closing, the line of the dark color scheme. */
.button--light,
.button--secondary-light {
	border-color: rgb(238 231 219 / 14%);
}

.button--light {
	background: var(--on-night);
	color: var(--night);
}

.button--secondary-light {
	background: transparent;
	color: var(--on-night);
}


/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--paper) 90%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-xl);
	min-height: 68px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	margin: 0;
	text-decoration: none;
}

.brand__logo {
	flex: none;
	width: 28px;
	height: 28px;
}

/* On hover, the sun turns in its tile. */
.brand__sun {
	transform-box: view-box;
	transform-origin: center;
	transition: transform 0.6s var(--ease);
}

a.brand:hover .brand__sun {
	transform: rotate(90deg);
}

/* The name as the logo writes it, its capitals 49% of the tile. */
.brand__name {
	flex: none;
	width: auto;
	height: 15.4px;
	aspect-ratio: 701.08 / 112.43;
	fill: currentcolor;
}

.site-nav {
	display: flex;
	gap: var(--space-l);
	margin-left: auto;
}

/* The link of the section on screen stays underlined. */
.site-nav a {
	font-size: var(--text-s);
	font-weight: 500;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.4em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-nav a:hover {
	text-decoration-color: var(--line-strong);
}

.site-nav a[aria-current] {
	text-decoration-color: var(--accent-2);
}

@media (max-width: 760px) {

	.site-nav {
		display: none;
	}

	.site-header__inner > .button {
		margin-left: auto;
	}
}

/* Hero */
.hero__top {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: var(--space-xl) var(--space-3xl);
	align-items: start;
	padding-block: var(--space-3xl);
}

.hero__title {
	font-size: var(--text-4xl);
	line-height: 0.88;
}

.hero__title em {
	display: block;
	padding-bottom: 0.08em;
}

/* The intro starts at the cap height of the title. */
.hero__intro {
	display: grid;
	gap: var(--space-l);
	padding-top: 0.5em;
}

.hero__meta {
	margin: 0;
	font-size: var(--text-s);
	color: var(--ink-2);
}

@media (max-width: 960px) {

	.hero__top {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*
 * The scene: the photo of the plugin under the live demo, whose window rises
 * above it into the hero.
 */
.scene {
	--lift: clamp(96px, 16vw, 240px);
	position: relative;
	isolation: isolate;
	padding-bottom: var(--space-3xl);
}

/*
 * A test: one glow of amber rising from behind the demo window where it
 * stands over the paper, so the window stands out.
 */
.scene::before {
	content: "";
	position: absolute;
	z-index: -2;
	top: calc(var(--lift) * -0.7);
	right: 0;
	left: 0;
	height: calc(var(--lift) * 1.7);
	background: radial-gradient(46% 100% at 50% 100%, rgb(240 160 68 / 40%), rgb(240 160 68 / 0%));
	transform-origin: 50% 100%;
	pointer-events: none;
	animation: rise 12s ease-in-out infinite alternate;
}

/* The glow breathes, a little higher, a little brighter. */
@keyframes rise {

	from {
		opacity: 0.75;
	}

	to {
		transform: scaleY(1.12);
	}
}

.scene__photo {
	position: absolute;
	top: var(--lift);
	left: 0;
	z-index: -1;
	width: 100%;
	height: calc(100% - var(--lift));
	object-fit: cover;
	object-position: 50% 40%;
}

/* A browser window, drawn by hand in the colors of the page, with its tabs. */
.browser {
	overflow: hidden;
	border-radius: 10px;
	background: var(--browser-bar);
	color: var(--browser-text);
	box-shadow: 0 0 0 1px var(--browser-line), 0 40px 80px -30px rgb(20 10 6 / 60%);
}

.browser__tabs {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	min-height: 46px;
	padding: 0 12px;
	background: var(--browser-tabs);
}

.browser__dots {
	display: flex;
	align-self: center;
	gap: 6px;
}

.browser__dots span {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--browser-dot);
}

.browser__dots span:first-child {
	background: var(--ember);
}

.browser__tablist {
	display: flex;
	gap: 4px;
	min-width: 0;
}

.browser__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 36px;
	padding: 0 18px 0 12px;
	border: 0;
	border-radius: 8px 8px 0 0;
	background: none;
	color: var(--browser-tab-text);
	font-family: var(--sans);
	font-size: var(--text-xs);
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.browser__tab span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.browser__tab:hover {
	background: var(--browser-hover);
	color: var(--browser-text);
}

/* The tab in front joins the toolbar, a line of ember under it. */
.browser__tab[aria-selected="true"] {
	background: var(--browser-bar);
	box-shadow: inset 0 -2px 0 var(--ember);
	color: var(--browser-text);
}

.browser__tab:focus-visible {
	outline-offset: -4px;
}

.browser__favicon {
	flex: none;
	width: 16px;
	height: 16px;
}

/* A browser spins the icon of a tab while its page loads. */
.live.is-starting .browser__favicon {
	border: 2px solid var(--browser-dot);
	border-top-color: var(--ember);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.live.is-starting .browser__favicon use {
	display: none;
}

.browser__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 46px;
	padding: 0 8px;
	border-bottom: 1px solid var(--browser-line);
	font-size: var(--text-xs);
}

.browser__url {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--browser-field);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.browser__button {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: none;
	color: inherit;
	cursor: pointer;
}

.browser__button:hover:not(:disabled) {
	background: var(--browser-field);
}

.browser__button:disabled {
	cursor: default;
	opacity: 0.4;
}

.browser__button svg {
	width: 18px;
	height: 18px;
}

.browser__button.is-spinning svg {
	animation: spin 0.7s var(--ease);
}

@keyframes spin {

	to {
		transform: rotate(360deg);
	}
}

/* The pages are WordPress pages, white in both themes of this site. */
.browser__screen {
	position: relative;
	overflow: hidden;
	background: #fff;
}

.browser__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
}

/* A desktop page, scaled down to the window. */
.browser__frame {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--screen-width, 1280px);
	height: calc(100% / var(--screen-scale, 1));
	border: 0;
	background: #fff;
	transform: scale(var(--screen-scale, 1));
	transform-origin: 0 0;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.live.is-live .browser__frame.is-ready {
	opacity: 1;
}

/* The live demo: one window, the editor and the site in two tabs. */
.live__screens {
	position: relative;
	aspect-ratio: 16 / 9;
}

/*
 * The screen of the other tab stays laid out at the same size, hidden: a page
 * started in a window without size would keep its narrow layout.
 */
.live__screens .browser__screen {
	position: absolute;
	inset: 0;
}

.live[data-tab="editor"] [data-live-screen="front"],
.live[data-tab="front"] [data-live-screen="editor"] {
	visibility: hidden;
}

/*
 * While WordPress starts: the screen of the tab, empty, the sun of the Elio
 * icons turning slowly, and a thin bar as far as the demo has got
 * (--progress, from the script).
 */
.loader {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: var(--paper-2);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.6s ease, visibility 0s 0.6s;
}

.live.is-starting .loader {
	visibility: visible;
	opacity: 1;
	transition: none;
}

.loader::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	background: var(--accent);
	transform: scaleX(var(--progress, 0));
	transform-origin: left;
	transition: transform 1.6s var(--ease);
}

.loader__sun {
	width: 40px;
	height: 40px;
	color: var(--ink-2);
	animation: spin 12s linear infinite;
}

/* What the demo is doing, centered above its window. */
.live__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-s) var(--space-l);
	margin-bottom: var(--space-m);
	color: var(--ink-2);
	font-size: var(--text-s);
}

.live__status-text {
	display: flex;
	align-items: center;
	gap: var(--space-s);
	margin: 0;
}

/* The sun of the demo, rising while WordPress starts. */
.live__status-text::before {
	content: "" / "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--amber);
	box-shadow: 0 0 12px 2px rgb(240 160 68 / 60%);
}

.live.is-starting .live__status-text::before {
	animation: pulse 2s ease-out infinite;
}

@keyframes pulse {

	0% {
		box-shadow: 0 0 0 0 rgb(240 160 68 / 70%);
	}

	100% {
		box-shadow: 0 0 0 10px rgb(240 160 68 / 0%);
	}
}

/* A phone gets the full demo in a new tab: its tabs show pictures. */
@media (max-width: 599px) {

	.scene {
		--lift: 72px;
	}

	.live__screens {
		aspect-ratio: 4 / 5;
	}

	.browser__dots {
		display: none;
	}
}

@media (forced-colors: active) {

	.browser__tab[aria-selected="true"] {
		border-top: 2px solid CanvasText;
	}
}

/* Sections */
.section {
	position: relative;
	padding-block: var(--space-section);
}

/* The features lead straight into the night section. */
.section--features {
	padding-bottom: var(--space-3xl);
}

.section__header {
	margin-bottom: var(--space-3xl);
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: var(--space-2xl) var(--space-3xl);
	align-items: start;
}

.split__aside {
	position: sticky;
	top: 110px;
	display: grid;
	gap: var(--space-l);
}

.split__aside .eyebrow {
	margin-bottom: 0;
}

@media (max-width: 900px) {

	.split {
		grid-template-columns: minmax(0, 1fr);
	}

	.split__aside {
		position: static;
	}
}

/*
 * Features: an editorial grid of cards, each in a light rule, and the count
 * of blocks in a block of warm, muted light, from sand to clay. Every row as
 * tall as the tallest card, so the cards all have one height.
 */
.features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: var(--space-l);
}

.features__list {
	display: contents;
	margin: 0;
	padding: 0;
	list-style: none;
}

.features__count {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
	margin: 0;
	padding: var(--space-xl);
	background: linear-gradient(150deg, var(--amber) 40%, var(--ember));
	color: var(--night);
}

.features__number {
	font-family: var(--serif);
	font-size: var(--text-5xl);
	line-height: 0.8;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.features__unit {
	font-family: var(--serif);
	font-style: italic;
	font-size: var(--text-2xl);
	line-height: 1;
}

.features__note {
	margin-top: auto;
	padding-top: var(--space-l);
	font-size: var(--text-s);
}

.feature {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: var(--space-m);
	padding: var(--space-xl);
	border: 1px solid var(--line);
}

/* After the count of blocks: the delay of their column. */
.feature:nth-child(4n + 1) {
	--reveal-delay: 0.1s;
}

.feature:nth-child(4n + 2) {
	--reveal-delay: 0.2s;
}

.feature:nth-child(4n + 3) {
	--reveal-delay: 0.3s;
}

/* The icon of each card and step large, drawn with a 1.5px line. */
.feature__icon,
.step__icon {
	width: 48px;
	height: 48px;
	margin-bottom: var(--space-xs);
	color: var(--accent);
	stroke-width: 0.75;
}

.feature__title {
	margin: 0;
	font-family: var(--serif);
	font-size: var(--text-2xl);
	font-weight: 400;
	line-height: 1.05;
	text-wrap: balance;
}


.feature p {
	margin: 0;
	color: var(--ink-2);
	font-size: var(--text-s);
}

@media (max-width: 1080px) {

	.features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {

	/* One column: each card its own height, a long one would stretch them all. */
	.features {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: auto;
	}
}

/*
 * Front end: a band of warm light in both color schemes, from russet to gold,
 * a few touches of the sky of the photo in it, drifting slowly. --ember is its
 * darkest color: --ink stays at 4.9:1 at least on all of it.
 */
.section--inverse {
	--band-ink: #1a1611;
	--band-line: rgb(26 22 17 / 30%);
	isolation: isolate;
	overflow: hidden;
	background: var(--ember);
	color: var(--band-ink);
}

.section--inverse::before,
.section--inverse::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -50%;
	animation: drift 26s ease-in-out infinite alternate;
}

.section--inverse::before {
	background:
		radial-gradient(24% 30% at 33% 43%, color-mix(in srgb, var(--sky) 95%, transparent), rgb(183 205 214 / 0%)),
		radial-gradient(closest-side at 30% 40%, var(--gold), rgb(247 212 154 / 0%)),
		radial-gradient(closest-side at 72% 62%, var(--amber), rgb(240 160 68 / 0%));
}

.section--inverse::after {
	background:
		radial-gradient(17% 22% at 40% 70%, color-mix(in srgb, var(--sky-2) 80%, transparent), rgb(147 168 198 / 0%)),
		radial-gradient(closest-side at 62% 34%, #e8703a, rgb(232 112 58 / 0%)),
		radial-gradient(closest-side at 38% 72%, rgb(247 212 154 / 70%), rgb(247 212 154 / 0%));
	animation-duration: 34s;
	animation-direction: alternate-reverse;
}

@keyframes drift {

	to {
		transform: rotate(50deg) scale(1.2) translate(6%, -4%);
	}
}

.section--inverse .eyebrow,
.section--inverse p,
.section--inverse .display em {
	color: var(--band-ink);
}

.section--inverse .eyebrow::before {
	background: var(--band-ink);
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-2xl);
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	padding-top: var(--space-l);
	border-top: 1px solid var(--band-line);
}

.step:nth-child(2) {
	--reveal-delay: 0.12s;
}

.step:nth-child(3) {
	--reveal-delay: 0.24s;
}

.step__icon {
	display: block;
	color: var(--band-ink);
}

.step__title {
	margin: 0 0 var(--space-s);
	font-family: var(--serif);
	font-size: var(--text-2xl);
	font-weight: 400;
	line-height: 1.05;
	color: var(--band-ink);
}

.step p {
	margin: 0;
}

@media (max-width: 860px) {

	.steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* FAQ */
.faq {
	border-top: 1px solid var(--line);
}

.faq details {
	border-bottom: 1px solid var(--line);
}

.faq summary {
	display: flex;
	justify-content: space-between;
	gap: var(--space-l);
	padding: var(--space-l) 0;
	font-family: var(--serif);
	font-size: var(--text-xl);
	line-height: 1.15;
	cursor: pointer;
	list-style: none;
	transition: color 0.2s ease;
}

.faq summary:hover {
	color: var(--accent-2);
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+" / "";
	font-family: var(--sans);
	font-weight: 400;
	color: var(--accent);
	transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
	transform: rotate(45deg);
}

.faq details p {
	margin: 0 0 var(--space-l);
	max-width: 40em;
	color: var(--ink-2);
}

/* Closing */
.closing {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	--closing-sun: min(640px, 72vw);
	padding: var(--space-section) 0 clamp(160px, 28vw, 360px);
	background: var(--night);
	color: var(--on-night);
	text-align: center;
}

.closing__sun {
	position: absolute;
	z-index: -1;
	left: 50%;
	bottom: calc(var(--closing-sun) * -0.58);
	width: var(--closing-sun);
	aspect-ratio: 1;
	translate: -50% 0;
	border-radius: 50%;
	background: radial-gradient(circle at 45% 38%, var(--cream) 0%, var(--gold) 18%, var(--amber) 44%, var(--ember) 76%, var(--rust) 100%);
	animation: glow 6s ease-in-out infinite;
}

@keyframes glow {

	0%,
	100% {
		box-shadow: 0 0 80px 10px rgb(240 160 68 / 30%), 0 0 200px 60px rgb(224 96 42 / 18%);
	}

	50% {
		box-shadow: 0 0 120px 24px rgb(240 160 68 / 45%), 0 0 320px 110px rgb(224 96 42 / 28%);
	}
}

/*
 * The sun rises with the scroll, and sets again when the page goes back up:
 * from the moment the horizon of the section, the top of the footer, comes on
 * screen to the end of the page, so it climbs while the horizon is in sight.
 */
@supports (animation-timeline: view()) {

	body {
		timeline-scope: --horizon;
	}

	.site-footer {
		view-timeline: --horizon block;
	}

	.closing__sun {
		animation: glow 6s ease-in-out infinite, sunrise linear both;
		animation-timeline: auto, --horizon;
		animation-range: normal, entry 0% entry 100%;
	}
}

@keyframes sunrise {

	from {
		translate: -50% 40%;
	}
}

/*
 * Where an animation cannot follow the scroll (Firefox), site.js gives the
 * same course as --sunrise, from 0 to 1; without it, the sun stays up.
 */
@supports not (animation-timeline: view()) {

	.closing__sun {
		translate: -50% calc(40% - var(--sunrise, 1) * 40%);
	}
}

.closing__inner {
	display: grid;
	gap: var(--space-2xl);
}

.closing__title {
	font-size: var(--text-5xl);
}

/*
 * Footer: on the night of the closing, the brand and one line on one side,
 * three short lists of links on the other, then the license and the credit.
 */
.site-footer {
	padding: var(--space-3xl) 0 var(--space-xl);
	border-top: 1px solid rgb(238 231 219 / 12%);
	background: var(--night);
	color: var(--on-night-2);
	font-size: var(--text-s);
}

.site-footer p {
	margin: 0;
}

.site-footer a:hover {
	text-decoration-thickness: 2px;
}

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: var(--space-2xl) var(--space-3xl);
	padding-bottom: var(--space-3xl);
}

.site-footer__about {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: var(--space-m);
	max-width: 32ch;
}

.site-footer .brand {
	margin-bottom: var(--space-xs);
	color: var(--on-night);
}

.site-footer__nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-xl);
}

.site-footer__title {
	margin: 0 0 var(--space-m);
	color: var(--on-night);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.site-footer__group ul {
	display: grid;
	gap: var(--space-s);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Links in a list, set apart by their place: underlined on hover only. */
.site-footer__group a {
	text-decoration: none;
	transition: color 0.2s var(--ease);
}

.site-footer__group a:hover {
	color: var(--on-night);
	text-decoration: underline;
}

/*
 * The arrow of the links that open a new tab, as on the buttons: inline and
 * after a no-break space, so it never goes alone to the next line.
 */
.site-footer__external {
	font-size: 0.9em;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-s) var(--space-xl);
	padding-top: var(--space-l);
	border-top: 1px solid rgb(238 231 219 / 12%);
	font-size: var(--text-xs);
}

@media (max-width: 860px) {

	.site-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 420px) {

	.site-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	html {
		scroll-behavior: auto;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}
