/* =====================================================
   Missionary Diocese of the South and Ozarks
   BLOG — "The Illuminated Letter"
   A liturgical editorial reading experience.

   Loaded only on /blog routes (via Layout head slot).
   Extends the global tokens in style.css; adds a parchment
   reading surface, a versal drop cap, scripture-style quotes,
   gold liturgical rules, and full theming for every EmDash
   Portable Text block.
   ===================================================== */

:root {
  /* Reading surface — warm parchment, navy ink */
  --parchment: #f8f2e6;
  --parchment-deep: #f1e8d6;
  --parchment-line: #e7dbc2;
  --ink: #20222e;
  --ink-soft: #44464f;
  --ink-faint: #75727f;
  --gold-deep: #8a6a24;       /* gold dark enough for text on parchment */
  --rule-gold: rgba(184, 146, 58, 0.45);
  --rule-faint: rgba(26, 39, 68, 0.12);

  /* Distinctive reading serif — pairs with Playfair display + Source Sans UI */
  --font-read: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;

  /* Map EmDash Portable Text theming variables into the diocese palette
     (these are read by emdash/ui block components: pullquote, table, captions) */
  --emdash-caption-color: var(--ink-faint);
  --color-muted: var(--ink-faint);
  --emdash-pullquote-border: var(--gold);
  --emdash-pullquote-color: var(--navy);
  --emdash-pullquote-citation-color: var(--gold-deep);
  --color-border: var(--parchment-line);
  --color-surface: var(--parchment-deep);
  --color-bg-subtle: var(--parchment);
}

/* A centered liturgical ornament used in several rules */
@font-face { font-family: 'fleuron-fallback'; src: local('Georgia'); }

/* =====================================================
   Blog hero — refined over the shared .page-hero
   ===================================================== */
.blog-hero { text-align: center; }
.blog-hero .page-hero-content { max-width: 720px; margin: 0 auto; }
.blog-hero .page-hero-breadcrumb { justify-content: center; }
.blog-hero .blog-hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  color: var(--gold-light);
}
.blog-hero .blog-hero-rule::before,
.blog-hero .blog-hero-rule::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.blog-hero .blog-hero-rule span { font-size: 0.9rem; letter-spacing: 0.3em; }

/* =====================================================
   Blog listing — parchment surface
   ===================================================== */
.blog-listing {
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(184,146,58,0.05), transparent 70%),
    var(--parchment);
  position: relative;
}
/* Faint laid-paper texture for the reading surface */
.blog-listing::before,
.article::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231a2744' fill-opacity='0.018'%3E%3Cpath d='M0 0h1v40H0zM20 0h1v40h-1z'/%3E%3C/g%3E%3C/svg%3E");
}
.blog-listing > .container { position: relative; }

/* The grid: a featured lead, then an editorial card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 36px;
}

/* ---- Featured lead article ---- */
.blog-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--parchment-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.blog-card-featured:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.blog-card-featured .blog-card-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.blog-card-featured .blog-card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.blog-card-featured:hover .blog-card-image-link img { transform: scale(1.04); }
.blog-card-featured .blog-card-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-card-featured .post-title { font-size: clamp(1.6rem, 2.6vw, 2.35rem); }
.blog-card-featured .post-excerpt { font-size: 1.075rem; }
.featured-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.featured-flag::before { content: '\2767'; font-size: 1rem; line-height: 0; color: var(--gold); }

