/* ==========================================================================
   Cut Notes — stylesheet
   --------------------------------------------------------------------------
   1.  Fonts
   2.  Design tokens
   3.  Reset and base elements
   4.  Layout: container, sections, page headers
   5.  Buttons, badges and links
   6.  Site header and navigation
   7.  Site footer
   8.  Home: hero, feature grid, steps, call to action
   9.  Guides: filter bar, guide cards, featured guide
   10. Article: header, prose, callouts, related guides
   11. Forms
   12. FAQ
   13. Status pages: confirmation and 404
   14. Utilities
   ========================================================================== */


/* 1. Fonts
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}


/* 2. Design tokens
   --------------------------------------------------------------------------
   Light is the default. The theme switch writes data-theme on <html>; when it
   has not been used, the media query below follows the operating system.
   ========================================================================== */

:root {
	/* surfaces and text */
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-muted: rgba(245, 245, 245, 0.3);
	--surface-raised: rgba(245, 245, 245, 0.6);
	--surface-soft: rgba(245, 245, 245, 0.4);
	--text: #0a0a0a;
	--text-muted: #737373;
	--text-strong: #171717;
	--text-body: #404040;

	/* lines */
	--line: #e5e5e5;
	--line-soft: rgba(229, 229, 229, 0.6);
	--line-faint: rgba(229, 229, 229, 0.4);

	/* filled controls */
	--primary: #171717;
	--primary-text: #fafafa;
	--focus-ring: #0a0a0a;

	/* accent, used sparingly: glow, check marks, small highlights */
	--brand: #fb923c;
	--brand-strong: #f97316;
	--brand-glow: rgba(251, 146, 60, 0.5);
	--glow-wide: rgba(253, 186, 114, 0.5);
	--glow-core: rgba(251, 146, 60, 0.3);
	--glow-cta: rgba(251, 146, 60, 0.25);

	--danger: #ef4444;
	--success: #10b981;
	--success-line: rgba(16, 185, 129, 0.3);
	--success-fill: rgba(16, 185, 129, 0.1);

	/* header and mockup */
	--header-bg: rgba(255, 255, 255, 0.6);
	--mockup-frame: rgba(245, 245, 245, 0.05);
	--mockup-line: rgba(229, 229, 229, 0.05);
	--mockup-line-top: rgba(229, 229, 229, 0.15);

	/* shape */
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--radius-pill: 999px;

	/* type */
	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
		sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
		"Liberation Mono", "Courier New", monospace;

	/* metrics */
	--container: 1280px;
	--gutter: 16px;
	--header-height: 56px;

	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0a0a0a;
	--surface: #0a0a0a;
	--surface-muted: rgba(38, 38, 38, 0.3);
	--surface-raised: rgba(38, 38, 38, 0.6);
	--surface-soft: rgba(38, 38, 38, 0.4);
	--text: #fafafa;
	--text-muted: #a3a3a3;
	--text-strong: #ffffff;
	--text-body: #d4d4d4;

	--line: #262626;
	--line-soft: rgba(38, 38, 38, 0.6);
	--line-faint: rgba(38, 38, 38, 0.4);

	--primary: #fafafa;
	--primary-text: #171717;
	--focus-ring: #d4d4d4;

	--brand: #fdba72;
	--brand-strong: #fb923c;
	--brand-glow: rgba(253, 186, 114, 0.5);
	--glow-wide: rgba(251, 146, 60, 0.5);
	--glow-core: rgba(253, 186, 114, 0.3);
	--glow-cta: rgba(253, 186, 114, 0.25);

	--danger: #f87171;

	--header-bg: rgba(10, 10, 10, 0.6);
	--mockup-frame: rgba(38, 38, 38, 0.05);
	--mockup-line: rgba(38, 38, 38, 0.05);
	--mockup-line-top: rgba(38, 38, 38, 0.15);

	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--bg: #0a0a0a;
		--surface: #0a0a0a;
		--surface-muted: rgba(38, 38, 38, 0.3);
		--surface-raised: rgba(38, 38, 38, 0.6);
		--surface-soft: rgba(38, 38, 38, 0.4);
		--text: #fafafa;
		--text-muted: #a3a3a3;
		--text-strong: #ffffff;
		--text-body: #d4d4d4;

		--line: #262626;
		--line-soft: rgba(38, 38, 38, 0.6);
		--line-faint: rgba(38, 38, 38, 0.4);

		--primary: #fafafa;
		--primary-text: #171717;
		--focus-ring: #d4d4d4;

		--brand: #fdba72;
		--brand-strong: #fb923c;
		--brand-glow: rgba(253, 186, 114, 0.5);
		--glow-wide: rgba(251, 146, 60, 0.5);
		--glow-core: rgba(253, 186, 114, 0.3);
		--glow-cta: rgba(253, 186, 114, 0.25);

		--danger: #f87171;

		--header-bg: rgba(10, 10, 10, 0.6);
		--mockup-frame: rgba(38, 38, 38, 0.05);
		--mockup-line: rgba(38, 38, 38, 0.05);
		--mockup-line-top: rgba(38, 38, 38, 0.15);

		color-scheme: dark;
	}
}


