@font-face {
  font-family: 'Fraunces Num';
  src: url('/assets/fraunces-nums.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --surface: #FFFFFF;
  --surface-soft: #F5FAFD;
  --surface-card: #FBFDFE;
  --blue-pastel: #5BCEFA;
  --pink-pastel: #F5A9B8;
  --blue-deep: #0C6C99;
  --pink-deep: #C34771;
  --ink: #1B2733;
  --ink-muted: #5B6672;
  --line: #E1E8ED;
  --track: #E9F2F7;
  --max: 720px;
  --shadow-sm: 0 1px 2px rgba(20,35,45,0.05), 0 1px 1px rgba(20,35,45,0.04);
  --shadow-md: 0 1px 2px rgba(20,35,45,0.04), 0 8px 24px -8px rgba(20,35,45,0.12);
  --shadow-lg: 0 2px 4px rgba(20,35,45,0.05), 0 20px 40px -16px rgba(20,35,45,0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #10161C;
    --surface-soft: #161F27;
    --surface-card: #141B22;
    --blue-pastel: #6FD4FB;
    --pink-pastel: #F7B7C4;
    --blue-deep: #6EC1EA;
    --pink-deep: #E890AC;
    --ink: #EAF1F6;
    --ink-muted: #93A2AE;
    --line: #29343E;
    --track: #1D262E;
  }
}
:root[data-theme="dark"] {
  --surface: #10161C;
  --surface-soft: #161F27;
  --surface-card: #141B22;
  --blue-pastel: #6FD4FB;
  --pink-pastel: #F7B7C4;
  --blue-deep: #6EC1EA;
  --pink-deep: #E890AC;
  --ink: #EAF1F6;
  --ink-muted: #93A2AE;
  --line: #29343E;
  --track: #1D262E;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.7;
}
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
img { max-width: 100%; }

.num {
  font-family: 'Fraunces Num', Georgia, serif;
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-family: 'Fraunces Num', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--blue-deep);
}

.stripe-band { display: flex; height: 5px; }
.stripe-band span { flex: 1; }
.s-blue { background: var(--blue-pastel); }
.s-pink { background: var(--pink-pastel); }
.s-white { background: var(--surface); }

/* Nav */
.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}
.brand svg { width: 24px; height: 24px; flex-shrink: 0; }
.nav-links { display: flex; gap: 20px; font-size: 14px; align-items: center; }
.nav-links a { color: var(--ink-muted); font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--blue-deep); text-decoration: none; }

/* Mobile nav: collapse into a hamburger + full-width dropdown panel.
   Real mobile navs don't squeeze every label into one row — they hide
   behind a toggle, same pattern as virtually every mobile site/app. */
.nav-toggle { display: none; }
@media (max-width: 680px) {
  .site-nav { flex-wrap: wrap; position: relative; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--surface); cursor: pointer; flex-shrink: 0;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav-links {
    display: none;
    flex-direction: column; align-items: stretch; gap: 2px;
    width: 100%; margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .site-nav.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 11px 4px; white-space: normal; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; margin-top: 0; }
  .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
}

.nav-dropdown { position: relative; }
.nav-dropdown .caret { font-size: 10px; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; min-width: 140px; box-shadow: 0 8px 24px rgba(20,30,40,0.08);
  flex-direction: column; z-index: 20;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { padding: 8px 10px; border-radius: 6px; font-size: 13.5px; }
.nav-dropdown-menu a:hover { background: var(--surface-soft); }

main { max-width: var(--max); margin: 0 auto; padding: 8px 20px 60px; }

/* Desktop-only wide layout: listing pages opt in via $main_class = 'main-wide'.
   Below 960px this is identical to the default single-column mobile layout —
   the grid rules only kick in at the desktop breakpoint. */
@media (min-width: 960px) {
  main.main-wide { max-width: 1060px; }
  main.main-wide .post-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 32px;
  }
  main.main-wide .post-card { padding: 26px 0; border-bottom: 1px solid var(--line); }
  main.main-wide .post-card:nth-child(-n+2) { padding-top: 0; }
}
@media (min-width: 960px) {
  main.main-home { max-width: 1060px; }
  main.main-home .home-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0 40px;
    align-items: start;
  }
  main.main-home .home-side { border-left: 1px solid var(--line); padding-left: 40px; }
}

