/* ──────────────────────────────────────────────
   Sacred — Spiritual editorial theme
   Cormorant Garamond + Source Sans 3
   Warm ivory · amethyst · muted gold
   ────────────────────────────────────────────── */

:root {
  --base: #EDE8E0;
  --base-warm: #E3DCD2;
  --base-deep: #D8CFBF;
  --surface: #ffffff;
  --text: #1C1B18;
  --text-soft: #4A463F;
  --text-muted: #7A756C;
  --accent: #7B2D8E;
  --accent-hover: #9B44B3;
  --accent-glow: rgba(123, 45, 142, 0.12);
  --gold: #C4960A;
  --gold-soft: rgba(196, 150, 10, 0.18);
  --border: rgba(28, 27, 24, 0.09);
  --border-soft: rgba(28, 27, 24, 0.05);
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 50px;
  --shadow-sm: 0 1px 3px rgba(28,27,24,0.05);
  --shadow-md: 0 10px 30px rgba(28,27,24,0.07);
  --shadow-lg: 0 20px 60px rgba(28,27,24,0.10);
  --shadow-editorial: 0 30px 80px -30px rgba(28,27,24,0.30);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --content-width: 1140px;
  --feed-width: 940px;
  --featured-width: 1040px;
  --reading-width: 720px;
}

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

html {
  scroll-behavior: smooth;
  /* Sticky header height + a little breathing room — keeps anchored
     targets from landing hidden behind the masthead when you click a
     same-page link. */
  scroll-padding-top: 96px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--base);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--accent-hover); }

/* ── Layout ── */
.content-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header — Vesper Almanac Masthead ──
   At the top of every page the header is a hand-set spiritual quarterly:
   ivory vellum surface with a faint warm halo behind the brand, a gold
   pinstripe top, two L-shaped printer's marks in the upper corners, the
   brand wordmark centered with a trace gold underline that draws itself
   in on first paint, a celestial ornament (☽ ✦ ☉) flanked by hairline
   gold rules, and an uppercase letterspaced nav with italic gold dot
   separators. On scroll the element collapses to a tight horizontal bar
   — brand on the left, nav on the right, ornaments hidden, frosted
   parchment backdrop. The scroll handler in base.html toggles `.scrolled`.

   Page-load entrance: corners → logo → title → trace underline →
   ornament rules grow from center → glyphs settle → nav links stagger
   in. All driven by `@keyframes` with cubic-bezier eases and per-element
   `animation-delay` values. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    radial-gradient(
      ellipse 60% 90% at 50% 30%,
      rgba(196, 150, 10, 0.045) 0%,
      transparent 70%
    ),
    var(--base);
  padding: 2.4rem 0 1.7rem;
  border-bottom: 1px solid var(--border-soft);
  transition:
    padding 0.45s cubic-bezier(.4, 0, .2, 1),
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Top hairline pinstripe — graduated gold gradient that signals "publication" */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold) 18%,
    var(--gold) 82%,
    transparent
  );
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

/* Soft inner shadow at the bottom — paper edge over a deeper page */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    to bottom,
    rgba(28, 27, 24, 0.04),
    transparent
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Printer's marks — L-shaped gold brackets in the upper corners.
   Drawn with a single element + ::before for the perpendicular stroke. */
.header-mark {
  position: absolute;
  top: 18px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  animation: maskFadeIn 0.9s cubic-bezier(.4, 0, .2, 1) 0.05s forwards;
}
.header-mark::before,
.header-mark::after {
  content: '';
  position: absolute;
  background: var(--gold);
  opacity: 0.7;
}
.header-mark::before {
  /* horizontal stroke */
  top: 0;
  width: 100%;
  height: 1px;
}
.header-mark::after {
  /* vertical stroke */
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
}
.header-mark-tl { left: 28px; }
.header-mark-tr { right: 28px; transform: scaleX(-1); }

.header-inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition:
    gap 0.45s cubic-bezier(.4, 0, .2, 1),
    flex-direction 0.45s ease;
}

.site-brand {
  order: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.35rem 0 0.55rem;
  opacity: 0;
  transform: translateY(8px);
  animation: maskFadeIn 0.85s cubic-bezier(.4, 0, .2, 1) 0.18s forwards;
  transition: gap 0.45s cubic-bezier(.4, 0, .2, 1);
}
.site-brand:hover { color: var(--text); }
.site-brand:hover .site-title { color: var(--accent); }
.site-brand:hover .site-logo {
  transform: rotate(-2deg);
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.45),
    0 0 0 5px rgba(196, 150, 10, 0.05);
}

/* Logo nested in a faint gold ring — gives the small image weight in the masthead */
.site-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.28),
    0 0 0 4px rgba(196, 150, 10, 0.04);
  transition:
    padding 0.45s cubic-bezier(.4, 0, .2, 1),
    box-shadow 0.3s ease;
}
.site-logo {
  height: 60px;
  width: 60px;
  object-fit: cover;
  border-radius: 999px;
  transition:
    height 0.45s cubic-bezier(.4, 0, .2, 1),
    width 0.45s cubic-bezier(.4, 0, .2, 1),
    transform 0.4s cubic-bezier(.4, 0, .2, 1),
    box-shadow 0.3s ease;
}

.site-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text);
  line-height: 1;
  padding-bottom: 2px;
  transition:
    font-size 0.45s cubic-bezier(.4, 0, .2, 1),
    color 0.3s ease;
}
/* Hairline gold trace beneath the brand mark — centered under the WHOLE
   brand combo (logo + title), not just the title text, so the alignment
   reads as deliberate when a logo sits to the left of the wordmark. */
.site-title-trace {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold) 50%,
    transparent
  );
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  opacity: 0;
  animation: ruleDraw 0.9s cubic-bezier(.5, 0, .15, 1) 0.55s forwards;
  transition: width 0.4s ease, opacity 0.3s ease;
  pointer-events: none;
}

