/* Divehook — article page styles. Requires base.css for tokens/nav/footer. */

/* ── Page layout ── */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 96px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 28px;
}
.back-link:hover { color: var(--flag); }

/* ── Article header ── */
.article-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

h1.article-title {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Optional secondary headline under .article-title (see maldives article) */
.article-subtitle {
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.article-deck {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 32px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  padding-bottom: 22px;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 32px;
}
.article-meta .author { color: var(--ink); font-weight: 600; }
.article-meta .sep { color: var(--line); }

/* ── Hero photo ── */
.hero-photo-wrap {
  margin-bottom: 40px;
}
.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}
.hero-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 10px;
}

/* ── Editor's note ── (optional, for pieces needing an upfront summary/caveat) */
.editors-note {
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.editors-note .note-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 8px;
  font-weight: 600;
}

/* ── Body text ── */
.article-body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 24px;
}

/* Optional plain sub-heading within a section (sits under a .section-label) */
.article-body h2 {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 32px;
}

/* ── Section labels ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 52px;
  margin-bottom: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.section-label:first-of-type { margin-top: 0; }

/* ── Bullet lists ── */
.article-body ul {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}
.article-body ul li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  padding: 10px 0 10px 26px;
  position: relative;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flag);
}

/* ── Ornament ── (optional centered divider between closing sections) */
.ornament {
  text-align: center;
  font-size: 20px;
  color: var(--line);
  margin: 52px 0 40px;
}

/* ── Inline photo row ── (2-3 photos side by side; pair with /assets/js/lightbox.js) */
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 32px;
}
.photo-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  display: block;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  cursor: zoom-in;
}

/* ── Lightbox ── (modal opened by /assets/js/lightbox.js) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 29, 54, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ── Source note ── (closing citations block) */
.source-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.source-note .source-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 10px;
}
.source-note ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.source-note ul li {
  padding: 4px 0;
}
.source-note a { color: var(--teal); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .article-wrap { padding: 40px 18px 72px; }
  .article-body p { font-size: 15.5px; }
  .article-body ul li { font-size: 15px; }

  .photo-row {
    grid-template-columns: 1fr 1fr;
  }
  .photo-row img:nth-child(3) {
    grid-column: 1 / -1;
  }
}
