/* ClickBook public site — palette mirrors the app's "paper" theme.
 *
 * Shared by the hand-written pages (index.html, support.html) and the generated
 * legal pages (scripts/build-legal-pages.mjs). The generator emits .site-header,
 * .brand, .site-nav, .page, .paper, .eyebrow, .lead and .site-footer, so those
 * class names are load-bearing — renaming one here silently breaks three pages
 * that are not in this file.
 */

:root {
  --bg: #fbf9f5;
  --bg-deep: #f3ede2;
  --surface: #fffdfa;
  --text: #1a1a1a;
  --text-muted: #5c6672;
  --text-faint: #8a929c;
  --border: #e4dacb;
  --border-strong: #d8cfbf;
  --accent: #0c7898;
  --accent-strong: #0b637e;
  --accent-soft: rgba(12, 120, 152, 0.1);
  --gold: #a67c1a;
  --shadow-sm: 0 1px 2px rgba(18, 14, 8, 0.05);
  --shadow-md: 0 4px 16px rgba(18, 14, 8, 0.07);
  --shadow-lg: 0 18px 48px rgba(18, 14, 8, 0.1);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1080px;
  --maxw-prose: 74ch;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Noto Serif", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto,
    "Noto Sans", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --bg-deep: #0d0f11;
    --surface: #191c20;
    --text: #f1ece4;
    --text-muted: #a7b0ba;
    --text-faint: #7e8792;
    --border: #2a2f36;
    --border-strong: #39404a;
    --accent: #4bb8ea;
    --accent-strong: #7ccdf3;
    --accent-soft: rgba(75, 184, 234, 0.14);
    --gold: #e8c168;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

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

img {
  max-width: 100%;
  height: auto;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 13px clamp(16px, 4vw, 40px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(1.6) blur(12px);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.site-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(52px, 9vw, 108px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px);
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.app-icon {
  width: 92px;
  height: 92px;
  border-radius: 21px;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.accent {
  color: var(--accent);
}

.gold {
  color: var(--gold);
}

.tagline {
  margin: 18px auto 0;
  max-width: 60ch;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
}

.platforms {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-faint);
}

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

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.store-row {
  align-items: center;
}

.store-row li {
  display: flex;
  align-items: center;
}

/* Both brands require clear space around the badge and forbid recoloring,
 * outlining or otherwise decorating it — so this wrapper adds only position and
 * a hover lift, never a background or border. */
.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.12s ease;
}

.store-badge img {
  display: block;
}

a.store-badge:hover {
  transform: translateY(-1px);
}

/* The iOS slot before the listing exists. Desaturated and dimmed so it reads
 * clearly as unavailable rather than as a working link — an active-looking
 * App Store badge for an app that is not on the App Store would be misleading.
 * The alt text is empty for the same reason: the visible "Coming soon" label
 * carries the meaning, so a screen reader is not told to download something
 * that does not exist yet. */
.store-badge.is-pending {
  cursor: default;
}

.store-badge.is-pending img {
  filter: grayscale(1);
  opacity: 0.4;
}

/* Positioned out of flow so the label does not make this badge's box taller
 * than the live one beside it — otherwise the two badges cannot sit on a shared
 * centre line. */
.store-pending-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.badge {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 40px);
}

.section-head {
  max-width: 62ch;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Feature grid ───────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.feature {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 21px;
}

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

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* ── Steps ──────────────────────────────────────────────────────────────── */

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

.step {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step .num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* ── Callout ────────────────────────────────────────────────────────────── */

.callout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 60px) clamp(24px, 5vw, 56px);
  background: linear-gradient(135deg, var(--bg-deep), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.callout h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.2;
}

.callout p {
  margin: 0 0 12px;
  max-width: 72ch;
  color: var(--text-muted);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 0 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.faq summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  margin-left: 16px;
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > *:not(summary) {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ── Card grid ──────────────────────────────────────────────────────────── */

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.legal-card {
  display: block;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.legal-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: inherit;
}

.legal-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--accent);
}

.legal-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ── Long-form / legal pages ────────────────────────────────────────────── */

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 40px);
}

