/* ═════════════════════════════════════════════════════════════════════════
   Sacred Earth — Blog Reader (Clean Reader / Inter)
   Loaded only on /blog and /blog/:slug.
   Co-exists with public/css/blog-frames.css (frames live inside .blog-body).
   Direct-child selectors ensure frames never get styled as paragraphs.
   ═════════════════════════════════════════════════════════════════════════ */

:root {
  --reader-ink: #1a1a1a;
  --reader-ink-soft: #333;
  --reader-hairline: #e8e4dc;
}

/* ── Reading progress bar ── */
.reader-progress {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sage-pale);
  z-index: 100;
}
.reader-progress-bar {
  height: 100%;
  background: var(--sage);
  width: 0%;
  transition: width 50ms linear;
}

/* ── Reader container ── */
.reader {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 40px 40px;
  font-family: 'Inter', sans-serif;
}
.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sage);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
}
.reader-back:hover { color: var(--sage-dark); }

.reader-meta {
  font-size: 11px;
  color: var(--sage);
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.reader-meta .dot { color: var(--sage-light); }

.reader h1 {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--reader-ink);
  margin-bottom: 18px;
  letter-spacing: -.8px;
}

/* ── Byline chip ── */
.reader-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--reader-hairline);
  border-bottom: 1px solid var(--reader-hairline);
}
.reader-byline .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--sage-pale);
}
.reader-byline .av-letter {
  background: linear-gradient(135deg, var(--sage), var(--earth));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  font-family: 'Playfair Display', serif;
}
.reader-byline-info .nm {
  font-weight: 600;
  color: var(--reader-ink);
  font-size: 14px;
  margin-bottom: 1px;
}
.reader-byline-info .sub {
  font-size: 12px;
  color: var(--warm-gray);
}
.reader-byline-share {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.reader-byline-share a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
  color: var(--reader-ink);
  transition: background .15s;
}
.reader-byline-share a:hover { background: var(--sage-pale); }

/* ── Tag chips ── */
.reader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.reader-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--sage-pale);
  color: var(--sage-dark);
  text-transform: lowercase;
}

/* ── Cover image ── */
.reader-cover {
  margin: 0 -40px 28px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
}
.reader-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Body typography (direct-child only — frames stay untouched) ── */
.blog-body { overflow: hidden; }
.blog-body::after { content: ""; display: block; clear: both; }

.blog-body > p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--reader-ink-soft);
  margin-bottom: 20px;
}
.blog-body > p:first-of-type {
  font-size: 18px;
  line-height: 1.7;
  color: var(--reader-ink);
  margin-bottom: 22px;
}
.blog-body > h2 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--reader-ink);
  margin: 32px 0 12px;
  letter-spacing: -.4px;
  line-height: 1.25;
}
.blog-body > h3 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--reader-ink);
  margin: 24px 0 8px;
}
.blog-body strong { color: var(--reader-ink); font-weight: 600; }
.blog-body em { color: var(--reader-ink-soft); font-style: italic; }
.blog-body a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-decoration-color: var(--sage-light);
  text-underline-offset: 3px;
}
.blog-body a:hover { text-decoration-color: var(--sage); }

.blog-body > ul, .blog-body > ol {
  margin: 0 0 22px 24px;
  padding: 0;
}
.blog-body > ul { list-style: none; }
.blog-body > ul li,
.blog-body > ol li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--reader-ink-soft);
  margin-bottom: 8px;
}
.blog-body > ul li { position: relative; padding-left: 18px; }
.blog-body > ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.blog-body > blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--sage);
  font-size: 18px;
  line-height: 1.6;
  color: var(--reader-ink);
  font-weight: 500;
  font-style: italic;
}

/* ── Reader footer ── */
.reader-footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--reader-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.reader-footer-back {
  font-size: 12px;
  color: var(--sage);
  font-weight: 600;
  text-decoration: none;
}

/* ── Keep reading block ── */
.reader-more {
  background: var(--cream);
  margin: 44px -40px -40px;
  padding: 28px 40px;
}
.reader-more h4 {
  font-size: 11px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 14px;
}
.reader-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.reader-more-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s;
  display: block;
}
.reader-more-card:hover { transform: translateY(-2px); }
.reader-more-card-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--sage-pale), var(--sand));
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.reader-more-card-img-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--sage-pale), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.reader-more-card-body { padding: 10px 12px; }
.reader-more-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--reader-ink);
  line-height: 1.35;
  margin-bottom: 3px;
}
.reader-more-card-date {
  font-size: 10px;
  color: var(--warm-gray);
}

/* Newsletter slot — reserved but unused in v1. Add .reader-more-newsletter
   as a third grid item and change grid-template-columns to 1fr 1fr 1fr when
   the newsletter feature ships. */
.reader-more-newsletter { display: none; }

/* ═════════════════════════════════════════════════════════════════════════
   List page (/blog) — "The Journal"
   ═════════════════════════════════════════════════════════════════════════ */

.list-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 20px 50px;
  font-family: 'Inter', sans-serif;
}
.list-header { margin-bottom: 24px; }
.list-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--reader-ink);
  letter-spacing: -.5px;
}
.list-header p {
  font-size: 13px;
  color: var(--warm-gray);
  margin-top: 4px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.list-card {
  background: #fff;
  border: 1px solid var(--reader-hairline);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  display: block;
}
.list-card:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  transform: translateY(-2px);
}
.list-card-img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--sage-pale), var(--sand));
}
.list-card-img-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sage-pale), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.list-card-body { padding: 14px 16px; }
.list-card-date {
  font-size: 9px;
  color: var(--sage);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.list-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--reader-ink);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -.2px;
}
.list-card-excerpt {
  font-size: 12px;
  color: var(--warm-gray);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.list-card-read {
  font-size: 11px;
  color: var(--sage);
  font-weight: 600;
}

.list-empty {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Inter', sans-serif;
  color: var(--warm-gray);
}
.list-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ═════════════════════════════════════════════════════════════════════════
   Responsive
   ═════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .reader { padding: 20px 20px 30px; }
  .reader h1 { font-size: 28px; letter-spacing: -.5px; }
  .reader-cover { margin: 0 -20px 22px; }
  .blog-body > p { font-size: 15px; }
  .blog-body > p:first-of-type { font-size: 16px; }
  .blog-body > h2 { font-size: 20px; margin-top: 28px; }
  .blog-body > ul li, .blog-body > ol li { font-size: 15px; }
  .reader-more { margin: 36px -20px -30px; padding: 22px 20px; }
  .reader-more-grid { grid-template-columns: 1fr; }
  .reader-byline-share a { width: 30px; height: 30px; font-size: 12px; }
}