/* ── Celestial ornament ──
   Three glyphs ☽ ✦ ☉ centered between two hairline gold rules.
   Rules grow outward from center on load, glyphs fade in staggered. */
.header-ornament {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 360px;
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1;
  transition: max-width 0.45s ease, opacity 0.3s ease;
}
.ornament-rule {
  display: inline-block;
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold) 60%,
    var(--gold)
  );
  opacity: 0.55;
  transform: scaleX(0);
  animation: ruleGrowFromEnd 0.9s cubic-bezier(.5, 0, .15, 1) 0.5s forwards;
}
.ornament-rule-l {
  transform-origin: right center;
}
.ornament-rule-r {
  transform-origin: left center;
  background: linear-gradient(
    to left,
    transparent,
    var(--gold) 60%,
    var(--gold)
  );
}
.ornament-glyph {
  display: inline-block;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(4px);
  animation: maskFadeIn 0.7s cubic-bezier(.4, 0, .2, 1) forwards;
}
.ornament-glyph-side {
  font-size: 0.85rem;
  opacity: 0.75;
  animation-delay: 0.7s;
}
.ornament-glyph-side + .ornament-glyph-center {
  animation-delay: 0.85s;
}
.ornament-glyph-side ~ .ornament-glyph-side {
  animation-delay: 1.0s;
}
.ornament-glyph-center {
  font-size: 1.1rem;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(196, 150, 10, 0.25);
}

.site-nav {
  order: 3;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  position: relative;
  margin-top: 0.5rem;
  transition: gap 0.4s ease, margin-top 0.4s ease;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding: 0.4rem 0.1rem;
  opacity: 0;
  transform: translateY(6px);
  animation: maskFadeIn 0.7s cubic-bezier(.4, 0, .2, 1) forwards;
  transition:
    color 0.25s ease,
    letter-spacing 0.35s cubic-bezier(.4, 0, .2, 1);
}
.site-nav a:nth-of-type(1) { animation-delay: 0.75s; }
.site-nav a:nth-of-type(2) { animation-delay: 0.85s; }
.site-nav a:nth-of-type(3) { animation-delay: 0.95s; }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition:
    width 0.4s cubic-bezier(.4, 0, .2, 1),
    left 0.4s cubic-bezier(.4, 0, .2, 1);
}
.site-nav a:hover {
  color: var(--accent);
  letter-spacing: 0.34em;
}
.site-nav a:hover::after {
  width: 100%;
  left: 0;
}

/* Italic gold dot separators between nav links */
.nav-sep {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
  transform: translateY(-2px);
  opacity: 0;
  animation: maskFadeIn 0.7s cubic-bezier(.4, 0, .2, 1) forwards;
}
.nav-sep:nth-of-type(1) { animation-delay: 0.8s; }
.nav-sep:nth-of-type(2) { animation-delay: 0.9s; }

.nav-rss {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-rss::after { display: none; }
.nav-rss:hover { color: var(--gold); letter-spacing: 0.3em; }

/* ── Scrolled — Compact Almanac Bar ──
   Once the user scrolls past the masthead, the entire ornamentation
   collapses: corners, ornament, dot separators all fade out. The brand
   slides to the left, nav slides to the right, the surface frosts to a
   warm parchment with backdrop blur, and a thin gold rule remains at
   the bottom edge. */
.site-header.scrolled {
  padding: 0.6rem 0;
  /* Solid background instead of backdrop-filter blur. The header sits
     over a cream page, so the frosted-glass effect was barely visible
     anyway — and backdrop-filter forces the browser to GPU-composite
     and rasterize on every scroll frame, which on Linux Firefox/Chrome
     makes initial scrolling feel like it's "fighting" the user. */
  background: #EDE8E0;
  box-shadow:
    0 1px 0 rgba(196, 150, 10, 0.18),
    0 6px 22px -12px rgba(28, 27, 24, 0.14);
  border-bottom-color: transparent;
}
.site-header.scrolled::before { opacity: 0; }
.site-header.scrolled::after { opacity: 0; }

.site-header.scrolled .header-mark {
  opacity: 0;
  pointer-events: none;
}

.site-header.scrolled .header-inner {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.site-header.scrolled .header-ornament {
  display: none;
}
.site-header.scrolled .site-brand {
  gap: 0.7rem;
  padding: 0;
}
.site-header.scrolled .site-logo-frame {
  padding: 2px;
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.3),
    0 0 0 2px rgba(196, 150, 10, 0.04);
}
.site-header.scrolled .site-logo {
  height: 30px;
  width: 30px;
}
.site-header.scrolled .site-title {
  font-size: 1.25rem;
  letter-spacing: 0.005em;
  padding-bottom: 0;
}
.site-header.scrolled .site-title-trace {
  display: none;
}
.site-header.scrolled .site-nav {
  gap: 1.4rem;
  margin-top: 0;
}
.site-header.scrolled .site-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}
.site-header.scrolled .nav-sep {
  display: none;
}

/* ── Page-load animations ── */
@keyframes maskFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ruleDraw {
  from { transform: translateX(-50%) scaleX(0); opacity: 0; }
  to   { transform: translateX(-50%) scaleX(1); opacity: 1; }
}
@keyframes ruleGrowFromEnd {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .header-mark,
  .site-brand,
  .site-title-trace,
  .ornament-rule,
  .ornament-glyph,
  .nav-sep,
  .site-nav a {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .site-title-trace {
    transform: translateX(-50%) scaleX(1) !important;
  }
}

/* ── Hero (index) ── */
.hero {
  position: relative;
  background: var(--text);
  padding: 6rem 2rem 7rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(123,45,142,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(196,150,10,0.14) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(237, 232, 224, 0.55);
  padding-bottom: 0.9rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.hero-eyebrow::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 36px;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  opacity: 0.65;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 4.25rem;
  font-weight: 400;
  color: var(--base);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(237, 232, 224, 0.68);
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
}
.hero-ornament {
  display: block;
  color: var(--gold);
  font-size: 1.1rem;
  opacity: 0.7;
  line-height: 1;
}
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px; }

/* ── Tag list ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 3rem auto 2.5rem;
  justify-content: center;
  max-width: var(--feed-width);
}
.tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: var(--surface);
  transition: all 0.25s ease;
}
.tag:hover, .tag.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.tag--hero {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
}
.tag--hero:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}

/* ── Article grid ──
   Works with the older template that wraps all cards in .article-grid
   and marks the first one `.article-card.featured`. The grid itself is
   wide enough to hold the featured hero (1040px); every non-featured
   row centers itself inside a narrower column (820px) for Medium-style
   readability. */
.article-grid {
  max-width: var(--featured-width);
  margin: 1rem auto 3rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-soft);
  max-width: var(--feed-width);
  width: 100%;
  margin: 0 auto;
  transition: opacity 0.25s ease;
}
.article-card:last-child { border-bottom: none; }

