/*
Theme Name: YT2MP4 Downloader
Theme URI: https://yttomp4.cv/
Author: YT2MP4
Description: A focused video downloader theme for yttomp4.cv. Ports the lagoon design system: teal and orange brand, Bricolage Grotesque display type, glassy downloader card, and a full page set covering every supported platform, guides, FAQ and legal pages.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yttomp4
Tags: custom-colors, custom-menu, full-width-template, translation-ready
*/

/* -------------------------------------------------------------------------
 * 1. Design tokens
 *
 * Ported from the source design system. Colours stay in oklch so the palette
 * keeps the same perceptual spacing as the original, and every value is a
 * custom property so an admin can retint the site without touching layout.
 * ---------------------------------------------------------------------- */

:root {
	--radius: 0.75rem;

	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-heading: "Bricolage Grotesque", "Inter", system-ui, sans-serif;

	--background: oklch(0.98 0.014 191);
	--foreground: oklch(0.30 0.066 194);
	--card: oklch(1 0 0);
	--card-foreground: oklch(0.30 0.066 194);
	--muted: oklch(0.95 0.018 191);
	--muted-foreground: oklch(0.50 0.035 201);
	--primary: oklch(0.49 0.094 193);
	--primary-foreground: oklch(0.99 0.004 190);
	--secondary: oklch(0.94 0.035 190);
	--secondary-foreground: oklch(0.39 0.079 194);
	--accent: oklch(0.70 0.184 32);
	--accent-strong: oklch(0.63 0.21 31);
	--accent-foreground: oklch(0.99 0.004 190);
	--destructive: oklch(0.577 0.245 27.325);
	--border: oklch(0.86 0.035 192);
	--input: oklch(0.86 0.035 192);
	--ring: oklch(0.70 0.184 32);

	--header: oklch(0.30 0.066 194);
	--header-foreground: oklch(0.99 0.004 190);
	--header-muted: oklch(0.84 0.085 190);
	--header-line: oklch(0.99 0.004 190 / 0.15);

	--shadow-brand: 0 18px 44px -18px oklch(0.70 0.184 32 / 0.62);
	--shadow-card: 0 1px 2px oklch(0.30 0.066 194 / 0.06), 0 12px 32px -22px oklch(0.30 0.066 194 / 0.35);
	--site: 80rem;
	--content: 72rem;
}

/* -------------------------------------------------------------------------
 * 2. Reset and base
 * ---------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

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

a {
	color: var(--primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
	outline-color: var(--ring);
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--foreground);
	font-weight: 800;
}

p {
	margin: 0;
}

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

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	left: 1rem;
	top: -5rem;
	z-index: 100;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--accent-foreground);
	padding: 0.75rem 1rem;
	font-weight: 700;
	transition: top 160ms ease;
}

.skip-link:focus {
	top: 1rem;
}

/* -------------------------------------------------------------------------
 * 3. Layout helpers
 * ---------------------------------------------------------------------- */

.site-wrap {
	width: 100%;
	max-width: var(--site);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.content-section {
	padding: 4.5rem 1.25rem;
}

.content-section--card {
	background: var(--card);
}

.content-section--secondary {
	background: var(--secondary);
}

.content-section--header {
	background: var(--header);
	color: var(--primary-foreground);
}

.content-inner {
	width: 100%;
	max-width: var(--content);
	margin-inline: auto;
}

.content-narrow {
	width: 100%;
	max-width: 48rem;
	margin-inline: auto;
}

.eyebrow {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--primary);
	margin: 0;
}

.content-section--header .eyebrow {
	color: var(--header-muted);
}

.section-title {
	margin-top: 0.75rem;
	font-size: clamp(1.75rem, 3.2vw, 2.25rem);
}

.lead {
	margin-top: 1.25rem;
	line-height: 1.8;
	color: var(--muted-foreground);
}

.grid-2 {
	display: grid;
	gap: 3rem;
}

