/* ============================================
   HARAMSSKATTEN — Editorial Overrides
   Gold Treasure from the Roman Empire to Nordøyane
   Museum exhibition catalog aesthetic

   Shared building blocks live in article-shared.css.
   This file contains ONLY article-specific overrides
   and unique components (hsk- prefix).
   ============================================ */

/* ── Theme: gold accent for subtitle ── */
:root {
  --art-subtitle-color: var(--color-gold, #d4a574);
  --art-ornament: var(--color-gold, #d4a574);
}


/* ============================================
   HERO — Overrides for sticky + museum styling
   ============================================ */
.hsk-hero-wrapper {
  position: relative;
  height: 120vh;
}

.art-hero {
  position: sticky;
  top: 0;
}

.art-hero__media img {
  object-position: center center;
  animation: hskHeroKB 35s ease-out forwards;
}

@keyframes hskHeroKB {
  0% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.art-hero__overlay {
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.15) 0%,
      rgba(10, 22, 40, 0) 25%,
      rgba(10, 22, 40, 0) 50%,
      rgba(10, 22, 40, 0.7) 78%,
      rgba(10, 22, 40, 0.95) 100%
    );
}

/* Vignette override */
.art-hero__overlay::before {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 22, 40, 0.4) 100%);
}

/* Warm gold glow — treasure luminosity (unique to this article) */
.art-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
  animation: hskGoldGlow 12s ease-in-out infinite;
}

@keyframes hskGoldGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Center-aligned hero content (shared is left-aligned) */
.art-hero__content {
  max-width: 900px;
  padding: var(--space-4xl) var(--space-xl) var(--space-5xl);
  text-align: center;
}

/* Hide left accent line from shared */
.art-hero__content::before {
  display: none;
}

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

/* Hero image credit override */
.art-hero__credit {
  bottom: var(--space-lg);
  right: var(--space-xl);
  font-family: inherit;
  font-size: var(--text-xs, 0.75rem);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0;
  font-style: italic;
}

/* Scroll indicator (unique to this article) */
.hsk-hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs, 0.75rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: artFadeUp 1s ease-out 1s forwards;
}

.hsk-hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-gold, #d4a574), transparent);
  animation: hskScrollPulse 2s ease-in-out infinite;
}

@keyframes hskScrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}


/* ============================================
   INTRO — Curved transition from author bar
   ============================================ */
#intro {
  position: relative;
}

#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%);
  z-index: 0;
}

#intro .art-section__inner {
  padding-top: var(--space-3xl);
}


/* ============================================
   LEAD — Link styles (not in shared)
   ============================================ */
