/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --paper:       #f6f8fc;
  --paper-2:     #eef2f9;
  --ink:         #0b2545;
  --ink-2:       #1b2d4f;
  --muted:       #5b6b8a;
  --rule:        #d8e0ee;
  --accent:      #1d4ed8;
  --accent-soft: #dbe6ff;
  --serif:  "Newsreader", Georgia, "Times New Roman", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw:   1180px;
  --readw:  680px;
  --radius: 4px;
}
html[data-theme="dark"] {
  --paper:       #0a1424;
  --paper-2:     #11203a;
  --ink:         #eaf0fb;
  --ink-2:       #c8d3e8;
  --muted:       #8597b5;
  --rule:        #1d2d4d;
  --accent:      #6ea8ff;
  --accent-soft: #15264a;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

/* ── App shell ──────────────────────────────────────────────────────────────── */
.app { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  overflow: hidden;
  isolation: isolate;
}
.site-header .bg {
  position: absolute; inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.site-header .bg svg {
  position: absolute; top: 50%; left: 50%;
  width: 220%; height: 360%;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  animation: drift 90s linear infinite;
}
.site-header .bg svg .lines polygon {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}
html[data-theme="dark"] .site-header .bg svg { opacity: 0.4; }
@keyframes drift {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) { .site-header .bg svg { animation: none; } }

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Brand mark */
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand .mark {
  width: 38px; height: 38px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600; font-size: 22px;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  padding-bottom: 2px;
  flex-shrink: 0;
}
.brand .name {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em;
}
.brand .accent-dot { color: var(--accent); }

/* Navigation */
.nav { display: flex; align-items: center; gap: 16px; }
.nav .links { display: flex; gap: 28px; align-items: center; }
.nav .links a {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav .links a:hover { color: var(--accent); }
.nav .links a.active { color: var(--accent); }
.nav .links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--rule);
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  flex-shrink: 0;
  padding: 0;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.menu-btn { display: none; }
@media (max-width: 760px) {
  .nav .links { display: none; }
  .menu-btn { display: grid; }
}

/* ── Mobile sheet ────────────────────────────────────────────────────────────── */
.sheet {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 50;
  padding: 24px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.sheet.open { transform: translateX(0); }
.sheet a {
  font-family: var(--serif);
  font-size: 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.sheet a:hover { color: var(--accent); }
.sheet .close { align-self: flex-end; margin-bottom: 16px; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--rule);
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .socials { display: flex; gap: 6px; }
.site-footer .socials a {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--ink-2);
}
.site-footer .socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Typography ──────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 3px;
  display: inline-block;
}
a.tag:hover { filter: brightness(0.9); }
.meta-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.meta-row .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}
.h-hero { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; }
.h-post { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
.h-section {
  font-size: 14px; font-family: var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

/* ── Buttons ──────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Image placeholders (used when no image uploaded) ─────────────────────── */
.img-ph {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(29,78,216,0.06) 14px 15px),
    linear-gradient(180deg, var(--paper-2), var(--paper-2));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.img-ph .label {
  position: absolute; bottom: 10px; left: 12px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em;
}
.img-ph .corner {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--mono); font-size: 10px; color: var(--muted);
}
.img-ph.featured { aspect-ratio: 16 / 9; }
.img-ph.thumb    { aspect-ratio: 4 / 3; }
.img-ph.wide     { aspect-ratio: 21 / 9; }

/* ── Reading progress ─────────────────────────────────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 30; width: 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Hero section (home) ──────────────────────────────────────────────────────── */
.hero {
  padding-block: 64px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero .bg {
  position: absolute; inset: 0;
  z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, #000 40%, transparent 85%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, #000 40%, transparent 85%);
}
.hero .bg svg {
  position: absolute; top: 50%; left: 50%;
  width: 160%; height: 220%;
  transform: translate(-50%, -50%);
  opacity: 0.45;
  animation: drift-hero 180s linear infinite;
}
.hero .bg svg .lines polygon {
  fill: none; stroke: var(--accent); stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
}
html[data-theme="dark"] .hero .bg svg { opacity: 0.3; }
@keyframes drift-hero {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce) { .hero .bg svg { animation: none; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px; align-items: end;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.hero .kicker { margin-bottom: 18px; }
.hero p.intro {
  font-family: var(--serif);
  font-size: 19px; line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
  margin: 22px 0 0;
}
.hero .now {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
}
.hero .now .label { margin-bottom: 8px; }
.hero .now .items {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-2); line-height: 1.6;
  display: grid; gap: 8px;
}
.hero .now .items > div {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 12px; align-items: baseline;
}
.hero .now .items span { color: var(--muted); }

/* ── Section head ─────────────────────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding: 40px 0 24px;
}
.density-controls { display: flex; gap: 8px; }

/* ── Featured post ────────────────────────────────────────────────────────────── */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px; padding: 16px 0 8px;
  align-items: center;
}
@media (max-width: 880px) { .featured { grid-template-columns: 1fr; gap: 24px; } }
.featured-img-link { display: block; }
.featured-img-link img,
.featured-img-link .img-ph { aspect-ratio: 4 / 3; border-radius: var(--radius); width: 100%; object-fit: cover; }
.featured h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
  margin: 14px 0 14px;
}
.featured h2 a:hover { color: var(--accent); }
.featured p { color: var(--ink-2); font-size: 16px; max-width: 520px; }
.featured .meta-row { margin-top: 20px; }

/* ── Post feed (grid + list) ──────────────────────────────────────────────────── */
#post-feed .post-grid { display: none; }
#post-feed .post-list { display: flex; flex-direction: column; }
#post-feed[data-density="grid"] .post-grid { display: grid; }
#post-feed[data-density="grid"] .post-list { display: none; }

.post-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px; padding: 8px 0 24px;
}
@media (max-width: 880px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .post-grid { grid-template-columns: 1fr; } }

.post-card { cursor: pointer; display: flex; flex-direction: column; gap: 14px; }
.post-card .card-img-link { display: block; }
.post-card img,
.post-card .img-ph.thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: transform 0.25s ease; border: 1px solid var(--rule); }
.post-card:hover img,
.post-card:hover .img-ph { transform: translateY(-2px); border-color: var(--accent); }
.post-card .top { display: flex; align-items: center; gap: 10px; }
.post-card h3 {
  font-family: var(--serif); font-size: 22px; line-height: 1.2;
  font-weight: 600; letter-spacing: -0.01em;
}
.post-card h3 a:hover { color: var(--accent); }
.post-card p.dek { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }

