/* torrentstream.io — one dark theme, hairline borders, Geist and Geist Mono. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0c0f;
  --surface: #121216;
  --surface-2: #17171c;
  --line: #23232a;
  --line-strong: #31313a;
  --text: #ededf0;
  --text-muted: #a3a3ad;
  --text-faint: #71717c;
  --ghost: #26262d;
  --accent: #f2b45a;
  --accent-ink: #f5c27a;
  --accent-soft: rgb(242 180 90 / 0.1);
  --accent-line: rgb(242 180 90 / 0.35);
  --on-accent: #1b1306;
  --green: #6fd18d;
  --yellow: #f2c94c;
  --radius: 8px;
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

a:hover {
  color: var(--text);
}

code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.86em;
}

::selection {
  background: rgb(242 180 90 / 0.3);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Small uppercase mono labels, used throughout. */
.eyebrow,
.label,
.label-link,
.meta-line,
.stat-label,
.site-nav a,
.btn-small,
.dl-button {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--accent-ink);
}

.eyebrow .rule {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

em {
  color: var(--accent);
  font-style: normal;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: #f6c47c;
  color: var(--on-accent);
}

.btn-outline,
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-outline:hover,
.btn-ghost:hover {
  border-color: var(--accent-line);
  color: var(--text);
}

.btn-small {
  padding: 0.45rem 0.8rem;
  border-radius: 4px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(12 12 15 / 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 6px;
}

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

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

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.header-inner > .btn {
  margin-left: auto;
}

.site-nav + .btn {
  margin-left: 0;
}

@media (width < 760px) {
  .site-nav {
    display: none;
  }

  .header-inner .btn {
    margin-left: auto;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3rem, 7vw, 5rem);
  isolation: isolate;
}

/* The logo's ring of light, large and faint, behind the headline. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: max(-14rem, calc(50% - 46rem));
  width: 38rem;
  height: 38rem;
  border: 3.5rem solid #19191e;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 120px 10px rgb(242 180 90 / 0.05) inset,
    0 0 160px rgb(242 180 90 / 0.04);
}

/* A faint grid that fades out, like graph paper under the headline. */
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, black, transparent 75%);
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 1.4rem + 7vw, 6.75rem);
  font-weight: 750;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 40rem;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* The download "command": the installer for this system, and a button. */
.dl-box {
  display: inline-flex;
  max-width: 100%;
  margin-top: 2.25rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.dl-file {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.875rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dl-file::before {
  content: "↓";
  color: var(--accent);
  font-weight: 700;
}

.dl-file .size {
  color: var(--text-faint);
}

.dl-button {
  display: flex;
  align-items: center;
  padding-inline: 1.2rem;
  border-left: 1px solid var(--line-strong);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.dl-button:hover {
  background: #f6c47c;
  color: var(--on-accent);
}

.meta-line {
  margin-top: 1rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: none;
}

.meta-line a {
  color: var(--accent-ink);
  text-decoration: none;
}

.meta-line a:hover {
  text-decoration: underline;
}

.meta-line .sep {
  margin-inline: 0.35rem;
}

/* ---------- Numbers ---------- */

.stats {
  border-block: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: none;
}

.stat-value {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.1rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--text-faint);
  font-size: 0.7rem;
}

.stat-label::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--accent);
}