/* Home hero */
.hero {
  padding: 36px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.hero h1 {
  font-size: 32px;
  line-height: 1.3;
  margin: 14px 0 14px;
  font-weight: 800;
  text-wrap: balance;
}
.hero p { font-size: 15.5px; color: var(--ink-muted); max-width: 52ch; margin: 0 0 8px; }
.glyph-lg { width: 44px; height: 44px; display: block; }

/* Big editorial hero (home only) */
.masthead {
  position: relative;
  margin: 0 -20px 52px;
  padding: 76px 20px 60px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(128deg,
      color-mix(in srgb, var(--blue-pastel) 13%, transparent) 0%,
      transparent 38%,
      transparent 62%,
      color-mix(in srgb, var(--pink-pastel) 12%, transparent) 100%),
    radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--surface-soft) 100%, transparent), transparent 70%),
    var(--surface);
}
.masthead .glyph-hero {
  width: 60px; height: 60px; margin: 0 auto 28px; display: block;
  filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--blue-deep) 18%, transparent));
}
.masthead .kicker-lg {
  font-family: 'Fraunces Num', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--blue-deep);
  margin-bottom: 20px;
}
.masthead h1 {
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0 auto 20px;
  max-width: 15ch;
  text-wrap: balance;
  color: var(--ink);
}
.masthead .sub {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-muted);
  max-width: 44ch;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.section-heading .t { font-size: 13px; font-weight: 700; color: var(--ink); }
.section-heading a { font-size: 13px; color: var(--blue-deep); font-weight: 600; white-space: nowrap; }

