:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --bg-soft: #f7f3eb;
  --bg-strong: #ece3d2;
  --panel: #fffaf2;
  --panel-muted: #f4ecdf;
  --border: rgba(59, 43, 20, 0.12);
  --border-strong: rgba(59, 43, 20, 0.22);
  --ink: #2f2417;
  --ink-soft: #695948;
  --ink-muted: #8a7661;
  --accent: #7a1f2b;
  --accent-strong: #5e1620;
  --accent-wash: rgba(122, 31, 43, 0.12);
  --sea: #4a3247;
  --mint: #5a7a55;
  --gold: #c89866;
  --rose: #b54a4a;
  --espresso-1: #443731;
  --espresso-2: #36291f;
  --shadow: 0 12px 32px rgba(76, 49, 22, 0.10);
  --shadow-lg: 0 30px 80px rgba(76, 49, 22, 0.18);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --font-ui: 'Avenir Next', 'Segoe UI Variable', 'Helvetica Neue', sans-serif;
  --font-copy: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-mono: 'Berkeley Mono', 'SF Mono', 'IBM Plex Mono', 'Menlo', monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: linear-gradient(180deg, #f7f3eb 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--accent-strong); text-decoration: underline; }

code, pre { font-family: var(--font-mono); }

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

/* ───── nav ───── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--espresso-1) 0%, var(--espresso-2) 100%);
  color: #f3e5cf;
  border-bottom: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow: 0 1px 0 rgba(255, 240, 210, 0.06) inset, 0 2px 10px rgba(0, 0, 0, 0.08);
}

.site-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f3e5cf;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover { color: #fff; text-decoration: none; }

.brand__mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  color: #f5ecdb;
  font-weight: 900;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, 0 1px 4px rgba(0, 0, 0, 0.30);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav__links a {
  color: rgba(243, 229, 207, 0.78);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  border: 1px solid transparent;
}

.site-nav__links a:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.site-nav__links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav__cta {
  background: var(--accent);
  color: #fff !important;
  border-color: transparent !important;
}
.site-nav__cta:hover { background: var(--accent-strong); }

.site-nav__github {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.site-nav__github svg { width: 16px; height: 16px; }

/* ───── github callout pill (works on dark and light surfaces) ───── */

.gh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.gh-pill:hover {
  background: var(--panel-muted);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.gh-pill svg { width: 16px; height: 16px; flex: 0 0 16px; }
.gh-pill__label { color: var(--ink-soft); font-weight: 500; }
.gh-pill__count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

/* ───── open source banner ───── */

.section--oss {
  padding: 64px 0;
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(122, 31, 43, 0.06), transparent 70%),
    var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.oss-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #2b2018 0%, #3a2a20 100%);
  color: #f3e5cf;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.4);
}

@media (max-width: 720px) {
  .oss-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
    padding: 24px;
  }
  .oss-card__icon { margin: 0 auto; }
  .oss-card__actions { justify-content: center; }
}

.oss-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 240, 210, 0.10);
  border: 1px solid rgba(255, 240, 210, 0.18);
  display: grid;
  place-items: center;
  color: #f3e5cf;
}
.oss-card__icon svg { width: 32px; height: 32px; }

.oss-card h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.oss-card p {
  margin: 0;
  color: rgba(243, 229, 207, 0.75);
  font-family: var(--font-copy);
  font-size: 1rem;
  line-height: 1.5;
}

.oss-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.oss-card .btn--primary {
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(122, 31, 43, 0.4);
}

.oss-card .btn--ghost {
  background: rgba(255, 240, 210, 0.06);
  border-color: rgba(255, 240, 210, 0.22);
  color: #f3e5cf;
}
.oss-card .btn--ghost:hover { background: rgba(255, 240, 210, 0.12); }

/* ───── containers ───── */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 880px; }

section { padding: 96px 0; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
}

/* ───── hero ───── */

.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 320px at 50% -120px, rgba(200, 152, 102, 0.18), transparent 70%),
    radial-gradient(420px 320px at 88% 30%, rgba(122, 31, 43, 0.08), transparent 70%);
}

.hero__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mint);
}

.hero h1 {
  font-family: var(--font-ui);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  max-width: 820px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-family: var(--font-copy);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
  margin: 0;
  max-width: 680px;
  line-height: 1.55;
}

.hero__downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 13px;
  margin-top: 4px;
}

.hero__meta span::before {
  content: "·";
  margin-right: 18px;
  color: var(--ink-muted);
  opacity: 0.5;
}
.hero__meta span:first-child::before { content: ""; margin: 0; }