/* 3. Reset and base elements
   ========================================================================== */

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

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

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 24px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

main {
	flex: 1;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

p {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

::selection {
	background-color: var(--brand);
	color: #0a0a0a;
}


/* 4. Layout
   ========================================================================== */

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* The header and footer measure 1280px including their gutter, unlike the
   page sections where 1280px is the content itself. */
.container--tight {
	max-width: var(--container);
}

.container--narrow {
	max-width: calc(768px + var(--gutter) * 2);
}

.section {
	padding-block: 64px;
}

/* used when a section follows a page header and should not add space again;
   written with both classes so it also beats the responsive .section rule */
.section.section--flush-top {
	padding-top: 0;
}

.section--muted {
	background-color: var(--surface-muted);
	border-block: 1px solid var(--line);
}

.section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 672px;
	margin-inline: auto;
	margin-bottom: 48px;
	text-align: center;
}

.section-head--split {
	max-width: none;
	margin-inline: 0;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	text-align: left;
}

.section-head--split > div {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 576px;
}

.section-title {
	font-size: 30px;
	line-height: 36px;
}

.section-lede {
	color: var(--text-muted);
}

.page-head {
	padding-top: 48px;
	padding-bottom: 32px;
}

.page-head__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 768px;
}

.page-title {
	font-size: 30px;
	line-height: 36px;
}

.page-lede {
	max-width: 672px;
	color: var(--text-muted);
	font-size: 18px;
	line-height: 28px;
}

@media (min-width: 640px) {
	.section {
		padding-block: 96px;
	}

	.section-title,
	.page-title {
		font-size: 36px;
		line-height: 40px;
	}

	.page-head {
		padding-top: 64px;
	}
}


/* 5. Buttons, badges and links
   ========================================================================== */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding-inline: 16px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background-color: transparent;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
	transition: background-color 150ms ease, border-color 150ms ease,
		color 150ms ease, opacity 150ms ease;
}

.button svg {
	width: 16px;
	height: 16px;
	flex: none;
}

.button--primary {
	background-color: var(--primary);
	color: var(--primary-text);
}

.button--primary:hover {
	opacity: 0.9;
}

.button--glow {
	border-color: var(--line);
	background-color: var(--surface-soft);
	color: var(--text);
	box-shadow: 0 0 24px -6px var(--brand-glow);
}

.button--glow:hover {
	background-color: var(--surface-raised);
}

.button--ghost {
	color: var(--text);
}

.button--ghost:hover {
	background-color: var(--surface-raised);
}

.button--large {
	height: 44px;
	padding-inline: 32px;
}

.button--small {
	height: 36px;
	padding-inline: 12px;
}

.button--block {
	width: 100%;
}

.button--icon {
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--text);
}

.button--icon:hover {
	background-color: var(--surface-raised);
}

.button--icon svg {
	width: 16px;
	height: 16px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 2px 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	white-space: nowrap;
}

.badge--solid {
	border-color: transparent;
	background-color: var(--surface-raised);
	color: var(--text);
	font-weight: 500;
}

.badge__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.badge__link svg {
	width: 12px;
	height: 12px;
}

.badge__muted {
	color: var(--text-muted);
	font-weight: 400;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}

