/* LongDistance.net — design system v2 (2026-10) */

:root {
  --bg: #faf7f2;
  --bg-alt: #f3eee6;
  --surface: #ffffff;
  --ink: #1c2230;
  --ink-2: #384152;
  --muted: #646d7e;
  --line: #e7e0d5;
  --line-strong: #d6ccbd;
  --accent: #b9472e;
  --accent-ink: #9a3922;
  --accent-soft: #fbe8e1;
  --sea: #255766;
  --sea-soft: #e2eef0;
  --sun: #a86b0c;
  --sun-soft: #fcf0d9;
  --leaf: #2f6b46;
  --leaf-soft: #e3f1e7;
  --shadow: 0 1px 2px rgba(28, 34, 48, .05), 0 6px 24px rgba(28, 34, 48, .06);
  --shadow-lg: 0 2px 4px rgba(28, 34, 48, .06), 0 18px 48px rgba(28, 34, 48, .10);
  --radius: 14px;
  --radius-sm: 9px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --prose: 700px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141a;
    --bg-alt: #161a22;
    --surface: #1a1f29;
    --ink: #ece7df;
    --ink-2: #cfcac2;
    --muted: #9ea5b3;
    --line: #2a303c;
    --line-strong: #3a4250;
    --accent: #f08c6c;
    --accent-ink: #f6a487;
    --accent-soft: #3a231c;
    --sea: #8cc4d2;
    --sea-soft: #1a2c32;
    --sun: #f0bd5e;
    --sun-soft: #33280f;
    --leaf: #8fd0a6;
    --leaf-soft: #17291e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11141a;
  --bg-alt: #161a22;
  --surface: #1a1f29;
  --ink: #ece7df;
  --ink-2: #cfcac2;
  --muted: #9ea5b3;
  --line: #2a303c;
  --line-strong: #3a4250;
  --accent: #f08c6c;
  --accent-ink: #f6a487;
  --accent-soft: #3a231c;
  --sea: #8cc4d2;
  --sea-soft: #1a2c32;
  --sun: #f0bd5e;
  --sun-soft: #33280f;
  --leaf: #8fd0a6;
  --leaf-soft: #17291e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); margin: 0; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.22rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--accent); font-weight: 600; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--bg-alt); color: var(--ink); }
.header-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-grid; }
  .main-nav { position: fixed; inset: 66px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; margin: 0; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 16px 18px; gap: 2px; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; font-size: 1rem; }
  .header-tools { margin-left: auto; }
}

/* ---------- search dialog ---------- */
.search-dialog { border: none; padding: 0; background: transparent; width: min(640px, calc(100vw - 24px)); margin: 10vh auto auto; max-height: 80vh; color: var(--ink); }
.search-dialog::backdrop { background: rgba(10, 12, 18, .45); backdrop-filter: blur(3px); }
.search-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 20px; color: var(--muted); flex: none; }
.search-field input { flex: 1; border: none; background: transparent; font: inherit; font-size: 1.08rem; color: var(--ink); outline: none; min-width: 0; }
.search-results { list-style: none; margin: 0; padding: 6px; max-height: 56vh; overflow-y: auto; }
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus, .search-results a.active { background: var(--bg-alt); outline: none; }
.search-results .r-sec { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.search-results .r-title { display: block; font-weight: 600; line-height: 1.35; }
.search-results .r-desc { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: 2px; }
.search-empty { padding: 18px; color: var(--muted); margin: 0; font-size: .95rem; }
.search-hint { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; display: flex; justify-content: space-between; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); }
.btn-primary { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #1b0f0b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #1b0f0b; } }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); }
.eyebrow { display: inline-block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); margin: 0 0 12px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); font-size: .8rem; font-weight: 600; text-decoration: none; }

/* ---------- home ---------- */
.home-hero { padding: 64px 0 44px; position: relative; overflow: hidden; }
.home-hero .wrap { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.home-hero .wrap > * { min-width: 0; }
@media (max-width: 899px) { .hero-art { max-width: 280px; } .home-hero { padding-top: 40px; } }
@media (min-width: 900px) { .home-hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } .home-hero { padding: 88px 0 64px; } }
.home-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 600; }
.home-hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.home-hero .lede { font-size: clamp(1.08rem, 1.8vw, 1.26rem); color: var(--ink-2); max-width: 36em; margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 420px; justify-self: center; width: 100%; }
.hero-art svg { width: 100%; height: 100%; }
.hero-search { margin-top: 26px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font: inherit; cursor: pointer; text-align: left; box-shadow: var(--shadow); }
.hero-search svg { width: 18px; flex: none; }
.hero-search kbd { margin-left: auto; font-family: var(--sans); font-size: .75rem; border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; }