.post-list { display: flex; flex-direction: column; }
.post-list .row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 28px; align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.post-list .row:last-child { border-bottom: 1px solid var(--rule); }
.post-list .row:hover h3 { color: var(--accent); }
.post-list .date { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post-list h3 {
  font-family: var(--serif); font-size: 22px;
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.25;
  margin: 0;
}
.post-list h3 a { color: inherit; }
.post-list .tag-cell { justify-self: end; }
@media (max-width: 640px) {
  .post-list .row { grid-template-columns: 1fr; gap: 6px; }
  .post-list .tag-cell { justify-self: start; }
}

/* ── Pagination ───────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 12px; margin: 40px 0; }

/* ── Article ──────────────────────────────────────────────────────────────────── */
.article-header {
  padding-block: 64px 48px;
}
.article-header .meta-row { margin: 24px 0 0; }

.article-hero { margin: 32px 0 48px; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.article-hero figcaption {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-top: 10px; padding-left: 4px;
}

.article-body {
  padding-block: 0 64px;
  font-family: var(--serif);
  font-size: 19px; line-height: 1.7;
  color: var(--ink);
}
.article-body p { margin: 0 0 1.2em; }
.article-body p.lede {
  font-size: 22px; font-style: normal;
  color: var(--ink); letter-spacing: -0.005em;
  margin-bottom: 1.4em;
}
.article-body h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  letter-spacing: -0.01em; margin: 2em 0 0.6em;
}
.article-body h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 1.6em 0 0.4em; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.6em 0; padding: 4px 0 4px 24px;
  font-style: italic; font-size: 22px; color: var(--ink-2);
}
.article-body pre {
  font-family: var(--mono); font-size: 14px;
  background: var(--ink); color: #c5d7f7;
  padding: 22px 24px; border-radius: var(--radius);
  overflow-x: auto; line-height: 1.55; margin: 1.6em 0;
}
html[data-theme="dark"] .article-body pre { background: #050c1a; }
.article-body code:not(pre code) {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--paper-2); padding: 2px 6px; border-radius: 3px;
  color: var(--accent);
}
.article-body figure { margin: 2em 0; }
.article-body figure img { border-radius: var(--radius); width: 100%; }
.article-body figcaption {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-top: 10px; padding-left: 4px;
}
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.article-body figure,
.article-body hr { max-width: 760px; }
.article-body p.lede { max-width: 760px; }
.article-body hr { border: 0; height: 1px; background: var(--rule); margin: 2.4em 0; }
.article-body table { width: 100%; max-width: 760px; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; font-family: var(--sans); }
.article-body th, .article-body td { padding: 10px 14px; border: 1px solid var(--rule); text-align: left; }
.article-body th { background: var(--paper-2); font-weight: 600; font-size: 13px; }

