/* Graymoor Archive — hand-tuned theme CSS (no preprocessor) */

:root {
  --bg-deep: #06060a;
  --fg: #d6dae0;
  --accent: #b657ff;
  --serif: 'EB Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --bg-panel: #0a0910;
  --fg-muted: #8a9098;

  /* Ghost font setting integration (keeps gscan happy; we still load Google Fonts in `default.hbs`) */
  --gh-font-heading: var(--serif);
  --gh-font-body: var(--serif);

  /* Vortex animation tunables (see handoff/index.html) */
  --vortex-anchor-x: 75.5;
  --vortex-anchor-y: 30;
  --vortex-glow-size: 20;
  --vortex-swirl-size: 48;
  --vortex-glow-alpha: 0.28;
  --vortex-glow-mid: 0.6;
  --vortex-pulse-scale-min: 0.88;
  --vortex-pulse-scale-max: 1.6;
  --vortex-pulse-opacity-min: 0.47;
  --vortex-pulse-opacity-max: 1;
  --vortex-pulse-dur: 15;
  --vortex-swirl-opacity: 0.27;
  --vortex-swirl-stop-1: 0.47;
  --vortex-swirl-stop-2: 0.36;
  --vortex-spin-dur: 13;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--fg);
  font-family: var(--serif);
}

body {
  display: flex;
  flex-direction: column;
}

body > main,
body > .site-main,
body > article,
body > .stage,
body > .archive-stage {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
}

.mono {
  font-family: var(--mono);
}

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

/* ------------------------------------------------------------------------- */
/* Site chrome                                                                */
/* ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(6, 6, 10, 0.92), rgba(6, 6, 10, 0.55));
  border-bottom: 1px solid rgba(214, 218, 224, 0.08);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__lead {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  min-width: 0;
}

.site-header__brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: -0.02em;
  text-decoration: none;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.site-header__brand:hover,
.site-header__brand:focus-visible {
  color: var(--accent);
  outline: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 4px;
}

.site-header__nav .nav-link {
  text-decoration: none;
  border-bottom: 1px dashed rgba(214, 218, 224, 0.25);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-header__nav .nav-link:hover,
.site-header__nav .nav-link:focus-visible,
.site-header__nav .nav-link.is-current {
  color: var(--accent);
  border-bottom-color: rgba(182, 87, 255, 0.55);
  outline: none;
}

@media (max-width: 720px) {
  .site-header__nav {
    display: none;
  }
}

.site-header__search {
  appearance: none;
  border: 1px dashed rgba(214, 218, 224, 0.35);
  background: rgba(10, 9, 16, 0.55);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-header__search:hover,
.site-header__search:focus-visible {
  color: var(--accent);
  border-color: rgba(182, 87, 255, 0.55);
  outline: none;
}

.site-footer {
  flex-shrink: 0;
  height: 56px;
  padding: 0 clamp(20px, 4vw, 48px);
  border-top: 1px solid rgba(214, 218, 224, 0.08);
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-footer__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__meta {
  opacity: 0.5;
  white-space: nowrap;
}

/* Outposts row (single-line) */

.outposts {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  opacity: 0.85;
  white-space: nowrap;
}

.outposts a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(214, 218, 224, 0.33);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.outposts a:hover,
.outposts a:focus-visible,
.outposts a.is-current {
  color: var(--accent);
  border-bottom-color: rgba(182, 87, 255, 0.55);
  outline: none;
}

@media (max-width: 720px) {
  .site-footer {
    height: auto;
    min-height: 56px;
    padding: 14px clamp(18px, 5vw, 28px);
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-footer__meta {
    white-space: normal;
  }
}

/* ------------------------------------------------------------------------- */
/* Moor stage + atmospherics                                                  */
/* ------------------------------------------------------------------------- */

.stage,
.archive-stage {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.archive-stage--home {
  min-height: min(640px, 68vh);
  background-image: url('../img/moor-hero-lossy.webp');
  background-size: cover;
  background-position: center;
}

.archive-stage--error {
  min-height: 100vh;
  background-image: url('../img/moor-hero-lossy.webp');
  background-size: cover;
  background-position: center;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 75% 65% at 50% 45%,
      transparent 30%,
      rgba(0, 0, 0, 0.35) 65%,
      rgba(0, 0, 0, 0.85) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.25) 0%,
      transparent 25%,
      transparent 70%,
      rgba(0, 0, 0, 0.55) 100%
    );
  pointer-events: none;
}

.fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.75;
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 30%,
    rgba(0, 0, 0, 0.82) 45%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.28) 78%,
    rgba(0, 0, 0, 0.1) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 30%,
    rgba(0, 0, 0, 0.82) 45%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.28) 78%,
    rgba(0, 0, 0, 0.1) 90%,
    transparent 100%
  );
}

