/* ============================================================
   article.css
   Article page styles only
   ============================================================ */

/* ── Article wrapper ────────────────────────────────────── */
.article-wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px 80px;
  display: grid;
  grid-template-columns: 180px 1fr 140px;
  gap: 0 40px;
}

/* ── Left margin metadata ───────────────────────────────── */
.margin-left {
  padding-top: 60px;
  opacity: 0;
  animation: appear 0.5s ease forwards 0.5s;
}

.meta-block { margin-bottom: 28px; }

.meta-label {
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.meta-value {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
}

hr.margin-rule {
  border: none;
  border-top: 1px dashed var(--rule);
  margin: 22px 0;
}

.pull-quote-side {
  margin-top: 32px;
  padding: 14px 0 14px 14px;
  border-left: 2px solid var(--red);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
}

/* ── Article body ───────────────────────────────────────── */
.article-body { padding-top: 40px; }

/* ── Article header ─────────────────────────────────────── */
.article-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 28px;
  margin-bottom: 44px;
  opacity: 0;
  animation: slideRight 0.7s cubic-bezier(0.16,1,0.3,1) forwards 0.2s;
}

.article-cluster {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.article-header h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.article-header h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.article-byline {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-byline .author { color: var(--ink); font-weight: 700; }
.article-byline .sep { color: var(--rule); }

.article-deck {
  font-size: 14px;
  line-height: 1.75;
  color: #5a554e;
  max-width: 560px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* ── Article image ──────────────────────────────────────── */
.article-image {
  margin: 0 0 44px;
  opacity: 0;
  animation: appear 0.6s ease forwards 0.45s;
}

.article-image img {
  width: 100%;
  display: block;
  height: auto;        /* natural proportions — no forced crop */
  border: 1px solid var(--rule);
}

.img-caption {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-style: italic;
}

/* ── Prose ──────────────────────────────────────────────── */
.prose {
  opacity: 0;
  animation: appear 0.5s ease forwards 0.6s;
}

.prose p {
  font-size: 15px;
  line-height: 1.9;
  color: #2e2b27;
  margin-bottom: 22px;
  max-width: 600px;
}

.prose p.lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  font-style: italic;
}

.prose strong { font-weight: 700; color: var(--ink); }

.prose h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 48px 0 14px;
  color: var(--ink);
  max-width: 600px;
}

.prose h3 {
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 32px 0 10px;
  color: var(--red);
}


.prose .section-break {
  text-align: center;
  font-size: 14px;
  color: var(--red);
  letter-spacing: 0.3em;
  margin: 36px 0;
  user-select: none;
}

.prose blockquote {
  margin: 36px 0;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--red);
  position: relative;
  overflow: hidden;
}

.prose blockquote p {
  font-size: 16px;
  line-height: 1.75;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0;
  max-width: none;
}

.prose blockquote::after {
  content: '\201C';
  position: absolute;
  bottom: -12px; right: 20px;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 80px;
  color: var(--rule);
  line-height: 1;
}

/* ── Triadic list ───────────────────────────────────────── */
.triad {
  margin: 32px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--rule);
}

.triad p {
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: var(--muted) !important;
  font-style: italic;
  margin-bottom: 6px !important;
}

.triad p:last-child { margin-bottom: 0 !important; }

/* ── Article close / nav ────────────────────────────────── */
.article-close {
  margin-top: 52px;
  padding-top: 28px;
  border-top: none;
  opacity: 0;
  animation: appear 0.5s ease forwards 0.8s;
}

.close-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.back-link {
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
}

.back-link:hover { color: var(--red); border-color: var(--red); }

/* ── Right margin annotations ───────────────────────────── */
.margin-right {
  padding-top: 60px;
  opacity: 0;
  animation: appear 0.5s ease forwards 0.6s;
}

.annotation-r {
  margin-bottom: 32px;
  padding-right: 14px;
  border-right: 2px solid var(--rule);
  text-align: right;
  position: relative;
}

.annotation-r::after {
  content: "";
  position: absolute;
  right: -5px; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.ann-r-label {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.ann-r-text {
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--muted);
  font-style: italic;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .article-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 24px;
    padding-right: 24px;
  }
  .margin-left,
  .margin-right { display: none; }
}

/* ── Related reads ──────────────────────────────────────── */
.related-reads-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 2px solid var(--ink);
  opacity: 0;
  animation: appear 0.5s ease forwards 1s;
}

.related-reads-label {
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  padding: 18px 18px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, background 0.15s;
  position: relative;
}

.related-card:hover {
  border-top-color: var(--ink);
  background: var(--bg);
}

.related-card:hover .related-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.related-card-id {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.related-card-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--ink);
}

.related-card-deck {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 14px;
}

.related-card-arrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
  display: block;
}

@media (max-width: 680px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-card-arrow { opacity: 1; transform: none; }
}