.art-lead a {
  color: var(--color-pine, #2d6a3f);
  text-decoration: underline;
  text-decoration-color: var(--color-aurora, #7dd3c0);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s, color 0.3s;
}

.art-lead a:hover {
  color: var(--color-forest, #1a4d2e);
  text-decoration-color: var(--color-pine, #2d6a3f);
}


/* ============================================
   SECTIONS — Midnight dark variant override
   ============================================ */
.art-section--dark {
  background: linear-gradient(180deg, #060f1e 0%, var(--color-midnight, #0a1628) 100%);
  position: relative;
  overflow: hidden;
}

.art-section--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212, 165, 116, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(212, 165, 116, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.art-section--dark .art-section__inner {
  position: relative;
  z-index: 1;
}


/* ============================================
   ARTIFACT LABEL — Museum catalog datestamp
   (unique to this article)
   ============================================ */
.hsk-artifact-label {
  text-align: center;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted, #737373);
  margin-bottom: var(--space-xl);
}


/* ============================================
   FLOAT IMAGES — Right-floated with gold variant
   (unique to this article)
   ============================================ */
.hsk-float-image {
  margin: 0;
}

.hsk-float-image--right {
  float: right;
  width: clamp(220px, 40%, 320px);
  margin: 0 0 var(--space-xl) var(--space-xl);
  shape-outside: margin-box;
}

.hsk-float-image__wrap {
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.hsk-float-image--gold .hsk-float-image__wrap {
  border: 2px solid rgba(212, 165, 116, 0.3);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(212, 165, 116, 0.1);
}

.hsk-float-image__wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hsk-float-image figcaption {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: var(--text-xs, 0.75rem);
  color: rgba(251, 249, 246, 0.5);
  font-style: italic;
}


/* ============================================
   SHOWCASE — Museum display mount
   (unique to this article)
   ============================================ */
.hsk-showcase {
  position: relative;
  max-width: 960px;
  margin: var(--space-3xl) auto var(--space-xl);
  padding: 0 var(--space-xl);
}

.hsk-showcase__mount {
  background: var(--color-midnight, #0a1628);
  border-radius: var(--radius-xl, 12px);
  padding: clamp(16px, 3vw, 40px);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.15);
}

.hsk-showcase__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg, 8px);
  box-shadow: 0 0 40px rgba(212, 165, 116, 0.15);
}

.hsk-showcase__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  animation: hskKenBurns 20s ease-out forwards paused;
}

.hsk-showcase.is-visible .hsk-showcase__img-wrap img {
  animation-play-state: running;
}

@keyframes hskKenBurns {
  0% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

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


/* ============================================
   FIGURES — Cinematic full-bleed
   (unique to this article)
   ============================================ */
.hsk-figure {
  position: relative;
  max-width: 960px;
  margin: var(--space-2xl) auto var(--space-xl);
  padding: 0 var(--space-xl);
}

.hsk-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);
}

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

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

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

/* Cinematic variant — full-bleed breakout */
.hsk-figure--cinematic {
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0;
}

.hsk-figure--cinematic .hsk-figure__img-wrap {
  border-radius: 0;
  aspect-ratio: 21 / 9;
}

.hsk-figure--cinematic .hsk-figure__img-wrap img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hsk-figure--cinematic figcaption {
  max-width: 800px;
  margin: var(--space-lg) auto 0;
  padding: 0 var(--space-xl);
}


/* ============================================
   DIVIDER — Decorative section break
   (unique to this article)
   ============================================ */
.hsk-divider {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.hsk-divider__line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-mist, #e8e5e0);
  vertical-align: middle;
}

.hsk-divider__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-gold, #d4a574);
  border-radius: 50%;
  margin: 0 var(--space-md);
  vertical-align: middle;
}


/* ============================================
   INLINE CTA — Mid-article engagement
   (unique to this article)
   ============================================ */
.hsk-inline-cta {
  padding: 0 var(--space-xl);
  text-align: center;
  margin: var(--space-2xl) auto;
}

.hsk-inline-cta__inner {
  max-width: 650px;
  margin: 0 auto;
}

/* Link card in light section: add contrast + breathing room */
.hsk-inline-cta .art-link-card {
  background: var(--n-cream, #F1EBE3);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hsk-inline-cta .art-link-card__body {
  background: var(--n-cream, #F1EBE3);
}

.hsk-inline-cta__text {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-lg, 1.125rem);
  font-style: italic;
  color: var(--color-text-secondary, #4a4a4a);
  line-height: 1.7;
}

.hsk-inline-cta__text a {
  color: var(--color-pine, #2d6a3f);
  text-decoration: underline;
  text-decoration-color: var(--color-aurora, #7dd3c0);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s, color 0.3s;
}

.hsk-inline-cta__text a:hover {
  color: var(--color-forest, #1a4d2e);
  text-decoration-color: var(--color-pine, #2d6a3f);
}


/* ============================================
   CLOSING — Overrides for unique structure
   ============================================ */
.art-closing {
  padding: 0 0 var(--space-3xl);
}

/* Remove shared ornament line (this article uses __inner::before instead) */
.art-closing::before {
  display: none;
}

.art-closing__prose {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl) var(--space-sm);
}

.art-closing__text {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-xl, 1.25rem);
  margin: 0;
}

.art-closing__inner {
  padding: var(--space-2xl) var(--space-xl) 0;
}

.art-closing__inner::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold, #d4a574), #c49a6c);
  margin: 0 auto var(--space-2xl);
  border-radius: 1px;
}


/* ============================================
   RESPONSIVE — Tablet (768px)
   ============================================ */
@media (max-width: 768px) {
  .hsk-hero-wrapper {
    height: 110vh;
  }

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

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

  .hsk-hero__scroll {
    display: none;
  }

  #intro::before {
    height: 60px;
  }

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

  .hsk-float-image--right {
    float: none;
    width: 100%;
    margin: 0 auto var(--space-xl);
  }

  .hsk-float-image figcaption {
    text-align: center;
  }

  .hsk-showcase {
    padding: 0 var(--space-lg);
  }

  .hsk-inline-cta {
    margin: var(--space-xl) auto;
  }

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

  .hsk-figure--cinematic .hsk-figure__img-wrap {
    aspect-ratio: 16 / 9;
  }

  .art-closing__prose {
    padding: var(--space-sm) var(--space-lg) var(--space-sm);
  }
}

/* Tighten transition into closing prose for this article only */
#maritime {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
}

/* Reduce vertical space around the final closing statement block */
.art-closing .hsk-figure {
  margin-top: var(--space-lg);
}


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

  .hsk-showcase__mount {
    padding: 12px;
  }
}


/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .art-hero__overlay::after {
    animation: none;
    opacity: 0.5;
  }

  .hsk-hero__scroll {
    opacity: 1;
    animation: none;
  }

  .hsk-hero__scroll-line {
    animation: none;
  }

  .hsk-showcase__img-wrap img,
  .hsk-figure__img-wrap img {
    animation: none;
  }
}