.text-link svg {
	width: 16px;
	height: 16px;
	transition: transform 150ms ease;
}

.text-link:hover svg {
	transform: translateX(2px);
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
	transition: color 150ms ease;
}

.back-link:hover {
	color: var(--text);
}

.back-link svg {
	width: 16px;
	height: 16px;
}

.meta-line {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}


/* 6. Site header and navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--line-soft);
	background-color: var(--header-bg);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--header-height);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: var(--radius-sm);
	background-color: var(--primary);
	color: var(--primary-text);
}

.brand__mark svg {
	width: 14px;
	height: 14px;
}

.site-nav {
	display: none;
	align-items: center;
	gap: 4px;
}

.site-nav__link {
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	transition: background-color 150ms ease, color 150ms ease;
}

.site-nav__link:hover {
	background-color: var(--surface-raised);
	color: var(--text);
}

.site-nav__link[aria-current="page"] {
	color: var(--text);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.site-header__cta {
	display: none;
}

.menu-toggle {
	display: inline-flex;
}

.menu-toggle .icon-close {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.mobile-nav {
	border-top: 1px solid var(--line-soft);
	background-color: var(--bg);
	padding: 12px var(--gutter);
}

.mobile-nav[hidden] {
	display: none;
}

.mobile-nav__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mobile-nav__link {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}

.mobile-nav__link:hover {
	background-color: var(--surface-raised);
	color: var(--text);
}

.mobile-nav__cta {
	margin-top: 8px;
}

@media (min-width: 768px) {
	.site-nav,
	.site-header__cta {
		display: flex;
	}

	.menu-toggle,
	.mobile-nav {
		display: none;
	}
}


/* 7. Site footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--line-soft);
}

.site-footer__top {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-block: 48px;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 320px;
}

.site-footer__tagline {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

.footer-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	font-size: 14px;
	line-height: 20px;
}

.footer-nav__title {
	margin-bottom: 12px;
	font-weight: 500;
}

.footer-nav__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--text-muted);
}

.footer-nav__list a:hover {
	color: var(--text);
}

.site-footer__bottom {
	border-top: 1px solid var(--line-soft);
}

.site-footer__bottom-inner {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-block: 20px;
	color: var(--text-muted);
	font-size: 12px;
	line-height: 16px;
}

@media (min-width: 768px) {
	.site-footer__top {
		flex-direction: row;
		justify-content: space-between;
	}

	.site-footer__bottom-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}


/* 8. Home page
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	/* on a phone the artwork runs into the next section, so there is no
	   bottom padding until the layout gets wider */
	padding: 48px 16px 0;
	/* the artwork fades out instead of ending on a hard edge */
	-webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: var(--container);
	margin-inline: auto;
	padding-top: 64px;
	text-align: center;
}

.hero__title {
	position: relative;
	z-index: 10;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.25;
	/* the display size is set solid; tightening it would change the wrap */
	letter-spacing: normal;
	background-image: linear-gradient(
		to right in oklab,
		var(--text),
		var(--text-muted)
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero__lede {
	position: relative;
	z-index: 10;
	max-width: 550px;
	color: var(--text-muted);
	font-weight: 500;
}

.hero__actions {
	position: relative;
	z-index: 10;
	display: flex;
	/* the pair stays on one line and spans the width on a phone */
	justify-content: center;
	gap: 16px;
}

.hero__figure {
	position: relative;
	/* shrinks to the screenshot so the frame hugs it and stays centred */
	padding-top: 48px;
}

/* two stacked radial gradients make the warm glow behind the screenshot */
.hero__glow {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	pointer-events: none;
}

.hero__glow::before,
.hero__glow::after {
	content: "";
	position: absolute;
	left: 50%;
	border-radius: 50%;
	transform: translateX(-50%) scale(2.5);
}

.hero__glow::before {
	width: 60%;
	height: 256px;
	background-image: radial-gradient(
		ellipse at center,
		var(--glow-wide) 10%,
		transparent 60%
	);
}

.hero__glow::after {
	width: 40%;
	height: 128px;
	background-image: radial-gradient(
		ellipse at center,
		var(--glow-core) 10%,
		transparent 60%
	);
	transform: translateX(-50%) scale(2);
}

.mockup-frame {
	position: relative;
	z-index: 10;
	padding: 8px;
	border-radius: var(--radius-xl);
	background-color: var(--mockup-frame);
}

.mockup {
	overflow: hidden;
	border: 1px solid var(--mockup-line);
	border-top-color: var(--mockup-line-top);
	border-radius: var(--radius-sm);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.mockup__light {
	display: block;
}

.mockup__dark {
	display: none;
}

:root[data-theme="dark"] .mockup__light {
	display: none;
}

:root[data-theme="dark"] .mockup__dark {
	display: block;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) .mockup__light {
		display: none;
	}

	:root:not([data-theme]) .mockup__dark {
		display: block;
	}
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 16px;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background-color: var(--surface);
}

.card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background-color: var(--surface-raised);
}

.card__icon svg {
	width: 20px;
	height: 20px;
}

.card__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: normal;
}