.article-card .card-body {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* The link wrapper is invisible structure: no background, no border-radius,
   no shadow, no fixed aspect ratio. The image dictates its own height from
   its natural aspect, and the rounded corners go on the <img> itself so
   they hug the image's real edges (not an invisible letterbox). */
.article-card .card-image {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 350px;
  display: block;
  background: transparent;
  overflow: visible;
  line-height: 0; /* kill the descender gap below the inline-replaced img */
}
.article-card .card-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.6s ease;
}
.article-card:hover .card-image img {
  transform: scale(1.03);
}

/* Rows without a thumbnail span the full feed width. */
.article-card:not(:has(.card-image)) {
  grid-template-columns: 1fr;
}

/* ── Featured row — newest post, big asymmetric hero ──
   Breaks out of the 820px feed to fill the whole 1040px grid; large
   editorial image on the left, text on the right, heavy typography,
   subtle rotation for flair, and a substantial divider below. */
.article-card.featured {
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  max-width: 100%;
  padding: 2rem 0 3.5rem;
  margin: 0 auto 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  position: relative;
}
.article-card.featured::after {
  content: 'The Latest';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  background: var(--base);
  padding: 0 1rem;
}

/* Featured left column: image stacked above its tag pills. The wrapper
   takes the grid slot; the image keeps its tilt; tags sit directly below. */
.article-card.featured .featured-image-wrap {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-self: center;
}
.article-card.featured .card-image {
  width: 100%;
  background: transparent;
  display: block;
  padding: 0;
  line-height: 0;
  transform: rotate(-0.4deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.article-card.featured:hover .card-image {
  transform: rotate(0deg) translateY(-2px);
}
.article-card.featured .card-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-editorial);
}

/* Tag pill row beneath the image. Gold-soft pills, hover to amethyst. */
.article-card.featured .featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.4rem;
}
.article-card.featured .featured-tags .meta-tag {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  transition: background 0.25s ease, color 0.25s ease;
}
.article-card.featured .featured-tags .meta-tag:hover {
  background: var(--accent);
  color: #fff;
}

.article-card.featured .card-body {
  grid-column: 2;
  grid-row: 1;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.article-card.featured .article-title {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

.article-card.featured .article-excerpt {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 0;
  -webkit-line-clamp: 4;
}

/* Footer row inside the featured body — Read More on the left, date
   pushed to the right edge. Hairline divider above gives the row weight
   without extra chrome. */
.article-card.featured .featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}
.article-card.featured .featured-date {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.article-card.featured .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  transition: transform 0.25s ease, color 0.25s ease;
}
.article-card.featured .read-more:hover {
  transform: translateX(4px);
}
.article-card.featured .read-more::after {
  content: '→';
  font-size: 1.1em;
  line-height: 1;
}

/* ── Card body typography (all cards) ── */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 400;
}
.meta-sep { opacity: 0.4; }
.meta-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.72rem;
}
.meta-author { font-weight: 500; color: var(--text-soft); }

.article-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.article-title a { color: var(--text); }
.article-title a:hover { color: var(--accent); }

.article-excerpt {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-top: auto;
}
.read-more:hover { color: var(--accent-hover); }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
  max-width: var(--feed-width);
  margin: 0 auto;
}
.pagination-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all 0.25s ease;
}
a.pagination-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.pagination-link.disabled {
  border-color: var(--border);
  color: var(--text-muted);
  cursor: default;
  opacity: 0.45;
}
.pagination-info {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Page title (tag pages) ── */
.page-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.page-title em { color: var(--accent); font-style: italic; }

/* ── Article page ──
   Editorial header on a clean cream backdrop — no overlay text on top of
   the cover photo (which fought with covers that have their own
   typography). The featured image renders below the title as a real
   `<figure>`, scaled to its natural aspect, with rounded corners and a
   soft shadow. */
.article-header {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 4.5rem 2rem 2.5rem;
  text-align: center;
}

.article-header .article-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 auto 1rem;
}

.article-deck {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0 auto 2rem;
}

.article-byline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
}
.article-byline .byline-author {
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}
.article-byline .byline-sep { opacity: 0.4; }

/* The featured cover sits between the header and the body. Width is wider
   than the reading column so the image actually feels like a feature, but
   it scales to its natural aspect — no forced 16:9 letterbox, no clipped
   typography on book covers. */
.article-cover {
  max-width: 920px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  text-align: center;
}
.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-editorial);
}

/* Legacy hero classes kept around so old pre-rebuild article HTML still
   renders sanely if it lingers in the cache or in someone's archived view.
   No background image, no overlay — they just no-op into the body flow. */
.article-hero,
.article-hero-overlay,
.article-hero-title,
.article-meta--hero,
.article-tags--hero {
  /* deliberately empty — the new template doesn't emit these */
}

