@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
	color-scheme: light dark;
	--base: #fdfdfd; --surface: #ffffff; --line: #e5e5e5; --line-field: #d4d4d4;
	--text: #121212; --text-weak: #5c5c5c;
	--accent: #121212; --accent-dark: #000000; --accent-light: #f0f0f0; --on-accent: #ffffff;
	--signal: #ff4f2e;
	--error: #c4281c; --error-base: #fef3f2;
	--ok: #067647; --ok-base: #ecfdf3;
	--warning: #f79009; --handover-text: #6b3fd0; --planned: #1f5fbf;
	--radius: 10px;
	--font-ui: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
	:root {
		--base: #121212; --surface: #1c1c1c; --line: #333333; --line-field: #4a4a4a;
		--text: #f5f5f5; --text-weak: #b5b5b5;
		--accent: #f5f5f5; --accent-dark: #ffffff; --accent-light: #2a2a2a; --on-accent: #121212;
		--error: #ff8a80; --error-base: #3a1b19;
		--ok: #6ce9a6; --ok-base: #10291d;
		--handover-text: #b69cff; --planned: #8fb8ff;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--base); color: var(--text); font: 14px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
:where(a) { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in oklch, currentColor 30%, transparent); text-underline-offset: 2px; }
:where(a:hover) { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn, .navigation { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid transparent; border-radius: var(--radius); padding: 10px 18px; font: inherit; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer; transition: background-color .12s, border-color .12s; }
.btn { background: var(--accent); color: var(--on-accent); }
.btn:hover { background: var(--accent-dark); color: var(--on-accent); }
.navigation { background: var(--surface); border-color: var(--line-field); color: var(--text); }
.navigation:hover { border-color: var(--text-weak); color: var(--text); }
.navigation.danger { color: var(--error); }
.navigation.danger:hover { border-color: color-mix(in srgb, var(--error) 45%, transparent); background: var(--error-base); }
.navigation-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.big { padding-inline: 22px; font-size: 15px; }

/* Messages */
.notice { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 500; }
.notice:last-child { margin-bottom: 0; }
.notice-ok { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-base); color: var(--ok); }
.notice-actions p { margin: 0; }
.notice-actions p + p { margin-top: 6px; }
.notice-actions .navigation-row { margin-top: 10px; }
.notice-head .status { font-weight: 600; }

/* Status */
.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--text-weak)); }
.status-live { --dot: var(--ok); }
.status-planned { --dot: var(--planned); }
.status-review { --dot: var(--handover-text); }

/* List tabs */
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.list-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.list-tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--text-weak); font-size: 14px; font-weight: 500; text-decoration: none; }
.list-tabs a:hover { color: var(--text); }
.list-tabs a[aria-current] { background: var(--accent-light); color: var(--text); }

/* Listing table */
.tab-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.listing { width: 100%; border-collapse: collapse; font-size: 14px; }
table.listing th, table.listing td { padding: 10px 16px; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--line); }
table.listing tbody tr:last-child td { border-bottom: 0; }
table.listing th { font-size: 13px; font-weight: 500; color: var(--text-weak); white-space: nowrap; }
table.listing tbody tr:hover { background: color-mix(in oklch, var(--text) 3%, transparent); }
table.listing tr.unpublished td:first-child { box-shadow: inset 3px 0 0 var(--warning); }
table.listing td.cell-main { width: 100%; min-width: 180px; max-width: 0; height: 64px; }
table.listing td.cell-weak { color: var(--text-weak); white-space: nowrap; }
table.listing td.cell-actions { width: 1%; white-space: nowrap; }
table.listing .cell-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cell-title, .cell-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.listing .cell-title { color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
table.listing a.cell-title:hover { text-decoration: underline; }
.cell-sub { color: var(--text-weak); font-size: 13px; }
.cell-icon { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-light); }
.cell-icon .icon { width: 16px; height: 16px; }