/* ── Ghost Koenig card styles ─────────────────────────────────────────────────── */
.gh-content .kg-card { margin: 2em 0; }
.gh-content .kg-image { max-width: 100%; border-radius: var(--radius); }
.gh-content .kg-image-card { margin: 2em 0; }
.gh-content .kg-image-card.kg-width-wide .kg-image {
  width: 100%; max-width: 100%;
}
.gh-content .kg-image-card.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.gh-content .kg-image-card.kg-width-full .kg-image { width: 100vw; max-width: 100vw; }
.gh-content figcaption {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-top: 10px; text-align: center;
}
.gh-content .kg-gallery-container {
  display: flex; flex-direction: column; gap: 8px; max-width: 760px;
}
.gh-content .kg-gallery-row { display: flex; gap: 8px; }
.gh-content .kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gh-content .kg-bookmark-card {
  border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; max-width: 760px;
}
.gh-content .kg-bookmark-container { display: flex; text-decoration: none; }
.gh-content .kg-bookmark-content { padding: 20px; flex: 1; }
.gh-content .kg-bookmark-title { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.gh-content .kg-bookmark-description { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.gh-content .kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.gh-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.gh-content .kg-callout-card {
  display: flex; gap: 16px; padding: 20px 24px;
  background: var(--paper-2); border-radius: var(--radius);
  border-left: 3px solid var(--accent); max-width: 760px;
}
.gh-content .kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.gh-content .kg-callout-text { font-family: var(--sans); font-size: 15px; line-height: 1.6; }
.gh-content .kg-code-card { max-width: 760px; }
.gh-content .kg-code-card pre {
  font-family: var(--mono); font-size: 14px;
  background: var(--ink); color: #c5d7f7;
  padding: 22px 24px; border-radius: var(--radius);
  overflow-x: auto; line-height: 1.55;
}
html[data-theme="dark"] .gh-content .kg-code-card pre { background: #050c1a; }
.gh-content .kg-toggle-card {
  border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; max-width: 760px;
}
.gh-content .kg-toggle-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; }
.gh-content .kg-toggle-heading h4 { font-family: var(--sans); font-weight: 600; font-size: 15px; margin: 0; }
.gh-content .kg-toggle-content { padding: 0 20px 16px; font-family: var(--sans); font-size: 15px; line-height: 1.6; }
.gh-content .kg-video-card { max-width: 760px; }
.gh-content .kg-video-card video { width: 100%; border-radius: var(--radius); }

/* ── Byline / author ──────────────────────────────────────────────────────────── */
.byline-end {
  margin: 56px 0 0;
  padding-block: 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 16px;
}
.byline-end .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--accent);
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  flex-shrink: 0;
}
.byline-end .avatar-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.byline-end .who { font-weight: 600; color: var(--ink); }
.byline-end .bio { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ── Next / prev navigation ─────────────────────────────────────────────────── */
.next-prev {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin: 32px 0 0;
}
.next-prev .np {
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  display: block;
}
.next-prev .np:hover { border-color: var(--accent); }
.next-prev .np .label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.next-prev .np h4 {
  font-family: var(--serif); font-size: 18px;
  font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.25;
}
@media (max-width: 640px) { .next-prev { grid-template-columns: 1fr; } }

/* ── Subscribe ────────────────────────────────────────────────────────────────── */
.subscribe {
  margin: 80px 0 0;
  padding: 56px 40px;
  background: var(--paper-2);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px; align-items: center;
}
@media (max-width: 760px) { .subscribe { grid-template-columns: 1fr; padding: 36px 28px; } }
.subscribe h3 {
  font-family: var(--serif); font-size: 28px;
  font-weight: 500; letter-spacing: -0.015em;
  margin-bottom: 8px; line-height: 1.15;
}
.subscribe p { color: var(--muted); font-size: 15px; margin: 0; }
.subscribe form { display: flex; gap: 8px; }
.subscribe input {
  flex: 1; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  outline: none;
}
.subscribe input:focus { border-color: var(--accent); }
.subscribe button {
  border: 0; background: var(--accent); color: #fff;
  padding: 0 20px; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 500; font-size: 14px; cursor: pointer;
  white-space: nowrap;
}

/* ── About page ───────────────────────────────────────────────────────────────── */
.about {
  padding-block: 64px 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
}
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 32px; } }
.about .portrait img,
.about .portrait .img-ph { aspect-ratio: 4 / 5; border-radius: var(--radius); object-fit: cover; width: 100%; }
.about .portrait .handle {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-top: 14px; letter-spacing: 0.04em;
}
.about h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.8vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; font-weight: 500;
  margin-bottom: 24px;
}
.about .body .gh-content p,
.about .body > p {
  font-family: var(--serif); font-size: 19px; line-height: 1.65;
  color: var(--ink); margin: 0 0 1.1em; max-width: 620px;
}
.about .facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  margin: 36px 0 8px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.about .facts dt {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.about .facts dd {
  font-family: var(--sans); font-size: 15px; color: var(--ink); margin: 0;
}
.about .socials-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;
}
.about .socials-row a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--ink-2);
}
.about .socials-row a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Tags page ────────────────────────────────────────────────────────────────── */
.tags-page { padding-block: 64px 48px; }
.tags-page > .head { max-width: var(--readw); margin: 0 0 48px; }
.tags-page h1 {
  font-family: var(--serif); font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
  margin: 12px 0 16px;
}
.tags-page .head p {
  font-family: var(--serif); font-size: 19px; line-height: 1.55;
  color: var(--ink-2); margin: 0;
}
.tags-index {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 56px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tags-index a {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); cursor: pointer;
}
.tags-index a:hover,
.tags-index a.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tags-index a .count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tags-index a:hover .count,
.tags-index a.active .count { color: var(--accent); }

