/* ============================================
   ICELANDIC HORSES — Editorial Overrides
   Base: article-shared.css
   Prefix: hst-
   Accent: Mountain sage #6B8E6B
   ============================================ */

html, body {
  overflow-x: clip;
}

:root {
  --art-accent: #6B8E6B;
  --art-accent-dark: #557355;
  --art-accent-glow: rgba(107, 142, 107, 0.4);
  --art-accent-subtle: rgba(107, 142, 107, 0.06);
  --art-link: #557355;
  --art-link-hover: #3F5C3F;
  --art-link-underline: #6B8E6B;
  --art-ornament: #6B8E6B;
  --art-subtitle-color: #9AB89A;
  --art-hero-accent-line: #9AB89A;
}


/* ── Hero overrides ── */
.art-hero__media img {
  object-position: center 40%;
  animation: hstHeroKB 30s ease-out forwards;
}

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

.art-hero__overlay {
  background:
    linear-gradient(180deg,
      rgba(15, 22, 12, 0.15) 0%,
      rgba(15, 22, 12, 0) 20%,
      rgba(15, 22, 12, 0.35) 55%,
      rgba(15, 22, 12, 0.88) 80%,
      rgba(15, 22, 12, 1) 100%
    );
}

.art-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(107, 142, 107, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.art-hero__category {
  background: rgba(107, 142, 107, 0.85);
  color: #fff;
}

.art-hero {
  background: #0f160c;
}

/* ── Tighten intro → first section gap ── */
.art-intro + .art-section {
  padding-top: var(--space-md);
}

/* ── Pullquote breathing room ── */
.art-pullquote {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}


/* ============================================
   HST-FACT — Horse breed fact box
   ============================================ */
.hst-fact {
  max-width: 700px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg) var(--space-xl);
  background: var(--art-accent-subtle);
  border-left: 4px solid var(--art-accent);
  border-radius: 0 var(--radius-xl, 12px) var(--radius-xl, 12px) 0;
}

.hst-fact__emoji {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  display: block;
}

.hst-fact__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: var(--art-accent-dark);
  margin: 0 0 var(--space-sm);
}

.hst-fact__text {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-base, 1rem);
  line-height: 1.8;
  color: var(--color-text-secondary, #4a4a4a);
  margin: 0;
}


/* ============================================
   HST-SPLIT — Side-by-side image + text
   ============================================ */
.hst-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 900px;
  margin: var(--space-xl) auto;
}

.hst-split--reverse {
  direction: rtl;
}

.hst-split--reverse > * {
  direction: ltr;
}

.hst-split__fig {
  margin: 0;
}

.hst-split__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.hst-split__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hst-split figcaption {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #888);
  font-style: italic;
  margin-top: var(--space-xs);
}

.hst-split__text {
  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);
}

.hst-split__text p {
  margin: 0 0 var(--space-md);
}

.hst-split__text p:last-child {
  margin-bottom: 0;
}


/* ============================================
   HST-BLEED — Full-bleed image break
   ============================================ */
.hst-bleed {
  max-width: 1100px;
  margin: var(--space-2xl) auto;
}

.hst-bleed figure {
  margin: 0;
}

.hst-bleed__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hst-bleed__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hst-bleed figcaption {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #888);
  font-style: italic;
  margin-top: var(--space-sm);
  text-align: center;
}

.hst-cinematic__figure {
  position: relative;
  height: 100%;
  margin: 0;
}

.hst-cinematic__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0.06) 45%, rgba(10, 22, 40, 0) 100%);
  pointer-events: none;
}

.hst-cinematic__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.hst-cinematic__figure figcaption {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.4vw, 28px);
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  background: rgba(10, 22, 40, 0.56);
  color: rgba(251, 249, 246, 0.92);
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: clamp(0.72rem, 1.05vw, 0.9rem);
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  z-index: 1;
}


/* ============================================
   HST-STAT — Key statistics display
   ============================================ */
.hst-stat {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  max-width: 700px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg) 0;
}

.hst-stat__item {
  text-align: center;
}

.hst-stat__number {
  display: block;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--art-accent);
  line-height: 1.1;
}

.hst-stat__label {
  display: block;
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-muted, #888);
  margin-top: var(--space-xs);
  letter-spacing: 0.03em;
}


/* ============================================
   HST-PORTRAIT — Centered portrait image
   ============================================ */
.hst-portrait {
  max-width: 600px;
  margin: var(--space-xl) auto;
}

.hst-portrait figure {
  margin: 0;
}

.hst-portrait__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.hst-portrait__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hst-portrait figcaption {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #888);
  font-style: italic;
  margin-top: var(--space-sm);
  text-align: center;
}


/* ── Responsive — Tablet (768px) ── */
@media (max-width: 768px) {
  .art-hero__media img {
    object-position: center 40%;
  }

  .hst-split,
  .hst-split--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    max-width: 600px;
  }

  .hst-bleed {
    margin-left: var(--space-md);
    margin-right: var(--space-md);
  }

  .hst-cinematic__figure figcaption {
    max-width: calc(100% - 2rem);
    white-space: normal;
  }

  .hst-stat {
    gap: var(--space-lg);
  }

  .hst-stat__number {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }

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

  .art-card-grid {
    padding: var(--space-xl) var(--space-lg);
  }
}


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