/* ─────────────────────────────────────────────────────────────
   rusty — warm, literary, slightly slow.
   Light/dark via [data-theme]. All color is oklch.
   Accent is a variable; everything else stays anchored.
   ──────────────────────────────────────────────────────────── */

:root {
  --paper:        oklch(0.965 0.013 80);
  --paper-tint:   oklch(0.94 0.018 78);
  --paper-deep:   oklch(0.90 0.022 75);
  --ink:          oklch(0.235 0.025 55);
  --ink-soft:     oklch(0.36 0.022 60);
  --ink-mute:     oklch(0.55 0.018 65);
  --ink-faint:    oklch(0.70 0.014 70);
  --rule:         oklch(0.85 0.020 75);
  --accent:       oklch(0.575 0.195 38);
  --accent-deep:  oklch(0.46 0.18 36);
  --accent-soft:  oklch(0.575 0.195 38 / 0.14);
  --selection:    oklch(0.85 0.12 55 / 0.55);

  --serif: "Newsreader", "Source Serif Pro", "Iowan Old Style", Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --scale: 1;
  --measure: 64ch;

  --shadow-warm: 0 1px 0 oklch(1 0 0 / 0.6) inset,
                 0 22px 60px -28px oklch(0.30 0.05 60 / 0.30);
}

[data-theme="dark"] {
  --paper:       oklch(0.18 0.013 55);
  --paper-tint:  oklch(0.22 0.015 55);
  --paper-deep:  oklch(0.26 0.018 55);
  --ink:         oklch(0.94 0.015 80);
  --ink-soft:    oklch(0.82 0.015 75);
  --ink-mute:    oklch(0.65 0.018 70);
  --ink-faint:   oklch(0.45 0.020 65);
  --rule:        oklch(0.33 0.020 60);
  --selection:   oklch(0.55 0.14 40 / 0.45);
  --shadow-warm: 0 1px 0 oklch(1 0 0 / 0.04) inset,
                 0 22px 60px -28px oklch(0 0 0 / 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: calc(18px * var(--scale));
  line-height: 1.75;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(oklch(0.30 0.04 55 / 0.025) 1px, transparent 1.2px),
    radial-gradient(oklch(0.30 0.04 55 / 0.018) 1px, transparent 1.2px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 4px;
}

::selection { background: var(--selection); }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

/* ── App shell ────────────────────────────────────────────── */

.app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 56px 96px;
  position: relative;
}

@media (max-width: 820px) {
  .app { padding: 32px 22px 80px; }
}

/* ── Masthead ─────────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.mast-mark {
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: default;
  text-decoration: none;
}

.mast-logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  padding-bottom: 4px;
}

.mast-logo .word {
  font-style: italic;
  font-weight: 500;
  font-size: 3.111rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 0.9;
}

.mast-logo .word .first {
  color: var(--accent);
  display: inline-block;
}

.mast-underline {
  position: relative;
  margin-top: -8px;
  margin-left: 2px;
  width: 140px;
  height: 10px;
}

.mast-underline .line {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--accent) 12%,
    var(--accent) 88%,
    transparent 100%
  );
  opacity: 0.55;
  transition: opacity 0.4s ease;
}

.mast-underline .blimp {
  position: absolute;
  top: 50%;
  left: calc(100% - 8px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(0, -50%);
  box-shadow:
    0 0 0 2px color-mix(in oklab, var(--accent) 22%, transparent),
    0 0 16px color-mix(in oklab, var(--accent) 65%, transparent),
    0 0 32px color-mix(in oklab, var(--accent) 35%, transparent);
  transition: left 1.1s cubic-bezier(.55, .05, .2, 1),
              box-shadow 0.5s ease;
  will-change: left;
}

.mast-mark:hover .mast-underline .blimp {
  left: 0;
  box-shadow:
    0 0 0 3px color-mix(in oklab, var(--accent) 28%, transparent),
    0 0 22px color-mix(in oklab, var(--accent) 80%, transparent),
    0 0 44px color-mix(in oklab, var(--accent) 45%, transparent);
}

.mast-mark:hover .mast-underline .line {
  opacity: 0.85;
}

.mast-tt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  white-space: nowrap;
}

.mast-tt .tagline {
  font-style: italic;
  font-size: 1.056rem;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  line-height: 1.2;
}

@keyframes quip-pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(0.78 0.16 70 / 0.18); }
  50%      { box-shadow: 0 0 0 6px oklch(0.78 0.16 70 / 0.0);  }
}

.mast-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.667rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.mast-nav a,
.mast-nav button {
  position: relative;
  padding: 6px 2px;
  color: var(--ink-soft);
  text-decoration: none;
}

.mast-nav a:hover,
.mast-nav button:hover { color: var(--accent); }

.mast-nav .theme-toggle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-size: 0.722rem;
  color: var(--ink-soft);
  line-height: 1;
}

.mast-nav .theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 820px) {
  .masthead { gap: 18px; }
  .mast-logo .word { font-size: 2.333rem; }
  .mast-underline { width: 105px; }
  .mast-tt { white-space: normal; }
  .mast-tt .tagline { font-size: 0.833rem; }
}

/* ── Intro block ──────────────────────────────────────────── */

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 14px 0 44px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}