.paper {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.paper h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.paper h2 {
  margin: 40px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  scroll-margin-top: 84px;
}

.paper h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.paper h3 {
  margin: 26px 0 8px;
  font-size: 1.04rem;
}

.paper .lead {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.paper ul {
  padding-left: 1.2em;
}

.paper li {
  margin-bottom: 8px;
}

.paper a {
  word-break: break-word;
}

/* Table of contents on generated legal pages. */
.toc {
  margin: 28px 0 8px;
  padding: 20px 22px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 28px;
}

.toc li {
  margin-bottom: 5px;
  font-size: 14.5px;
  break-inside: avoid;
}

@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: clamp(40px, 7vw, 80px);
  padding: 36px clamp(16px, 4vw, 40px) 44px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  text-align: center;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer p {
  margin: 0 auto;
  max-width: 70ch;
  font-size: 13.5px;
  color: var(--text-faint);
}

.site-footer a {
  color: inherit;
}

/* ── Motion ─────────────────────────────────────────────────────────────── */

/* The hidden state is scoped to .js, which site.js sets on <html> before paint.
 * Without that guard, anyone with JavaScript disabled — or any crawler that
 * renders CSS but not JS — would see a permanently blank page, because nothing
 * would ever add .is-visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 70ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes cb-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-inner > * {
  animation: cb-rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.hero-inner > .app-icon { animation-delay: 0.02s; }
.hero-inner > h1 { animation-delay: 0.1s; }
.hero-inner > .tagline { animation-delay: 0.18s; }
.hero-inner > .cta-row { animation-delay: 0.26s; }
.hero-inner > .badge-row { animation-delay: 0.34s; }
.hero-inner > .platforms { animation-delay: 0.42s; }

/* ── Hero demo: a word tap, played on a loop ────────────────────────────── */

/* All the demo's keyframes share one 9s cycle, so the beat percentages below
   line up: 8% highlight, 16% popup, 50% switch to Translation, 88% reset. */
.demo {
  max-width: 460px;
  margin: 34px auto 0;
  padding: 20px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.demo-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.7;
}

.demo mark {
  /* Negative margin cancels the padding so the highlight paints slightly wider
     than the word without pushing the text around it — otherwise the sentence
     visibly reflows as the animation runs, which is the exact problem this demo
     exists to show ClickBook avoiding. */
  padding: 1px 3px;
  margin: 0 -3px;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  animation: cb-highlight 9s ease-in-out infinite;
}

@keyframes cb-highlight {
  0%, 6% { background: transparent; }
  10%, 86% { background: rgba(250, 204, 21, 0.55); }
  92%, 100% { background: transparent; }
}

.demo-popup {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  animation: cb-popup 9s ease-in-out infinite;
}

@keyframes cb-popup {
  0%, 12% { opacity: 0; transform: translateY(10px); }
  20%, 84% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(10px); }
}

.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.demo-word {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-right: 2px;
}

.demo-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-deep);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Segmented control, mirroring the app's tab bar. */
.demo-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 2px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  .demo-tabs {
    background: rgba(255, 255, 255, 0.07);
  }
}

.demo-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc((100% - 4px) / 3);
  height: calc(100% - 4px);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  animation: cb-thumb 9s ease-in-out infinite;
}

@keyframes cb-thumb {
  0%, 46% { transform: translateX(0); }
  54%, 100% { transform: translateX(100%); }
}

.demo-tab {
  position: relative;
  padding: 5px 4px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.demo-tab em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

.demo-tab:nth-of-type(1) { animation: cb-tab-1 9s ease-in-out infinite; }
.demo-tab:nth-of-type(2) { animation: cb-tab-2 9s ease-in-out infinite; }

@keyframes cb-tab-1 {
  0%, 46% { color: var(--text); }
  54%, 100% { color: var(--text-muted); }
}

@keyframes cb-tab-2 {
  0%, 46% { color: var(--text-muted); }
  54%, 100% { color: var(--text); }
}

/* Both panes occupy the same grid cell, so the card is sized by the taller of
   the two and does not jump height when they cross-fade. */
.demo-panes {
  display: grid;
  margin-top: 13px;
}

.demo-pane {
  grid-area: 1 / 1;
}

.demo-pane-1 { animation: cb-pane-1 9s ease-in-out infinite; }
.demo-pane-2 { animation: cb-pane-2 9s ease-in-out infinite; }

@keyframes cb-pane-1 {
  0%, 44% { opacity: 1; }
  52%, 100% { opacity: 0; }
}

@keyframes cb-pane-2 {
  0%, 44% { opacity: 0; }
  52%, 100% { opacity: 1; }
}

.demo-label {
  display: block;
  margin-bottom: 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.demo-label + p {
  margin: 0 0 11px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}

.demo-pane p:last-child {
  margin-bottom: 0;
}

.demo-em {
  font-style: italic;
  color: var(--text-muted) !important;
}

.demo-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  opacity: 0.7;
}

/* One switch turns all of it off, including the looping demo — a permanently
 * animating element is exactly what this media query exists to stop. */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* The demo loops forever, so it is the single most important thing to stop
     here. Freeze it on the Meaning tab, fully visible. */
  .hero-inner > *,
  .demo mark,
  .demo-popup,
  .demo-thumb,
  .demo-tab,
  .demo-pane {
    animation: none;
  }

  .demo mark {
    background: rgba(250, 204, 21, 0.55);
  }

  .demo-pane-2 {
    opacity: 0;
  }
}

/* ── Blog ───────────────────────────────────────────────────────────────── */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: inherit;
}

.post-card h3 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.post-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.post-meta {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.post-body {
  max-width: var(--maxw-prose);
  margin: 0 auto;
}

.post-body h2 {
  margin: 38px 0 12px;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  scroll-margin-top: 84px;
}

.post-body h3 {
  margin: 26px 0 8px;
  font-size: 1.06rem;
}

.post-body p,
.post-body li {
  font-size: 17px;
}

.post-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}

.post-cta {
  margin-top: 40px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-deep), var(--surface));
}

.post-cta h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.post-cta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
}