.fog__canvas {
  position: absolute;
  inset: 0;
}

.fog__canvas canvas {
  display: block;
}

.fog--hero {
  mix-blend-mode: screen;
  opacity: 0.82;
}

.fog--deep {
  opacity: 0.9;
}

/* Vortex overlays (homepage omits markup; errors include it). */

.vortex-glow,
.vortex-swirl {
  position: absolute;
  top: min(calc(var(--vortex-anchor-y) * 1vh), calc(50vh + (var(--vortex-anchor-y) - 50) * 0.5vw));
  left: max(calc(var(--vortex-anchor-x) * 1vw), calc(50vw + (var(--vortex-anchor-x) - 50) * 2vh));
  aspect-ratio: 1 / 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.vortex-glow {
  width: clamp(260px, calc(var(--vortex-glow-size) * 1vmin), 720px);
  background: radial-gradient(
    circle closest-side,
    rgba(170, 130, 220, var(--vortex-glow-alpha)) 0%,
    rgba(110, 80, 180, var(--vortex-glow-mid)) 35%,
    rgba(60, 40, 120, calc(var(--vortex-glow-mid) * 0.36)) 65%,
    transparent 100%
  );
  animation: moor-pulse calc(var(--vortex-pulse-dur) * 1s) ease-in-out infinite;
}

.vortex-swirl {
  width: clamp(240px, calc(var(--vortex-swirl-size) * 1vmin), 640px);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(180, 145, 220, var(--vortex-swirl-stop-1)) 70deg,
    transparent 160deg,
    rgba(160, 125, 210, var(--vortex-swirl-stop-2)) 230deg,
    transparent 330deg
  );
  -webkit-mask: radial-gradient(circle closest-side, transparent 30%, black 48%, black 68%, transparent 92%);
  mask: radial-gradient(circle closest-side, transparent 30%, black 48%, black 68%, transparent 92%);
  opacity: var(--vortex-swirl-opacity);
  animation: moor-spin calc(var(--vortex-spin-dur) * 1s) linear infinite reverse;
}

@keyframes moor-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(var(--vortex-pulse-scale-min));
    opacity: var(--vortex-pulse-opacity-min);
  }
  50% {
    transform: translate(-50%, -50%) scale(var(--vortex-pulse-scale-max));
    opacity: var(--vortex-pulse-opacity-max);
  }
}

@keyframes moor-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-aspect-ratio: 3/4) {
  .archive-stage--home {
    background-position: 72% 32%;
  }

  .archive-stage--error {
    background-position: 72% 32%;
  }

  .vortex-glow,
  .vortex-swirl {
    top: calc(var(--vortex-anchor-y) * 1vh);
    left: calc(72vw + (var(--vortex-anchor-x) - 72) * 2vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vortex-glow,
  .vortex-swirl {
    animation: none;
    transform: translate(-50%, -50%);
  }
}

.content {
  position: relative;
  z-index: 2;
}

.content--overlay {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 56px);
}

.content--narrow {
  max-width: 960px;
  margin-inline: auto;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: clamp(34px, 5vw, 70px);
}

.hero--compact {
  padding-bottom: clamp(28px, 4vw, 56px);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.92;
  margin-bottom: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-shadow:
    0 4px 24px rgba(0, 0, 0, 0.95),
    0 1px 4px rgba(0, 0, 0, 1);
}

.wordmark--mid {
  font-size: clamp(36px, 6vw, 96px);
}

.wordmark--small {
  font-size: clamp(32px, 5vw, 72px);
}

.tagline {
  margin: clamp(28px, 3.2vw, 48px) 0 0;
  max-width: 560px;
  font-family: var(--serif);
  font-size: clamp(14px, 1.08vw, 17px);
  line-height: 1.62;
  opacity: 0.88;
  text-wrap: pretty;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

.tagline--tag {
  margin-top: 18px;
  max-width: 640px;
  opacity: 0.92;
}

/* ------------------------------------------------------------------------- */
/* Homepage ledger                                                            */
/* ------------------------------------------------------------------------- */

.site-main--home {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(70, 50, 120, 0.18), transparent 62%),
    var(--bg-deep);
}

.ledger-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px);
}

.lit-windows-shell {
  margin-bottom: clamp(36px, 4vw, 56px);
  padding-bottom: clamp(26px, 3vw, 40px);
  border-bottom: 1px dashed rgba(214, 218, 224, 0.15);
}

.lit-windows-heading {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 16px;
}

.lit-windows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.lit-windows__link {
  font-style: italic;
  font-family: var(--serif);
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px dashed rgba(214, 218, 224, 0.32);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.lit-windows__link:hover,
.lit-windows__link:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(182, 87, 255, 0.55);
  outline: none;
}