/* ---- Standard cards ---- */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--parchment-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 2;
}
.blog-card:not(.blog-card-featured):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.blog-card:not(.blog-card-featured):hover::before { transform: scaleX(1); }
.blog-card .blog-card-image-link {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.blog-card .blog-card-image-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.blog-card:hover .blog-card-image-link img { transform: scale(1.05); }
.blog-card-body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Featured lead with no image: collapse to a single editorial column */
.blog-card-featured.blog-card-noimage { grid-template-columns: 1fr; }
.blog-card-featured.blog-card-noimage .blog-card-body { padding: 46px 48px; max-width: 760px; }

/* Cards with no image: tint the body like a tab of an illuminated page */
.blog-card-noimage .blog-card-body {
  background:
    linear-gradient(180deg, var(--parchment) 0%, var(--white) 60%);
}
.blog-card-noimage .blog-card-body::before {
  content: '\2719';
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1;
}

/* =====================================================
   Post meta (shared: cards + article masthead)
   ===================================================== */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-sans);
}
.post-date {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.post-category {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 3px 11px;
  border: 1px solid var(--rule-gold);
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease;
}
a.post-category:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.post-meta .meta-dot { color: var(--gold); font-size: 0.7rem; }

.post-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.post-title a { color: inherit; transition: color 0.2s ease; }
.post-title a:hover { color: var(--gold-deep); }
.post-excerpt {
  font-family: var(--font-read);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 20px;
  flex: 1;
}
.blog-card .text-link, .blog-card-featured .text-link { margin-top: auto; align-self: flex-start; }

/* Byline row on cards */
.post-byline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.post-byline .byline-mark {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  line-height: 1;
}
.post-byline strong { color: var(--ink-soft); font-weight: 600; }

/* =====================================================
   ARTICLE — single post reading experience
   ===================================================== */
.article {
  position: relative;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(184,146,58,0.06), transparent 60%),
    var(--parchment);
  padding: 0 0 40px;
}
.article > * { position: relative; }

/* ---- Masthead ---- */
.article-masthead {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 36px;
  text-align: center;
}
.article-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.article-eyebrow:hover { color: var(--navy); }
.article-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.012em;
  margin: 0 auto 24px;
  max-width: 16ch;
}
.article-standfirst {
  font-family: var(--font-read);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 auto 28px;
}
.article-byline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.article-byline strong { color: var(--ink-soft); font-weight: 600; }
.article-byline .dot { color: var(--gold); }
.article-byline .author-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  margin-right: 2px;
}

/* Cross-and-rule divider under the masthead */
.rule-cross {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 420px;
  margin: 34px auto 0;
  color: var(--gold);
}
.rule-cross::before,
.rule-cross::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-gold), transparent);
}
.rule-cross span { font-size: 1rem; line-height: 1; opacity: 0.9; }

/* ---- Featured image plate ---- */
.article-plate {
  max-width: 940px;
  margin: 8px auto 0;
  padding: 0 24px;
}
.article-plate figure { margin: 0; }
.article-plate .plate-frame {
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--parchment-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.article-plate img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}
.article-plate figcaption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 14px;
  font-style: italic;
}

/* =====================================================
   POST BODY — the Portable Text prose
   ===================================================== */
.post-body {
  max-width: 40rem;       /* ~68ch optimal measure */
  margin: 48px auto 0;
  padding: 0 24px;
  font-family: var(--font-read);
  font-optical-sizing: auto;
  font-size: 1.22rem;
  line-height: 1.85;
  color: var(--ink);
  font-feature-settings: "liga" 1, "onum" 1, "kern" 1;
}
.post-body > p,
.post-body > ul,
.post-body > ol,
.post-body > blockquote { margin-bottom: 1.5rem; }
.post-body p { margin-bottom: 1.5rem; }

/* Versal drop cap on the opening paragraph */
.post-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 5.1rem;
  line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  margin: 0.02em 0.04em 0 0;
  color: var(--gold-deep);
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.post-body > p:first-of-type { text-indent: 0; }

/* Headings — Playfair, with a small gold fleuron marker */
.post-body h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.25;
  color: var(--navy);
  margin: 2.6rem 0 1rem;
  padding-top: 1.4rem;
  position: relative;
}
.post-body h2::before {
  content: '\2766';            /* floral heart fleuron */
  position: absolute;
  top: 0; left: 0;
  font-size: 1.05rem;
  color: var(--gold);
  opacity: 0.85;
}
.post-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.post-body h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 1.8rem 0 0.6rem;
}

