/* =============================================================================
   Article pages (artist bios) — SEO-optimised, reader-first
   ============================================================================= */

:root {
  --bg: #FAF6EE;
  --surface: #FFFFFF;
  --parchment: #F3EBD8;
  --text: #2B2420;
  --text-secondary: #5C4E3E;
  --text-muted: #8C7B68;
  --burgundy: #6E2932;
  --navy: #1E3A5F;
  --gold: #B8893A;
  --green: #4A5D3E;
  --border: rgba(120, 90, 50, 0.18);
  --border-strong: rgba(120, 90, 50, 0.32);
  --serif: 'Playfair Display', Georgia, serif;
  --serif-body: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.article-body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--burgundy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* ─── Top nav ───────────────────────────────────────────────────────── */
.article-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.6rem; background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.92);
}
.nav-brand {
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  letter-spacing: -0.01em; color: var(--text); text-transform: uppercase;
}
.article-nav nav { display: flex; gap: 1.4rem; align-items: center; font-size: 0.85rem; font-weight: 500; }
.article-nav nav a { color: var(--text-secondary); }
.nav-cta {
  color: var(--burgundy) !important; font-weight: 600;
  padding: 0.45rem 0.95rem; border: 1px solid var(--burgundy);
  border-radius: 4px; transition: all 0.2s;
}
.nav-cta:hover { background: var(--burgundy); color: var(--bg) !important; }

/* ─── Article container ─────────────────────────────────────────────── */
main { padding: 2rem 1.5rem 4rem; }
article {
  max-width: 760px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.04em; margin-bottom: 2.5rem;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs span { color: var(--text); }

/* ─── Hero ──────────────────────────────────────────────────────────── */
.article-hero {
  margin-bottom: 2.5rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-meta {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.article-hero h1 {
  font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 500; line-height: 1.05; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 0.6rem;
}
.article-dates {
  font-family: var(--serif-body); font-size: 1.25rem; font-style: italic;
  color: var(--text-muted); margin-bottom: 1.4rem;
}
.article-tagline {
  font-family: var(--serif-body); font-size: 1.4rem; font-style: italic;
  color: var(--text-secondary); line-height: 1.4; max-width: 600px;
}

/* ─── Quick facts strip ─────────────────────────────────────────────── */
.article-quickfacts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--border-strong);
  border: 1px solid var(--border-strong); border-radius: 4px;
  margin-bottom: 2.8rem; overflow: hidden;
}
.qf-item { background: var(--surface); padding: 1rem 1.2rem; }
.qf-label {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.3rem;
}
.qf-value {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 500;
  color: var(--text);
}

/* ─── Painting collage ──────────────────────────────────────────────── */
.article-collage {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  margin-bottom: 3rem;
}
.article-collage figure {
  aspect-ratio: 1; overflow: hidden; background: var(--parchment);
  border-radius: 2px;
}
.article-collage img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.article-collage figure:hover img { transform: scale(1.04); }

@media (max-width: 600px) {
  .article-collage { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
}

/* ─── Sections ──────────────────────────────────────────────────────── */
section {
  margin-bottom: 3.5rem;
}
section > h2 {
  font-family: var(--serif); font-size: 2rem; font-weight: 500;
  color: var(--text); margin-bottom: 1.3rem; line-height: 1.15;
  position: relative; padding-bottom: 0.6rem;
}
section > h2::after {
  content: ""; display: block; width: 40px; height: 2px;
  background: var(--gold); position: absolute; bottom: 0; left: 0;
}
section > p,
.painting-text > p {
  font-family: var(--serif-body); font-size: 1.18rem; line-height: 1.65;
  color: var(--text-secondary); margin-bottom: 1.1rem;
}
section > p:last-child { margin-bottom: 0; }

/* ─── Painting spotlights ───────────────────────────────────────────── */
.painting-spotlight {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.8rem;
  margin-bottom: 2.8rem; padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--border);
}
.painting-spotlight:last-child { border-bottom: none; padding-bottom: 0; }
.painting-spotlight figure {
  background: var(--parchment); border-radius: 2px; overflow: hidden;
  box-shadow: 0 1px 0 var(--border-strong), 0 8px 22px rgba(50,35,20,0.12);
}
.painting-spotlight img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1;
  transition: transform 0.6s ease;
}
.painting-spotlight figure:hover img { transform: scale(1.02); }
.painting-text h3 {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 500;
  color: var(--text); margin-bottom: 0.4rem; line-height: 1.2;
}
.painting-year {
  font-family: var(--serif-body); font-size: 1rem; font-style: italic;
  color: var(--text-muted); font-weight: 400;
}
.painting-text > p {
  font-size: 1.08rem; line-height: 1.6;
}

@media (max-width: 700px) {
  .painting-spotlight { grid-template-columns: 1fr; gap: 1rem; }
  .painting-spotlight figure { max-width: 420px; margin: 0 auto; }
}

/* ─── Related artists ───────────────────────────────────────────────── */
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.related-card {
  display: block; text-align: center; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  transition: all 0.2s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(50,35,20,0.12);
  border-color: var(--gold);
  color: var(--text);
}
.related-card.disabled {
  opacity: 0.4; cursor: default; pointer-events: auto;
}
.related-card.disabled:hover { transform: none; box-shadow: none; border-color: var(--border); }
.related-card figure {
  aspect-ratio: 1; background: var(--parchment); overflow: hidden;
}
.related-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.related-name {
  font-family: var(--serif); font-size: 0.95rem; font-weight: 500;
  padding: 0.7rem 0.6rem; line-height: 1.3;
}

/* ─── Bottom CTA ────────────────────────────────────────────────────── */
.article-cta {
  background: var(--burgundy); color: var(--bg);
  padding: 2.5rem 2rem; text-align: center;
  border-radius: 4px; margin-top: 3rem;
}
.article-cta h2 {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 500;
  color: var(--bg); margin-bottom: 0.7rem;
}
.article-cta h2::after { display: none; }
.article-cta p {
  font-family: var(--serif-body); font-size: 1.15rem; line-height: 1.5;
  color: rgba(250,246,238,0.88); max-width: 480px; margin: 0 auto 1.5rem;
}
.btn-cta {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--bg); color: var(--burgundy) !important;
  padding: 0.95rem 2rem; border-radius: 4px;
  transition: all 0.2s;
}
.btn-cta:hover {
  background: var(--gold); color: var(--bg) !important;
  transform: translateY(-1px);
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.article-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 2rem 1.6rem; margin-top: 3rem;
  font-size: 0.85rem; color: var(--text-muted);
}
.footer-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-inner a { color: var(--text-secondary); }

@media (max-width: 600px) {
  main { padding: 1.5rem 1.2rem 3rem; }
  .article-nav { padding: 0.9rem 1.2rem; }
  .article-nav nav { gap: 0.9rem; }
  .article-quickfacts { grid-template-columns: repeat(2, 1fr); }
}