.ledger {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px dashed rgba(214, 218, 224, 0.12);
}

@media (min-width: 720px) {
  .post-card--has-thumb {
    grid-template-columns: minmax(0, 1fr) 80px;
    align-items: start;
    column-gap: 26px;
  }
}

.post-card__body {
  min-width: 0;
}

.post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 4px;
  margin: 0 0 12px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-muted);
  line-height: 1;
}

.post-card__date {
  letter-spacing: inherit;
}

.post-card__meta-divider {
  opacity: 0.4;
  letter-spacing: 0;
}

.post-card__meta-tags a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(214, 218, 224, 0.2);
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
}

.post-card__meta-tags a:hover,
.post-card__meta-tags a:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(182, 87, 255, 0.55);
  outline: none;
}

.post-card__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.18;
  font-style: italic;
  font-weight: 400;
}

.post-card__title a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(214, 218, 224, 0.25);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.post-card__title a:hover,
.post-card__title a:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(182, 87, 255, 0.55);
  outline: none;
}

.post-card__excerpt {
  margin: 0;
  color: rgba(214, 218, 224, 0.78);
  font-size: 16px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}

.post-card__thumb {
  display: block;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(214, 218, 224, 0.15);
  overflow: hidden;
  filter: saturate(0.82) contrast(1.05);
}

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

/* ------------------------------------------------------------------------- */
/* Pagination                                                                 */
/* ------------------------------------------------------------------------- */

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px dashed rgba(214, 218, 224, 0.12);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.pagination__link {
  text-decoration: none;
  border-bottom: 1px dashed rgba(214, 218, 224, 0.25);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.pagination__link:hover,
.pagination__link:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(182, 87, 255, 0.55);
  outline: none;
}

.pagination__link--newer {
  justify-self: start;
}

.pagination__link--older {
  justify-self: end;
}

.pagination__stats {
  opacity: 0.6;
}

.pagination__spacer {
  display: inline-block;
  min-height: 1em;
}

/* ------------------------------------------------------------------------- */
/* Reading templates                                                          */
/* ------------------------------------------------------------------------- */

.readable {
  max-width: 880px;
  margin: clamp(34px, 5vw, 76px) auto clamp(64px, 8vw, 120px);
  padding: 0 clamp(20px, 4vw, 28px);
}

.readable__header {
  margin-bottom: 28px;
}

.readable__title {
  margin: 4px 0 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.04;
}

.readable__lede {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(214, 218, 224, 0.88);
  max-width: 720px;
}

.readable__meta {
  color: rgba(214, 218, 224, 0.6);
}

.readable__meta-line {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.post-cover {
  margin: 0 0 22px;
  overflow: hidden;
}

.post-cover img {
  width: 100%;
  display: block;

  mask-image:
    radial-gradient(circle farthest-corner at 50% 30%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.93) 60%, transparent 108%),
    linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1));
}

.post-cover figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.5;
}

.readable__body {
  font-size: 18px;
  line-height: 1.7;
}

.readable__body > * + * {
  margin-top: 1rem;
}

.readable__body a {
  border-bottom: 1px dashed rgba(214, 218, 224, 0.35);
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease;
}

.readable__body a:hover,
.readable__body a:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(182, 87, 255, 0.55);
  outline: none;
}

.readable__body hr {
  border: none;
  border-top: 1px dashed rgba(214, 218, 224, 0.18);
  margin: clamp(34px, 4vw, 56px) 0;
}

.readable__body blockquote {
  margin: 28px 0;
  padding: 14px 0 14px 20px;
  border-left: 1px dashed rgba(182, 87, 255, 0.55);
  color: rgba(214, 218, 224, 0.86);
}

.readable__body pre {
  background: var(--bg-panel);
  border: 1px solid rgba(214, 218, 224, 0.12);
  padding: 18px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
}

.readable__body code {
  font-family: var(--mono);
  font-size: 0.95em;
  background: rgba(10, 9, 16, 0.88);
  border: 1px solid rgba(214, 218, 224, 0.12);
  padding: 2px 6px;
}

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

.readable__body ul,
.readable__body ol {
  padding-left: 1.2rem;
}

.readable__body figure {
  margin: 34px auto;
}

.post-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px dashed rgba(214, 218, 224, 0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-tags {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.7;
}

.post-tags a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(214, 218, 224, 0.25);
  padding-bottom: 2px;
  transition: color 140ms ease, border-color 140ms ease;
}

.post-tags a:hover,
.post-tags a:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(182, 87, 255, 0.55);
  outline: none;
}

.post-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-rail__link {
  text-decoration: none;
  border-bottom: 1px dashed rgba(214, 218, 224, 0.25);
  padding-bottom: 2px;
  transition: color 140ms ease, border-color 140ms ease;
}

