/* ═══════════════════════════════════════
   ARTICLE PAGES — Juan Pazmino B
   Extends style.css. Link both.
═══════════════════════════════════════ */

/* ── Article nav ── */
.article-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.4rem, 3vh, 2.2rem) clamp(1.5rem, 5vw, 4rem);
  background: rgba(var(--shadow-rgb), 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.08);
}

/* Pin label left, push toggle to far right */
.article-nav-label { margin-right: auto; }
.article-nav .theme-toggle { flex-shrink: 0; }

.back-link {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link:hover { color: var(--gold-hi); }

.article-nav-label {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Article hero ── */
.article-hero {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding-top: 7rem;
  padding-bottom: clamp(3rem, 6vh, 5rem);
  padding-left: clamp(1.5rem, 5vw, 6rem);
  padding-right: clamp(1.5rem, 5vw, 6rem);
}

.article-hero-inner {
  max-width: 800px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: clamp(1.4rem, 2.8vh, 2rem);
}

.article-meta-date {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.article-meta-sep {
  color: rgba(var(--gold-rgb), 0.35);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

.article-meta-pub {
  font-family: 'Jost', sans-serif;
  font-weight: 100;
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(var(--gold-rgb), 0.60);
}

.article-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 100;
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  line-height: 1.03;
  color: var(--cream);
  text-shadow:
    0 0 100px rgba(var(--shadow-rgb),0.9),
    0 0 40px  rgba(var(--shadow-rgb),0.6);
}

/* ── Articles index listing ── */
.articles-index {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(4rem, 8vh, 6rem) clamp(2rem, 6vw, 5rem);
}

.articles-index .article-title {
  font-size: 26px;
}

.articles-index .article-row.revealed {
  transition: background 0.2s ease, transform 0.2s ease;
  transition-delay: 0s;
}

/* ── Article body ── */
.article-body-wrap {
  background: var(--surface);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  backdrop-filter: none;
}

.article-body {
  max-width: 750px;
  margin: 0 auto;
  padding: clamp(4rem, 8vh, 6rem) 2rem;
}

.article-body p {
  font-family: 'Fraunces', serif;
  font-style: inherit;
  font-weight: 200;
  font-size: 20px;
  color: var(--muted);
  line-height: 1.84;
  margin-bottom: 1.8rem;
}

.article-body p:last-of-type { margin-bottom: 0; }

.article-body h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 100;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--cream);
  line-height: 1.15;
  margin: clamp(3rem, 6vh, 4.5rem) 0 clamp(1.2rem, 2.5vh, 1.8rem);
}

.article-rule {
  border: none;
  border-top: 1px solid rgba(var(--gold-rgb), 0.10);
  margin: clamp(2.4rem, 5vh, 3.5rem) 0;
}

/* Attribution line */
.article-attribution {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(var(--gold-rgb), 0.40);
  margin-top: clamp(3rem, 6vh, 4.5rem);
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid rgba(var(--gold-rgb), 0.08);
}

/* ── Article closing CTA ── */
.article-cta {
  text-align: center;
  padding: clamp(5rem, 10vh, 7rem) clamp(1.5rem, 5vw, 4rem);
}

.article-cta-label {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(var(--gold-rgb), 0.35);
  margin-bottom: clamp(1.4rem, 3vh, 2rem);
}

.article-cta-headline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 100;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}

@keyframes btn-breathe {
  0%, 100% { border-color: rgba(var(--gold-rgb), 0.30); }
  50%       { border-color: rgba(var(--gold-rgb), 0.60); }
}

.article-cta-btn {
  display: inline-block;
  padding: clamp(0.85rem, 1.8vh, 1.1rem) clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(var(--gold-rgb), 0.30);
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  background: transparent;
  animation: btn-breathe 3.2s ease-in-out infinite;
  transition: background 0.45s ease, color 0.45s ease, border-color 0.45s ease, font-weight 0.3s ease;
}

.article-cta-btn:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 400;
  animation: none;
}

/* ── Scroll reveal ── */
.a-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.a-reveal.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
  .article-hero { padding-left: clamp(1.2rem, 4vw, 2rem); padding-right: clamp(1.2rem, 4vw, 2rem); }
  .article-nav-label { display: none; }
}

/* Listing pages have no desktop nav-links, so the burger is always visible */
.article-nav .burger { display: flex; }

/* Undo style.css's desktop-only hide so the overlay works at any width */
@media (min-width: 1025px) {
  .mobile-menu { display: flex; }
}