/* ───── buttons ───── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
}

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

.btn--primary,
a.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 6px 18px rgba(122, 31, 43, 0.22);
}
.btn--primary:hover,
a.btn--primary:hover,
.btn--primary:focus-visible,
a.btn--primary:focus-visible {
  background: linear-gradient(135deg, #8e2632, #6f1822);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(122, 31, 43, 0.32);
}

.btn--primary svg { color: #fff; }

.btn--ghost,
a.btn--ghost {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn--ghost:hover,
a.btn--ghost:hover,
.btn--ghost:focus-visible,
a.btn--ghost:focus-visible {
  background: var(--panel-muted);
  color: var(--ink);
  border-color: var(--accent);
}

.btn--sm {
  padding: 7px 12px;
  font-size: 13px;
}

.btn__os {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.78;
  font-weight: 700;
}

.download-card[data-recommended="true"] {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(122, 31, 43, 0.18);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* ───── screenshot frame ───── */

.shot-frame {
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.shot-frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, var(--espresso-1) 0%, var(--espresso-2) 100%);
  color: #f3e5cf;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 12px;
}

.shot-frame__dots {
  display: inline-flex;
  gap: 6px;
}
.shot-frame__dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 240, 210, 0.22);
}
.shot-frame__dots span:first-child { background: #ed6a5e; }
.shot-frame__dots span:nth-child(2) { background: #f4bf4f; }
.shot-frame__dots span:nth-child(3) { background: #62c554; }

.shot-frame__title {
  margin-left: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f3e5cf;
}

.shot-frame__hint {
  margin-left: auto;
  font-size: 11px;
  color: rgba(243, 229, 207, 0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shot-placeholder {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(45deg, rgba(122, 31, 43, 0.04) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, var(--bg-soft), var(--bg-strong));
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  position: relative;
}

.shot-placeholder__inner {
  text-align: center;
  padding: 24px;
  max-width: 460px;
}

.shot-placeholder__inner strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.shot-placeholder__inner p {
  margin: 0;
  font-family: var(--font-copy);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.shot-placeholder--sm { aspect-ratio: 16 / 9; border-radius: var(--radius-md); }

/* When using real screenshots that already contain OS window chrome, drop the synthetic bar */
.shot-frame--bare { padding: 0; }
.shot-frame--bare .shot-frame__bar { display: none; }

.shot-img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-strong);
}

/* ───── section header ───── */

.section-head {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-head__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  letter-spacing: -0.022em;
  font-weight: 700;
  line-height: 1.15;
  max-width: 720px;
}

.section-head p {
  margin: 0;
  max-width: 640px;
  color: var(--ink-soft);
  font-family: var(--font-copy);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ───── feature grid ───── */

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

@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-wash);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.feature h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ───── alternating showcase ───── */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.showcase + .showcase { margin-top: 96px; }
.showcase--reverse > :first-child { order: 2; }

@media (max-width: 880px) {
  .showcase, .showcase--reverse { grid-template-columns: 1fr; gap: 32px; }
  .showcase--reverse > :first-child { order: 0; }
}

.showcase__copy h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.showcase__copy p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-family: var(--font-copy);
  font-size: 1.05rem;
  line-height: 1.65;
}

.showcase__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase__list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 14.5px;
}

.showcase__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.showcase__copy .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ───── modes (4-up grid) ───── */

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

@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } }

.mode-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.mode-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.mode-card__shot {
  background:
    repeating-linear-gradient(45deg, rgba(122, 31, 43, 0.04) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, var(--bg-soft), var(--bg-strong));
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.mode-card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mode-card__body {
  padding: 18px 20px 22px;
}

.mode-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.mode-card h3 { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; }

.mode-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ───── downloads section ───── */

.section--downloads {
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(200, 152, 102, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

@media (max-width: 880px) { .download-grid { grid-template-columns: 1fr; } }

.download-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(122, 31, 43, 0.12);
}

.download-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.download-card__os {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.download-card h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.download-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-wash);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.download-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  flex: 1 1 auto;
}

.download-card__meta {
  display: flex;
  gap: 4px 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.download-card .btn { width: 100%; justify-content: center; }

/* ───── checklist (full feature list) ───── */

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 720px) { .checklist { grid-template-columns: 1fr; } }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.checklist li::before {
  content: "✓";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.checklist li strong {
  font-weight: 700;
  margin-right: 4px;
}

.checklist li span {
  color: var(--ink-soft);
}

/* ───── faq / docs ───── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 18px;
  transition: border-color 120ms ease;
}

.faq[open] { border-color: var(--border-strong); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-muted);
  transition: transform 200ms ease;
  line-height: 1;
}

.faq[open] summary::after { content: "−"; }

.faq__body {
  padding: 0 0 14px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

.faq__body p { margin: 0 0 10px; }
.faq__body p:last-child { margin-bottom: 0; }

.faq__body code {
  background: var(--panel-muted);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ───── docs page layout ───── */

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 56px 0 96px;
}

@media (max-width: 880px) {
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-toc { position: static; }
}

.docs-toc {
  position: sticky;
  top: 80px;
  border-left: 1px solid var(--border);
  padding: 4px 0 4px 16px;
}

.docs-toc__head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}