.post-rail__link:hover,
.post-rail__link:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(182, 87, 255, 0.55);
  outline: none;
}

.post-rail__title {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Tag ledger (page-tags.hbs)                                                 */

.tag-ledger-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 48px) clamp(48px, 6vw, 80px);
}

.tag-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.tag-ledger__item {
  border-top: 1px dashed rgba(214, 218, 224, 0.14);
  padding: 18px 0;
}

.tag-ledger__item:last-child {
  border-bottom: 1px dashed rgba(214, 218, 224, 0.14);
}

.tag-ledger__link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  gap: 22px;
  text-decoration: none;
  border-bottom: none;
  transition: color 160ms ease;
}

.tag-ledger__link:hover,
.tag-ledger__link:focus-visible {
  color: var(--accent);
  outline: none;
}

.tag-ledger__count {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tag-ledger__link:hover .tag-ledger__count,
.tag-ledger__link:focus-visible .tag-ledger__count {
  color: var(--accent);
}

.tag-ledger__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.tag-ledger__desc {
  margin: 6px 0 0 86px;
  color: rgba(214, 218, 224, 0.72);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  max-width: 640px;
}

@media (max-width: 560px) {
  .tag-ledger__link {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }
  .tag-ledger__desc {
    margin-left: 62px;
  }
}

.tag-ledger__empty {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* Minimal Koenig layout hooks */

.readable .kg-width-wide {
  margin-left: -4vw;
  margin-right: -4vw;
}

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

.readable .kg-gallery-card img {
  height: auto;
}

/* ------------------------------------------------------------------------- */
/* Page intro (taxonomy + secondary pages)                                    */
/* ------------------------------------------------------------------------- */

.page-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px) clamp(20px, 3vw, 32px);
  text-align: left;
}

.page-intro .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  margin: 0 0 14px;
  text-shadow: none;
}

.page-intro__title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.page-intro__lede {
  margin: 18px 0 0;
  max-width: 640px;
  font-family: var(--serif);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
  opacity: 0.85;
  text-wrap: pretty;
}

.readable--page-body {
  margin-top: 0;
  padding-top: 0;
}

/* ------------------------------------------------------------------------- */
/* Errors                                                                     */
/* ------------------------------------------------------------------------- */

.error-content {
  justify-content: center;
  min-height: 100vh;
}

.error-readable {
  max-width: 720px;
  margin: clamp(60px, 10vh, 120px) auto;
}

.error-readable .wordmark {
  margin-top: 12px;
}

.error-callout {
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.6;
}

.error-home {
  display: inline-flex;
  margin-top: clamp(34px, 4vw, 56px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(214, 218, 224, 0.35);
  text-decoration: none;
  padding-bottom: 3px;
  transition: color 140ms ease, border-color 140ms ease;
}

.error-home:hover,
.error-home:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(182, 87, 255, 0.55);
  outline: none;
}

/* ------------------------------------------------------------------------- */
/* Koenig / Lexical cards — gscan-required selectors + readable defaults */

.kg-gallery-container {
  margin: clamp(26px, 4vw, 44px) 0;
}

.kg-gallery-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.kg-gallery-image img {
  display: block;
  width: 100%;
  border: 1px solid rgba(214, 218, 224, 0.12);
}

.kg-bookmark-card {
  margin: clamp(26px, 4vw, 44px) 0;
}

.kg-bookmark-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34%);
  gap: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(214, 218, 224, 0.12);
  background: rgba(10, 9, 16, 0.55);
  padding: clamp(14px, 2vw, 18px);
}

@media (max-width: 760px) {
  .kg-bookmark-container {
    grid-template-columns: 1fr;
  }
}

.kg-bookmark-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.kg-bookmark-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
}

.kg-bookmark-title a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(214, 218, 224, 0.25);
}

.kg-bookmark-description {
  font-size: 16px;
  line-height: 1.58;
  color: rgba(214, 218, 224, 0.78);
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.6;
}

.kg-bookmark-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
}

.kg-bookmark-author {
  opacity: 0.85;
}

.kg-bookmark-publisher {
  opacity: 0.82;
}

.kg-bookmark-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(214, 218, 224, 0.12);
}

/* ------------------------------------------------------------------------- */
/* Native Ghost search                                                         */
/* See https://ghost.org/docs/themes/search/ — actual UI may live in an iframe. */
/* Theme-level tweaks are intentionally conservative.                          */
/* ------------------------------------------------------------------------- */

/* ------------------------------------------------------------------------- */
/* Responsive tweaks                                                          */
/* ------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .pagination {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 12px;
  }

  .pagination__link--newer,
  .pagination__link--older {
    justify-self: center;
  }

  .post-card__thumb {
    justify-self: start;
    width: 100%;
    max-width: 120px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .lit-windows {
    flex-direction: column;
  }
}
