/* fanaticaltest.com — one stylesheet, no framework.
   Colours are tokens on :root, redefined for the dark theme, which follows the system unless the
   visitor picked one with the toggle (data-theme on <html>, set by theme.js before first paint). */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #121829;
  --muted: #535e76;
  --border: #dde2ec;
  --accent: #0a7d56;
  --accent-strong: #06603f;
  --accent-soft: #daf3e8;
  --accent-contrast: #ffffff;
  --highlight: #4f46e5;
  --code-bg: #0f1526;
  --code-text: #e3e8f4;
  --inline-code-bg: #eceff6;
  --shadow: 0 1px 2px rgb(18 24 41 / 6%), 0 8px 24px -12px rgb(18 24 41 / 18%);
  --shadow-hover: 0 2px 4px rgb(18 24 41 / 8%), 0 18px 40px -16px rgb(18 24 41 / 28%);
  --hero-glow-1: rgb(16 185 129 / 16%);
  --hero-glow-2: rgb(79 70 229 / 12%);
  --grid-line: rgb(18 24 41 / 5%);

  --windows: #0b63c4;
  --windows-soft: #e1edfb;
  --macos: #6d3fd6;
  --macos-soft: #ece5fb;
  --linux: #a85a00;
  --linux-soft: #fbeedd;

  --tip: #0a7d56;
  --tip-soft: #e3f6ee;
  --note: #0b63c4;
  --note-soft: #e4eefb;
  --warning: #a85a00;
  --warning-soft: #fdf1df;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --radius-small: 8px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020;
    --surface: #121a2e;
    --surface-2: #19233b;
    --text: #e7ebf3;
    --muted: #9ba7c0;
    --border: #263252;
    --accent: #3ddc97;
    --accent-strong: #7cebbb;
    --accent-soft: rgb(61 220 151 / 12%);
    --accent-contrast: #062317;
    --highlight: #a5b4fc;
    --code-bg: #070b16;
    --inline-code-bg: #1d2742;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 60%);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / 35%), 0 18px 40px -16px rgb(0 0 0 / 70%);
    --hero-glow-1: rgb(61 220 151 / 12%);
    --hero-glow-2: rgb(129 140 248 / 14%);
    --grid-line: rgb(231 235 243 / 4%);
    --windows: #6aa9ff;
    --windows-soft: rgb(106 169 255 / 14%);
    --macos: #b79cff;
    --macos-soft: rgb(183 156 255 / 14%);
    --linux: #ffb454;
    --linux-soft: rgb(255 180 84 / 14%);
    --tip: #3ddc97;
    --tip-soft: rgb(61 220 151 / 10%);
    --note: #6aa9ff;
    --note-soft: rgb(106 169 255 / 10%);
    --warning: #ffb454;
    --warning-soft: rgb(255 180 84 / 10%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #121a2e;
  --surface-2: #19233b;
  --text: #e7ebf3;
  --muted: #9ba7c0;
  --border: #263252;
  --accent: #3ddc97;
  --accent-strong: #7cebbb;
  --accent-soft: rgb(61 220 151 / 12%);
  --accent-contrast: #062317;
  --highlight: #a5b4fc;
  --code-bg: #070b16;
  --inline-code-bg: #1d2742;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 60%);
  --shadow-hover: 0 2px 4px rgb(0 0 0 / 35%), 0 18px 40px -16px rgb(0 0 0 / 70%);
  --hero-glow-1: rgb(61 220 151 / 12%);
  --hero-glow-2: rgb(129 140 248 / 14%);
  --grid-line: rgb(231 235 243 / 4%);
  --windows: #6aa9ff;
  --windows-soft: rgb(106 169 255 / 14%);
  --macos: #b79cff;
  --macos-soft: rgb(183 156 255 / 14%);
  --linux: #ffb454;
  --linux-soft: rgb(255 180 84 / 14%);
  --tip: #3ddc97;
  --tip-soft: rgb(61 220 151 / 10%);
  --note: #6aa9ff;
  --note-soft: rgb(106 169 255 / 10%);
  --warning: #ffb454;
  --warning-soft: rgb(255 180 84 / 10%);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  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(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 800;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  font-weight: 750;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand__name strong {
  color: var(--accent);
  font-weight: 800;
}

.brand__logo {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand__logo-bg {
  fill: var(--text);
}

.brand__logo-bracket,
.brand__logo-check {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__logo-bracket {
  stroke: var(--bg);
}

.brand__logo-check {
  stroke: var(--accent);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle:hover {
  background: var(--surface-2);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__moon {
  display: none;
}

[data-effective-theme="dark"] .theme-toggle__sun {
  display: none;
}

[data-effective-theme="dark"] .theme-toggle__moon {
  display: inline;
}

@media (max-width: 860px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0 12px;
    padding-top: 10px;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: calc(100% + 2 * var(--gutter));
    margin: 6px calc(-1 * var(--gutter)) 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav ul {
    padding: 0 var(--gutter) 10px;
  }
}

/* ---------- Buttons, kicker, lead ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentcolor;
}

.lead {
  max-width: 62ch;
  margin: 0 0 1.4em;
  color: var(--muted);
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  color: var(--accent-contrast);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button--ghost:hover {
  color: var(--text);
  background: var(--surface);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(600px 320px at 12% 10%, var(--hero-glow-1), transparent 70%),
    radial-gradient(520px 300px at 88% 30%, var(--hero-glow-2), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px;
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.terminal {
  border-radius: var(--radius);
  background: #0f1526;
  box-shadow: 0 30px 60px -30px rgb(10 16 32 / 55%), 0 0 0 1px rgb(255 255 255 / 6%);
  color: #e3e8f4;
  overflow: hidden;
  transform: rotate(0.6deg);
}

.terminal__bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: #161e33;
}

.terminal__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal__bar span:nth-child(2) {
  background: #febc2e;
}

.terminal__bar span:nth-child(3) {
  background: #28c840;
}

.terminal__body {
  margin: 0;
  padding: 20px 22px 24px;
  font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.92rem);
  line-height: 1.9;
  overflow-x: auto;
}

.terminal__line {
  display: block;
  white-space: pre;
}

.terminal__prompt {
  color: #7c8bb0;
}

.terminal__ok {
  color: #3ddc97;
  font-weight: 700;
}

.terminal__os {
  color: #ffffff;
  font-weight: 700;
}

.terminal__dim {
  color: #9ba7c0;
}

.terminal__cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: #3ddc97;
}

@media (prefers-reduced-motion: no-preference) {
  .terminal__cursor {
    animation: blink 1.1s steps(1) infinite;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(40px, 6vw, 72px) 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section__head a {
  font-weight: 600;
  white-space: nowrap;
}

.section__title {
  margin: 0 0 24px;
}

.platform-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-tile a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.platform-tile a::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--tile-colour);
}

.platform-tile a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--tile-colour);
}

.platform-tile--windows {
  --tile-colour: var(--windows);
}

.platform-tile--macos {
  --tile-colour: var(--macos);
}

.platform-tile--linux {
  --tile-colour: var(--linux);
}

.platform-tile__name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.platform-tile__intro {
  color: var(--muted);
  font-size: 0.98rem;
}

.platform-tile__count {
  margin-top: auto;
  color: var(--tile-colour);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.card__meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.card__category {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card__title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.card__title a {
  color: var(--text);
  text-decoration: none;
}

/* The whole card is the link's hit area; the title stays the only link for screen readers. */
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.card__title a:focus-visible {
  outline: none;
}

.card__title a:focus-visible::after {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

.card__description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

.card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.card__time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ---------- Badges ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--badge-soft);
  color: var(--badge-colour);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentcolor;
}

.badges--small .badge {
  padding: 2px 8px;
  font-size: 0.75rem;
}

.badge--windows {
  --badge-colour: var(--windows);
  --badge-soft: var(--windows-soft);
}

.badge--macos {
  --badge-colour: var(--macos);
  --badge-soft: var(--macos-soft);
}

.badge--linux {
  --badge-colour: var(--linux);
  --badge-soft: var(--linux-soft);
}

/* ---------- Pages ---------- */

.page {
  padding-block: 28px clamp(48px, 7vw, 88px);
}

.page--narrow {
  max-width: 820px;
}

.page__header {
  margin-bottom: 32px;
}

.listing__others {
  color: var(--muted);
}

.empty {
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--border);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb [aria-current] {
  max-width: 40ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

/* ---------- Article ---------- */

.article__header {
  max-width: 860px;
  margin-bottom: 36px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.article__meta p {
  margin: 0;
}

.article__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.article__aside {
  position: sticky;
  top: 92px;
}

@media (max-width: 1080px) {
  .article__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article__aside {
    position: static;
  }
}

.toc {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc__title {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding-top: 1px;
}

.toc a:hover,
.toc a[aria-current="true"] {
  color: var(--accent);
}

.toc a[aria-current="true"]::before {
  color: var(--accent);
}

/* ---------- Prose ---------- */

.prose {
  max-width: 74ch;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 0;
}

.prose h2 {
  margin: 2.2em 0 0;
  padding-top: 0.2em;
}

.prose h3 {
  margin: 1.8em 0 0;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--accent);
}

.prose :not(pre) > code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--inline-code-bg);
  font-size: 0.88em;
}

.code {
  position: relative;
  margin-inline: 0;
  border-radius: var(--radius-small);
  background: var(--code-bg);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 5%);
  overflow: hidden;
}

.code figcaption,
.code::before {
  display: block;
  padding: 8px 16px;
  background: rgb(255 255 255 / 5%);
  color: #9ba7c0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.code:not(:has(figcaption))::before {
  content: attr(data-language);
  text-transform: lowercase;
}

.code pre {
  margin: 0;
  padding: 16px 18px;
  color: var(--code-text);
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-x: auto;
  tab-size: 4;
}

.copy-button {
  position: absolute;
  top: 5px;
  right: 6px;
  padding: 3px 10px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 6px;
  background: rgb(255 255 255 / 6%);
  color: #c9d2e6;
  font: 600 0.75rem var(--font-sans);
  cursor: pointer;
}

.copy-button:hover {
  background: rgb(255 255 255 / 14%);
}

.callout {
  padding: 16px 20px;
  border-left: 4px solid var(--callout);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--callout-soft);
}

.callout p {
  margin: 0;
}

.callout__title {
  margin-bottom: 4px !important;
  color: var(--callout);
  font-weight: 750;
}

.callout--tip {
  --callout: var(--tip);
  --callout-soft: var(--tip-soft);
}

.callout--note {
  --callout: var(--note);
  --callout-soft: var(--note-soft);
}

.callout--warning {
  --callout: var(--warning);
  --callout-soft: var(--warning-soft);
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  overflow-x: auto;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

caption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: left;
  caption-side: bottom;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

.glance {
  margin-bottom: 2em;
}

.glance__title {
  margin: 0 0 12px !important;
  font-size: 1.05rem;
  font-family: var(--font-mono);
  letter-spacing: 0;
  color: var(--muted);
  text-transform: uppercase;
}

.glance__table th[scope="row"] {
  white-space: nowrap;
}

.article__footer {
  margin-top: 2.6em !important;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.tags li {
  margin: 0 !important;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.tags li::before {
  content: "#";
  color: var(--accent);
}

.related {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

/* ---------- 404 ---------- */

.not-found {
  text-align: center;
  padding-top: clamp(48px, 10vw, 120px);
}

.not-found .lead {
  margin-inline: auto;
}

.not-found__code {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  font-weight: 800;
  line-height: 1;
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.not-found__links a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  padding-block: 36px;
}

.site-footer__brand p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--accent);
}

.site-footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.version {
  font-family: var(--font-mono);
}

@media (max-width: 700px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  .site-header,
  .site-footer,
  .article__aside,
  .related,
  .copy-button {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