.intro-lede {
  font-size: 1.222rem;
  line-height: 1.45;
  color: var(--ink);
  font-feature-settings: "kern", "liga", "onum";
  max-width: 32ch;
}

.intro-lede > p:first-child::first-letter {
  font-style: italic;
  font-size: 3.556rem;
  line-height: 0.85;
  float: left;
  padding: 8px 10px 0 0;
  color: var(--accent);
  font-weight: 400;
}

.intro-lede em { color: var(--accent); font-style: italic; }

.intro-byline {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.611rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.intro-byline .sig {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.222rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-left: 6px;
  transform: translateY(2px) rotate(-2deg);
}

.intro-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .intro-lede { max-width: none; }
}

/* ── Currently card ───────────────────────────────────────── */

.now-card {
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px 20px 16px;
  position: relative;
}

.now-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -1px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px var(--paper);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--paper), 0 0 0 4px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 4px var(--paper), 0 0 0 9px transparent; }
}

.now-card h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.611rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.now-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.now-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 0.833rem;
}

.now-row .verb,
.post .ord,
.post-nav .lbl {
  font-family: var(--mono);
  font-size: 0.583rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.now-row .verb { padding-top: 2px; }

.now-row .obj { color: var(--ink); }
.now-row .obj em { font-style: italic; color: var(--ink); }

/* ── Days since last post ─────────────────────────────────── */

.days-since {
  font-family: var(--mono);
  font-size: 0.583rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  line-height: 1.5;
  padding-left: 4px;
}

.days-since::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.78 0.16 70);
  box-shadow: 0 0 0 3px oklch(0.78 0.16 70 / 0.18);
  animation: quip-pulse 3.6s ease-in-out infinite;
  flex-shrink: 0;
}

.days-since em,
.foot .quip {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.75rem;
  text-transform: none;
}

.days-since em { letter-spacing: -0.005em; color: var(--ink-soft); }

/* ── Main grid ────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 72px;
  align-items: start;
}

.grid.left-sidebar { grid-template-columns: 260px 1fr; }
.grid.left-sidebar .sidebar { order: -1; }

@media (max-width: 980px) {
  .grid, .grid.left-sidebar { grid-template-columns: 1fr; gap: 48px; }
  .grid.left-sidebar .sidebar { order: 0; }
}

/* ── Posts list ───────────────────────────────────────────── */

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.611rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}

.section-eyebrow::after,
.side-block h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.year-rule {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.111rem;
  font-weight: 400;
  color: var(--paper-deep);
  margin: 28px 0 8px;
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.year-rule:first-child { margin-top: 0; }

.posts { display: grid; gap: 4px; }

.post {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 28px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--rule);
  align-items: start;
  cursor: pointer;
  position: relative;
}

.post:last-child { border-bottom: 1px solid var(--rule); }

