/* ============================================
   Article page styles
   ============================================ */

.article-page {
  padding-top: 56px;
}

.article-hero {
  padding: clamp(80px, 14vw, 180px) var(--page-pad) clamp(40px, 6vw, 80px);
  max-width: 840px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.article-meta-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--grey-300);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.article-meta-date {
  font-size: 11px;
  font-weight: 400;
  color: var(--grey-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.article-hero-subtitle {
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 400;
  color: var(--grey-500);
  line-height: 1.6;
  max-width: 560px;
}

/* ============================================
   Article body
   ============================================ */

.article-body-content {
  padding: clamp(40px, 6vw, 80px) var(--page-pad) clamp(60px, 10vw, 120px);
  max-width: 720px;
}

.article-body-content .prose {
  font-size: 15px;
  line-height: 1.85;
  color: var(--grey-700);
  margin-bottom: 24px;
  max-width: none;
}

.article-body-content .prose:last-of-type {
  margin-bottom: 0;
}

.article-heading {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-top: 56px;
  margin-bottom: 24px;
}

.article-back {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--grey-100);
}

.article-back a {
  font-size: 12px;
  font-weight: 400;
  color: var(--grey-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.article-back a:hover {
  color: var(--black);
}

/* ============================================
   Scroll-triggered annotations
   ============================================ */

.annotation-container {
  position: fixed;
  top: 50%;
  left: calc(720px + var(--page-pad) + 60px);
  transform: translateY(-50%);
  width: 220px;
  pointer-events: none;
  z-index: 10;
}

.annotation-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-300);
  margin-bottom: 16px;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.annotation-label.active {
  opacity: 1;
}

.annotation {
  position: absolute;
  top: 28px;
  left: 0;
  width: 100%;
  padding-left: 16px;
  border-left: 1px solid var(--grey-300);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.annotation.active {
  opacity: 1;
  transform: translateX(0);
}

.annotation-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--grey-500);
  line-height: 1.6;
}

@media (max-width: 1200px) {
  .annotation-container {
    display: none;
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .article-page {
    padding-top: 48px;
  }

  .article-hero {
    padding-top: clamp(60px, 10vw, 120px);
  }

  .article-hero-title {
    margin-bottom: 16px;
  }
}