/* Article body */
.article-body {
  max-width: var(--reading-width);
  margin: 3rem auto 4rem;
  padding: 0 2rem;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
.article-body p {
  margin-bottom: 1.5em;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}
.article-body img { border-radius: var(--radius); margin: 2rem 0; width: 100%; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p { color: var(--text); margin-bottom: 0; }
.article-body ul, .article-body ol { margin-bottom: 1.5em; padding-left: 1.5rem; color: var(--text-soft); }
.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-body a { color: var(--accent); border-bottom: 1px solid var(--accent-glow); }
.article-body a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }
.article-body hr { border: none; height: 1px; background: var(--border); margin: 3rem auto; max-width: 100px; }
.article-body pre {
  background: var(--text);
  color: var(--base);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.article-body code { font-size: 0.9em; background: rgba(0,0,0,0.06); padding: 0.15em 0.35em; border-radius: 3px; }
.article-body pre code { background: none; padding: 0; }

/* ── In-article subscribe — Velvet Invitation ──
   A deep amethyst-velvet card laid into the cream page like a gilded
   calling card. Triple-stripe gold/ivory border, a celestial ornament
   strip across the top, italic literary copy, an ivory input that reads
   like a slip you fill in by hand, and a brass "Subscribe" button. The
   colorway intentionally diverges from the rest of the page so the eye
   stops here at the end of an article. */

.article-subscribe {
  position: relative;
  text-align: center;
  padding: 3.25rem 2.5rem 2.85rem;
  margin: 3rem 0 4rem;
  background:
    radial-gradient(
      ellipse 80% 55% at 50% 0%,
      rgba(196, 150, 10, 0.13),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 45% at 50% 100%,
      rgba(196, 150, 10, 0.06),
      transparent 70%
    ),
    linear-gradient(140deg, #2D1638 0%, #20102B 60%, #150821 100%);
  color: rgba(237, 232, 224, 0.92);
  border-radius: 4px;
  /* Triple-stripe gilt border: gold hairline → ivory mat → gold hairline,
     plus a deep dropshadow that lifts the card off the page. */
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.55),
    0 0 0 5px rgba(237, 232, 224, 0.95),
    0 0 0 6px rgba(196, 150, 10, 0.35),
    0 30px 70px -20px rgba(28, 27, 24, 0.55),
    0 12px 30px -12px rgba(28, 27, 24, 0.35);
  overflow: hidden;
  isolation: isolate;
}
/* Top gold pinstripe inside the card — mirrors the masthead */
.article-subscribe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(196, 150, 10, 0.7) 18%,
    rgba(196, 150, 10, 0.7) 82%,
    transparent
  );
  opacity: 0.7;
  z-index: 1;
}
/* Faint constellation: two soft gold spots at the lower corners */
.article-subscribe::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 90px at 12% 92%, rgba(196, 150, 10, 0.10), transparent 60%),
    radial-gradient(circle 110px at 88% 88%, rgba(196, 150, 10, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* All real content sits above the constellation pseudo */
.article-subscribe > * { position: relative; z-index: 2; }

/* Celestial ornament strip across the top */
.article-subscribe-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 1.5rem;
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1;
}
.article-subscribe-ornament .ornament-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(196, 150, 10, 0.55) 60%,
    rgba(196, 150, 10, 0.7)
  );
}
.article-subscribe-ornament .ornament-rule:last-child {
  background: linear-gradient(
    to left,
    transparent,
    rgba(196, 150, 10, 0.55) 60%,
    rgba(196, 150, 10, 0.7)
  );
}
.article-subscribe-ornament .ornament-glyphs {
  font-size: 1rem;
  letter-spacing: 0;
  opacity: 0.9;
  text-shadow: 0 0 14px rgba(196, 150, 10, 0.4);
  white-space: nowrap;
}

/* Tiny gold uppercase eyebrow */
.article-subscribe-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(196, 150, 10, 0.85);
  margin-bottom: 0.95rem;
}

/* Italic Cormorant epigraph */
.article-subscribe-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: rgba(237, 232, 224, 0.96);
  margin: 0 auto 1.85rem;
  max-width: 480px;
}

/* Form */
.article-subscribe-form {
  display: flex;
  gap: 0.65rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Input — ivory writing slip with deep ink, gold focus ring.
   Overrides the dark-section .subscribe-input rule that would otherwise
   render the field as nearly invisible white-on-white. */
.article-subscribe .subscribe-input {
  flex: 1;
  background: rgba(245, 240, 232, 0.97);
  border: 1px solid rgba(196, 150, 10, 0.45);
  color: var(--text);
  padding: 0.95rem 1.15rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.article-subscribe .subscribe-input::placeholder {
  color: rgba(28, 27, 24, 0.42);
  font-style: italic;
}
.article-subscribe .subscribe-input:focus {
  outline: none;
  background: #FFFDF8;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 150, 10, 0.22);
}

/* Brass button — gold, deep velvet text, subtle inner highlight */
.article-subscribe .subscribe-btn {
  background: linear-gradient(180deg, #DCA92C 0%, #B68809 100%);
  color: #20102B;
  border: 1px solid rgba(159, 117, 0, 0.7);
  border-radius: 3px;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 4px 14px -4px rgba(196, 150, 10, 0.5);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.article-subscribe .subscribe-btn:hover {
  background: linear-gradient(180deg, #E5B233 0%, #C49210 100%);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 8px 22px -6px rgba(196, 150, 10, 0.65);
}
.article-subscribe .subscribe-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset,
    0 2px 8px -4px rgba(196, 150, 10, 0.5);
}

.article-subscribe .subscribe-status {
  margin-top: 1.1rem;
  color: rgba(237, 232, 224, 0.72);
  font-size: 0.85rem;
}
.article-subscribe .subscribe-status.error {
  color: #F4A89D;
}

/* Keep reading */
.article-more { margin-bottom: 3rem; }
.article-more-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text);
}
.article-more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.article-more-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.3s ease;
}
.article-more-card:hover { transform: translateY(-2px); }
/* Same fix as the home-page feed: no fixed height, no cover-crop. The
   wrapper is invisible structure; the image owns the rounded corners
   and renders at its natural aspect so book-cover typography stays
   readable. */
.article-more-image {
  display: block;
  background: transparent;
  line-height: 0;
  margin-bottom: 0.75rem;
}
.article-more-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}
.article-more-card:hover .article-more-image img { transform: scale(1.02); }
.article-more-content { padding: 0; }
.article-more-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}
.article-more-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.35rem;
  line-height: 1.3;
}
.article-more-title:hover { color: var(--accent); }
.article-more-excerpt {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.back-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 4rem;
  color: var(--text-muted);
}
.back-link:hover { color: var(--accent); }

