:root {
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 6px;
}

/* ===== Option 1: Newsprint (warm paper, black ink, vermilion) ===== */
:root, html[data-theme="1"] {
	--paper: #f6f1e7; --paper-2: #ece5d6; --card: #fbf8f1;
	--text: #1a1814; --muted: #5f584c; --line: #1a181433;
	--accent: #c8380d; --accent-soft: #c8380d1a; --on-accent: #fff;
	--hero-bg: #f6f1e7; --hero-text: #1a1814; --hero-lead: #4d473c; --hero-em: #c8380d; --hero-line: #1a1814;
	--header-bg: #1a1814; --header-text: #f6f1e7; --header-dim: #c9c1b0; --brand-mark: #ff6a3d;
	--ink: #1a1814; --ink-text: #f1eadb; --ink-dim: #a89f8c;
	--ok: #2f6b3a; --warn: #b07a00; --tick: #c8380d;
	--shot-shadow: 8px 8px 0 #1a1814;
}

/* ===== Option 2: Phosphor (green-black CRT, amber) ===== */
html[data-theme="2"] {
	--paper: #f2f1e8; --paper-2: #e4e5d6; --card: #fafaf3;
	--text: #141a12; --muted: #55604f; --line: #141a1230;
	--accent: #9a6400; --accent-soft: #ffb0002b; --on-accent: #141a12;
	--hero-bg: #0e130d; --hero-text: #f3ecd8; --hero-lead: #a9b39f; --hero-em: #ffb000; --hero-line: #2b3627;
	--header-bg: #0e130d; --header-text: #f3ecd8; --header-dim: #a9b39f; --brand-mark: #ffb000;
	--ink: #0e130d; --ink-text: #e9e4cf; --ink-dim: #7f8b76;
	--ok: #3d7a3a; --warn: #b07a00; --tick: #ffb000;
	--btn-bg: #ffb000;
	--shot-shadow: 0 0 0 1px #2b3627, 0 30px 70px #00000073;
}

/* ===== Option 3: Oxblood (deep red, bone, brass) ===== */
html[data-theme="3"] {
	--paper: #f3eee4; --paper-2: #e8e0d1; --card: #faf7f0;
	--text: #24141a; --muted: #6a5a5c; --line: #24141a2e;
	--accent: #7a1428; --accent-soft: #7a142817; --on-accent: #fff;
	--hero-bg: #4a0e1c; --hero-text: #f6ecdd; --hero-lead: #d9bfc0; --hero-em: #e2b45a; --hero-line: #6b2231;
	--header-bg: #3a0a15; --header-text: #f6ecdd; --header-dim: #d9bfc0; --brand-mark: #e2b45a;
	--ink: #2a0a12; --ink-text: #f1e4d6; --ink-dim: #b3969a;
	--ok: #3f6b3a; --warn: #a8791c; --tick: #e2b45a;
	--btn-bg: #e2b45a; --btn-text: #2a0a12;
	--shot-shadow: 0 30px 70px #1c040a80;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); }
code { background: var(--accent-soft); padding: .1em .35em; border-radius: 5px; font-size: .9em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.eyebrow {
	font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--accent); margin-bottom: .6rem;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 20;
	background: var(--header-bg);
	border-bottom: 1px solid var(--hero-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; color: var(--header-text); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--brand-mark); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--header-dim); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--header-text); }
.nav .btn { color: var(--btn-text, var(--on-accent)); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .7em 1.2em; border-radius: var(--radius);
	font-weight: 600; font-size: 1rem; text-decoration: none;
	border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--btn-bg, var(--accent)); color: var(--btn-text, var(--on-accent)); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: currentColor; color: var(--hero-text); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.small { padding: .45em .9em; font-size: .9rem; }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }

/* ---------- Hero ---------- */
.hero {
	background: var(--hero-bg);
	color: var(--hero-text);
	border-bottom: 1px solid var(--hero-line);
	padding: 84px 0 0;
	overflow: hidden;
}
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); max-width: 18ch; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--hero-em); }
.hero .eyebrow { color: var(--hero-em); }
.hero .lead { color: var(--hero-lead); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0 0 48px; list-style: none; color: var(--hero-lead); font-size: .95rem; }
.facts li::before { content: "✓ "; color: var(--tick); font-weight: 700; }
.shot {
	border-radius: var(--radius); overflow: hidden;
	border: 1px solid var(--text);
	box-shadow: 6px 6px 0 var(--line);
	background: var(--ink);
}
.hero .shot { border-color: var(--hero-line); margin-bottom: 64px; box-shadow: var(--shot-shadow); }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .ico {
	min-width: 40px; width: max-content; padding: 0 8px; height: 40px; border-radius: var(--radius); margin-bottom: 14px; border: 1px solid var(--accent);
	display: grid; place-items: center; font-family: var(--mono); font-weight: 700;
	background: var(--accent-soft); color: var(--accent);
}

/* ---------- Spotlights ---------- */
.spot { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 44px 0; }
.spot.flip .copy { order: 2; }
.spot ul { padding-left: 1.1em; margin: 0; color: var(--muted); }
.spot li { margin-bottom: .45em; }
@media (max-width: 900px) {
	.spot { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
	.spot.flip .copy { order: 0; }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.step { position: relative; padding: 22px 22px 22px 70px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
	counter-increment: step; content: counter(step);
	position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center; font-weight: 700; font-family: var(--mono); color: var(--on-accent);
	background: var(--accent);
}
.step p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Code ---------- */
pre {
	background: var(--ink); color: var(--ink-text); padding: 20px 22px; border-radius: var(--radius);
	overflow-x: auto; font-size: .9rem; line-height: 1.65; margin: 0 0 1em;
}
pre .c { color: var(--ink-dim); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Honest section ---------- */
.plain { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 28px; }
.plain .card.good { border-left: 4px solid var(--ok); }
.plain .card.note { border-left: 4px solid var(--warn); }
.plain ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .97rem; }
.plain li { margin-bottom: .4em; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { margin: .7em 0 0; color: var(--muted); max-width: 52rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ink-dim); padding: 40px 0; font-size: .93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-footer a { color: var(--ink-text); }
.site-footer .brand { color: var(--ink-text); }

/* Grid children must be allowed to shrink so wide code blocks scroll instead of widening the page */
.two > *, .spot > *, .grid > *, .steps > *, .plain > * { min-width: 0; }