.card__text {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

.step {
	counter-increment: step;
}

.step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.cta {
	position: relative;
	overflow: hidden;
	padding: 64px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background-color: var(--surface);
	text-align: center;
}

.cta::before {
	content: "";
	position: absolute;
	top: -128px;
	left: 0;
	right: 0;
	height: 256px;
	background-image: radial-gradient(
		ellipse at center,
		var(--glow-cta) 0%,
		transparent 65%
	);
	pointer-events: none;
}

.cta__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-width: 576px;
	margin-inline: auto;
}

.cta__text {
	color: var(--text-muted);
}

.cta .actions {
	padding-top: 8px;
}

.check-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

.check-row li,
.check-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.check-row svg,
.check-list svg {
	width: 16px;
	height: 16px;
	flex: none;
	margin-top: 3px;
	color: var(--brand);
}

.check-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

@media (min-width: 640px) {
	.hero {
		padding-block: 96px;
	}

	.hero__glow::before {
		height: 512px;
	}

	.hero__glow::after {
		height: 256px;
	}

	.hero__inner {
		gap: 48px;
	}

	.hero__title {
		font-size: 60px;
		line-height: 1.25;
	}

	.hero__lede {
		font-size: 20px;
		line-height: 28px;
	}

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

@media (min-width: 768px) {
	.hero {
		padding-block: 128px;
	}

	.hero__title {
		font-size: 96px;
	}

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

	.cta {
		padding-block: 80px;
	}
}

@media (min-width: 1024px) {
	.card-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}


/* 9. Guides library
   ========================================================================== */

.guide-list {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.filter {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding-inline: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background-color: var(--bg);
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	transition: background-color 150ms ease, border-color 150ms ease,
		color 150ms ease;
}

.filter:hover {
	border-color: var(--text-muted);
	color: var(--text);
}

.filter[aria-pressed="true"] {
	border-color: transparent;
	background-color: var(--primary);
	color: var(--primary-text);
}

.filter-count {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

.guide-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background-color: var(--surface);
	transition: border-color 150ms ease;
}

.guide-card:hover {
	border-color: var(--text-muted);
}

.guide-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	font-size: 12px;
	line-height: 16px;
}

.guide-card__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: normal;
}

