/* ============================================================
   PAGE: blog (article + index)
   ============================================================ */

/* ----- Article layout --------------------------------------- */
.article-page {
  padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 10vw, 120px);
}
.article-page .container { max-width: var(--container-prose); }

.article-header {
  margin-bottom: 40px;
  text-align: left;
}
.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-lead {
  font-size: var(--text-lg);
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 620px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}
.article-meta time { color: var(--muted); }
.article-meta-dot {
  width: 4px; height: 4px;
  background: var(--border);
  border-radius: 50%;
}

/* ----- Prose body ------------------------------------------- */
.prose {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--slate);
}

.prose h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 56px 0 16px;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 40px 0 12px;
}

.prose h4 {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--ink);
  margin: 24px 0 8px;
}

.prose p {
  margin: 16px 0;
}

.prose ul, .prose ol {
  margin: 16px 0 16px 24px;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--muted); }

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

.prose a:not(.btn) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 600;
  transition: color var(--t-base);
}
.prose a:not(.btn):hover { color: var(--blue-dark); }

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

.prose blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--blue);
  background: var(--blue-tint);
  font-style: italic;
  color: var(--slate);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose pre, .prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}
.prose code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Artwork figure inside prose */
.prose figure {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
}
.prose figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.prose figure figcaption {
  margin-top: 10px;
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

/* Featured artwork — limited width so portraits don't overwhelm */
.prose .figure-featured img {
  max-width: 480px;
  margin: 0 auto;
}

/* Smaller inline thumbnail */
.prose .figure-thumb img {
  max-width: 360px;
  margin: 0 auto;
}

/* Gallery grid for multiple artworks */
.prose .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin: 32px 0;
}
.prose .gallery figure {
  margin: 0;
}
.prose .gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.prose .gallery figcaption {
  text-align: left;
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--slate);
  margin-top: 8px;
}
.prose .gallery .gallery-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
  letter-spacing: -0.2px;
  font-size: var(--text-base);
}

/* Image attribution at end of article */
.prose .credits {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--muted);
  text-align: center;
}
.prose .credits a { color: var(--muted); text-decoration: underline; }

/* Audio preview row inside prose */
.prose .audio-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--blue-soft);
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--blue);
}
.prose .audio-preview svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

/* Location pill inline (e.g., for masterpiece room numbers) */
.prose .loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.85em;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* ----- In-article CTA box ----------------------------------- */
.cta-box {
  margin: 48px 0;
  padding: 32px;
  background: var(--bg-tinted);
  border: 1px solid var(--border-tinted);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.cta-box-title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.4px;
}
.cta-box-text {
  font-size: var(--text-md);
  color: var(--slate);
  line-height: 1.55;
}

/* ----- Related posts ---------------------------------------- */
.related {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-title {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.related-list a {
  display: block;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
  transition: border-color var(--t-base), transform var(--t-base);
}
.related-list a:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* ----- Blog index (post list) -------------------------------- */
.blog-index { padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 120px); }
.blog-index .container { max-width: var(--container-prose); }

.blog-index-header {
  margin-bottom: 56px;
}
.blog-index-header h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 14px;
}
.blog-index-header p {
  font-size: var(--text-lg);
  color: var(--muted);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post-item {
  display: block;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.post-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.post-item h2 {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.post-item p {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: 1.55;
}
.post-item .article-meta { margin-top: 12px; }

/* ----- Responsive ------------------------------------------- */
@media (max-width: 640px) {
  .prose { font-size: var(--text-md); }
  .cta-box { padding: 24px 20px; }
  .post-item { padding: 22px 20px; }
}