.band { padding: 56px 0; }
.band-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.band-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band-head p { color: var(--muted); margin: 6px 0 0; max-width: 40em; }
.band-head .more { font-weight: 600; text-decoration: none; white-space: nowrap; }

.stage-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
@media (min-width: 1100px) { .stage-grid { grid-template-columns: repeat(5, 1fr); } }
.stage { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.stage:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.stage .num { font-family: var(--serif); font-size: .95rem; color: var(--accent); font-weight: 600; }
.stage strong { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; line-height: 1.25; }
.stage span:last-child { color: var(--muted); font-size: .93rem; line-height: 1.5; }

.section-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.tile { position: relative; padding: 26px 24px 22px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-height: 230px; transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile .tile-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.tile .tile-icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1.35rem; }
.tile p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.55; }
.tile .count { margin-top: auto; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.t-st .tile-icon { background: var(--accent-soft); color: var(--accent); }
.t-gg .tile-icon { background: var(--sun-soft); color: var(--sun); }
.t-ctd .tile-icon { background: var(--sea-soft); color: var(--sea); }
.t-at .tile-icon { background: var(--leaf-soft); color: var(--leaf); }

.tools-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.tool { padding: 20px; border-radius: var(--radius); border: 1px dashed var(--line-strong); text-decoration: none; color: var(--ink); display: block; }
.tool:hover { border-style: solid; background: var(--surface); }
.tool strong { display: block; font-family: var(--serif); font-size: 1.12rem; margin-bottom: 4px; }
.tool span { color: var(--muted); font-size: .92rem; }

.quote-band { padding: 64px 0; text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 820px; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; font-weight: 500; }
.quote-band p { color: var(--muted); margin-top: 16px; }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; position: relative; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .card-sec { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); }
.card.s-gift-guides .card-sec { color: var(--sun); }
.card.s-closing-the-distance .card-sec { color: var(--sea); }
.card.s-activities-and-travel .card-sec { color: var(--leaf); }
.card h3 { font-size: 1.12rem; line-height: 1.3; }
.card p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin: 0; }
.card .card-meta { margin-top: auto; padding-top: 6px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.card-grid.compact { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.prose .card-grid { margin: 1.6em 0; }
.prose .card h3 { margin: 0; font-size: 1.08rem; }
.prose .card { text-decoration: none; }

/* ---------- hub ---------- */
.hub-hero { padding: 54px 0 34px; border-bottom: 1px solid var(--line); }
.hub-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
.hub-hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 44em; margin: 16px 0 0; }
.hub-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hub-jump a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 500; }
.hub-jump a:hover { border-color: var(--line-strong); color: var(--ink); }
.hub-intro { padding: 36px 0 0; }
.hub-intro .prose { margin: 0; }
.hub-group { padding: 38px 0 6px; }
.hub-group h2 { font-size: 1.6rem; margin-bottom: 6px; }
.hub-group > .wrap > p { color: var(--muted); margin-bottom: 18px; }
.hub-group .card-grid { margin-top: 16px; }
.hub-outro { padding: 40px 0 64px; }

