/* ==========================================================================
   Pevly — design system
   Cameras, drones and desktop fabrication.
   ========================================================================== */

/* ----------------------------------------------------------- design tokens */
:root {
  --ink:        #0b0f14;
  --ink-2:      #1b232d;
  --body:       #2f3945;
  --muted:      #5c6875;
  --line:       #e3e7eb;
  --line-2:     #eef1f4;
  --surface:    #ffffff;
  --surface-2:  #f6f8fa;
  --surface-3:  #eef2f6;

  --accent:     #d9541f;
  --accent-ink: #b23f12;
  --accent-wash:#fdf1ec;

  --ok:         #147a5a;
  --ok-wash:    #eaf6f1;
  --warn:       #8a5a00;
  --warn-wash:  #fdf5e3;

  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 2px rgba(11,15,20,.06), 0 1px 3px rgba(11,15,20,.08);
  --shadow-md:  0 4px 12px rgba(11,15,20,.08), 0 2px 4px rgba(11,15,20,.05);
  --shadow-lg:  0 18px 40px rgba(11,15,20,.14);

  --wrap:       1200px;
  --measure:    72ch;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f5f8; --ink-2: #dbe2ea; --body: #b9c4d0; --muted: #8b98a6;
    --line: #26313d; --line-2: #1d262f;
    --surface: #0d1218; --surface-2: #121a22; --surface-3: #18222c;
    --accent: #ff7a45; --accent-ink: #ff9169; --accent-wash: #26170f;
    --ok: #4ecf9f; --ok-wash: #10241d; --warn: #e0b055; --warn-wash: #241d0e;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow-md: 0 4px 14px rgba(0,0,0,.55);
    --shadow-lg: 0 18px 44px rgba(0,0,0,.6);
  }
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  color: var(--ink); font-weight: 650; line-height: 1.2;
  letter-spacing: -.018em; margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 1.16rem + 1.15vw, 2rem); }
h3 { font-size: clamp(1.16rem, 1.04rem + .48vw, 1.36rem); }
p  { margin: 0 0 1.15em; }
a  { color: var(--accent-ink); text-decoration-thickness: 1px;
     text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.28rem; letter-spacing: -.035em;
  color: var(--ink); text-decoration: none; flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 27px; height: 27px; flex: 0 0 auto; }

.nav-toggle {
  margin-left: auto; display: none; align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .5rem .75rem; font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--ink); cursor: pointer;
}
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex; align-items: center; gap: .35rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: var(--radius);
  color: var(--ink-2); text-decoration: none;
  font-size: .945rem; font-weight: 550;
}
.site-nav a:hover { background: var(--surface-3); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-wash); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; inset: 68px 0 auto;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .6rem 0 1rem; box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch;
                 width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .site-nav a { padding: .75rem .8rem; font-size: 1rem; }
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(480px, 74vh, 720px);
  display: grid; align-items: center;
  background: #05080b;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
/* Scrim tuned for bright aerial footage: enough contrast for the headline on
   the left, while the imagery still reads on the right. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,8,11,.38) 0%, rgba(5,8,11,.10) 45%, rgba(5,8,11,.74) 100%),
    linear-gradient(90deg, rgba(5,8,11,.70) 0%, rgba(5,8,11,.30) 45%, rgba(5,8,11,.04) 72%);
}
/* Respect a reduced-motion preference: freeze on the poster frame. */
@media (prefers-reduced-motion: reduce) {
  video.hero-media { display: none; }
  .hero { background-image: var(--hero-poster); background-size: cover;
          background-position: center; }
}
.hero-inner { padding: 5rem 0 4rem; max-width: 46rem; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .13em;
  text-transform: uppercase; color: #ffb694;
  border: 1px solid rgba(255,255,255,.24); border-radius: 999px;
  padding: .34rem .8rem; margin-bottom: 1.25rem;
  background: rgba(255,255,255,.06); backdrop-filter: blur(4px);
}
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero p.lede {
  color: #d7dee6; font-size: clamp(1.05rem, .97rem + .38vw, 1.24rem);
  max-width: 38rem; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.35rem; border-radius: var(--radius);
  font-weight: 620; font-size: .97rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: .16s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.09); color: #fff;
  border-color: rgba(255,255,255,.32); backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(3rem, 2rem + 4vw, 5.25rem) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head .kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6rem;
}
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* ------------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: .18s ease;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-media { aspect-ratio: 16/9; background: var(--surface-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card .tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: .5rem;
}
.card h3 { margin-bottom: .45rem; font-size: 1.12rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-ink); }
.card p { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.card .meta {
  margin-top: auto; font-size: .82rem; color: var(--muted);
  display: flex; gap: .75rem; align-items: center;
}

/* --------------------------------------------------------------- article */
.article-head { padding: clamp(2.5rem, 1.8rem + 3vw, 4rem) 0 0; }
.article-head .wrap { max-width: 52rem; }
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.article-head .lede {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.26rem); color: var(--muted);
  max-width: 44rem; margin: .35em 0 1.5rem;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center;
  padding: 1rem 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .875rem; color: var(--muted);
}

