/* ============================================
   THRIVING THEATER — Editorial Article
   Culture · Nordøyane
   ============================================ */

/* ============================================
   HERO — Overrides on top of article-shared.css
   ============================================ */
.art-hero__media img {
  object-position: center 20%;
  animation: thrHeroKB 30s ease-out forwards;
}

@keyframes thrHeroKB {
  0%   { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.art-hero__overlay {
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.2) 0%,
      rgba(10, 22, 40, 0) 20%,
      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%
    );
}

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

.art-hero__title {
  margin-bottom: var(--space-sm);
}

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

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

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

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

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

.thr-author__name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-md, 1rem);
  color: var(--color-gold, #d4a574);
  font-weight: 600;
}

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

.thr-share__label {
  font-size: var(--text-xs, 0.75rem);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: var(--space-xs);
}

.thr-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0;
  font: inherit;
}

.thr-share__btn:hover {
  border-color: var(--color-gold, #d4a574);
  color: var(--color-gold, #d4a574);
  transform: translateY(-2px);
}

.thr-share__btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   SECTIONS — Shared layout
   ============================================ */
.thr-section {
  padding: clamp(60px, 8vh, 120px) var(--space-xl);
}

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

.thr-section--cream {
  background: var(--color-cream, #f1ebe3);
}

/* Rounded transition from midnight author bar into intro */
#intro {
  position: relative;
  padding-top: clamp(80px, 10vh, 140px);
}

#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%);
}

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

.thr-section--dark {
  background: var(--color-midnight, #0a1628);
}

/* ============================================
   HEADINGS
   ============================================ */
.thr-heading {
  margin-bottom: var(--space-2xl);
}

.thr-heading h2 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-midnight, #0a1628);
  position: relative;
  padding-bottom: var(--space-lg);
}

.thr-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold, #d4a574), transparent);
  border-radius: 2px;
}

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