/* ---------- article ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.article-hero { padding: 44px 0 30px; }
.article-hero .inner { max-width: 860px; }
.article-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.02em; line-height: 1.1; }
.article-hero .dek { font-size: clamp(1.08rem, 2vw, 1.24rem); color: var(--ink-2); margin: 18px 0 0; max-width: 42em; line-height: 1.55; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 22px; font-size: .88rem; color: var(--muted); }
.byline .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.byline .avatar svg { width: 18px; height: 18px; }
.byline strong { color: var(--ink-2); font-weight: 600; }
.byline .dot { width: 3px; height: 3px; background: var(--line-strong); border-radius: 50%; }
.article-body { display: grid; gap: 48px; padding-bottom: 40px; border-top: 1px solid var(--line); padding-top: 34px; }
@media (min-width: 1100px) {
  .article-body.has-toc { grid-template-columns: minmax(0, var(--prose)) 250px; justify-content: space-between; }
}
.toc { font-size: .9rem; }
.toc-inner { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding-left: 16px; border-left: 2px solid var(--line); }
.toc .toc-title { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent-ink); font-weight: 600; }
.toc-mobile { display: none; }
@media (max-width: 1099px) {
  .toc { display: none; }
  .toc-mobile { display: block; margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
  .toc-mobile summary { padding: 12px 16px; font-weight: 600; cursor: pointer; font-size: .95rem; }
  .toc-mobile ol { margin: 0; padding: 0 16px 14px 34px; font-size: .94rem; }
  .toc-mobile li { margin: 6px 0; }
  .toc-mobile a { color: var(--ink-2); text-decoration: none; }
}
@media (min-width: 1100px) { .article-body.has-toc .prose { order: 0; } .article-body.has-toc .toc { order: 1; } }

/* ---------- prose ---------- */
.prose { max-width: var(--prose); min-width: 0; font-size: 1.07rem; line-height: 1.75; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote, .prose figure, .prose dl { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); margin: 2.1em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 1.28rem; margin: 1.7em 0 .5em; color: var(--ink); }
.prose h4 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; margin: 1.4em 0 .4em; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
.prose ol li::marker { font-weight: 700; font-size: .95em; }
.prose hr { border: none; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose blockquote { border-left: 3px solid var(--accent); padding: .2em 0 .2em 1.1em; font-style: italic; color: var(--ink-2); }
.prose blockquote.pull { border: none; padding: 0; margin: 1.8em 0; font-family: var(--serif); font-style: normal; font-size: 1.4rem; line-height: 1.4; color: var(--ink); text-align: left; }
.prose blockquote.pull::before { content: "\201C"; display: block; font-size: 3.2rem; line-height: .6; color: var(--accent); margin-bottom: 10px; }
.prose blockquote cite { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); font-style: normal; font-family: var(--sans); }
.prose code { font-size: .9em; background: var(--bg-alt); padding: 2px 6px; border-radius: 5px; }
.prose dl dt { font-weight: 700; color: var(--ink); margin-top: 1em; }
.prose dl dd { margin: .2em 0 0; }
.prose .lead { font-size: 1.18rem; color: var(--ink); line-height: 1.65; }
.prose img { border-radius: var(--radius-sm); }
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: #fff; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.5; margin: 0; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--bg-alt); color: var(--ink); font-weight: 650; font-size: .86rem; white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose td:first-child { font-weight: 600; color: var(--ink); }
.prose .table-wrap table { min-width: 520px; }

/* tl;dr and notes */
.tldr { position: relative; margin: 0 0 2em; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tldr::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.tldr-label { font-size: .74rem !important; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--accent-ink); margin: 0 0 8px !important; font-family: var(--sans); }
.tldr > *:last-child { margin-bottom: 0; }
.tldr ul { margin-bottom: 0; }
.note { margin: 1.6em 0; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--sea-soft); color: var(--ink-2); font-size: .98rem; line-height: 1.65; }
.note > *:last-child { margin-bottom: 0; }
.note-title { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.note-tip { background: var(--leaf-soft); }
.note-warn { background: var(--sun-soft); }
.note-alert { background: var(--accent-soft); }
.disclosure { font-size: .86rem; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 2em; line-height: 1.55; }

/* lists */
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist li { position: relative; padding-left: 32px; }
.prose ul.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--leaf); background: var(--leaf-soft); }
.prose ul.checklist li::after { content: ""; position: absolute; left: 7px; top: calc(.32em + 3px); width: 6px; height: 11px; border: solid var(--leaf); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prose ul.dont { list-style: none; padding-left: 0; }
.prose ul.dont li { position: relative; padding-left: 30px; }
.prose ul.dont li::before { content: "\00d7"; position: absolute; left: 2px; top: -.05em; font-size: 1.4em; font-weight: 700; color: var(--accent); }
.prose ol.steps { list-style: none; counter-reset: step; padding-left: 0; }
.prose ol.steps > li { counter-increment: step; position: relative; padding-left: 48px; margin: 0 0 1.1em; }
.prose ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; font-size: .9rem; display: grid; place-items: center; font-family: var(--sans); }
.prose ol.ideas { list-style: none; counter-reset: idea; padding-left: 0; }
.prose ol.ideas > li { counter-increment: idea; position: relative; padding: 0 0 0 52px; margin: 0 0 1.2em; }
.prose ol.ideas > li::before { content: counter(idea); position: absolute; left: 0; top: .05em; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--accent); width: 40px; text-align: right; }