.article-body { padding: 2.5rem 0 4rem; }
.article-body .wrap { max-width: 52rem; }
.prose { max-width: var(--measure); }
.prose > h2 { margin-top: 2.4em; padding-top: .2em; scroll-margin-top: 90px; }
.prose > h3 { margin-top: 1.9em; scroll-margin-top: 90px; }
.prose img { border-radius: var(--radius); margin: 1.75rem 0; border: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.35rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.75rem 0; padding: .3rem 0 .3rem 1.35rem;
  border-left: 3px solid var(--accent); color: var(--ink-2);
  font-size: 1.06rem;
}
.prose code {
  font-family: var(--mono); font-size: .9em; background: var(--surface-3);
  padding: .12em .38em; border-radius: 4px;
}
.prose figure { margin: 2rem 0; }
.prose figcaption {
  font-size: .87rem; color: var(--muted); margin-top: .6rem;
  padding-left: .1rem; border-left: 2px solid var(--line); padding-left: .7rem;
}

/* video embeds */
.video { position: relative; }
.video iframe {
  width: 100%; aspect-ratio: 16/9; height: auto;
  border: 0; border-radius: var(--radius); display: block; background: #000;
}

/* ------------------------------------------------------------------ tables */
.table-wrap {
  margin: 1.9rem 0; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.table-wrap caption {
  text-align: left; padding: .85rem 1rem; font-weight: 650; color: var(--ink);
  border-bottom: 1px solid var(--line); background: var(--surface-2);
  font-size: .9rem;
}
.table-wrap th, .table-wrap td {
  padding: .68rem .95rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-2);
}
.table-wrap thead th {
  background: var(--surface-2); color: var(--ink); font-weight: 650;
  font-size: .84rem; letter-spacing: .02em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); position: sticky; top: 0;
}
.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover { background: var(--surface-2); }
.spec-table th[scope="row"] {
  width: 38%; color: var(--ink); font-weight: 600;
  background: var(--surface-2); border-right: 1px solid var(--line-2);
}

/* -------------------------------------------------------- content modules */
.toc {
  margin: 0 0 2.5rem; padding: 1.15rem 1.4rem 1.3rem;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: .95rem;
}
.toc h2 {
  font-size: .78rem !important; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem !important;
  padding: 0 !important;
}
.toc ol { margin: 0; padding-left: 1.15rem; }
.toc li { margin-bottom: .34rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

.lead-figure { margin: 0 0 2.25rem; }
.lead-figure img {
  width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line);
  aspect-ratio: 3 / 2; object-fit: cover;
}
.lead-figure figcaption {
  margin-top: .85rem; padding-left: .8rem; font-size: .89rem;
  color: var(--muted); border-left: 2px solid var(--accent);
}