.post .ord {
  padding-top: 8px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.post .ord .num {
  font-size: 0.528rem;
  color: var(--ink-faint);
  opacity: 0.7;
}

.post .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.post h2 {
  margin: 0;
  font-size: 1.444rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color 0.25s ease;
}

.post h2 a {
  color: inherit;
  text-decoration: none;
}

.post h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

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

.post h2 .mark {
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.post:hover h2 .mark { opacity: 1; transform: translateX(0); }

.post .dek {
  font-style: italic;
  font-size: 0.917rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
  max-width: 60ch;
}

.post .meta {
  font-family: var(--mono);
  font-size: 0.583rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.post .meta .cat { color: var(--accent); }

.post .meta .sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
  display: inline-block;
}

.post .thumb {
  width: 120px;
  height: 88px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.post .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; gap: 8px; }
  .post .ord { padding-top: 0; flex-direction: row; gap: 12px; align-items: baseline; }
  .post .thumb { width: 100%; height: 140px; }
  .post h2 { font-size: 1.222rem; }
}

/* ── Pagination ───────────────────────────────────────────── */

.pagination {
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  font-family: var(--mono);
  font-size: 0.611rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.pagination a { color: var(--ink-soft); }
.pagination a:hover { color: var(--accent); }

/* ── Sidebar ──────────────────────────────────────────────── */

.sidebar {
  position: sticky;
  top: 36px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  font-size: 0.778rem;
}

@media (max-width: 980px) {
  .sidebar { position: static; }
}

.side-block h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.611rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive {
  display: grid;
  gap: 2px;
  font-family: var(--mono);
  font-size: 0.667rem;
}

.archive a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  text-decoration: none;
}

.archive a:hover { color: var(--accent); }
.archive .yr { letter-spacing: 0.06em; }

.archive .dots {
  border-top: 1px dotted var(--rule);
  height: 0;
  align-self: center;
  margin-bottom: 3px;
}

.archive .ct { color: var(--ink-faint); }

.archive-page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid var(--rule);
}
.archive-page-nav a {
  display: inline;
  color: var(--ink-faint);
  padding: 0;
  transition: color 0.2s ease;
}
.archive-page-nav a:hover { color: var(--accent); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.tag {
  font-family: var(--mono);
  font-size: 0.611rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: all 0.2s ease;
  background: transparent;
  text-decoration: none;
  display: inline-block;
}

.tag:hover { color: var(--accent); border-color: var(--accent); }

.tag .ct {
  color: var(--ink-faint);
  margin-left: 4px;
  font-size: 0.528rem;
  vertical-align: 1px;
}

.about-mini {
  font-size: 0.806rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-style: italic;
}

.about-mini p { margin: 0 0 10px; }

.about-mini .socials {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.611rem;
  letter-spacing: 0.08em;
  font-style: normal;
}

.about-mini .socials a {
  color: var(--ink-soft);
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  text-decoration: none;
}

.about-mini .socials a:hover { color: var(--accent); border-color: var(--accent); }

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

.foot {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 22px;
  font-family: var(--mono);
  font-size: 0.583rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

.foot .right { display: flex; gap: 18px; }
.foot a:hover { color: var(--accent); }

.foot .quip { letter-spacing: 0; color: var(--ink-mute); }

/* ── Article page ─────────────────────────────────────────── */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 100;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px var(--accent-soft);
  width: 0;
}

.article-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 56px 96px;
}

@media (max-width: 820px) {
  .article-shell { padding: 28px 22px 80px; }
}

.back-link {
  font-family: var(--mono);
  font-size: 0.611rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 64px;
  transition: color 0.2s ease, gap 0.2s ease;
  text-decoration: none;
}

.back-link:hover { color: var(--accent); gap: 12px; }

.article-header {
  text-align: left;
  max-width: 28ch;
  margin: 0 0 56px;
}

.article-header .cat {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: inline-block;
}

.article-header h1 {
  margin: 0;
  font-size: 3.111rem;
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.article-header h1 em { font-style: italic; color: var(--accent); }

.article-header .sub {
  margin-top: 24px;
  font-style: italic;
  font-size: 1.222rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38ch;
}

.article-meta {
  font-family: var(--mono);
  font-size: 0.611rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 32px 0 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

@media (max-width: 820px) {
  .article-header { max-width: none; }
  .article-header h1 { font-size: 2.111rem; }
  .article-header .sub { font-size: 1rem; }
}

/* ── Feature image (page.hbs) ────────────────────────────── */

.feature-image { margin: 0 0 56px; }
.feature-image img { max-width: 100%; height: auto; display: block; border-radius: 2px; }

/* ── Prose ────────────────────────────────────────────────── */

.prose {
  max-width: var(--measure);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink);
  position: relative;
}

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

.prose h2 {
  font-size: 1.667rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
  margin-top: 2.2em;
  color: var(--ink);
}

.prose h2::before {
  content: "✻";
  display: block;
  font-style: normal;
  font-size: 0.778rem;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.4em;
}

.prose h3 {
  font-size: 1.222rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 1.8em;
}

/* Drop cap on first paragraph */
.prose > p:first-of-type::first-letter,
.prose .lead::first-letter {
  font-style: italic;
  font-size: 5.3em;
  line-height: 0.82;
  float: left;
  padding: 0.05em 0.12em 0 0;
  color: var(--accent);
  font-weight: 400;
}

.prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.prose a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.prose ul, .prose ol {
  padding-left: 1.4em;
  display: grid;
  gap: 0.4em;
}

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.4em;
  margin: 1.6em 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* Pull quote — authors apply via Ghost editor HTML card */
.prose .pullquote,
.pullquote {
  font-size: 1.444rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  max-width: 26ch;
  margin: 2.2em auto !important;
  text-align: center;
  position: relative;
  border: none;
  padding: 0;
}

.prose .pullquote::before, .prose .pullquote::after,
.pullquote::before, .pullquote::after {
  content: "✻";
  font-size: 0.722rem;
  display: block;
  color: var(--accent);
  letter-spacing: 0.4em;
  font-style: normal;
  margin: 0 auto;
}

.prose .pullquote::before, .pullquote::before { margin-bottom: 22px; }
.prose .pullquote::after,  .pullquote::after  { margin-top: 22px; }

/* Margin aside — authors apply .aside-note via Ghost editor HTML card */
.prose .aside-note,
.aside-note {
  position: relative;
  float: right;
  clear: right;
  width: 240px;
  margin: 0.4em -280px 1em 30px;
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--accent);
  font-size: 0.778rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .prose .aside-note, .aside-note {
    float: none;
    width: auto;
    margin: 1.4em 0;
    padding-left: 18px;
  }
}

