/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --nga-yellow: #ffcc00;
  --ink: #111;
}

html, body {
  height: 100%;
}

body {
  background: #ffffff;
  font-family: "Libre Franklin", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden; /* no scrolling — cover always fits */
  padding: 24px;
}

/* ---------- Cover sizing: always fits viewport, classic 4:5 ratio ---------- */
.cover {
  aspect-ratio: 4 / 5;
  /* Pick the smaller of: 92% viewport width, or what fits 92% viewport height.
     Capped so the cover never gets absurdly huge on big monitors. */
  width: min(92vw, calc(92vh * 4 / 5), 720px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- The signature yellow frame — equal on all four sides ---------- */
.frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border: 14px solid var(--nga-yellow);
  overflow: hidden;
}

/* ---------- Hero photograph fills the entire frame ---------- */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}

/* Vignette: darken top + bottom so text overlays stay legible */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.15) 18%,
    transparent 35%,
    transparent 55%,
    rgba(0,0,0,0.45) 92%,
    rgba(0,0,0,0.6) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ---------- Masthead (wordmark INSIDE the frame, over the photo) ---------- */
.masthead {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  padding: 0 24px;
}

.wordmark {
  margin: 0;
  font-family: "Playfair Display", "Bodoni 72", "Didot", Georgia, serif;
  font-weight: 700;
  font-size: clamp(22px, 4.2vw, 44px);
  line-height: 1;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wordmark-line {
  display: block;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transform: scaleY(1.25);
  transform-origin: center bottom;
}
.wordmark-line--strong {
  letter-spacing: 0.03em;
}

.masthead-rule {
  width: 28%;
  height: 1px;
  background: rgba(255,255,255,0.55);
  margin: 10px auto 0;
}

/* ---------- Cover lines (teaser text overlaid on the photo) ---------- */
.cover-lines {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 78px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.cover-line {
  margin: 0 0 8px;
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 1.6vw, 15px);
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.cover-line--kicker {
  font-family: "Libre Franklin", sans-serif;
  font-weight: 700;
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nga-yellow);
  margin-bottom: 8px;
}

.cover-line--lead {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(24px, 4.4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  max-width: 14ch;
  text-transform: none;
}
.cover-line--lead em {
  color: var(--nga-yellow);
  font-style: italic;
}

.cover-line--accent {
  color: var(--nga-yellow);
  font-weight: 700;
}

/* ---------- Bottom strip: issue date ---------- */
.cover-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 18px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: #fff;
}

.issue {
  text-align: right;
  font-family: "Playfair Display", serif;
  line-height: 1;
}
.issue-month {
  font-weight: 900;
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 0.05em;
}
.issue-year {
  font-weight: 700;
  font-size: clamp(11px, 1.4vw, 14px);
  opacity: 0.9;
  margin-top: 4px;
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .frame { border-width: 10px; }
  .cover-lines { left: 14px; right: 14px; bottom: 70px; }
  .cover-footer { padding: 8px 12px 10px; }
}