/* ── Subscribe section ── */
.subscribe-section {
  position: relative;
  background: var(--text);
  padding: 5rem 2rem 4rem;
  text-align: center;
  margin-top: 4rem;
}
.wave-divider { position: absolute; top: -1px; left: 0; width: 100%; height: 60px; transform: rotate(180deg); }
.subscribe-inner { max-width: 520px; margin: 0 auto; }
.subscribe-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--base);
  margin-bottom: 0.75rem;
}
.subscribe-text {
  font-size: 1rem;
  color: rgba(237,232,224,0.6);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.subscribe-form { display: flex; gap: 0.5rem; position: relative; }
.subscribe-input, .modal-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.subscribe-input::placeholder { color: rgba(255,255,255,0.35); }
.subscribe-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.12); }
.subscribe-btn, .modal-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
}
.subscribe-btn:hover, .modal-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.subscribe-status, .modal-status { font-size: 0.85rem; color: rgba(237,232,224,0.7); margin-top: 0.75rem; }
.subscribe-status.error, .modal-status.error { color: #e8655a; }

/* ── Footer — The Colophon ──
   The closing pages of a hand-set quarterly. A grand celestial divider
   crowns the section, then the brand re-states itself in a softer key
   over a deep warm ink ground; three columns of editorial wayfinding
   sit beneath a fine gold flourish; a hairline rule + colophon line
   close the page with the typesetting credit and the Blanketcat mark. */

.site-footer {
  position: relative;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(196, 150, 10, 0.07),
      transparent 70%
    ),
    linear-gradient(to bottom, #2A2722 0%, #1F1C18 100%);
  color: rgba(237, 232, 224, 0.65);
  padding: 4.5rem 2rem 3rem;
  overflow: hidden;
}
/* Top gold pinstripe — mirrors the masthead */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold) 18%,
    var(--gold) 82%,
    transparent
  );
  opacity: 0.5;
}

/* ── Grand celestial divider ──
   Larger and more deliberate than the masthead ornament: full-width
   hairlines extending almost to the gutters, three glyphs centered
   with airy spacing. Reads as the closing seal of the publication. */
.footer-grand-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  max-width: 720px;
  margin: 0 auto 3.25rem;
  padding: 0 1rem;
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1;
}
.grand-rule {
  display: inline-block;
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(196, 150, 10, 0.55) 60%,
    rgba(196, 150, 10, 0.7)
  );
}
.grand-rule-r {
  background: linear-gradient(
    to left,
    transparent,
    rgba(196, 150, 10, 0.55) 60%,
    rgba(196, 150, 10, 0.7)
  );
}
.grand-glyph {
  font-size: 1.05rem;
  opacity: 0.85;
}
.grand-glyph-side {
  font-size: 0.95rem;
  opacity: 0.72;
}
.grand-glyph-center {
  font-size: 1.4rem;
  text-shadow: 0 0 14px rgba(196, 150, 10, 0.35);
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Brand re-statement ── */
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: rgba(237, 232, 224, 0.95);
  transition: color 0.25s ease;
}
.footer-brand:hover { color: rgba(237, 232, 224, 1); }
.footer-brand:hover .footer-logo-frame {
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.5),
    0 0 0 6px rgba(196, 150, 10, 0.06);
}
.footer-brand:hover .footer-title { color: var(--gold); }

.footer-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(237, 232, 224, 0.04);
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.3),
    0 0 0 4px rgba(196, 150, 10, 0.04);
  transition: box-shadow 0.4s ease;
}
.footer-logo {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 999px;
  filter: brightness(1.05);
}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  color: rgba(237, 232, 224, 0.95);
  transition: color 0.25s ease;
}

/* ── Flourish under the brand ── */
.footer-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  max-width: 280px;
  margin: 1.4rem auto 3rem;
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1;
}
.footer-flourish-rule {
  display: inline-block;
  flex: 1;
  height: 1px;
  background: rgba(196, 150, 10, 0.45);
}
.footer-flourish-glyph {
  font-size: 0.95rem;
  opacity: 0.85;
  text-shadow: 0 0 10px rgba(196, 150, 10, 0.3);
}

/* ── Three-column nav ── */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0.5rem;
  position: relative;
}
/* Hairline gold dividers between the columns — drawn as gradient pseudo-elements */
.footer-nav::before,
.footer-nav::after {
  content: '';
  position: absolute;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(196, 150, 10, 0.22) 30%,
    rgba(196, 150, 10, 0.22) 70%,
    transparent
  );
  pointer-events: none;
}
.footer-nav::before { left: calc(33.333% - 0.5px); }
.footer-nav::after  { left: calc(66.666% - 0.5px); }

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.footer-col-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.65rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 18px;
  height: 1px;
  background: rgba(196, 150, 10, 0.5);
}
.footer-col a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(237, 232, 224, 0.6);
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0;
  transition:
    color 0.25s ease,
    letter-spacing 0.35s cubic-bezier(.4, 0, .2, 1);
}
.footer-col a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition:
    width 0.4s cubic-bezier(.4, 0, .2, 1),
    left 0.4s cubic-bezier(.4, 0, .2, 1);
}
.footer-col a:hover {
  color: rgba(237, 232, 224, 0.95);
  letter-spacing: 0.26em;
}
.footer-col a:hover::after {
  width: 80%;
  left: 10%;
}

/* ── Bottom rule + colophon line ── */
.footer-rule {
  width: 100%;
  max-width: 600px;
  height: 1px;
  margin: 3.5rem auto 1.75rem;
  background: linear-gradient(
    to right,
    transparent,
    rgba(196, 150, 10, 0.3) 30%,
    rgba(196, 150, 10, 0.3) 70%,
    transparent
  );
}

