/* ============================================
   THE VEST-AGDER BUNAD — Editorial Overrides
   Base: article-shared.css
   Prefix: vab-
   ============================================ */

:root {
  --art-accent: #8B3542;
  --art-accent-dark: #6E2A35;
  --art-accent-glow: rgba(139, 53, 66, 0.4);
  --art-accent-subtle: rgba(139, 53, 66, 0.06);
  --art-link: var(--color-pine, #2d6a3f);
  --art-link-hover: #8B3542;
  --art-link-underline: #8B3542;
  --art-ornament: #8B3542;
  --art-subtitle-color: #c4828e;
  --art-hero-accent-line: #8B3542;
}


/* ── Hero overrides ──
   Square hero image — object-position center,
   intimate close-up of silver and embroidery */
.art-hero__media img {
  object-position: center 30%;
  animation: vabHeroKB 30s ease-out forwards;
}

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

.art-hero__overlay {
  background:
    linear-gradient(180deg,
      rgba(10, 10, 15, 0.10) 0%,
      rgba(10, 10, 15, 0) 25%,
      rgba(10, 10, 15, 0.30) 55%,
      rgba(10, 10, 15, 0.88) 80%,
      rgba(10, 10, 15, 1) 100%
    );
}

.art-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(139, 53, 66, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.art-hero__category {
  background: rgba(139, 53, 66, 0.85);
  color: #fff;
}


/* ============================================
   VAB-DETAIL — Square close-up + text
   For showcasing embroidery, jewelry, pockets
   ============================================ */
.vab-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 800px;
  margin: var(--space-2xl) auto;
}

.vab-detail--reverse {
  direction: rtl;
}

.vab-detail--reverse > * {
  direction: ltr;
}

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

.vab-detail__text p {
  margin: 0 0 var(--space-xl) 0;
}

.vab-detail__text p:last-child {
  margin-bottom: 0;
}

.vab-detail__figure {
  margin: 0;
}

.vab-detail__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg, 8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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


/* ============================================
   VAB-TRIO — Three portrait images side by side
   For showing three skirt variants
   ============================================ */
.vab-trio {
  max-width: 800px;
  margin: var(--space-2xl) auto;
}

.vab-trio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.vab-trio__item {
  text-align: center;
}

.vab-trio__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg, 8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.vab-trio__caption {
  margin-top: var(--space-sm);
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #888);
}

.vab-trio__caption em {
  font-style: italic;
  color: var(--color-text-secondary, #4a4a4a);
}

.vab-trio > figcaption {
  margin-top: var(--space-md);
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #888);
  text-align: center;
}


/* ============================================
   VAB-FACT — Craft technique callout
   For whitework explanation, historical notes
   ============================================ */
.vab-fact {
  position: relative;
  max-width: 680px;
  margin: var(--space-2xl) auto;
  padding: var(--space-xl) calc(var(--space-xl) + 3rem) var(--space-xl) calc(var(--space-xl) + 4px);
  background: linear-gradient(135deg, rgba(139, 53, 66, 0.06) 0%, rgba(139, 53, 66, 0.02) 100%);
  border-left: 4px solid var(--art-accent);
  border-radius: 0 var(--radius-lg, 8px) var(--radius-lg, 8px) 0;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--color-text-primary, #1a1a1a);
}

.vab-fact__title {
  display: block;
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--art-accent);
  margin-bottom: var(--space-sm);
}

.vab-fact p {
  margin: 0;
}

.vab-fact::before {
  content: attr(data-emoji);
  position: absolute;
  top: 50%;
  right: var(--space-md);
  transform: translateY(-50%);
  font-size: 2.2rem;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  opacity: 0.58;
  filter: saturate(1.25) contrast(1.08) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}


/* ============================================
   VAB-GARMENTS — Compact prose for multiple items
   Slightly indented, for listing several garment
   pieces without individual images
   ============================================ */
.vab-garments {
  max-width: 680px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg) var(--space-xl);
  background: rgba(139, 53, 66, 0.03);
  border-radius: var(--radius-lg, 8px);
}

.vab-garments__item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(139, 53, 66, 0.08);
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-base, 1rem);
  line-height: 1.7;
  color: var(--color-text-secondary, #4a4a4a);
}

.vab-garments__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vab-garments__item:first-child {
  padding-top: 0;
}

.vab-garments__label {
  font-weight: 700;
  color: var(--color-text-primary, #1a1a1a);
}


/* ── Dark section atmosphere — warm glow ── */
.art-section--dark {
  background: linear-gradient(180deg, #0c0809 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(139, 53, 66, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(139, 53, 66, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

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


/* ── Outlink — styled external link ── */
.vab-outlink {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-sm, 0.875rem);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
  border-top: 1px solid rgba(139, 53, 66, 0.2);
}

.vab-outlink a {
  color: #c4828e;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 130, 142, 0.3);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.vab-outlink a:hover {
  color: #dca0aa;
  border-color: rgba(220, 160, 170, 0.6);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .art-hero__media img {
    object-position: center 25%;
  }

  .vab-detail {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .vab-detail--reverse {
    direction: ltr;
  }

  .vab-trio__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .vab-fact {
    margin-left: var(--space-md);
    margin-right: var(--space-md);
    padding: var(--space-lg) calc(var(--space-lg) + 2.25rem) var(--space-lg) calc(var(--space-lg) + 4px);
  }

  .vab-fact::before {
    font-size: 1.7rem;
    right: var(--space-sm);
  }

  .vab-garments {
    margin-left: var(--space-md);
    margin-right: var(--space-md);
  }
}

@media (max-width: 480px) {
  .vab-trio__grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
}


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