.thr-heading--light h2::after {
  background: linear-gradient(90deg, var(--color-gold, #d4a574), transparent);
}

/* ============================================
   PROSE
   ============================================ */
.thr-prose {
  margin-bottom: var(--space-xl);
}

.thr-prose p {
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.9;
  color: var(--color-midnight, #0a1628);
  margin-bottom: var(--space-lg);
}

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

.thr-prose a {
  color: var(--color-pine, #3d5a47);
  text-decoration: underline;
  text-decoration-color: var(--color-aurora, #7dd3c0);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}

.thr-prose a:hover {
  text-decoration-color: var(--color-gold, #d4a574);
}

.thr-prose--light p {
  color: rgba(255, 255, 255, 0.85);
}

.thr-prose--light a {
  color: var(--color-aurora, #7dd3c0);
  text-decoration-color: rgba(125, 211, 192, 0.4);
}

.thr-prose--light a:hover {
  text-decoration-color: var(--color-gold, #d4a574);
}

/* ============================================
   LEAD PARAGRAPH
   ============================================ */
.thr-lead {
  position: relative;
  font-size: var(--text-xl, 1.25rem);
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-midnight, #0a1628);
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--color-mist, #e8e5e0);
}

.thr-lead a {
  color: var(--color-pine, #3d5a47);
  text-decoration: underline;
  text-decoration-color: var(--color-aurora, #7dd3c0);
  text-underline-offset: 3px;
}

.thr-lead::first-letter {
  font-family: 'Cormorant Garamond', var(--font-display), serif;
  font-weight: 600;
  color: var(--color-gold, #d4a574);
  initial-letter: 2;
  -webkit-initial-letter: 2;
  margin-right: 0.05em;
}

/* ============================================
   BLOCKQUOTES
   ============================================ */
.thr-quote {
  position: relative;
  margin: var(--space-xl) 0;
  padding: var(--space-xl) var(--space-2xl) var(--space-xl) calc(var(--space-2xl) + 1.4rem);
  border-left: 3px solid var(--color-gold, #d4a574);
  background: rgba(212, 165, 116, 0.06);
  border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0;
}

.thr-quote::before {
  content: '\201C';
  position: absolute;
  left: var(--space-lg);
  top: 0.9rem;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 2rem;
  line-height: 1;
  color: rgba(212, 165, 116, 0.85);
}

.thr-quote p {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.25rem, 1.35vw, 1.45rem);
  font-style: italic;
  line-height: 1.72;
  color: var(--color-midnight, #0a1628);
  margin: 0;
}

.thr-quote--light {
  border-left-color: var(--color-gold, #d4a574);
  background: rgba(212, 165, 116, 0.08);
}

.thr-quote--light p {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   PULLQUOTE — Large decorative
   ============================================ */
.thr-pullquote {
  position: relative;
  margin: var(--space-3xl) 0;
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(125, 211, 192, 0.06) 0%, transparent 60%);
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

.thr-pullquote::before {
  content: '\201C';
  position: absolute;
  top: -0.15em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 8rem;
  line-height: 1;
  color: var(--color-gold, #d4a574);
  opacity: 0.2;
  pointer-events: none;
}

.thr-pullquote p {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--space-lg);
}

.thr-pullquote cite {
  display: block;
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-style: normal;
  color: var(--color-gold, #d4a574);
  letter-spacing: 0.05em;
}

/* ============================================
   FIGURES
   ============================================ */
.thr-figure {
  margin: var(--space-2xl) 0;
  overflow: hidden;
  border-radius: var(--radius-lg, 12px);
}

.thr-figure__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg, 12px);
}

.thr-figure__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg, 12px);
  transition: transform 8s ease-out;
}

.thr-figure.is-visible .thr-figure__img-wrap img {
  transform: scale(1.03);
}

.thr-figure figcaption {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  font-size: var(--text-sm, 0.875rem);
  font-style: italic;
  color: rgba(0, 0, 0, 0.5);
}

.thr-section--dark .thr-figure figcaption {
  color: rgba(255, 255, 255, 0.45);
}

/* Wide figures — break out of content column */
.thr-figure--wide {
  margin-left: calc(-1 * clamp(20px, 5vw, 80px));
  margin-right: calc(-1 * clamp(20px, 5vw, 80px));
}

/* Closing figure — full width */
.thr-figure--closing {
  border-radius: 0;
  margin: 0;
}

.thr-figure--closing .thr-figure__img-wrap {
  border-radius: 0;
}

.thr-figure--closing .thr-figure__img-wrap img {
  border-radius: 0;
  max-height: 60vh;
  object-fit: cover;
}

.thr-figure--closing figcaption {
  padding: var(--space-md) var(--space-xl);
}

/* ============================================
   CALLOUT BOX
   ============================================ */
.thr-callout {
  margin: var(--space-2xl) 0;
  padding: var(--space-lg) var(--space-2xl);
  background: linear-gradient(135deg, rgba(61, 90, 71, 0.06), rgba(125, 211, 192, 0.08));
  border: 1px solid rgba(125, 211, 192, 0.25);
  border-radius: var(--radius-lg, 12px);
  text-align: center;
}

.thr-callout p {
  font-size: var(--text-md, 1rem);
  color: var(--color-midnight, #0a1628);
  margin: 0;
}

.thr-callout a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-pine, #3d5a47);
  font-weight: 600;
  text-decoration: none;
  padding: var(--space-xs) var(--space-md);
  background: rgba(125, 211, 192, 0.15);
  border-radius: var(--radius-full, 9999px);
  transition: all 0.3s ease;
}

.thr-callout a:hover {
  background: rgba(125, 211, 192, 0.25);
  transform: translateY(-1px);
}

.thr-village-card {
  margin: var(--space-2xl) auto;
}

/* ============================================
   CLOSING + CTA
   ============================================ */
.thr-closing {
  background: var(--color-cream, #f1ebe3);
  text-align: center;
}

.thr-closing__inner {
  padding: var(--space-2xl) var(--space-xl) var(--space-3xl);
}

.thr-closing__text {
  font-size: var(--text-md, 1rem);
  color: var(--color-midnight, #0a1628);
  opacity: 0.75;
  max-width: 500px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.thr-closing__text a {
  color: var(--color-pine, #3d5a47);
  text-decoration: underline;
  text-decoration-color: var(--color-aurora, #7dd3c0);
  text-underline-offset: 3px;
}

.thr-closing__text a:hover {
  text-decoration-color: var(--color-gold, #d4a574);
}

.thr-closing__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-lg, 1.125rem);
  font-weight: 600;
  color: var(--color-midnight, #0a1628);
  background: linear-gradient(135deg, var(--color-gold, #d4a574), #c49a6c);
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
}

.thr-closing__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.5);
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
  .art-hero__content {
    padding-left: var(--space-xl);
    padding-bottom: var(--space-3xl);
  }

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

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

  .thr-section {
    padding: clamp(40px, 6vh, 80px) var(--space-lg);
  }

  .thr-figure--wide {
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
  }

  .thr-quote {
    padding: var(--space-md) var(--space-lg);
  }

  .thr-quote::before {
    left: var(--space-sm);
    top: 0.7rem;
    font-size: 1.6rem;
  }

  .thr-pullquote {
    padding: var(--space-2xl) var(--space-lg);
  }

  .thr-pullquote::before {
    font-size: 5rem;
  }

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

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

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

  .art-hero__title {
    font-size: 2rem;
  }

  .art-hero__subtitle {
    font-size: 1rem;
  }

  .art-hero__meta {
    gap: var(--space-sm);
  }

  .thr-section {
    padding: var(--space-2xl) var(--space-md);
  }

  .thr-lead {
    font-size: 1.15rem;
    text-align: left;
  }

  .thr-lead::first-letter {
    font-size: 2.8em;
  }

  .thr-figure--wide {
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
  }

  .thr-quote {
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 1rem);
  }

  .thr-quote::before {
    left: 0.55rem;
    top: 0.65rem;
    font-size: 1.35rem;
  }

  .thr-pullquote p {
    font-size: 1.5rem;
  }

  .thr-closing__cta {
    font-size: var(--text-md, 1rem);
    padding: var(--space-md) var(--space-xl);
  }
}

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

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

  .thr-figure.is-visible .thr-figure__img-wrap img {
    transform: none;
  }
}