/* Feature switches */
.form { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { float: left; width: 100%; margin: 0 0 16px; padding: 0; font-size: 15px; font-weight: 700; }
legend ~ * { clear: both; }
.switch { position: relative; flex: none; width: 42px; height: 24px; margin-top: 2px; padding: 0; border: 0; border-radius: 999px; background: var(--line-field); cursor: default; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"]::after { inset-inline-start: 21px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { padding-bottom: 0; border-bottom: 0; }
.feature b { display: block; font-size: 15px; font-weight: 600; }
.feature span { font-size: 13px; color: var(--text-weak); }

/* Page layout */
.sec { max-width: 1200px; margin: 0 auto; padding: 112px 24px 0; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split.mid { align-items: center; }
.col { flex: 1 1 340px; min-width: 0; }
.col-wide { flex: 1.3 1 480px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack > .notice { margin: 0; }
h1, h2 { margin: 0; letter-spacing: -0.02em; }
h1 { max-width: 18ch; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; font-weight: 800; }
h1 span { color: var(--signal); }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 600; }
.lead { margin: 16px 0 0; max-width: 64ch; font-size: 17px; color: var(--text-weak); }
.lead.intro { margin-top: 24px; max-width: 54ch; font-size: 19px; line-height: 1.5; }
.eyebrow { margin: 0 0 20px; font-size: 14px; color: var(--text-weak); }
.caption { margin: 12px 0 0; font-size: 13px; color: var(--text-weak); }
.note { margin: 24px 0 0; max-width: 72ch; color: var(--text-weak); }
.points { margin: 8px 0 0; padding: 0; list-style: none; font-size: 16px; color: var(--text-weak); }
.points li { margin-top: 14px; }
.points b { color: var(--text); font-weight: 600; }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.mt { margin-top: 32px; }
.hero-buttons { margin-top: 32px; gap: 12px; }
.sec.hero { padding-top: 88px; }
.shot { margin-top: 64px; }
.shot img { display: block; width: 100%; height: auto; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--base); }
.bar { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 16px 32px; }
.logo { display: block; line-height: 0; }
.logo img { display: block; height: 26px; width: auto; }
.nav { display: flex; gap: 8px 24px; margin-inline-start: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 16px; font-weight: 450; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Looks */
.looks { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.looks figure { margin: 0; min-width: 0; }
.looks img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.looks figcaption { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--text-weak); }
.looks b { font-size: 15px; font-weight: 600; color: var(--text); }

/* Comparison tables */
table.compare td { padding: 16px; color: var(--text-weak); vertical-align: top; }
table.compare td.key { color: var(--text); font-weight: 500; }
table.compare td.strong { color: var(--text); font-weight: 600; }
table.origin td { min-width: 200px; }
table.origin td.key { min-width: 140px; }

/* Questions and technical details */
.card details:not(:last-child) { border-bottom: 1px solid var(--line); }
.card summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 18px 24px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.card summary::-webkit-details-marker { display: none; }
.plus { color: var(--text-weak); font-weight: 400; }
details[open] .plus { transform: rotate(45deg); }
.card details p { margin: 0; padding: 0 24px 20px; max-width: 70ch; color: var(--text-weak); }
.card details ul { margin: 0; padding: 0 24px 20px 44px; max-width: 70ch; color: var(--text-weak); }

/* Install */
#install { padding-bottom: 96px; }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 4px 4px 20px; border-bottom: 1px solid var(--line); }
.code-bar span { font-size: 13px; font-weight: 500; color: var(--text-weak); }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font: 13px/1.8 var(--font-mono); color: var(--text); }
.code .c { color: var(--text-weak); }
.code + .card { margin-top: 16px; }
.links { margin: 20px 0 0; color: var(--text-weak); }

/* Guides */
.crumbs { margin: 0 0 20px; font-size: 14px; color: var(--text-weak); }
.crumbs a { color: var(--text-weak); }
.sec.prose { max-width: 880px; padding-top: 56px; }
main > .sec.prose:first-child { padding-top: 40px; }
.prose h1 { max-width: none; font-size: clamp(30px, 4.4vw, 48px); }
.prose h2 { margin-top: 56px; font-size: clamp(24px, 2.6vw, 30px); }
.prose h3 { margin: 28px 0 0; font-size: 18px; font-weight: 600; }
.prose p, .prose li { max-width: 68ch; font-size: 16px; line-height: 1.6; }
.prose p { margin: 14px 0 0; }
.prose ul, .prose ol { margin: 14px 0 0; padding-inline-start: 22px; }
.prose li { margin-top: 8px; }
.prose .caption { margin-top: 12px; font-size: 13px; }
.prose .tab-wrap, .prose .card { margin-top: 20px; }
.prose .hero-buttons { margin-top: 48px; }
.prose .sources li { font-size: 14px; color: var(--text-weak); }
table.guide td { min-width: 170px; }
table.guide td.key { min-width: 120px; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .bar { align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px 40px; font-size: 13px; color: var(--text-weak); }
.foot p { margin: 0; max-width: 64ch; }

@media (max-width: 760px) {
	.nav { display: none; }
	table.origin thead th:first-child { display: none; }
	table.origin thead tr, table.origin tbody tr { display: grid; grid-template-columns: 2fr 3fr; }
	table.origin td, table.origin td.key { min-width: 0; }
	table.origin td.key { grid-column: 1 / -1; padding-bottom: 0; border-bottom: 0; }}
@media (max-width: 480px) {
	.bar { padding: 12px 16px; justify-content: space-between; }
	.logo img { height: 22px; }
	.sec { padding: 72px 16px 0; }
	.sec.hero { padding-top: 32px; }
	.eyebrow { margin-bottom: 14px; font-size: 13px; }
	h1 { font-size: 34px; line-height: 1.06; }
	.lead.intro { margin-top: 16px; font-size: 16px; }
	.hero-buttons { margin-top: 20px; }
	.hero-install { display: none; }
	.shot { height: 440px; margin-top: 28px; border-bottom: 0; border-radius: 14px 14px 0 0; }
	.form { padding: 16px; }
	.card summary { padding-inline: 16px; }
	.card details p { padding-inline: 16px; }
	.card details ul { padding-inline: 36px 16px; }
	.list-tabs a { min-height: 44px; }
	.foot .bar { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