.docs-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }

.docs-toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  border-radius: 6px;
}
.docs-toc a:hover { color: var(--accent); text-decoration: none; }

.docs-content h1 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  line-height: 1.1;
}

.docs-content > .lede {
  font-family: var(--font-copy);
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 36px;
}

.docs-content h2 {
  margin: 56px 0 12px;
  font-size: 1.55rem;
  letter-spacing: -0.018em;
  scroll-margin-top: 80px;
}

.docs-content h2:first-of-type { margin-top: 16px; }

.docs-content h3 {
  margin: 28px 0 8px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.docs-content p,
.docs-content li {
  font-family: var(--font-copy);
  font-size: 1rem;
  line-height: 1.7;
  color: #46392a;
}

.docs-content p { margin: 0 0 14px; }

.docs-content ul, .docs-content ol { padding-left: 1.4rem; margin: 0 0 18px; }
.docs-content li { margin: 4px 0; }

.docs-content code {
  background: var(--panel-muted);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.docs-content pre {
  background: #f2ebdd;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.docs-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
}

.docs-content kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--ink);
}

.docs-content blockquote {
  margin: 18px 0;
  padding: 6px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(200, 152, 102, 0.08);
  color: var(--ink);
  font-family: var(--font-copy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.docs-content blockquote p:last-child { margin-bottom: 0; }

.callout {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-wash);
  border: 1px solid rgba(122, 31, 43, 0.18);
  margin: 0 0 18px;
  align-items: flex-start;
}

.callout__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.callout__body { flex: 1 1 auto; font-family: var(--font-copy); }
.callout__body p:last-child { margin-bottom: 0; }

/* ───── footer ───── */

.site-foot {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 40px 0;
  margin-top: 40px;
}

.site-foot__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-muted);
  font-size: 13px;
}

.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--accent); }

.site-foot__links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ───── small embellishments ───── */

.kbd-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-copy);
  font-size: 14.5px;
  align-items: center;
}

.kbd-row:last-child { border-bottom: 0; }

.kbd-row .k { display: inline-flex; gap: 4px; }

/* ───── linux callout ───── */

.linux-callout {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--panel);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-size: 14px;
}

.linux-callout strong {
  color: var(--ink);
  font-weight: 700;
}

.linux-callout svg {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 4px;
}

/* ───── install modal ───── */

.install-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 21, 12, 0.55);
  z-index: 200;
  animation: install-fade 160ms ease;
}

.install-modal[data-open="true"] { display: flex; }

@keyframes install-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.install-modal__panel {
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px 24px;
  position: relative;
  animation: install-rise 200ms ease;
}

@keyframes install-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.install-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.install-modal__close:hover { background: var(--panel-muted); color: var(--ink); }

.install-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 6px;
}
.install-modal__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(90, 122, 85, 0.55);
  animation: ai-pulse 1.6s ease-in-out infinite;
}

.install-modal h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.install-modal__lede {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-family: var(--font-copy);
  font-size: 15px;
  line-height: 1.55;
}

.install-modal ol {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.install-modal ol li {
  font-family: var(--font-copy);
  line-height: 1.55;
  color: var(--ink);
}

.install-modal ol li strong { font-weight: 700; }

.install-modal pre {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: #f2ebdd;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  overflow: auto;
  white-space: pre;
  color: var(--ink);
}

.install-modal code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--panel-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}
.install-modal pre code { background: transparent; border: 0; padding: 0; font-size: inherit; }

.install-modal__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--panel-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.install-modal__copy:hover { border-color: var(--accent); color: var(--accent); }

.install-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.install-modal__footer .meta {
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* fade-in helper */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: none;
}
