/* ===== Base (NYT-ish clean) ===== */
:root {
  --text: #111;
  --muted: #444;
  --light: #777;
  --rule: #e6e6e6;
  --bg: #ffffff;
  --max-text: 760px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

.page {
  padding: 2rem 1rem 3rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("images/hero.jpg"); /* <-- put your hero image here */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* subtle parallax-like feel */
  background-attachment: fixed;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .hero { height: 70vh; }
  .hero-image { background-attachment: scroll; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 35%,
    rgba(0,0,0,0.20) 60%,
    rgba(0,0,0,0.10) 100%
  );
}

.hero-text {
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 10vh;
  max-width: 980px;
  color: #fff;
  transition: opacity 0.12s linear, transform 0.12s linear;
}

.hero-kicker {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.6rem;
  opacity: 0.95;
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 0.8rem;
  font-weight: 700;
}

.hero-deck {
  font-size: 1.05rem;
  margin: 0 0 0.9rem;
  max-width: 60ch;
  opacity: 0.95;
}

.hero-byline {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 0.92rem;
  margin: 0;
  opacity: 0.92;
}

/* ===== Article ===== */
.article {
  max-width: var(--max-text);
  margin: 0 auto;
}

.article-header {
  margin: 0 0 1.6rem;
}

.headline {
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.dateline {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--light);
  font-size: 0.9rem;
  margin: 0 0 0.9rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

/* Paragraph spacing */
article p {
  font-size: 1.02rem;
  margin: 1rem 0;
}

/* ===== Graphics ===== */
.graphic-block {
  margin: 2rem 0 2.2rem;
}

.graphic-title {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: #111;
}

.graphic-img {
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  background: #fff;
}

.graphic-caption {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 0.88rem;
  color: var(--light);
  margin: 0.65rem 0 0;
  line-height: 1.5;
}

/* Make graphic blocks wider than text column */
.graphic-block.wide {
  width: min(1100px, 96vw);
  margin-left: 50%;
  transform: translateX(-50%);
}

/* ===== Interactive map iframe ===== */
.iframe-wrap {
  width: 100%;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.iframe-wrap iframe {
  width: 100%;
  height: 580px; /* adjust if needed */
  border: 0;
  display: block;
}

/* ===== Footer & rules ===== */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.2rem 0 1.3rem;
}

.story-footer .footnote {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--light);
  margin: 0;
}

/* ===== Notes area ===== */
.notes {
  margin: 1.2rem 0 3rem;
}

.notes-title {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.notes-box {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem 1.1rem;
  background: #fafafa;
}

.notes-box ul {
  margin: 0;
  padding-left: 1.2rem;
}

.closing {
  margin-bottom: 0;
}

/* ===== Fixed masthead (NYT-style) ===== */

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 44px;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;

  z-index: 9999; /* always on top */
}

.masthead-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.masthead-title {
  font-family:
    "NYT Cheltenham",
    "Cheltenham",
    "Georgia",
    "Times New Roman",
    Times,
    serif;

  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111;
}

/* Push page content down so it doesn't hide under the masthead */
.hero {
  margin-top: 44px;
}