.prose hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.4em 0;
}

.article-end {
  margin: 80px 0 64px;
  text-align: center;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.6em;
  padding-left: 0.6em;
}

/* ── Post navigation ─────────────────────────────────────── */

.post-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 6px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  margin-top: 0;
}

.post-nav-prev,
.post-nav-next {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.post-nav-next {
  margin-left: auto;
  text-align: right;
}

.post-nav-sep {
  padding: 0 14px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.post-nav:not(:has(a.post-nav-prev)) .post-nav-sep,
.post-nav:not(:has(a.post-nav-next)) .post-nav-sep {
  display: none;
}

.post-nav .lbl { font-style: normal; }

.post-nav-prev .lbl { margin-right: 0.55em; }
.post-nav-next .lbl { margin-left: 0.55em; }

.post-nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }

/* ── Ghost Koenig cards ───────────────────────────────────── */

.prose .kg-image-card {
  margin: 1.8em 0;
}

.prose .kg-image-card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.prose .kg-image-card figcaption,
.prose .kg-gallery-card figcaption,
.prose figcaption {
  font-family: var(--mono);
  font-size: 0.611rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 10px;
  text-align: center;
}

.prose .kg-gallery-card {
  margin: 1.8em 0;
}

.prose .kg-gallery-container {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.prose .kg-gallery-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

.prose .kg-bookmark-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  margin: 1.8em 0;
}

.prose .kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.prose .kg-bookmark-content {
  padding: 16px 20px;
  flex: 1;
}

.prose .kg-bookmark-title {
  font-weight: 500;
  font-size: 0.889rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.prose .kg-bookmark-description {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-style: italic;
}

.prose .kg-bookmark-metadata {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.611rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  display: flex;
  gap: 8px;
  align-items: center;
}

.prose .kg-bookmark-thumbnail img {
  width: 140px;
  height: 100%;
  object-fit: cover;
}

.prose .kg-callout-card {
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 1.8em 0;
  display: flex;
  gap: 14px;
}

.prose .kg-callout-emoji {
  font-size: 1.111rem;
  flex-shrink: 0;
}

.prose .kg-callout-text {
  font-size: 0.889rem;
  color: var(--ink-soft);
  font-style: italic;
}

.prose .kg-code-card,
.prose pre {
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.8em 0;
  font-family: var(--mono);
  font-size: 0.778rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent-deep);
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ── Candlelight ──────────────────────────────────────────── */

.candle {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.6s ease;
  --cx: 50vw;
  --cy: 50vh;
  background: radial-gradient(
    420px 420px at var(--cx) var(--cy),
    oklch(0.85 0.13 78 / 0.13) 0%,
    oklch(0.85 0.13 78 / 0.06) 28%,
    oklch(0.85 0.13 78 / 0.02) 52%,
    transparent 72%
  );
  mix-blend-mode: multiply;
  will-change: background;
}

.candle.visible { opacity: 1; }

[data-theme="dark"] .candle {
  background: radial-gradient(
    460px 460px at var(--cx) var(--cy),
    oklch(0.80 0.12 75 / 0.11) 0%,
    oklch(0.80 0.12 75 / 0.05) 28%,
    oklch(0.80 0.12 75 / 0.02) 52%,
    transparent 72%
  );
  mix-blend-mode: screen;
}

@media (hover: none), (pointer: coarse) {
  .candle { display: none; }
}

/* ── Scroll reveal ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Koenig editor ────────────────────────────────────────── */

.kg-width-wide {
  width: 85vw;
  max-width: 85vw;
  margin-left: calc(50% - 42.5vw);
}

.kg-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ── Utility ──────────────────────────────────────────────── */

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