.footer-colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(237, 232, 224, 0.45);
  line-height: 1.4;
}
.footer-colophon p { margin: 0; }
.footer-colophon em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(237, 232, 224, 0.75);
  font-weight: 500;
  letter-spacing: 0;
}
.footer-set-in {
  font-style: italic;
  color: rgba(237, 232, 224, 0.42);
}
.footer-dot {
  font-family: var(--font-display);
  color: var(--gold);
  opacity: 0.5;
  font-size: 0.75rem;
  line-height: 1;
}
.footer-powered a {
  color: rgba(237, 232, 224, 0.6);
  border-bottom: 1px solid rgba(237, 232, 224, 0.18);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-powered a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(28,27,24,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}
.modal-overlay.visible .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}
.modal-close:hover { color: var(--text); }
.modal-logo-wrap { margin-bottom: 1rem; }
.modal-logo { height: 48px; width: auto; margin: 0 auto; border-radius: 6px; }
.modal-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.modal-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.modal-form { display: flex; flex-direction: column; gap: 0.75rem; position: relative; }
.modal-input { background: var(--base); border: 2px solid var(--border); color: var(--text); }
.modal-input::placeholder { color: var(--text-muted); }
.modal-input:focus { border-color: var(--accent); }
.modal-status { color: var(--text-soft); }
.modal-dismiss {
  background: none;
  border: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 0.75rem;
  padding: 0.25rem;
}
.modal-dismiss:hover { color: var(--text); }

/* ── Empty state ── */
.empty {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-muted);
  padding: 4rem 0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.25rem; }
  .hero { padding: 4.5rem 1.5rem 5rem; }

  .article-grid { padding: 0 1.5rem; }

  .article-card.featured {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0 3rem;
    margin: 0 auto 2rem;
  }
  .article-card.featured .featured-image-wrap {
    grid-column: 1;
    grid-row: 1;
  }
  .article-card.featured .card-image {
    transform: none;
  }
  .article-card.featured .card-body {
    grid-column: 1;
    grid-row: 2;
  }
  .article-card.featured .article-title { font-size: 2.25rem; }
  .article-card.featured .article-excerpt { font-size: 1.1rem; }
  .article-card.featured::after { top: -0.4rem; }

  .article-header h1 { font-size: 2.4rem; }
  .article-deck { font-size: 1.2rem; }
  .article-cover { max-width: 100%; padding: 0 1.5rem; }
}

@media (max-width: 640px) {
  .hero { padding: 3.5rem 1.25rem 4.5rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.22em; }

  .tag-list { margin: 2rem 0 1.5rem; }
  .article-grid { padding: 0 1.25rem; }

  .article-card.featured .article-title { font-size: 1.8rem; }
  .article-card.featured .article-excerpt { font-size: 1.02rem; }
  .article-card.featured::after { display: none; }

  .article-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.75rem 0;
  }
  .article-card .card-body { grid-column: 1; grid-row: 1; }
  .article-card .card-image {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
  .article-title { font-size: 1.35rem; }

  .article-more-grid { grid-template-columns: 1fr; }
  .content-wrap { padding: 0 1.25rem; }
  .article-header { padding: 3rem 1.25rem 1.5rem; }
  .article-header h1 { font-size: 2rem; }
  .article-deck { font-size: 1.05rem; }
  .article-cover { padding: 0 1.25rem; margin-bottom: 2rem; }
  .article-cover img { max-height: 460px; }
  .article-body { padding: 0 1.25rem; }
  .article-body h2 { font-size: 1.6rem; }
  .article-body p { font-size: 1rem; }
  .subscribe-form { flex-direction: column; }
  /* Velvet invitation — phone proportions */
  .article-subscribe { padding: 2.4rem 1.4rem 2.1rem; margin: 2.5rem 0 3rem; }
  .article-subscribe-ornament { gap: 0.7rem; max-width: 240px; margin-bottom: 1.1rem; }
  .article-subscribe-ornament .ornament-glyphs { font-size: 0.9rem; }
  .article-subscribe-eyebrow { font-size: 0.65rem; letter-spacing: 0.28em; margin-bottom: 0.7rem; }
  .article-subscribe-text { font-size: 1.2rem; margin-bottom: 1.4rem; }
  .article-subscribe-form { flex-direction: column; gap: 0.5rem; }
  .article-subscribe .subscribe-input { padding: 0.85rem 1rem; }
  .article-subscribe .subscribe-btn { padding: 0.95rem 1.4rem; }
  /* Colophon footer — phone proportions */
  .site-footer { padding: 3rem 1.25rem 2.25rem; }
  .footer-grand-divider { margin-bottom: 2.25rem; gap: 0.7rem; max-width: none; padding: 0 0.5rem; }
  .grand-glyph { font-size: 0.9rem; }
  .grand-glyph-side { font-size: 0.8rem; }
  .grand-glyph-center { font-size: 1.15rem; }
  .footer-logo { height: 48px; width: 48px; }
  .footer-title { font-size: 1.55rem; }
  .footer-flourish { margin: 1rem auto 2rem; max-width: 200px; }
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 320px;
  }
  .footer-nav::before, .footer-nav::after { display: none; }
  .footer-col { gap: 0.4rem; }
  .footer-col-heading { font-size: 0.88rem; margin-bottom: 0.5rem; }
  .footer-col a { font-size: 0.74rem; letter-spacing: 0.2em; }
  .footer-rule { margin: 2.5rem auto 1.4rem; max-width: 220px; }
  .footer-colophon { gap: 0.6rem 0.85rem; font-size: 0.72rem; }
  .footer-colophon em { font-size: 0.88rem; }
  .footer-dot { font-size: 0.65rem; }
  .page-title { font-size: 2rem; margin-top: 2rem; }

  /* Almanac masthead — phone proportions */
  .site-header { padding: 1.6rem 0 1.2rem; }
  .header-mark { top: 12px; width: 14px; height: 14px; }
  .header-mark-tl { left: 14px; }
  .header-mark-tr { right: 14px; }
  .header-inner { gap: 1rem; padding: 0 1.25rem; }
  .site-brand { gap: 0.75rem; }
  .site-logo { height: 44px; width: 44px; }
  .site-title { font-size: 1.95rem; }
  .site-title-trace { width: 40px; bottom: -8px; }
  .header-ornament { max-width: 240px; gap: 0.6rem; }
  .ornament-glyph { font-size: 0.85rem; }
  .ornament-glyph-side { font-size: 0.75rem; }
  .ornament-glyph-center { font-size: 0.95rem; }
  .site-nav { gap: 1rem; margin-top: 0.4rem; flex-wrap: wrap; justify-content: center; }
  .site-nav a { font-size: 0.66rem; letter-spacing: 0.24em; }
  .nav-sep { font-size: 0.95rem; }
  .site-header.scrolled .site-title { font-size: 1.08rem; }
  .site-header.scrolled .site-nav { gap: 0.9rem; }
  .site-header.scrolled .site-logo { height: 28px; width: 28px; }
  .site-header.scrolled .site-logo-frame { padding: 1px; }
}

