/* ============================================
   ARTICLE SHARED — Freysta Article Building Blocks
   Reusable components for all editorial articles.
   Uses .art- prefix. Articles override via custom
   properties and page-specific editorial CSS.
   ============================================ */

/* ── Font Faces ── */
@font-face {
  font-family: 'Glacial Indifference';
  src: url('/assets/fonts/GlacialIndifference-Regular.woff2') format('woff2'),
       url('/assets/fonts/GlacialIndifference-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Glacial Indifference';
  src: url('/assets/fonts/GlacialIndifference-Bold.woff2') format('woff2'),
       url('/assets/fonts/GlacialIndifference-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Themeable Custom Properties ──
   Articles override these in their editorial CSS
   to change accent colors without rewriting rules. */
:root {
  --art-accent: var(--color-gold, #c4918a);
  --art-accent-dark: #c49a6c;
  --art-accent-glow: rgba(196, 145, 138, 0.4);
  --art-accent-subtle: rgba(196, 145, 138, 0.06);
  --art-link: var(--color-pine, #2d6a3f);
  --art-link-hover: var(--color-forest, #1a4d2e);
  --art-link-underline: var(--color-aurora, #7dd3c0);
  --art-ornament: var(--color-aurora, #7dd3c0);
  --art-subtitle-color: var(--color-aurora, #7dd3c0);
  --art-hero-accent-line: var(--color-gold, #c4918a);
}


/* ============================================
   HERO — Cinematic full-viewport
   Override height, Ken Burns timing, and overlay
   gradients in per-article CSS.
   ============================================ */
.art-hero-wrapper {
  position: relative;
}

.art-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-midnight, #0a1628);
}

.art-hero__media {
  position: absolute;
  inset: 0;
}

.art-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
  animation: artHeroKB 30s ease-out forwards;
}

@keyframes artHeroKB {
  0%   { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.art-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.15) 0%,
      rgba(10, 22, 40, 0) 25%,
      rgba(10, 22, 40, 0.05) 50%,
      rgba(10, 22, 40, 0.6) 75%,
      rgba(10, 22, 40, 0.95) 90%,
      rgba(10, 22, 40, 1) 100%
    );
}

/* Vignette */
.art-hero__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 22, 40, 0.45) 100%);
}

.art-hero__credit {
  position: absolute;
  bottom: var(--space-sm, 12px);
  right: var(--space-md, 16px);
  z-index: 4;
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.7rem;
  color: rgba(251, 249, 246, 0.68);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.art-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl) var(--space-5xl);
  padding-left: clamp(48px, 8vw, 120px);
  color: var(--color-warm-white, #FBF9F6);
  text-align: left;
}

/* Left accent line */
.art-hero__content::before {
  content: '';
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  top: 50%;
  width: 2px;
  height: 120px;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, transparent, var(--art-hero-accent-line), transparent);
  opacity: 0.5;
}

/* ── Hero Meta ── */
.art-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: artFadeUp 1s ease-out 0.3s forwards;
}

@keyframes artFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.art-hero__category {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-lg);
  background: linear-gradient(135deg, var(--art-accent), var(--art-accent-dark, #c49a6c));
  color: var(--color-midnight, #0a1628);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-full, 9999px);
  box-shadow: 0 4px 20px var(--art-accent-glow);
}

.art-hero__divider {
  width: 4px;
  height: 4px;
  background: var(--art-accent);
  border-radius: 50%;
  opacity: 0.6;
}

.art-hero__region {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-lg);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full, 9999px);
}

/* ── Hero Title ── */
.art-hero__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: artFadeUp 1s ease-out 0.5s forwards;
}

.art-hero__subtitle {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--art-subtitle-color);
  line-height: 1.5;
  opacity: 0;
  animation: artFadeUp 1s ease-out 0.7s forwards;
}


/* ============================================
   AUTHOR BAR
   ============================================ */