.tag-group { margin-bottom: 56px; }
.tag-group .tg-head {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 12px; margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.tag-group .tg-head h2 {
  font-family: var(--serif); font-size: 28px;
  font-weight: 500; letter-spacing: -0.015em;
}
.tag-group .tg-head .count { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ── Now page ─────────────────────────────────────────────────────────────────── */
.now-page { padding-block: 64px 48px; }
.now-page .head { max-width: var(--readw); margin: 0 0 40px; }
.now-page h1 {
  font-family: var(--serif); font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
  margin: 12px 0 16px;
}
.now-page .head .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.now-page .head p.intro {
  font-family: var(--serif); font-size: 20px; line-height: 1.55;
  color: var(--ink-2); margin: 16px 0 0; max-width: 620px;
}

/* Now body: Ghost editor content rendered inside now-page */
.now-body { max-width: 820px; }
.now-body h2 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0;
  padding-top: 6px;
}
.now-body p {
  font-family: var(--serif); font-size: 19px; line-height: 1.55;
  color: var(--ink); margin: 0 0 0.6em;
}
.now-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.now-body li {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  align-items: baseline;
}

/* ── Generic page ─────────────────────────────────────────────────────────────── */
.page-hero-img { width: 100%; border-radius: var(--radius); aspect-ratio: 21 / 9; object-fit: cover; }
.page-generic .article-body h1 { margin-bottom: 24px; }

/* ── Error page ───────────────────────────────────────────────────────────────── */
.error-page { text-align: center; }