/* key figure */
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); margin: 1.6em 0; }
.stat { padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); margin: 0; }
.stat .stat-num { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.stat figcaption, .stat .stat-label { font-size: .88rem; color: var(--muted); line-height: 1.45; margin-top: 6px; display: block; }

/* pros/cons */
.proscons { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin: 1.4em 0; }
.proscons > div { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.proscons h4 { margin: 0 0 6px !important; font-size: .82rem !important; letter-spacing: .08em; text-transform: uppercase; }
.proscons .pros h4 { color: var(--leaf); }
.proscons .cons h4 { color: var(--accent-ink); }
.proscons ul { margin: 0 !important; padding-left: 1.1em; font-size: .95rem; }

/* product picks */
.picks { display: grid; gap: 14px; margin: 1.6em 0 2em; }
.pick { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pick-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 6px; }
.prose .pick h3 { margin: 0; font-size: 1.18rem; }
.pick-price { font-weight: 700; color: var(--ink); font-size: .92rem; background: var(--sun-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pick-best { font-size: .88rem !important; color: var(--muted); margin: 0 0 .6em !important; }
.pick-best strong { color: var(--ink-2); }
.pick p { font-size: .98rem; margin-bottom: .7em; }
.pick-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); background: var(--bg); }
.pick-link:hover { border-color: var(--accent); color: var(--accent-ink); }
.pick-link::after { content: "\2197"; font-size: .9em; }
.pick.top { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pick-badge { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 9px; border-radius: 6px; margin-bottom: 8px; }

/* message templates (texts, scripts) */
.say { margin: 1.2em 0; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: var(--sea-soft); color: var(--ink); max-width: 92%; font-size: 1rem; line-height: 1.55; }
.say + .say { margin-top: -.4em; }
.say.me { margin-left: auto; border-radius: 18px 18px 4px 18px; background: var(--accent-soft); }

/* faq */
.faq { margin-top: 2.6em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; font-weight: 650; color: var(--ink); position: relative; line-height: 1.45; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 16px; }
.faq .faq-a > *:last-child { margin-bottom: 0; }

/* article foot */
.article-foot { margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.article-foot p { margin: 0 0 .6em; }
.related { padding: 48px 0 64px; background: var(--bg-alt); border-top: 1px solid var(--line); }
.related h2 { font-size: 1.6rem; margin-bottom: 20px; }

/* interactive checks (readiness check etc.) */
.quiz { margin: 1.6em 0; }
.quiz fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 8px; margin: 0 0 16px; background: var(--surface); }
.quiz legend { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; padding: 0 6px; color: var(--ink); }
.quiz label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .98rem; line-height: 1.5; }
.quiz label:last-child { border-bottom: none; }
.quiz input[type="checkbox"], .quiz input[type="radio"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.quiz-result { padding: 20px 22px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); margin-top: 16px; }

/* not found */
.nf { padding: 80px 0; text-align: center; }
.nf h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.nf p { color: var(--muted); max-width: 34em; margin: 14px auto 28px; font-size: 1.1rem; }
.nf .card-grid { text-align: left; margin-top: 40px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9c5bd; padding: 56px 0 28px; font-size: .93rem; }
:root[data-theme="dark"] .site-footer { background: #0b0d11; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #0b0d11; } }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer .brand { color: #f4efe7; }
.site-footer .brand b { color: #f08c6c; }
.footer-about p { margin: 14px 0 0; max-width: 30em; line-height: 1.6; color: #a9a59d; }
.site-footer h2 { font-family: var(--sans); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #8e8a83; margin: 0 0 12px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: #e5e0d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: #8e8a83; font-size: .84rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: #a9a59d; }

@media print {
  .site-header, .site-footer, .toc, .toc-mobile, .related { display: none !important; }
  body { background: #fff; color: #000; }
}