/* ── Manifested Within — Custom subscribe modal ──
   Lavender / blush gradient, soft amethyst frame, gold-warm accent
   highlights. Slot-aware: each modal section (eyebrow, lead, subtext,
   note, button) is styled independently. */
#subscribe-modal .modal-card {
  background: linear-gradient(135deg, #fff8f4, #f8e8ef 48%, #efe4ff);
  border: 1px solid rgba(122, 63, 88, 0.18);
  box-shadow: 0 22px 70px rgba(74, 38, 58, 0.28);
  border-radius: 28px;
  max-width: 760px;
  width: min(94%, 760px);
  padding: 34px 38px 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #3b2634;
}
#subscribe-modal .modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.9), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(255, 219, 172, 0.6), transparent 22%);
  pointer-events: none;
}
#subscribe-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  color: #7a3f58;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
#subscribe-modal .modal-eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(122, 63, 88, 0.1);
  color: #9b4e6b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#subscribe-modal .modal-heading {
  position: relative;
  margin: 0 auto 14px;
  max-width: 650px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 800;
  color: #5c2f4a;
  letter-spacing: -0.01em;
}
#subscribe-modal .modal-text {
  position: relative;
  margin: 0 auto 14px;
  max-width: 650px;
  font-size: 18px;
  line-height: 1.55;
  color: #3b2634;
}
#subscribe-modal .modal-subtext {
  position: relative;
  margin: 0 auto 24px;
  max-width: 610px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #65485c;
}
#subscribe-modal .modal-form {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto 12px;
}
#subscribe-modal .modal-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(122, 63, 88, 0.22);
  border-radius: 999px;
  padding: 16px 20px;
  font-size: 16px;
  color: #3b2634;
  outline: none;
}
#subscribe-modal .modal-btn {
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #8d3f64, #c46f87);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(141, 63, 100, 0.28);
  transition: transform 0.15s ease, box-shadow 0.25s ease;
}
#subscribe-modal .modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(141, 63, 100, 0.34);
}
#subscribe-modal .modal-note {
  position: relative;
  margin: 0 auto 0.5rem;
  max-width: 600px;
  font-size: 13px;
  color: #7b6071;
  background: transparent;
}
#subscribe-modal .modal-status {
  position: relative;
  color: #65485c;
}
#subscribe-modal .modal-status.error { color: #b13b3b; }
#subscribe-modal .modal-dismiss {
  position: relative;
  margin-top: 0.5rem;
  background: none;
  border: 0;
  color: #7b6071;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 640px) {
  #subscribe-modal .modal-card { border-radius: 22px; padding: 30px 20px 22px; }
  #subscribe-modal .modal-form { flex-direction: column; }
  #subscribe-modal .modal-btn { width: 100%; }
}

/* ── Author byline (top of article) ──
   Small circular avatar nestled inline with the date — used when an
   author record with avatar_url is linked to the article. Falls back
   to the bare name span when no author_obj is present. */
.byline-with-avatar {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  vertical-align: middle;
}
.byline-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.4),
    0 0 0 3px rgba(196, 150, 10, 0.05);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}
.byline-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.byline-avatar--placeholder {
  background: rgba(196, 150, 10, 0.08);
}
/* When the byline sits over the dark hero overlay, lighten the avatar ring */
.article-meta--hero .byline-avatar {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.55),
    0 0 0 3px rgba(255, 255, 255, 0.04);
}
.article-meta--hero .byline-avatar--placeholder {
  background: rgba(196, 150, 10, 0.18);
}

/* ── Author colophon card (bottom of article) ──
   The closing pages of the article: a substantial ivory plate framed by
   a triple-stripe gold border with corner printer's marks, a celestial
   ☽✦☉ flourish across the top, an italic gold "About the Author"
   eyebrow, a generous medallion avatar, the name in display serif, and
   the bio in italic Cormorant. Lives inside <article> so the auto-
   injected comments widget lands beneath it.

   The whole composition reads as a hand-pressed colophon — the small
   plate at the back of a book that names who set it. */
.article-author-card {
  position: relative;
  max-width: 760px;
  margin: 3.25rem auto 3.5rem;
  padding: 3rem 2.75rem 2.6rem;
  background:
    radial-gradient(
      ellipse 75% 55% at 50% 0%,
      rgba(196, 150, 10, 0.10),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 40% at 50% 100%,
      rgba(196, 150, 10, 0.04),
      transparent 70%
    ),
    var(--surface);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.5),
    0 0 0 6px var(--base),
    0 0 0 7px rgba(196, 150, 10, 0.28),
    0 26px 60px -20px rgba(28, 27, 24, 0.28),
    0 10px 24px -12px rgba(28, 27, 24, 0.18);
  isolation: isolate;
}
/* Corner printer's marks — top-left + bottom-right gold L brackets */
.article-author-card::before,
.article-author-card::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  opacity: 0.75;
  pointer-events: none;
}
.article-author-card::before {
  top: 14px;
  left: 14px;
  border-right: none;
  border-bottom: none;
}
.article-author-card::after {
  bottom: 14px;
  right: 14px;
  border-left: none;
  border-top: none;
}

