/* =============================================================================
   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 {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  letter-spacing: -0.01em; color: var(--text); text-transform: uppercase;
  line-height: 1;
}
.nav-logo {
  display: block; width: auto;
  height: 30px;
  max-width: 220px;
  transition: opacity 0.2s;
}
.nav-brand:hover .nav-logo { opacity: 0.78; }
@media (max-width: 600px) {
  .nav-logo { height: 24px; max-width: 170px; }
}
.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;
}
.article-intro {
  max-width: 720px; margin: 1.6rem 0 2.4rem;
}
.article-intro p {
  font-size: 1.02rem; line-height: 1.7;
  color: var(--text-secondary); margin-bottom: 1rem;
}
.article-intro p:last-child { margin-bottom: 0; }
.article-intro strong { color: var(--text-primary); font-weight: 600; }
.article-intro em { font-style: italic; }

/* ─── Movement page enriched sections ─────────────────────────────── */
.movement-intro p:first-of-type { font-size: 1.12rem; }
.movement-traits {
  list-style: none; padding: 0; margin: 1.2rem 0 0;
}
.movement-traits li {
  padding: 0.85rem 0 0.85rem 1.4rem;
  border-top: 1px solid var(--border, #e0d8c8);
  font-size: 1.02rem; line-height: 1.65;
  color: var(--text-secondary, #5a4a3a);
  position: relative;
}
.movement-traits li:last-child { border-bottom: 1px solid var(--border, #e0d8c8); }
.movement-traits li::before {
  content: "▸"; position: absolute; left: 0; top: 0.85rem;
  color: var(--burgundy, #6E2932); font-weight: 700;
}
.movement-traits li strong {
  color: var(--text-primary, #2a2a2a);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.movement-anecdotes .movement-anecdote {
  border-left: 2px solid var(--burgundy, #6E2932);
  padding: 0.6rem 0 0.6rem 1.1rem;
  margin: 1rem 0;
}
.movement-anecdotes .movement-anecdote p { margin-bottom: 0.6rem; }
.movement-anecdotes .movement-anecdote p:last-child { margin-bottom: 0; }
.movement-iconic .movement-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.movement-gallery-figure {
  margin: 0; display: flex; flex-direction: column;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border, #e0d8c8);
  background: #fff;
}
.movement-gallery-figure img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
}
.movement-gallery-figure figcaption {
  font-size: 0.78rem; padding: 0.5rem 0.6rem;
  color: var(--text-secondary, #5a4a3a);
  text-align: center;
  border-top: 1px solid var(--border, #e0d8c8);
}
.movement-faqs { margin-top: 2rem; }
.movement-faq {
  border-top: 1px solid var(--border, #e0d8c8);
  padding: 0.9rem 0;
}
.movement-faq[open] { padding-bottom: 1.1rem; }
.movement-faq summary {
  cursor: pointer; font-weight: 600;
  font-size: 1.02rem;
  padding-right: 1.5rem;
  position: relative;
  list-style: none;
  color: var(--text-primary, #2a2a2a);
}
.movement-faq summary::-webkit-details-marker { display: none; }
.movement-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 1.3rem; line-height: 1;
  color: var(--burgundy, #6E2932);
  transition: transform 0.2s;
}
.movement-faq[open] summary::after { content: "−"; }
.movement-faq-answer {
  margin-top: 0.7rem;
  font-size: 0.98rem; line-height: 1.7;
  color: var(--text-secondary, #5a4a3a);
}
.movement-faq-answer p { margin-bottom: 0.7rem; }
.movement-faq-answer p:last-child { margin-bottom: 0; }

/* ─── 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; }

section > p strong,
.painting-text > p strong {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--text);
  font-size: 0.96em;
  letter-spacing: 0.005em;
}
section > p em,
.painting-text > p em {
  color: var(--text);
}

/* Pull-quote — destacar concepto clave entre párrafos */
.pull-quote {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1.3;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 1.8rem 0 1.8rem -0.2rem;
  max-width: 90%;
}
.pull-quote strong {
  font-style: normal; font-weight: 700;
  color: var(--burgundy);
}
@media (max-width: 600px) {
  .pull-quote { padding-left: 1rem; font-size: 1.35rem; margin: 1.4rem 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 — final flourish ──────────────────────────────────── */
.article-cta {
  position: relative;
  background: linear-gradient(140deg, #1A1410 0%, #4A1D23 50%, #6E2932 100%);
  color: var(--bg);
  padding: 4rem 2rem 3.5rem;
  text-align: center;
  border-radius: 4px;
  margin-top: 4rem;
  overflow: hidden;
}
/* subtle inner gold frame (museum feel) */
.article-cta::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(184, 137, 58, 0.35);
  border-radius: 2px; pointer-events: none;
}
/* radial gold glow at the centre */
.article-cta::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184, 137, 58, 0.22) 0%, rgba(184, 137, 58, 0) 70%);
  pointer-events: none; z-index: 0;
}
.article-cta > * { position: relative; z-index: 1; }

.article-cta .cta-eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.article-cta .cta-eyebrow::before,
.article-cta .cta-eyebrow::after {
  content: "—"; color: var(--gold); margin: 0 0.7rem;
  opacity: 0.55;
}

.article-cta h2 {
  font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--bg); margin-bottom: 1rem;
}
.article-cta h2::after { display: none; }

.article-cta p {
  font-family: var(--serif-body); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5;
  color: rgba(250, 246, 238, 0.85);
  max-width: 520px; margin: 0 auto 2rem;
}

.btn-cta {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--gold); color: #1A1410 !important;
  padding: 1.15rem 2.4rem; border-radius: 4px;
  border: 1px solid var(--gold);
  transition: all 0.25s ease;
  box-shadow: 0 8px 28px rgba(184, 137, 58, 0.35);
}
.btn-cta::after {
  content: "→"; font-size: 1.2em; line-height: 1;
  transition: transform 0.25s ease;
}
.btn-cta:hover {
  background: var(--bg); color: var(--burgundy) !important;
  border-color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.btn-cta:hover::after { transform: translateX(4px); }

@media (max-width: 600px) {
  .article-cta { padding: 3rem 1.4rem 2.6rem; margin-top: 2.5rem; }
  .article-cta::before { inset: 8px; }
  .btn-cta { font-size: 0.85rem; padding: 1rem 1.8rem; letter-spacing: 0.14em; }
}

/* ─── 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.7rem 0.9rem; }
  .article-nav nav { gap: 0.7rem; font-size: 0.78rem; }
  /* Mobile: drop the "All artists" text link — Play CTA + lang selector are enough.
     Use direct-child selector so links inside the lang-menu stay clickable. */
  .article-nav > nav > a:not(.nav-cta) { display: none; }
  .article-quickfacts { grid-template-columns: repeat(2, 1fr); }
  .lang-toggle .lang-code { display: none; }  /* Mobile: just flag */
}

/* ===================== LANGUAGE SELECTOR ===================== */
.lang-selector { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  background: transparent;
  border: 1px solid var(--border, #e0d8c8);
  border-radius: 999px;
  color: var(--text-secondary, #5a4a3a);
  font: inherit; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; line-height: 1;
}
.lang-toggle:hover { border-color: var(--burgundy, #6E2932); color: var(--burgundy, #6E2932); }
.lang-toggle .lang-flag { font-size: 1rem; line-height: 1; }
.lang-toggle .lang-caret { font-size: 0.7rem; opacity: 0.6; }
.lang-menu {
  position: absolute; top: calc(100% + 0.4rem); right: 0;
  min-width: 11rem;
  background: #fff;
  border: 1px solid var(--border, #e0d8c8);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 0.3rem;
  display: none;
  z-index: 50;
}
.lang-selector.open .lang-menu { display: block; }
.lang-opt {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  text-decoration: none !important;
  color: var(--text-primary, #2a2a2a) !important;
  font-size: 0.9rem;
  white-space: nowrap;
}
.lang-opt:hover { background: var(--parchment, #F5EFE3); }
.lang-opt.active { background: var(--parchment, #F5EFE3); font-weight: 600; }
.lang-opt span { font-family: var(--font-serif, serif); }