/* Links in prose */
.post-body a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--rule-gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.post-body a:hover { color: var(--gold-deep); text-decoration-color: var(--gold); }

.post-body strong { font-weight: 650; color: var(--ink); }
.post-body em { font-style: italic; }
.post-body :not(pre) > code {
  font-family: 'Fira Code', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.86em;
  background: var(--parchment-deep);
  border: 1px solid var(--parchment-line);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  color: var(--navy-dark);
}

/* Lists with custom liturgical markers */
.post-body ul, .post-body ol { padding-left: 1.6rem; }
.post-body li { margin-bottom: 0.55rem; padding-left: 0.35rem; }
.post-body ul { list-style: none; padding-left: 1.9rem; }
.post-body ul > li { position: relative; }
.post-body ul > li::before {
  content: '\2719';          /* outlined Latin cross */
  position: absolute;
  left: -1.5rem;
  top: 0.04em;
  color: var(--gold);
  font-size: 0.95em;
}
.post-body ol { list-style: none; counter-reset: li; padding-left: 2.1rem; }
.post-body ol > li { position: relative; counter-increment: li; }
.post-body ol > li::before {
  content: counter(li);
  position: absolute;
  left: -2.1rem;
  top: 0.05em;
  min-width: 1.5rem;
  text-align: right;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95em;
  color: var(--gold-deep);
  font-feature-settings: "onum" 1;
}

/* Blockquote — styled like a Scripture citation */
.post-body blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.8rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-read);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--navy);
  position: relative;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body blockquote cite,
.post-body blockquote footer {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Horizontal rule → fleuron break */
.post-body hr {
  border: 0;
  text-align: center;
  margin: 2.6rem 0;
}
.post-body hr::before {
  content: '\2767';
  color: var(--gold);
  font-size: 1.3rem;
}

/* =====================================================
   EmDash Portable Text blocks — themed to the diocese
   (selectors scoped under .post-body win over the
    components' low-specificity scoped styles)
   ===================================================== */

/* Inline image figures */
.article .post-body .emdash-image { margin: 2.4rem 0; }
.article .post-body .emdash-image img {
  border-radius: var(--radius);
  border: 1px solid var(--parchment-line);
  box-shadow: var(--shadow-sm);
}
.article .post-body .emdash-image figcaption,
.article .post-body .emdash-embed figcaption,
.article .post-body .emdash-gallery-item figcaption {
  font-family: var(--font-sans);
  font-style: italic;
  margin-top: 0.7rem;
}

/* Pullquote — full liturgical treatment (re-skins emdash defaults) */
.article .post-body figure.emdash-pullquote {
  margin: 2.8rem auto;
  padding: 1.6rem 1rem;
  max-width: 34rem;
  border-top: 1px solid var(--rule-gold);
  border-bottom: 1px solid var(--rule-gold);
  position: relative;
}
.article .post-body figure.emdash-pullquote::before {
  content: '\2767';
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}
.article .post-body .emdash-pullquote__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.35;
  color: var(--navy);
}
.article .post-body .emdash-pullquote__citation {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 1rem;
}