.takeaways {
  margin: 0 0 2.25rem; padding: 1.3rem 1.5rem 1.4rem;
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.takeaways h2 {
  font-size: .78rem !important; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 .8rem !important; padding: 0 !important;
}
.takeaways ul { margin: 0; padding-left: 1.15rem; }
.takeaways li { margin-bottom: .5em; color: var(--ink-2); font-size: .98rem; }
.takeaways li:last-child { margin-bottom: 0; }

.proscons { display: grid; gap: 1rem; margin: 2rem 0; }
@media (min-width: 640px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons > div { border-radius: var(--radius); padding: 1.1rem 1.3rem 1.2rem; border: 1px solid; }
.proscons h3 {
  font-size: .82rem !important; letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 .7rem !important; font-weight: 700;
}
.proscons ul { margin: 0; padding-left: 1.15rem; font-size: .95rem; }
.proscons li { margin-bottom: .4em; }
.pros { background: var(--ok-wash); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.pros h3 { color: var(--ok); }
.cons { background: var(--warn-wash); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }
.cons h3 { color: var(--warn); }

.callout {
  margin: 2rem 0; padding: 1.15rem 1.35rem; border-radius: var(--radius);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--surface-2); font-size: .97rem;
}
.callout > :last-child { margin-bottom: 0; }
.callout .callout-title {
  font-weight: 680; color: var(--ink); margin-bottom: .4rem;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.callout-note { border-left-color: var(--accent); }
.callout-warn { border-left-color: var(--warn); background: var(--warn-wash); }

.figure-diagram {
  margin: 2.25rem 0; padding: 1.5rem; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.figure-diagram svg { width: 100%; height: auto; }
.figure-diagram figcaption {
  margin-top: 1rem; border: 0; padding: 0; font-size: .87rem; color: var(--muted);
}

.archive-note {
  margin: 0 0 2rem; padding: 1rem 1.25rem; font-size: .93rem;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--muted); border-radius: var(--radius);
  color: var(--muted);
}
.archive-note strong { color: var(--ink); }

/* ------------------------------------------------------------------ footer */
.site-footer {
  background: var(--ink); color: #aeb9c5; margin-top: 0;
  padding: 3.5rem 0 2rem; font-size: .93rem;
}
.site-footer .cols {
  display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h2 {
  color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: .9rem; font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #aeb9c5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer .about-blurb { max-width: 30ch; color: #8a97a5; font-size: .9rem; }
.site-footer .legal {
  padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; color: #78848f; font-size: .86rem;
}

/* ------------------------------------------------------------ hub / listing */
.hub-head { padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0 0; }
.hub-head .wrap { max-width: 52rem; }
.count-pill {
  display: inline-block; font-size: .78rem; font-weight: 650;
  color: var(--muted); background: var(--surface-3);
  padding: .25rem .7rem; border-radius: 999px; margin-left: .6rem;
  vertical-align: middle;
}
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.list-plain li { border-bottom: 1px solid var(--line-2); }
.list-plain a {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .95rem .35rem; text-decoration: none; color: var(--ink);
}
.list-plain a:hover { background: var(--surface-2); color: var(--accent-ink); }
.list-plain .sub { color: var(--muted); font-size: .85rem; flex: 0 0 auto; }

/* ------------------------------------------------------- clustered hubs */
.hub-head .kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .6rem;
}
.hub-head .lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }

.cluster-nav { margin: 1.75rem 0 .5rem; }
.cluster-nav ul {
  display: flex; flex-wrap: wrap; gap: .5rem; list-style: none;
  margin: 0; padding: 0;
}
.cluster-nav a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .85rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface);
  color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 550;
}
.cluster-nav a:hover { border-color: var(--accent); color: var(--accent-ink); }
.cluster-nav .n {
  font-size: .74rem; font-weight: 700; color: var(--muted);
  background: var(--surface-3); border-radius: 999px; padding: .05rem .42rem;
}

.cluster { margin-bottom: 3.25rem; scroll-margin-top: 88px; }
.cluster > h2 {
  display: flex; align-items: center; gap: .1rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--accent);
  margin-bottom: .75rem;
}
.cluster-blurb { color: var(--muted); max-width: 56rem; margin-bottom: 1.25rem; }
.cluster-table th[scope="row"] { width: 30%; font-weight: 600; }
.cluster-table th[scope="row"] a { color: var(--ink); text-decoration: none; }
.cluster-table th[scope="row"] a:hover {
  color: var(--accent-ink); text-decoration: underline;
}
.cluster-table td { font-size: .9rem; color: var(--muted); }

.pill {
  display: inline-block; padding: .16rem .6rem; border-radius: 999px;
  font-size: .78rem; font-weight: 650; white-space: nowrap; border: 1px solid;
}
.pill-ok  { color: var(--ok);  background: var(--ok-wash);
            border-color: color-mix(in srgb, var(--ok) 34%, transparent); }
.pill-mid { color: var(--warn); background: var(--warn-wash);
            border-color: color-mix(in srgb, var(--warn) 34%, transparent); }
.pill-bad { color: #b3261e; background: #fdecea; border-color: #f2c2bd; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill-bad {
    color: #ff9c92; background: #2a1210; border-color: #5c2620;
  }
}

.topic-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.topic-group {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.3rem 1.4rem 1.4rem;
}
.topic-group h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.topic-group h3 a { color: var(--ink); text-decoration: none; }
.topic-group h3 a:hover { color: var(--accent-ink); }
.topic-group > p { color: var(--muted); font-size: .9rem; margin-bottom: .9rem; }
.topic-group ul {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line-2);
}
.topic-group li { border-bottom: 1px solid var(--line-2); }
.topic-group li:last-child { border-bottom: 0; }
.topic-group li a {
  display: block; padding: .5rem .1rem; font-size: .93rem;
  color: var(--ink-2); text-decoration: none;
}
.topic-group li a:hover { color: var(--accent-ink); }

.related { padding: 3rem 0 4rem; background: var(--surface-2); border-top: 1px solid var(--line); }
.related .wrap { max-width: 52rem; }
.related h2 { font-size: 1.1rem; margin-bottom: 1.2rem; }

/* -------------------------------------------------------------- home stats */
.stat-row {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat { background: var(--surface); padding: 1.5rem 1.25rem; text-align: center; }
.stat .n {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); font-weight: 700;
  color: var(--ink); letter-spacing: -.03em; line-height: 1.1;
}
.stat .l { font-size: .84rem; color: var(--muted); margin-top: .3rem; }