.grid-cards {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

@media (min-width: 1024px) {
	.grid-2 {
		grid-template-columns: 1fr 1fr;
	}

	.grid-2--aside {
		grid-template-columns: 1fr 320px;
	}
}

/* -------------------------------------------------------------------------
 * 4. Buttons
 * ---------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
	text-decoration: none;
	white-space: nowrap;
}

.btn:hover {
	text-decoration: none;
}

.btn svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

.btn--hero {
	background: var(--accent);
	color: var(--accent-foreground);
	box-shadow: var(--shadow-brand);
	padding: 0.875rem 1.5rem;
	font-size: 1rem;
}

.btn--hero:hover {
	background: var(--accent-strong);
	transform: translateY(-1px);
}

.btn--hero:disabled {
	opacity: 0.62;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.btn--primary {
	background: var(--primary);
	color: var(--primary-foreground);
}

.btn--primary:hover {
	background: oklch(0.44 0.094 193);
}

.btn--header {
	background: color-mix(in oklch, var(--primary-foreground) 14%, transparent);
	color: var(--header-foreground);
	border-color: color-mix(in oklch, var(--primary-foreground) 22%, transparent);
}

.btn--header:hover {
	background: color-mix(in oklch, var(--primary-foreground) 24%, transparent);
}

.btn--outline {
	background: var(--card);
	border-color: var(--border);
	color: var(--foreground);
}

.btn--outline:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.btn--lg {
	padding: 0.875rem 1.375rem;
	font-size: 1rem;
	min-height: 3rem;
}

.btn--icon {
	padding: 0.5rem;
}

/* -------------------------------------------------------------------------
 * 5. Header and navigation
 * ---------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in oklch, var(--header) 95%, transparent);
	border-bottom: 1px solid var(--header-line);
	color: var(--header-foreground);
	backdrop-filter: blur(12px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: 4rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--header-foreground);
	text-decoration: none;
	letter-spacing: -0.02em;
}

.brand:hover {
	text-decoration: none;
}

.brand__mark {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.65rem;
	background: var(--accent);
	color: var(--accent-foreground);
	font-size: 0.95rem;
	font-weight: 800;
}

.brand__text {
	color: var(--header-foreground);
}

.brand__accent {
	color: var(--accent);
}

.nav {
	display: none;
	align-items: center;
	gap: 1.5rem;
}

.nav-link {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--header-muted);
	text-decoration: none;
	transition: color 160ms ease;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
	color: var(--header-foreground);
	text-decoration: none;
}

.nav-item {
	position: relative;
}

.nav-item__panel {
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	padding-top: 0.75rem;
	width: 17rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 160ms ease, visibility 160ms ease;
}

.nav-item:hover .nav-item__panel,
.nav-item:focus-within .nav-item__panel {
	opacity: 1;
	visibility: visible;
}

.nav-item__panel-inner {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	padding: 0.5rem;
}

.nav-item__panel a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 0.75rem;
	border-radius: calc(var(--radius) - 2px);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--card-foreground);
	text-decoration: none;
}

.nav-item__panel a:hover {
	background: var(--muted);
	color: var(--primary);
	text-decoration: none;
}

.nav-icon {
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 0.5rem;
	background: var(--secondary);
	color: var(--primary);
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 0.8rem;
	flex-shrink: 0;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

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

.mobile-nav {
	display: none;
	border-top: 1px solid var(--header-line);
	background: var(--header);
	padding: 0.75rem 1.25rem 1.25rem;
}

.mobile-nav.is-open {
	display: block;
}

.mobile-nav a {
	display: block;
	padding: 0.75rem 0.75rem;
	border-radius: calc(var(--radius) - 2px);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--header-muted);
	text-decoration: none;
}

.mobile-nav a:hover {
	background: color-mix(in oklch, var(--primary-foreground) 10%, transparent);
	color: var(--header-foreground);
	text-decoration: none;
}

@media (min-width: 1024px) {
	.nav {
		display: flex;
	}

	.nav-toggle {
		display: none;
	}

	.mobile-nav {
		display: none !important;
	}
}

/* -------------------------------------------------------------------------
 * 6. Hero
 * ---------------------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(to bottom, var(--primary), var(--header));
	color: var(--primary-foreground);
	padding: 3.5rem 1.25rem 4rem;
	text-align: center;
}

.hero--page {
	padding: 3.5rem 1.25rem 3.75rem;
}

.hero--tall {
	min-height: calc(100svh - 4rem);
	padding-top: 4rem;
}

.hero__inner {
	position: relative;
	margin-inline: auto;
	max-width: var(--site);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid color-mix(in oklch, var(--primary-foreground) 25%, transparent);
	background: color-mix(in oklch, var(--primary-foreground) 10%, transparent);
	border-radius: 999px;
	padding: 0.3rem 0.875rem;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--header-muted);
}

.hero__dot {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 999px;
	background: var(--accent);
}

.hero h1 {
	margin-top: 1.25rem;
	max-width: 56rem;
	font-size: clamp(2.25rem, 5.5vw, 3.75rem);
	line-height: 1.04;
	color: var(--primary-foreground);
}

.hero__intro {
	margin-top: 1.25rem;
	max-width: 42rem;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--header-muted);
}

.hero__downloader {
	margin-top: 2rem;
	width: 100%;
	display: flex;
	justify-content: center;
}

.hero__steps {
	margin-top: 1.75rem;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	max-width: 56rem;
	text-align: left;
	font-size: 0.875rem;
}

.hero__step {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid color-mix(in oklch, var(--primary-foreground) 15%, transparent);
	background: color-mix(in oklch, var(--primary-foreground) 8%, transparent);
	border-radius: 0.5rem;
	padding: 0.75rem;
}

.hero__step-num {
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-foreground);
	font-size: 0.75rem;
	font-weight: 800;
	flex-shrink: 0;
}

.hero__note {
	margin-top: 1.5rem;
	max-width: 48rem;
	font-size: 0.75rem;
	line-height: 1.6;
	color: var(--header-muted);
}

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

/* Decorative atmosphere: light shafts and rising bubbles, both paused for
   anyone who has asked their system to reduce motion. */
.shaft {
	position: absolute;
	inset-block: 0;
	width: 4rem;
	background: linear-gradient(180deg, oklch(0.91 0.10 189 / 0.45), transparent);
	transform: skewX(-16deg);
	filter: blur(24px);
	animation: shimmer 7s ease-in-out infinite;
	pointer-events: none;
}

.shaft--1 { left: 12%; }
.shaft--2 { left: 43%; animation-delay: 2s; }
.shaft--3 { left: 72%; animation-delay: 3.5s; }

.bubble {
	position: absolute;
	bottom: -2rem;
	border-radius: 999px;
	background: radial-gradient(circle at 32% 28%, var(--header-foreground), transparent 70%);
	opacity: 0.6;
	animation: rise linear infinite;
	pointer-events: none;
}

.bubble--1 { left: 8%; width: 0.75rem; height: 0.75rem; animation-duration: 15s; }
.bubble--2 { left: 34%; width: 1rem; height: 1rem; animation-duration: 18s; }
.bubble--3 { left: 77%; width: 0.75rem; height: 0.75rem; animation-duration: 12s; }

@keyframes shimmer {
	0%, 100% { opacity: 0.22; }
	50% { opacity: 0.55; }
}

@keyframes rise {
	0% { transform: translateY(20px) scale(0.9); opacity: 0; }
	100% { transform: translateY(-120px) scale(1.08); opacity: 0; }
}

@keyframes sheen {
	0% { transform: translateX(-150%) skewX(-18deg); }
	100% { transform: translateX(370%) skewX(-18deg); }
}

@keyframes loading {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(340%); }
}