/* Featured post (home) */
.featured {
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 32px;
  margin-bottom: 52px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.featured .meta { font-size: 12.5px; color: var(--ink-muted); margin-bottom: 12px; }
.featured .meta .tag { color: var(--blue-deep); font-weight: 700; }
.featured h2 {
  font-size: 25px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.featured p { font-size: 15px; line-height: 1.8; color: var(--ink-muted); margin: 0 0 18px; max-width: 60ch; }
.featured .read-more { font-size: 13.5px; font-weight: 700; color: var(--blue-deep); }
.featured:hover h2 { color: var(--blue-deep); }

.mission {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: flex-start;
  padding: 30px 0 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.mission .mark { width: 34px; height: 34px; flex-shrink: 0; margin-top: 4px; }
.mission p { font-size: 16px; line-height: 1.85; color: var(--ink); margin: 0; }
.mission p + p { margin-top: 14px; color: var(--ink-muted); font-size: 14.5px; }

@media (max-width: 480px) {
  .masthead { padding: 46px 18px 40px; margin: 0 -20px 36px; }
  .masthead h1 { font-size: 28px; }
  .featured { padding: 24px 20px; }
  .featured h2 { font-size: 20px; }
  .mission { grid-template-columns: 1fr; }
}

/* Flash message */
.flash {
  margin: 18px 0 28px;
  padding: 13px 16px;
  background: color-mix(in srgb, var(--blue-pastel) 14%, var(--surface));
  border-left: 3px solid var(--blue-deep);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
}
.flash.error { background: color-mix(in srgb, var(--pink-pastel) 16%, var(--surface)); border-left-color: var(--pink-deep); }

/* Forms */
.form-page { max-width: 440px; margin: 0 auto; padding: 20px 0 50px; }
.form-page h1 { font-size: 24px; font-weight: 800; margin: 8px 0 8px; }
.form-page .lede { font-size: 14px; color: var(--ink-muted); margin: 0 0 30px; line-height: 1.7; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .hint { font-size: 12px; color: var(--ink-muted); margin-top: 6px; line-height: 1.6; }
input[type=text], input[type=email], input[type=password], textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--blue-deep); outline-offset: 1px; border-color: var(--blue-deep); }
textarea { resize: vertical; min-height: 220px; line-height: 1.8; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  background: var(--blue-deep);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(20,35,45,0.06), 0 6px 16px -6px color-mix(in srgb, var(--blue-deep) 45%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.94; text-decoration: none; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(20,35,45,0.08), 0 10px 22px -8px color-mix(in srgb, var(--blue-deep) 50%, transparent); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: transparent; color: var(--blue-deep); border: 1px solid var(--line); }
.btn.danger { background: var(--pink-deep); }
.form-foot { margin-top: 20px; font-size: 13.5px; color: var(--ink-muted); }

/* Status pills */
.pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.pill.pending { background: color-mix(in srgb, var(--blue-pastel) 30%, transparent); color: var(--blue-deep); }
.pill.published { background: color-mix(in srgb, #3FA66B 22%, transparent); color: #1F7A5C; }
.pill.rejected { background: color-mix(in srgb, var(--pink-pastel) 30%, transparent); color: var(--pink-deep); }

/* Story cards */
.story-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.story-card:first-child { padding-top: 0; }
.story-card h3 { font-size: 17px; font-weight: 700; margin: 8px 0 6px; }
.story-card h3 a { color: var(--ink); }
.story-card h3 a:hover { color: var(--blue-deep); }
.story-card .excerpt { font-size: 14px; color: var(--ink-muted); line-height: 1.7; }
.story-card .meta { font-size: 12px; color: var(--ink-muted); }
.empty-state { padding: 40px 0; text-align: center; color: var(--ink-muted); font-size: 14px; }

/* Admin queue */
.queue-item { border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.queue-item h3 { font-size: 17px; margin: 6px 0 10px; }
.queue-item .body { font-size: 14.5px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; max-height: 260px; overflow-y: auto; padding: 14px; background: var(--surface-soft); border-radius: 8px; margin-bottom: 14px; }
.queue-actions { display: flex; gap: 10px; }

.story-full { font-size: 16.5px; line-height: 1.95; color: var(--ink); white-space: pre-wrap; }

/* Share row */
.share-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
}
.share-label { font-size: 13px; color: var(--ink-muted); margin-right: 4px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 13px; font-family: inherit;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.qr-panel {
  margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-soft); text-align: center; max-width: 220px;
}
.qr-panel p { font-size: 12px; color: var(--ink-muted); margin: 12px 0 0; }
.qr-canvas { display: flex; justify-content: center; }

/* Account tabs / creator center */
.account-tabs {
  display: flex; gap: 6px; margin-bottom: 30px; border-bottom: 1px solid var(--line); padding-bottom: 0;
}
.account-tabs a {
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--ink-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.account-tabs a:hover { color: var(--ink); text-decoration: none; }
.account-tabs a.active { color: var(--blue-deep); border-bottom-color: var(--blue-deep); }
.account-tabs .ct { font-size: 11px; color: var(--ink-muted); background: var(--surface-soft); border-radius: 10px; padding: 1px 7px; margin-left: 4px; }
.account-tabs a.active .ct { color: var(--blue-deep); }

.profile-edit { display: flex; gap: 24px; align-items: flex-start; }
.profile-edit .field { margin-bottom: 16px; }
.profile-edit label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }

.avatar-lg { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-soft); }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-soft); }

.content-actions { display: flex; gap: 14px; margin-top: 10px; }
.content-actions a, .content-actions button { font-size: 13px; color: var(--blue-deep); background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.content-actions button { color: var(--pink-deep); }
.content-actions a:hover, .content-actions button:hover { text-decoration: underline; }

.link-btn { background: none; border: none; color: var(--ink-muted); font-size: 12px; padding: 0; cursor: pointer; font-family: inherit; }
.link-btn:hover { color: var(--pink-deep); text-decoration: underline; }

.author-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 13.5px; color: var(--ink-muted); }

.story-image { width: 100%; height: auto; border-radius: 10px; margin: 20px 0 28px; display: block; }
.story-thumb { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; display: block; }

/* Comments */
.comments-section { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.comment-form { margin-bottom: 28px; }
.comment-form textarea { width: 100%; min-height: 90px; margin-bottom: 10px; }
.comment-row { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-row:last-child { border-bottom: none; }
.cname { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.cwhen { font-size: 12px; color: var(--ink-muted); font-weight: 400; margin-left: 6px; }
.ctext { font-size: 14px; line-height: 1.75; color: var(--ink); }
.cmeta { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }

/* Post card (list) */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: block;
}
.post-card:first-child { padding-top: 0; }
.post-card .meta { font-size: 12px; color: var(--ink-muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.post-card .meta .tag { color: var(--blue-deep); font-weight: 600; }
.post-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.45;
}
.post-card:hover h2 { color: var(--blue-deep); }
.post-card p { font-size: 14.5px; color: var(--ink-muted); margin: 0; line-height: 1.7; }

/* Article */
article.post {
  padding-top: 30px;
}
.post-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.post h1 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 14px;
  text-wrap: balance;
}
.post .dek {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.75;
  margin: 0 0 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.post-body { font-size: 16.5px; line-height: 1.95; color: var(--ink); }
.post-body h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 38px 0 16px;
}
.post-body p { margin: 0 0 20px; }
.post-body strong { color: var(--blue-deep); }
.post-body .quote {
  border-left: 3px solid var(--pink-deep);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  font-size: 15.5px;
  color: var(--ink);
  background: color-mix(in srgb, var(--pink-pastel) 8%, transparent);
}

/* Data cards (reused from infographic system) */
.datacard {
  background: var(--surface-soft);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 14px;
  padding: 26px 24px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}
.datacard .section-label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.datacard .section-title { font-size: 15px; font-weight: 700; color: var(--ink); }

.stat-hero { display: flex; align-items: baseline; gap: 12px; justify-content: center; padding: 4px 0; }
.stat-hero .figure { font-size: 52px; font-weight: 600; color: var(--blue-deep); line-height: 1; }
.stat-hero .unit { font-size: 17px; color: var(--ink-muted); font-weight: 600; }
.stat-caption { text-align: center; font-size: 13px; color: var(--ink-muted); margin-top: 14px; line-height: 1.7; }

.bar-row { margin-bottom: 18px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.bar-label { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.bar-value { font-size: 16px; font-weight: 600; color: var(--blue-deep); }
.bar-track { height: 9px; background: var(--track); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--blue-deep); border-radius: 6px; }

.prop-wrap { display: flex; align-items: center; gap: 18px; }
.prop-figure { font-size: 38px; font-weight: 600; color: var(--pink-deep); flex-shrink: 0; line-height: 1; }
.prop-body { flex: 1; }
.prop-track { height: 12px; background: var(--track); border-radius: 8px; overflow: hidden; }
.prop-fill { height: 100%; background: var(--pink-deep); }
.prop-caption { font-size: 12.5px; color: var(--ink-muted); margin-top: 9px; line-height: 1.7; }

.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.triad-node { background: var(--surface-card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; text-align: center; }
.triad-dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.triad-dot.b { background: color-mix(in srgb, var(--blue-pastel) 55%, transparent); }
.triad-dot.p { background: color-mix(in srgb, var(--pink-pastel) 55%, transparent); }
.triad-dot.n { background: var(--line); }
.triad-dot svg { width: 14px; height: 14px; }
.triad-name { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.triad-desc { font-size: 11.5px; color: var(--ink-muted); line-height: 1.6; }

.checklist { display: flex; flex-direction: column; gap: 10px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--surface-card); border: 1px solid var(--line); border-radius: 10px; }
.check-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-deep); margin-top: 8px; flex-shrink: 0; }
.check-text { font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.check-text b { color: var(--blue-deep); font-weight: 700; }

.note-box {
  margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--pink-deep);
  background: color-mix(in srgb, var(--pink-pastel) 12%, var(--surface));
  font-size: 12.5px; line-height: 1.7; color: var(--ink);
}
.card-source { margin-top: 14px; font-size: 11.5px; color: var(--ink-muted); line-height: 1.7; }

.post-sources {
  margin-top: 44px;
  padding: 20px 22px;
  background: var(--surface-soft);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.9;
}
.post-sources .foot-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }

.post-tags { margin-top: 20px; font-size: 13px; color: var(--blue-deep); }

/* About page */
.prose h1 { font-size: 28px; margin: 26px 0 18px; font-weight: 800; }
.prose p { font-size: 16px; line-height: 1.9; margin: 0 0 20px; color: var(--ink); }

footer.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 20px 50px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .post h1 { font-size: 24px; }
  .stat-hero .figure { font-size: 42px; }
  .triad { gap: 8px; }
  .triad-node { padding: 12px 6px; }
}