/* Code block — deep navy, gold filename tab */
.article .post-body .emdash-code { margin: 2rem 0; }
.article .post-body .emdash-code-filename {
  background: var(--navy-dark);
  color: var(--gold-light);
  font-family: 'Fira Code', ui-monospace, monospace;
  letter-spacing: 0.03em;
  border-radius: var(--radius) var(--radius) 0 0;
}
.article .post-body .emdash-code pre {
  background: var(--navy-dark);
  border: 1px solid rgba(184,146,58,0.18);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.article .post-body .emdash-code-filename + pre { border-radius: 0 0 var(--radius) var(--radius); }
.article .post-body .emdash-code code { color: #e8e2d2; }

/* Tables — prayer-book ruling */
.article .post-body .emdash-table-wrapper {
  margin: 2.2rem 0;
  border: 1px solid var(--parchment-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.article .post-body .emdash-table { font-family: var(--font-sans); font-size: 0.92rem; }
.article .post-body .emdash-table th {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-color: var(--navy-mid);
}
.article .post-body .emdash-table td { border-color: var(--parchment-line); color: var(--ink-soft); }
.article .post-body .emdash-table tbody tr:nth-child(even) { background: var(--parchment); }
.article .post-body .emdash-table tbody tr:hover { background: var(--parchment-deep); }

/* Embeds & galleries */
.article .post-body .emdash-embed { margin: 2.4rem 0; }
.article .post-body .emdash-embed-video {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.article .post-body .emdash-gallery { margin: 2.4rem 0; gap: 0.85rem; }
.article .post-body .emdash-gallery-item img { border-radius: var(--radius); }

/* Columns block */
.article .post-body .emdash-columns { gap: 1.6rem; margin: 2rem 0; }

/* =====================================================
   Callout block (custom) — see Callout.astro
   ===================================================== */
.pt-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin: 2.2rem 0;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--parchment-line);
  border-left: 4px solid var(--tone, var(--navy));
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--tone-bg, rgba(26,39,68,0.035));
}
.pt-callout-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tone, var(--navy));
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 2px;
}
.pt-callout-body { min-width: 0; }
.pt-callout-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tone, var(--navy));
  margin: 0 0 0.3rem;
}
.pt-callout-text {
  font-family: var(--font-read);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.pt-callout-text:first-child, .pt-callout-body > .pt-callout-text:only-child { margin-top: 0.1rem; }
.pt-callout-info    { --tone: var(--navy);  --tone-bg: rgba(26,39,68,0.04); }
.pt-callout-note    { --tone: var(--gold-deep); --tone-bg: rgba(184,146,58,0.09); }
.pt-callout-warning { --tone: #9a4a1f; --tone-bg: rgba(154,74,31,0.07); }
.pt-callout-success { --tone: var(--green); --tone-bg: rgba(45,90,39,0.07); }

/* =====================================================
   Article footer — end mark, author, related
   ===================================================== */
.article-foot { max-width: 40rem; margin: 0 auto; padding: 0 24px; }
.article-end {
  text-align: center;
  margin: 3rem 0 2.5rem;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}
.article-end::before { content: '\2042'; }   /* asterism */

.article-author {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--parchment-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.article-author .author-monogram {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  border: 2px solid var(--gold);
}
.article-author .author-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 3px;
}
.article-author .author-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.article-author .author-bio {
  font-family: var(--font-read);
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

.post-nav {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 0;
}

/* ---- Related posts ---- */
.related {
  border-top: 1px solid var(--rule-faint);
  margin-top: 3.5rem;
  padding-top: 3rem;
}
.related-head {
  text-align: center;
  margin-bottom: 2rem;
}
.related-head .section-label { color: var(--gold-deep); }
.related-head h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--navy);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* =====================================================
   Orchestrated page-load reveal (reverent, restrained)
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: riseIn 0.7s cubic-bezier(0.22, 0.7, 0.25, 1) forwards; }
  .reveal-1 { animation-delay: 0.05s; }
  .reveal-2 { animation-delay: 0.16s; }
  .reveal-3 { animation-delay: 0.28s; }
  .reveal-4 { animation-delay: 0.40s; }
  @keyframes riseIn { to { opacity: 1; transform: none; } }
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-card-featured { grid-template-columns: 1fr; }
  .blog-card-featured .blog-card-image-link { min-height: 220px; aspect-ratio: 16/9; }
  .blog-card-featured .blog-card-body { padding: 32px 28px; }
}
@media (max-width: 600px) {
  .article-masthead { padding-top: 52px; }
  .post-body { font-size: 1.14rem; }
  .post-body > p:first-of-type::first-letter { font-size: 4.1rem; }
  .article-author { flex-direction: column; text-align: center; }
}