/* -------------------------------------------------------------------------
 * 7. Downloader
 * ---------------------------------------------------------------------- */

.downloader {
	width: 100%;
	max-width: 56rem;
	text-align: left;
}

.downloader--compact {
	max-width: 48rem;
}

.downloader__form {
	position: relative;
	overflow: hidden;
	border: 1px solid color-mix(in oklch, var(--primary-foreground) 25%, transparent);
	background: color-mix(in oklch, var(--card) 95%, transparent);
	border-radius: 1rem;
	padding: 0.625rem;
	box-shadow: 0 24px 60px -28px oklch(0.30 0.066 194 / 0.55);
}

.downloader__form::after {
	content: "";
	position: absolute;
	inset-block: 0;
	width: 30%;
	background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.55), transparent);
	animation: sheen 4s ease-in-out infinite;
	pointer-events: none;
}

.downloader__label {
	display: block;
	padding: 0 0.5rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--foreground);
}

.downloader__row {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.downloader__field {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 3.25rem;
	flex: 1;
	border: 1px solid var(--input);
	background: var(--background);
	border-radius: 0.75rem;
	padding: 0 0.75rem;
}

.downloader__field:focus-within {
	border-color: var(--ring);
	box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 30%, transparent);
}

.downloader__field svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	color: var(--muted-foreground);
}

.downloader__field input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.75rem 0;
	font-size: 1rem;
}

.downloader__field input:focus {
	outline: none;
}