/* Celestial flourish across the top — ☽ ✦ ☉ with hairline gold rules,
   identical vocabulary to the masthead and footer dividers. */
.article-author-card-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.4rem;
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1;
}
.article-author-card-flourish .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right, transparent,
    rgba(196, 150, 10, 0.55) 60%, rgba(196, 150, 10, 0.7)
  );
}
.article-author-card-flourish .rule:last-child {
  background: linear-gradient(
    to left, transparent,
    rgba(196, 150, 10, 0.55) 60%, rgba(196, 150, 10, 0.7)
  );
}
.article-author-card-flourish .glyph {
  font-size: 0.92rem;
  opacity: 0.82;
}
.article-author-card-flourish .glyph-center {
  font-size: 1.15rem;
  opacity: 1;
  text-shadow: 0 0 12px rgba(196, 150, 10, 0.35);
}

/* Italic gold "About the Author" eyebrow */
.article-author-card-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-align: center;
  margin: 0 0 1.85rem;
  opacity: 0.92;
}

.article-author-card-body {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
}

/* Medallion avatar: 104px circle with a triple-layer gold ring,
   sits with a soft tilt on hover. */
.article-author-card-avatar {
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.55),
    0 0 0 6px var(--surface),
    0 0 0 7px rgba(196, 150, 10, 0.3),
    0 0 24px -6px rgba(196, 150, 10, 0.25);
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 500;
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1), box-shadow 0.4s ease;
}
.article-author-card:hover .article-author-card-avatar {
  transform: rotate(-2deg);
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.7),
    0 0 0 6px var(--surface),
    0 0 0 7px rgba(196, 150, 10, 0.4),
    0 0 32px -6px rgba(196, 150, 10, 0.4);
}
.article-author-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-author-card-avatar--placeholder {
  background: rgba(196, 150, 10, 0.08);
}

.article-author-card-text {
  flex: 1;
  min-width: 0;
  padding-top: 0.35rem;
}
.article-author-card-name {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.55rem;
}
/* Tiny gold underline beneath the name */
.article-author-card-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 1px;
  background: linear-gradient(
    to right, var(--gold), rgba(196, 150, 10, 0.2)
  );
  opacity: 0.7;
}
.article-author-card-bio {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0.85rem 0 0;
}
.article-author-card-bio--empty {
  color: var(--text-muted);
  opacity: 0.85;
}

@media (max-width: 700px) {
  .article-author-card {
    padding: 2.1rem 1.4rem 1.85rem;
    margin: 2.5rem auto 2.5rem;
  }
  .article-author-card::before,
  .article-author-card::after { width: 12px; height: 12px; }
  .article-author-card::before { top: 10px; left: 10px; }
  .article-author-card::after { bottom: 10px; right: 10px; }
  .article-author-card-flourish { max-width: 240px; gap: 0.7rem; margin-bottom: 1.1rem; }
  .article-author-card-flourish .glyph { font-size: 0.82rem; }
  .article-author-card-flourish .glyph-center { font-size: 1rem; }
  .article-author-card-eyebrow { font-size: 0.62rem; letter-spacing: 0.28em; margin-bottom: 1.4rem; }
  .article-author-card-body { flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
  .article-author-card-avatar { width: 84px; height: 84px; font-size: 2rem; }
  .article-author-card-text { padding-top: 0; }
  .article-author-card-name { font-size: 1.55rem; padding-bottom: 0.5rem; }
  .article-author-card-name::after { left: 50%; transform: translateX(-50%); width: 32px; }
  .article-author-card-bio { font-size: 1.05rem; margin-top: 0.7rem; }
  .byline-avatar { width: 24px; height: 24px; }
}

/* ── Article byline block ──
   Sits between the hero and the article body when an author record is
   linked. Editorial author signature: circular avatar, italic gold "Written by"
   eyebrow, name in display serif, hairline gold rule beneath. Replaces the
   old avatar-in-the-hero treatment which competed with the photo. */
.article-byline-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  max-width: var(--reading-width);
  margin: 2.4rem auto 2.6rem;
  padding-bottom: 1.6rem;
}
.article-byline-block::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(196, 150, 10, 0.55) 50%,
    transparent
  );
}
.article-byline-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(196, 150, 10, 0.45),
    0 0 0 4px var(--surface),
    0 0 0 5px rgba(196, 150, 10, 0.22);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 500;
}
.article-byline-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-byline-avatar--placeholder {
  background: rgba(196, 150, 10, 0.07);
}
.article-byline-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.article-byline-eyebrow {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 0.35rem;
  opacity: 0.9;
}
.article-byline-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1;
}

@media (max-width: 700px) {
  .article-byline-block { margin: 1.8rem auto 2rem; gap: 0.85rem; padding-bottom: 1.25rem; }
  .article-byline-avatar { width: 48px; height: 48px; font-size: 1.25rem; }
  .article-byline-name { font-size: 1.2rem; }
  .article-byline-eyebrow { font-size: 0.62rem; letter-spacing: 0.28em; }
}

/* Author chip nested inside the article header — tighter margins,
   centered, and an optional date pill that hangs to the right of
   the name when the article has a published_at. */
.article-byline-block--in-header {
  margin: 1.6rem auto 0;
  padding-bottom: 1.4rem;
}
.article-byline-date {
  margin-left: 0.6rem;
  padding-left: 0.7rem;
  border-left: 1px solid rgba(196, 150, 10, 0.35);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  align-self: center;
}
@media (max-width: 700px) {
  .article-byline-block--in-header { margin-top: 1.1rem; padding-bottom: 1rem; }
  .article-byline-date {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    flex-basis: 100%;
    text-align: center;
  }
}