.art-author-bar {
  position: relative;
  z-index: 10;
  background: var(--color-midnight, #0a1628);
  padding: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.art-author-bar__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.art-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.art-author__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.art-author__label {
  font-size: var(--text-xs, 0.75rem);
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.art-author__name {
  font-size: var(--text-base, 1rem);
  font-weight: 600;
  color: var(--color-warm-white, #FBF9F6);
}

.art-author__date {
  font-size: var(--text-xs, 0.75rem);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

.art-share {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.art-share__label {
  font-size: var(--text-sm, 0.875rem);
  color: rgba(255, 255, 255, 0.4);
}

.art-share__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 50%;
  color: var(--color-warm-white, #FBF9F6);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.art-share__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.art-share__btn svg {
  width: 18px;
  height: 18px;
}


/* ============================================
   INTRO — Lead section with dropcap
   ============================================ */
.art-intro {
  background: var(--color-warm-white, #FBF9F6);
  position: relative;
}

/* Clip-path connector from hero */
.art-intro::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--color-midnight, #0a1628);
  clip-path: ellipse(70% 100% at 50% 0%);
}

.art-intro__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl) var(--space-xl);
  position: relative;
}

.art-lead {
  position: relative;
  font-family: 'Cormorant Garamond', var(--font-display), serif;
  font-size: clamp(1.4rem, 1.1vw + 1.05rem, 1.75rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.8;
  color: var(--color-text-primary, #1a1a1a);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--color-mist, #e8e5e0);
  margin-bottom: var(--space-xl);
}

.art-lead:last-child {
  margin-bottom: 0;
}

.art-lead::first-letter {
  font-family: 'Cormorant Garamond', var(--font-display), serif;
  font-weight: 600;
  color: var(--art-accent);
  line-height: 0.86;
  margin-right: 0.09em;
  initial-letter: 2 1;
  -webkit-initial-letter: 2 1;
}

@supports not (initial-letter: 2) {
  .art-lead::first-letter {
    float: left;
    font-size: 2.25em;
    line-height: 0.92;
    padding-top: 0.05em;
    margin-right: 0.08em;
  }
}

.art-intro__body {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.9;
  color: var(--color-text-secondary, #4a4a4a);
}


/* ============================================
   SECTIONS — Alternating backgrounds
   ============================================ */
.art-section {
  padding: var(--space-3xl) var(--space-xl);
  --art-caption-color: var(--color-text-muted, #666);
  --art-caption-shadow: none;
}

.art-section--light {
  background: var(--color-warm-white, #FBF9F6);
}

.art-section--cream {
  background: var(--n-cream, #F1EBE3);
}

.art-section--dark {
  background: var(--color-midnight, #0a1628);
  --art-caption-color: rgba(251, 249, 246, 0.82);
  --art-caption-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.art-section--utility {
  background: var(--n-utility, #243D4F);
  --art-caption-color: rgba(251, 249, 246, 0.82);
  --art-caption-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.art-section__inner {
  max-width: 800px;
  margin: 0 auto;
}


/* ============================================
   HEADINGS — Ornament line above
   ============================================ */
.art-heading {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.art-heading::before {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  margin: 0 auto var(--space-xl);
  background: linear-gradient(90deg, transparent, var(--art-ornament), transparent);
}

.art-heading h2 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-primary, #1a1a1a);
  margin: 0;
}

.art-heading--light h2 {
  color: var(--color-warm-white, #FBF9F6);
}

.art-heading--light::before {
  background: linear-gradient(90deg, transparent, var(--art-ornament), transparent);
}


/* ============================================
   PROSE — Text blocks
   ============================================ */
.art-prose {
  max-width: 800px;
  margin: 0 auto;
}

.art-prose p {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.9;
  color: var(--color-text-secondary, #4a4a4a);
  margin-bottom: var(--space-xl);
}

.art-prose p:last-child {
  margin-bottom: 0;
}

.art-prose--light p {
  color: rgba(251, 249, 246, 0.85);
}

.art-prose a {
  color: var(--art-link);
  text-decoration: underline;
  text-decoration-color: var(--art-link-underline);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s, color 0.3s;
}

.art-prose a:hover {
  color: var(--art-link-hover);
  text-decoration-color: var(--art-link);
}

.art-prose--light a {
  color: var(--art-link-underline);
  text-decoration-color: rgba(125, 211, 192, 0.4);
}

.art-prose--light a:hover {
  color: #a3e4d4;
  text-decoration-color: var(--art-link-underline);
}

.art-prose em {
  font-style: italic;
}

.art-prose strong {
  font-weight: 700;
}

.art-prose ul,
.art-prose ol {
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.9;
  color: var(--color-text-secondary, #4a4a4a);
  margin-bottom: var(--space-xl);
  padding-left: 1.5em;
}

.art-prose li {
  margin-bottom: 0.5em;
}

.art-prose--light ul,
.art-prose--light ol,
.art-prose--light li {
  color: rgba(251, 249, 246, 0.85);
}


/* ============================================
   FIGURES — Image blocks with Ken Burns
   ============================================ */
.art-figure {
  position: relative;
  max-width: 960px;
  margin: var(--space-2xl) auto var(--space-xl);
  padding: 0 var(--space-xl);
}

.art-figure__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.art-figure__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  animation: artKenBurns 20s ease-out forwards paused;
}

.art-figure.is-visible .art-figure__img-wrap img {
  animation-play-state: running;
}

@keyframes artKenBurns {
  0%   { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.art-figure figcaption {
  text-align: center;
  margin-top: var(--space-md);
  font-size: var(--text-sm, 0.875rem);
  color: var(--art-caption-color, var(--color-text-muted, #666));
  font-style: italic;
  line-height: 1.5;
  text-shadow: var(--art-caption-shadow, none);
}

/* Spread variant — full article width */
.art-figure--spread {
  max-width: 960px;
}

/* Portrait variant — narrower, centered */
.art-figure--portrait {
  max-width: 600px;
  padding: 0;
}

/* ============================================
   STICKY SCENE — Image pins while next section
   scrolls over it. Wrap sticky image + the
   section that scrolls over in .art-sticky-scene.
   Requires overflow-x: clip on html,body
   (overflow-x: hidden breaks sticky).
   ============================================ */
.art-sticky-scene {
  position: relative;
}

.art-sticky-scene__media {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 80vh;
  min-height: 550px;
  max-height: 900px;
  overflow: hidden;
}

.art-sticky-scene__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* The section that scrolls over the sticky image */
.art-sticky-scene__over {
  position: relative;
  z-index: 1;
}


/* ============================================
   GALLERY — Responsive image grid
   ============================================ */
.art-gallery {
  max-width: 960px;
  margin: var(--space-2xl) auto var(--space-xl);
  padding: 0 var(--space-xl);
}

.art-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.art-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.art-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-gallery figcaption {
  text-align: center;
  margin-top: var(--space-md);
  font-size: var(--text-sm, 0.875rem);
  color: var(--art-caption-color, var(--color-text-muted, #666));
  font-style: italic;
  text-shadow: var(--art-caption-shadow, none);
}


/* ============================================
   QUOTE — Left-border attributed speech
   ============================================ */
.art-quote {
  max-width: 800px;
  margin: var(--space-2xl) auto;
  padding: 0 var(--space-xl) 0 calc(var(--space-xl) + 2rem);
  border-left: 3px solid rgba(45, 106, 63, 0.4);
}

.art-quote p {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-xl, 1.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-primary, #1a1a1a);
  margin: 0 0 var(--space-md);
}

.art-quote p:last-child {
  margin-bottom: 0;
}

.art-quote__cite {
  display: block;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--art-link);
  margin-top: var(--space-md);
}

/* Light variant for dark sections */
.art-section--utility .art-quote p,
.art-section--dark .art-quote p {
  color: rgba(251, 249, 246, 0.9);
}

.art-section--utility .art-quote,
.art-section--dark .art-quote {
  border-left-color: rgba(125, 211, 192, 0.4);
}

.art-section--utility .art-quote__cite,
.art-section--dark .art-quote__cite {
  color: var(--art-link-underline);
}


/* ============================================
   PULLQUOTE — Prominent decorative quote
   ============================================ */
.art-pullquote {
  max-width: 800px;
  margin: var(--space-3xl) auto;
  padding: 0 var(--space-xl) 0 calc(var(--space-xl) + 2rem);
  border-left: 3px solid rgba(45, 106, 63, 0.4);
}

/* Quote wall variant inspired by village pages */
.art-pullquote--wall {
  max-width: none;
  margin: var(--space-3xl) 0;
  padding: var(--space-4xl) clamp(2rem, 8vw, 8rem);
  border-left: none;
  background: var(--surface-utility, #243D4F);
  text-align: center;
}

.art-pullquote--wall .art-pullquote__inner,
.art-pullquote--wall blockquote {
  max-width: 980px;
  margin: 0 auto;
}

.art-pullquote__inner p,
.art-pullquote blockquote p {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-xl, 1.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-primary, #1a1a1a);
  margin: 0 0 var(--space-md);
}

.art-pullquote__inner p:last-child,
.art-pullquote blockquote p:last-child {
  margin-bottom: 0;
}

.art-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.art-pullquote__cite {
  display: block;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--art-link);
  margin-top: var(--space-md);
}

/* Light variant for dark sections */
.art-section--utility .art-pullquote,
.art-section--dark .art-pullquote {
  border-left-color: rgba(125, 211, 192, 0.4);
}

.art-pullquote--wall .art-pullquote__inner p,
.art-pullquote--wall blockquote p {
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  font-style: normal;
  line-height: 1.3;
  color: var(--color-cream, #F1EBE3);
}

.art-pullquote--wall .art-pullquote__cite {
  font-family: var(--font-body);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold, #c4918a);
}

.art-section--utility .art-pullquote--wall,
.art-section--dark .art-pullquote--wall {
  background: var(--surface-utility, #243D4F);
}

.art-section--utility .art-pullquote__inner p,
.art-section--utility .art-pullquote blockquote p,
.art-section--dark .art-pullquote__inner p,
.art-section--dark .art-pullquote blockquote p {
  color: rgba(251, 249, 246, 0.9);
}

.art-section--utility .art-pullquote__cite,
.art-section--dark .art-pullquote__cite {
  color: var(--art-link-underline);
}


/* ============================================
   CALLOUT — Highlighted box
   ============================================ */
.art-callout {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-xl) var(--space-2xl);
  background: linear-gradient(135deg, rgba(45, 106, 63, 0.06), rgba(125, 211, 192, 0.08));
  border-left: 3px solid;
  border-image: linear-gradient(to bottom, var(--art-link), var(--art-link-underline)) 1;
  border-radius: 0 var(--radius-xl, 12px) var(--radius-xl, 12px) 0;
}

.art-callout p {
  font-size: var(--text-base, 1rem);
  color: var(--color-text-secondary, #4a4a4a);
  margin: 0;
  line-height: 1.7;
}

.art-callout a {
  color: var(--art-link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--art-link-underline);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s, color 0.3s;
}

.art-callout a:hover {
  color: var(--art-link-hover);
  text-decoration-color: var(--art-link);
}


/* ============================================
   LINK CARD — Horizontal image + text card
   Clickable <a> with thumbnail left, text right
   ============================================ */
.art-link-card {
  display: flex;
  align-items: stretch;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.art-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.art-link-card__img {
  flex: 0 0 180px;
  overflow: hidden;
}

.art-link-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.art-link-card:hover .art-link-card__img img {
  transform: scale(1.06);
}

.art-link-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-warm-white, #FBF9F6);
}

.art-link-card__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary, #1a1a1a);
  margin: 0;
  transition: color 0.3s ease;
}

.art-link-card:hover .art-link-card__title {
  color: var(--art-accent);
}

.art-link-card__desc {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-muted, #737373);
  line-height: 1.5;
  margin-top: var(--space-xs);
}

.art-link-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--art-accent);
  margin-top: var(--space-sm);
}

.art-link-card__arrow svg {
  transition: transform 0.3s ease;
}

.art-link-card:hover .art-link-card__arrow svg {
  transform: translateX(4px);
}


/* ============================================
   CLOSING CTA
   ============================================ */
.art-closing {
  background: var(--color-warm-white, #FBF9F6);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

.art-closing::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--art-link-underline), var(--art-link));
  margin: 0 auto var(--space-2xl);
  border-radius: 1px;
}

.art-closing__inner {
  max-width: 650px;
  margin: 0 auto;
}

.art-closing__text {
  font-size: var(--text-lg, 1.125rem);
  color: var(--color-text-secondary, #4a4a4a);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
  font-style: italic;
}

.art-closing__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: linear-gradient(135deg, var(--art-accent), var(--art-accent-dark, #c49a6c));
  color: var(--color-midnight, #0a1628);
  font-size: var(--text-base, 1rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--radius-full, 9999px);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px var(--art-accent-glow);
}

.art-closing__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--art-accent-glow);
}


/* ============================================
   CTA — Image-backed call-to-action card
   Background hero image + dark overlay + text + button
   ============================================ */
.art-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg, 0.75rem);
  max-width: 800px;
  margin: 0 auto;
}

.art-cta__media {
  position: absolute;
  inset: 0;
}

.art-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.art-cta:hover .art-cta__media img {
  transform: scale(1.04);
}

.art-cta__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(10, 22, 40, 0.88) 0%,
      rgba(10, 22, 40, 0.7) 50%,
      rgba(10, 22, 40, 0.55) 100%);
}

.art-cta__body {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
}

.art-cta__text {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(251, 249, 246, 0.9);
  max-width: 550px;
  margin: 0 auto var(--space-2xl);
}

.art-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 2.2em;
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-midnight, #0a1628);
  background: linear-gradient(135deg, var(--art-accent), var(--art-accent-dark, #c49a6c));
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  box-shadow: 0 4px 16px var(--art-accent-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--art-accent-glow);
}

.art-cta__btn svg {
  transition: transform 0.3s ease;
}

.art-cta__btn:hover svg {
  transform: translateX(3px);
}


/* ============================================
   SOURCES
   ============================================ */
.art-sources {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl) var(--space-3xl);
}

.art-sources__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-lg, 1.125rem);
  font-weight: 500;
  color: var(--color-text-primary, #1a1a1a);
  margin: 0 0 var(--space-xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-mist, #e8e5e0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.art-sources__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.art-sources__list li {
  padding: var(--space-sm) 0;
}

.art-sources__list li::before {
  content: '\2192\00a0';
  color: var(--art-link-underline);
  font-weight: 600;
}

.art-sources__list a {
  color: var(--art-link);
  text-decoration: underline;
  text-decoration-color: var(--art-link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  font-size: var(--text-base, 1rem);
  transition: color 0.3s;
}

.art-sources__list a:hover {
  color: var(--art-link-hover);
}


/* ============================================
   RESPONSIVE — Tablet (768px)
   ============================================ */
@media (max-width: 768px) {
  .art-hero__content {
    padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
    text-align: center;
  }

  .art-hero__content::before {
    display: none;
  }

  .art-hero__meta {
    justify-content: center;
  }

  .art-hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .art-author-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .art-intro::before {
    height: 60px;
  }

  .art-intro__inner {
    padding: var(--space-3xl) var(--space-lg) var(--space-lg);
  }

  .art-section {
    padding: var(--space-2xl) var(--space-lg);
  }

  .art-figure {
    padding: 0 var(--space-lg);
  }

  .art-gallery {
    padding: 0 var(--space-lg);
  }

  .art-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .art-callout {
    margin-left: var(--space-lg);
    margin-right: var(--space-lg);
  }

  .art-quote {
    padding-left: calc(var(--space-lg) + 1.5rem);
    padding-right: var(--space-lg);
  }

  .art-pullquote {
    padding-left: calc(var(--space-lg) + 1.5rem);
    padding-right: var(--space-lg);
  }

  .art-pullquote--wall {
    padding: var(--space-2xl) clamp(1rem, 5vw, 2rem);
  }

  .art-pullquote--wall .art-pullquote__inner p,
  .art-pullquote--wall blockquote p {
    font-size: clamp(1.35rem, 5.5vw, 2rem);
  }

  .art-closing {
    padding: var(--space-2xl) var(--space-lg);
  }

  .art-sources {
    padding: var(--space-xl) var(--space-lg) var(--space-2xl);
  }

  .art-link-card {
    flex-direction: column;
  }

  .art-link-card__img {
    flex: 0 0 auto;
    height: 160px;
  }

  .art-link-card__body {
    padding: var(--space-lg);
  }

  .art-cta__body {
    padding: var(--space-2xl) var(--space-lg);
  }

}

/* ============================================
   RELATED ARTICLES
   ============================================ */
.art-related {
  background: var(--color-cream, #F5F0E8);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.art-related__heading {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-xl, 1.25rem);
  font-weight: 500;
  color: var(--color-midnight, #1a2332);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.art-related__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 700px;
  margin-inline: auto;
}

.art-related__link {
  color: var(--art-link, var(--color-pine, #2d6a3f));
  text-decoration: none;
  font-size: var(--text-base, 1rem);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.art-related__link:hover {
  border-bottom-color: var(--art-link-underline, var(--color-aurora, #7dd3c0));
  color: var(--color-midnight, #1a2332);
}

@media (max-width: 768px) {
  .art-related {
    padding: var(--space-xl) var(--space-lg);
  }

  .art-related__links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}


/* ============================================
   CARD GRID — Related articles with images
   3-column image card grid with hover effects
   ============================================ */
.art-card-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.art-card-grid__heading {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  text-align: center;
  color: var(--color-text-primary, #1a1a1a);
  margin-bottom: var(--space-2xl);
}

.art-card-grid__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.art-card-grid__card {
  position: relative;
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  background: var(--color-warm-white, #FBF9F6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.art-card-grid__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.art-card-grid__card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.art-card-grid__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.art-card-grid__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.art-card-grid__card:hover .art-card-grid__img img {
  transform: scale(1.05);
}

.art-card-grid__body {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  background: var(--color-warm-white, #FBF9F6);
}

.art-card-grid__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary, #1a1a1a);
  margin: 0;
  transition: color 0.3s ease;
}

.art-card-grid__card:hover .art-card-grid__title {
  color: var(--art-accent);
}

.art-card-grid__desc {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-muted, #737373);
  line-height: 1.55;
  margin-top: var(--space-sm);
}

.art-card-grid__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--art-accent);
  margin-top: var(--space-md);
}

.art-card-grid__arrow svg {
  transition: transform 0.3s ease;
}

.art-card-grid__card:hover .art-card-grid__arrow svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .art-card-grid__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}


/* ============================================
   RESPONSIVE — Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  .art-hero {
    min-height: 480px;
  }

  .art-heading h2 {
    font-size: clamp(1.6rem, 5vw + 0.25rem, 2rem);
  }

  .art-gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .art-hero__media img {
    animation: none;
    transform: none;
  }

  .art-hero__meta,
  .art-hero__title,
  .art-hero__subtitle {
    opacity: 1;
    animation: none;
  }

  .art-figure__img-wrap img {
    animation: none;
  }

  .art-cta__media img,
  .art-link-card__img img,
  .art-card-grid__img img {
    transition: none;
  }

  .art-link-card:hover,
  .art-card-grid__card:hover {
    transform: none;
  }
}