.downloader__hint {
	padding: 0.5rem 0.5rem 0;
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

.downloader__examples {
	margin-top: 0.75rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 1.25rem;
	font-size: 0.75rem;
	color: color-mix(in oklch, var(--primary-foreground) 75%, transparent);
}

.downloader__status {
	margin-top: 1.25rem;
}

.panel {
	border-radius: 1rem;
	padding: 1rem;
	text-align: left;
}

.panel--progress {
	border: 1px solid color-mix(in oklch, var(--primary-foreground) 20%, transparent);
	background: color-mix(in oklch, var(--primary-foreground) 10%, transparent);
	color: var(--primary-foreground);
}

.panel--error {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	border: 1px solid color-mix(in oklch, var(--destructive) 30%, transparent);
	background: color-mix(in oklch, var(--destructive) 12%, transparent);
	color: var(--primary-foreground);
	font-size: 0.875rem;
}

.panel--result {
	border: 1px solid color-mix(in oklch, var(--primary-foreground) 20%, transparent);
	background: color-mix(in oklch, var(--primary-foreground) 10%, transparent);
	color: var(--primary-foreground);
	backdrop-filter: blur(4px);
}

.panel--result h2 {
	color: var(--primary-foreground);
}

.panel__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
}

.panel__head svg {
	width: 1rem;
	height: 1rem;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.loading-track {
	margin-top: 0.75rem;
	height: 0.375rem;
	overflow: hidden;
	border-radius: 999px;
	background: color-mix(in oklch, var(--primary-foreground) 15%, transparent);
}

.loading-bar {
	height: 100%;
	width: 33%;
	background: var(--accent);
	animation: loading 1.2s ease-in-out infinite;
}

.result__top {
	display: flex;
	gap: 1rem;
}

.result__thumb {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	width: 7rem;
	flex-shrink: 0;
	border-radius: 0.5rem;
	background: color-mix(in oklch, var(--header) 70%, transparent);
	overflow: hidden;
}

.result__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.result__thumb svg {
	width: 2rem;
	height: 2rem;
	color: var(--header-muted);
}

.result__meta {
	min-width: 0;
}

.result__label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--header-muted);
}

.result__title {
	margin-top: 0.25rem;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 800;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--primary-foreground);
}

.result__sub {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: color-mix(in oklch, var(--primary-foreground) 70%, transparent);
}

.result__controls {
	margin-top: 1rem;
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.downloader__row {
		flex-direction: row;
	}

	.result__controls {
		grid-template-columns: 1fr auto auto;
		align-items: center;
	}
}

.field-select {
	width: 100%;
	height: 3rem;
	border: 1px solid color-mix(in oklch, var(--primary-foreground) 20%, transparent);
	background: var(--background);
	color: var(--foreground);
	border-radius: var(--radius);
	padding: 0 0.75rem;
	font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
 * 8. Cards, steps, tables
 * ---------------------------------------------------------------------- */

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) + 0.25rem);
	padding: 1.5rem;
	box-shadow: var(--shadow-card);
	transition: transform 180ms ease, border-color 180ms ease;
	display: block;
	color: inherit;
	text-decoration: none;
}

a.card:hover {
	transform: translateY(-2px);
	border-color: var(--primary);
	text-decoration: none;
}

.card__icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.65rem;
	background: var(--secondary);
	color: var(--primary);
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 800;
}

.card h3 {
	margin-top: 1.25rem;
	font-size: 1.125rem;
}

.card p {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

.card__cta {
	margin-top: 1.25rem;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--primary);
}

.steps {
	display: grid;
	gap: 1rem;
}

.step {
	border-top: 2px solid var(--primary);
	background: var(--card);
	padding: 1.25rem;
}

.step__num {
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--primary);
}

.step svg {
	margin-top: 1.5rem;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--accent);
}

.step h3 {
	margin-top: 1rem;
	font-size: 1.0625rem;
}

.step p {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--muted-foreground);
}

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

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--card);
}

table.data {
	width: 100%;
	min-width: 30rem;
	border-collapse: collapse;
	text-align: left;
}

table.data thead {
	background: var(--secondary);
}

table.data th {
	padding: 0.75rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 700;
}

table.data td {
	padding: 1rem 1.25rem;
	border-top: 1px solid var(--border);
	color: var(--muted-foreground);
}

table.data td:first-child {
	font-weight: 700;
	color: var(--primary);
}