@media (width < 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(odd) {
    padding-left: 0;
    border-left: none;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Demo ---------- */

.showcase {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.label {
  color: var(--text-faint);
}

h2.label {
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.demo {
  margin: 0;
}

.demo video,
.demo img {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #08080a;
}

.demo figcaption {
  margin-top: 0.9rem;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Numbered feature rows ---------- */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.row {
  border-top: 1px solid var(--line);
}

.row-inner {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 25rem);
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}

.row-num {
  color: var(--ghost);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.row-text h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
  letter-spacing: -0.03em;
}

.row-text h3 span {
  color: var(--text-faint);
  font-weight: 500;
}

.row-text p {
  max-width: 38rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

/* A tiny, UI-like readout beside each feature. */
.snippet {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
}

.snippet p {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.3rem;
  color: var(--text-muted);
}

.snippet p > span:last-child {
  color: var(--text);
  text-align: right;
}

.snippet .snip-title {
  margin-bottom: 0.25rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
}

.snippet .snip-title > span:last-child {
  color: var(--text-muted);
}

.snippet .ok {
  color: var(--green) !important;
}

.snippet .hl {
  color: var(--accent-ink) !important;
}

.snippet .tag {
  margin-right: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 500;
}

.dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  border: 1px solid var(--text-faint);
  border-radius: 50%;
}

.dot-on {
  border-color: var(--green);
  background: var(--green);
}

.dot-busy {
  border-color: var(--yellow);
  background: var(--yellow);
}

.seek {
  position: relative;
  height: 0.35rem;
  margin: 0.35rem 0 0.75rem;
  border-radius: 999px;
  background: var(--line-strong);
}

.seek-have {
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  border-radius: 999px;
  background: var(--text-faint);
}

.seek-jump {
  position: absolute;
  inset: 0 auto 0 58%;
  width: 14%;
  border-radius: 999px;
  background: var(--accent);
}

.seek-head {
  position: absolute;
  top: 50%;
  left: 58%;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

@media (width < 900px) {
  .row-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .row-num {
    font-size: 2.25rem;
  }
}

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

.section {
  padding-block: clamp(4rem, 9vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.features + .section {
  border-top: none;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2,
.section h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  letter-spacing: -0.045em;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
}

.label-link {
  color: var(--accent-ink);
  text-decoration: none;
}

.section-lead {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.footnote {
  max-width: 54rem;
  margin-top: 1.25rem;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 56rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

.compare th,
.compare td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare tbody tr:last-child > * {
  border-bottom: none;
}

.compare thead th {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.compare tbody th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.compare td {
  color: var(--text-muted);
}

.compare .sub {
  display: block;
  color: var(--text-faint);
  font-size: 0.66rem;
}

.compare .col-us {
  background: var(--accent-soft);
  color: var(--text);
}

.compare thead .col-us {
  color: var(--accent-ink);
}

.yes {
  color: var(--green);
  font-weight: 600;
}

/* ---------- Blog teasers on the home page ---------- */

.post-teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  font-size: 1.05rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > p,
.faq details > ul {
  max-width: 44rem;
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.faq details > ul {
  padding-left: 1.2rem;
}

.faq details > ul li + li {
  margin-top: 0.35rem;
}

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

/* ---------- Final call to action and downloads ---------- */

.final {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 11vw, 8rem);
  border-top: 1px solid var(--line);
  isolation: isolate;
}

.final::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: max(-16rem, calc(50% - 48rem));
  bottom: -18rem;
  width: 36rem;
  height: 36rem;
  border: 3.5rem solid #19191e;
  border-radius: 50%;
}

.final h2 {
  max-width: 12ch;
  font-size: clamp(3rem, 1.4rem + 6.5vw, 6.25rem);
  font-weight: 750;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.downloads {
  max-width: 40rem;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.downloads-head {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.downloads ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.downloads li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.downloads li + li {
  border-top: 1px solid var(--line);
}

.dl-system {
  font-weight: 600;
}

.dl-links {
  color: var(--text-faint);
  font-size: 0.9rem;
}

.dl-links .size {
  font-family: var(--mono);
  font-size: 0.75rem;
}

.fine {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--text-faint);
  font-size: 0.85rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  padding-block: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: var(--text);
}

.footer-meta {
  margin-left: auto;
  color: var(--text-faint);
}

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

.notfound {
  padding-block: clamp(5rem, 14vw, 9rem);
}

.notfound .code {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.notfound h1 {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  letter-spacing: -0.05em;
}

.notfound > p:not(.code) {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.notfound .cta-row {
  margin-top: 2rem;
}

/* ---------- Blog ---------- */

.blog-index,
.post {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.blog-index h1 {
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);
  letter-spacing: -0.05em;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.post-card a:hover {
  border-color: var(--accent-line);
  color: inherit;
}

@media (hover: hover) {
  .post-card a:hover {
    transform: translateY(-2px);
  }
}

.post-card img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem 1.3rem 1.3rem;
}

.post-card h2,
.post-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.post-card p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.post-card .post-meta,
.post-card .post-more {
  margin-top: auto;
  padding-top: 0.9rem;
}

.post-card .post-more {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-meta {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.post-container {
  max-width: 48rem;
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.post-header h1 {
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);
  letter-spacing: -0.045em;
}

.post-header .post-meta {
  margin-top: 1rem;
}

.post-cover {
  margin: 2rem 0 0;
}

.post-cover img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.answer {
  margin-top: 2rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--accent-line);
  border-left-width: 3px;
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.answer-label {
  margin-bottom: 0.4rem;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-toc {
  margin-top: 1.75rem;
  padding: 1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.95rem;
}

.post-toc-title {
  margin-bottom: 0.4rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.post-toc li + li {
  margin-top: 0.25rem;
}

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

.post-toc a:hover {
  color: var(--accent-ink);
}

.prose {
  margin-top: 2.25rem;
  color: #d6d6dc;
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

.prose h2 {
  margin-top: 2.2em;
  color: var(--text);
  font-size: 1.75rem;
  letter-spacing: -0.035em;
  scroll-margin-top: 5rem;
}

.prose h3 {
  margin-top: 1.8em;
  color: var(--text);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  scroll-margin-top: 5rem;
}

.prose strong {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

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

.prose blockquote {
  margin-inline: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--line-strong);
  color: var(--text-muted);
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.875rem;
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  border: none;
  background: none;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prose tr:last-child td {
  border-bottom: none;
}

.align-left {
  text-align: left !important;
}

.align-center {
  text-align: center !important;
}

.align-right {
  text-align: right !important;
}

.post-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.post-cta p {
  flex: 1 1 18rem;
  color: var(--text-muted);
}

.post-cta strong {
  color: var(--text);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .row-inner,
    .post-card,
    .stat {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }

    @keyframes reveal {
      from {
        opacity: 0;
        transform: translateY(1rem);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