.guide-card:hover .guide-card__title {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.guide-card__text {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

.guide-card__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
	padding-top: 8px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}

.guide-card__more svg {
	width: 16px;
	height: 16px;
	transition: transform 150ms ease;
}

.guide-card:hover .guide-card__more svg {
	transform: translateX(2px);
}

.featured-guide {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background-color: var(--surface);
	transition: border-color 150ms ease;
}

.featured-guide:hover {
	border-color: var(--text-muted);
}

.featured-guide[hidden] {
	display: none;
}

/* The first matching card is moved in here by the filter script; inside the
   featured block it drops its own frame and gets a larger heading. */
.featured-guide .guide-card {
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
}

.featured-guide .guide-card__title {
	font-size: 24px;
	line-height: 32px;
	letter-spacing: -0.02em;
}

.featured-guide .guide-card__text {
	font-size: 16px;
	line-height: 24px;
}

/* a small abstract timeline, drawn with plain elements */
.waveform {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	min-height: 200px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background-color: var(--surface-muted);
}

.waveform__clips {
	display: flex;
	gap: 6px;
}

.waveform__clip {
	height: 12px;
	border-radius: 3px;
	background-color: var(--line);
}

.waveform__clip--active {
	background-color: var(--brand);
}

.waveform__bars {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 64px;
}

.waveform__bar {
	flex: 1;
	border-radius: 2px;
	background-color: var(--line);
}

.waveform__ruler {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.waveform__ruler span {
	height: 6px;
	border-radius: 3px;
	background-color: var(--line);
}

@media (min-width: 768px) {
	.featured-guide {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 32px;
	}

	.featured-guide .guide-card__title {
		font-size: 30px;
		line-height: 36px;
	}

	.guide-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

.guide-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.guide-grid [hidden] {
	display: none;
}

@media (min-width: 1024px) {
	.guide-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* on the home page the three cards go straight to a row of three */
@media (min-width: 768px) {
	.guide-grid--row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* 10. Article
   ========================================================================== */

.article {
	padding-block: 48px;
}

.article__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin-block: 32px 40px;
}

.article__title {
	font-size: 30px;
	line-height: 36px;
}

.article__lede {
	color: var(--text-muted);
	font-size: 18px;
	line-height: 28px;
}

.prose {
	color: var(--text-body);
	font-size: 16px;
	line-height: 1.75;
}

.prose > * + * {
	margin-top: 20px;
}

.prose > :first-child {
	margin-top: 0;
}

.prose h2 {
	margin-top: 48px;
	margin-bottom: 24px;
	color: var(--text-strong);
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
}

.prose h3 {
	margin-top: 32px;
	margin-bottom: 12px;
	color: var(--text-strong);
	font-size: 20px;
	font-weight: 600;
	line-height: 32px;
}

.prose h2 + *,
.prose h3 + * {
	margin-top: 0;
}

.prose strong {
	color: var(--text-strong);
	font-weight: 600;
}

.prose a {
	color: var(--text-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

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

.prose ul,
.prose ol {
	padding-left: 26px;
}

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose li {
	margin-top: 8px;
	padding-left: 6px;
}

.prose li::marker {
	color: var(--text-muted);
}

.prose blockquote {
	margin: 24px 0;
	padding-left: 20px;
	border-left: 3px solid var(--line);
	color: var(--text-muted);
	font-style: italic;
}

.prose code {
	padding: 2px 5px;
	border-radius: 4px;
	background-color: var(--surface-raised);
	font-family: var(--font-mono);
	font-size: 0.875em;
}

.prose pre {
	margin: 24px 0;
	padding: 20px;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background-color: var(--surface-muted);
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 1.7;
	white-space: pre-wrap;
}

.prose pre code {
	padding: 0;
	background: none;
	font-size: inherit;
}

.kbd {
	display: inline-block;
	padding: 2px 6px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background-color: var(--surface-raised);
	box-shadow: 0 1px 0 var(--line);
	color: var(--text-strong);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
}

.table-scroll {
	margin: 24px 0;
	overflow-x: auto;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 20px;
	text-align: left;
}

.data-table th,
.data-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.data-table th {
	color: var(--text-strong);
	font-weight: 600;
	white-space: nowrap;
}

.data-table caption {
	margin-bottom: 12px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
	text-align: left;
}

.callout {
	display: flex;
	gap: 12px;
	margin: 24px 0;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background-color: var(--surface-muted);
	font-size: 14px;
	line-height: 20px;
}

.callout > svg {
	width: 18px;
	height: 18px;
	flex: none;
	margin-top: 2px;
	color: var(--brand);
}

.callout__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.callout__title {
	color: var(--text-strong);
	font-weight: 600;
}

.callout p {
	margin: 0;
}

.callout .check-list {
	gap: 6px;
}

/* inside .prose the bullet-list rules would otherwise indent it */
.prose .callout .check-list,
.prose .callout .check-list > li {
	margin-top: 0;
	padding-left: 0;
}

.related {
	margin-top: 64px;
	padding-top: 48px;
	border-top: 1px solid var(--line);
}

.related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}

.related__title {
	font-size: 24px;
	line-height: 32px;
}

@media (min-width: 640px) {
	.article {
		padding-block: 64px;
	}

	.article__title {
		font-size: 36px;
		line-height: 40px;
	}
}


/* 11. Forms
   ========================================================================== */

.form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background-color: var(--surface);
}

.form__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.form__title {
	font-size: 20px;
	line-height: 28px;
}

.form__note {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

/* the closing note under the submit button is centred */
.form > .form__note:last-child {
	text-align: center;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.field__label {
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}

.field__optional {
	color: var(--text-muted);
	font-weight: 400;
}

.field__control {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background-color: var(--surface);
	font-size: 14px;
	line-height: 20px;
	transition: border-color 150ms ease;
}

textarea.field__control {
	min-height: 120px;
	resize: vertical;
}

.field__control::placeholder {
	color: var(--text-muted);
}

.field__control:focus-visible {
	outline: 2px solid var(--focus-ring);
	outline-offset: 2px;
}

.field__control[aria-invalid="true"] {
	border-color: var(--danger);
}

.field__hint {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

.field__error {
	color: var(--danger);
	font-size: 14px;
	line-height: 20px;
}

.checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.checkbox input {
	width: 16px;
	height: 16px;
	flex: none;
	margin: 3px 0 0;
	accent-color: var(--primary);
}

.checkbox label {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

.checkbox a {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.choice-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.choice {
	position: relative;
	display: inline-flex;
}

.choice input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.choice span {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding-inline: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
	transition: background-color 150ms ease, color 150ms ease;
}

.choice input:checked + span {
	background-color: var(--surface-raised);
	color: var(--text);
}

.choice input:focus-visible + span {
	outline: 2px solid var(--focus-ring);
	outline-offset: 2px;
}

.notice {
	display: flex;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background-color: var(--surface-muted);
	font-size: 14px;
	line-height: 20px;
}

.notice svg {
	width: 16px;
	height: 16px;
	flex: none;
	margin-top: 3px;
	color: var(--brand);
}

.notice__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.notice__title {
	font-weight: 500;
}

.notice__text {
	color: var(--text-muted);
}

.form-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.aside-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background-color: var(--surface);
}

.topic-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.topic {
	display: flex;
	gap: 12px;
}

.topic__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex: none;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background-color: var(--surface-raised);
}

.topic__icon svg {
	width: 16px;
	height: 16px;
}

.topic__title {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: normal;
}

.topic__text {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

@media (min-width: 1024px) {
	.form-columns {
		grid-template-columns: 1.1fr 0.9fr;
	}

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


/* 12. FAQ
   ========================================================================== */

.faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 768px;
}

.faq__item {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background-color: var(--surface);
}

.faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	font-weight: 500;
	list-style: none;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__question svg {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--text-muted);
	transition: transform 200ms ease;
}

.faq__item[open] .faq__question svg {
	transform: rotate(180deg);
}

.faq__answer {
	margin-top: 12px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}


/* 13. Status pages
   ========================================================================== */

.status {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	min-height: 60svh;
	padding: 64px var(--gutter);
}

.status__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
	max-width: 512px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background-color: var(--surface);
	text-align: center;
}

.status__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	color: var(--text-muted);
}

.status__icon--success {
	border-color: var(--success-line);
	background-color: var(--success-fill);
	color: var(--success);
}

.status__icon svg {
	width: 24px;
	height: 24px;
}

.status__title {
	font-size: 30px;
	line-height: 36px;
}

.status__text {
	color: var(--text-muted);
}

.status__note {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

.status__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
	text-align: left;
}

.status__list a {
	color: var(--text-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

.status__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.error-code {
	font-size: 72px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: var(--line);
}

@media (min-width: 640px) {
	.status__title {
		font-size: 36px;
		line-height: 40px;
	}
}


/* 14. Utilities
   ========================================================================== */

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

.stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

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

.quote {
	max-width: 672px;
	margin-inline: auto;
	padding: 48px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	text-align: center;
}

.quote p {
	font-size: 24px;
	font-weight: 500;
	line-height: 32px;
	letter-spacing: -0.02em;
}

.quote figcaption {
	margin-top: 12px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 20px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