.feature {
	display: flex;
	gap: 1rem;
	border-bottom: 1px solid var(--border);
	padding-bottom: 1.25rem;
}

.feature:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.feature svg {
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.25rem;
	flex-shrink: 0;
	color: var(--primary);
}

.feature h3 {
	font-size: 1rem;
}

.feature p {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--muted-foreground);
}

.rule {
	margin-top: 2.5rem;
	border-left: 4px solid var(--accent);
	background: var(--secondary);
	padding: 1.25rem;
}

.rule h2 {
	font-family: var(--font-heading);
	font-size: 1.25rem;
}

.rule p {
	margin-top: 0.5rem;
	line-height: 1.75;
	color: var(--muted-foreground);
}

.aside-note {
	height: fit-content;
	border-left: 2px solid color-mix(in oklch, var(--primary) 20%, transparent);
	padding-left: 1.5rem;
}

.aside-note h2 {
	font-family: var(--font-heading);
	font-size: 1.125rem;
}

.aside-note p {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--muted-foreground);
}

/* -------------------------------------------------------------------------
 * 9. FAQ (native details, so it works without JavaScript)
 * ---------------------------------------------------------------------- */

.faq {
	display: grid;
	gap: 0.5rem;
}

.faq__item {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--card);
	overflow: hidden;
}

.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

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

.faq__item summary::after {
	content: "+";
	font-family: var(--font-heading);
	font-size: 1.25rem;
	color: var(--primary);
	flex-shrink: 0;
}

.faq__item[open] summary::after {
	content: "\2013";
}

.faq__answer {
	padding: 0 1.25rem 1.25rem;
	color: var(--muted-foreground);
	line-height: 1.75;
	font-size: 0.9375rem;
}

/* -------------------------------------------------------------------------
 * 10. Prose, breadcrumbs, pagination
 * ---------------------------------------------------------------------- */

.prose-copy h2 {
	margin-top: 3rem;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.prose-copy h3 {
	margin-top: 2rem;
	font-size: 1.125rem;
}

.prose-copy p {
	margin-top: 1rem;
	color: var(--muted-foreground);
	line-height: 1.8;
}

.prose-copy ul {
	margin-top: 1rem;
	padding-left: 1.25rem;
	list-style: disc;
	color: var(--muted-foreground);
	line-height: 1.8;
}

.prose-copy li {
	margin-top: 0.5rem;
}

.prose-copy a,
.article a {
	color: var(--primary);
	font-weight: 600;
}

.breadcrumbs {
	margin-bottom: 2rem;
	font-size: 0.8125rem;
	color: var(--muted-foreground);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.breadcrumbs li::after {
	content: "/";
	margin-left: 0.4rem;
	color: var(--border);
}

.breadcrumbs li:last-child::after {
	content: "";
}

.breadcrumbs a {
	color: var(--muted-foreground);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--primary);
}

.breadcrumbs [aria-current="page"] {
	color: var(--foreground);
	font-weight: 600;
}

.tag-list {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tag-list a {
	border: 1px solid var(--border);
	background: var(--card);
	border-radius: var(--radius);
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--foreground);
	text-decoration: none;
}

.tag-list a:hover {
	border-color: var(--primary);
	color: var(--primary);
	text-decoration: none;
}

/* -------------------------------------------------------------------------
 * 11. Footer
 * ---------------------------------------------------------------------- */

.site-footer {
	background: var(--header);
	color: var(--header-muted);
}

.site-footer__grid {
	display: grid;
	gap: 2.5rem;
	padding: 3.5rem 1.25rem;
	max-width: var(--site);
	margin-inline: auto;
}

.site-footer .brand {
	color: var(--primary-foreground);
}

.site-footer__blurb {
	margin-top: 1rem;
	max-width: 20rem;
	font-size: 0.875rem;
	line-height: 1.7;
}

.site-footer h2 {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--primary-foreground);
}

.site-footer ul {
	margin-top: 1rem;
	display: grid;
	gap: 0.75rem;
	font-size: 0.875rem;
}

.site-footer a {
	color: var(--header-muted);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--primary-foreground);
	text-decoration: none;
}

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

.site-footer__base-inner {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: var(--site);
	margin-inline: auto;
	padding: 1.25rem;
	font-size: 0.75rem;
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: 1.5fr 1fr 1fr 1fr;
	}

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

/* -------------------------------------------------------------------------
 * 12. Reduced motion
 * ---------------------------------------------------------------------- */

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

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