/* The Metropolis Tribune — site styles */
:root {
  --navy: #043264;
  --navy-deep: #021c3a;
  --gold: #c4a35a;
  --gold-light: #e8d394;
  --red: #b23a34;
  --ink: #161616;
  --ink-soft: #3a3a3a;
  --paper: #f6f1e6;
  --paper-dark: #ece4d4;
  --rule: #1c1c1c;
  --serif: "Playfair Display", "Times New Roman", Times, serif;
  --masthead: "Cinzel", "Playfair Display", "Times New Roman", serif;
  --body: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

/* Top utility bar */
.topbar {
  background: var(--navy-deep);
  color: #f3ead3;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}
.topbar a { color: #f3ead3; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }

/* Masthead */
.masthead {
  text-align: center;
  padding: 1.15rem 0 0.7rem;
  border-bottom: 3px double var(--rule);
}
.masthead-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.masthead .globe { width: 72px; height: 72px; flex: 0 0 72px; }
.masthead h1 {
  margin: 0;
  font-family: var(--masthead);
  font-weight: 700;
  font-size: clamp(1.65rem, 6.2vw, 4.15rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--navy);
}
.masthead h1 a { color: inherit; text-decoration: none; }
.motto {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.06em;
}
.dateline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.7rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  flex-wrap: wrap;
}
.dateline .center { margin-inline: auto; text-align: center; }

/* Navigation */
nav.sections {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
nav.sections ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0.55rem 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav.sections a { color: var(--ink); text-decoration: none; }
nav.sections a:hover,
nav.sections a[aria-current="page"] { color: var(--red); }

/* Front page grid */
.front {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.85fr;
  gap: 1.5rem;
  padding: 1.5rem 0 2.5rem;
}
.lede { border-right: 1px solid #c9c1b0; padding-right: 1.5rem; }
.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.35rem;
}
h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 0.45rem; }
.lede h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
.lede h2 a, .story h3 a, .rail-story h3 a { color: inherit; text-decoration: none; }
.lede h2 a:hover, .story h3 a:hover, .rail-story h3 a:hover { color: var(--red); }
.deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}
.byline {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}
.lede-art {
  background: linear-gradient(160deg, #0a2a4a 0%, #1a4a6e 45%, #0d2238 100%);
  color: #f3ead3;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  position: relative;
  overflow: hidden;
}
.lede-art .globe { width: 160px; opacity: 0.95; }
.lede-art figcaption,
figure figcaption {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 0.4rem 0 0;
  font-style: italic;
}
.lede p, .story p, .article-body p {
  margin: 0 0 0.9rem;
}
.lede p:first-of-type::first-letter,
.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.3rem;
  float: left;
  line-height: 0.75;
  padding: 0.12rem 0.45rem 0 0;
  color: var(--navy);
}

.col-mid { border-right: 1px solid #c9c1b0; padding-right: 1.5rem; }
.story + .story {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid #c9c1b0;
}
.story h3 { font-size: 1.35rem; }

.rail h3 { font-size: 1.15rem; }
.rail-story + .rail-story {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #c9c1b0;
}
.rail-head {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--rule);
  padding: 0.35rem 0;
  margin: 0 0 0.9rem;
}

/* Article pages */
article.feature { max-width: 760px; margin: 0 auto; padding: 2rem 0 3.5rem; }
article.feature h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.article-body { font-size: 1.08rem; line-height: 1.7; }
.article-body p { margin: 0 0 1.1rem; }

/* Section index */
.section-page { padding: 1.75rem 0 3rem; }
.section-page > h2 {
  font-size: 2rem;
  border-bottom: 3px double var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 1.4rem;
}
.section-list { display: grid; gap: 1.25rem; }
.section-list .story h3 { font-size: 1.6rem; }

footer.site {
  background: var(--navy-deep);
  color: #f3ead3;
  padding: 1.75rem 0 2.25rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}
footer.site a { color: var(--gold-light); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .name {
  font-family: var(--masthead);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.4rem;
}
footer.site p { margin: 0.25rem 0; color: #d9d0b8; }

@media (max-width: 880px) {
  html { font-size: 19px; }
  .front {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .lede, .col-mid { border-right: 0; padding-right: 0; }
  .lede { padding-bottom: 1.25rem; border-bottom: 1px solid #c9c1b0; }
  .masthead .globe { width: 52px; height: 52px; flex-basis: 52px; }
  .dateline { justify-content: center; text-align: center; }
  .dateline span { width: 100%; }
}

/* Contribute — PayPal buttons from rollingwithdjadam.tv */
.contribute {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 234, 211, 0.25);
}
.contribute .label {
  font-family: var(--masthead);
  letter-spacing: 0.1em;
  margin: 0;
  color: #f3ead3;
  font-size: 0.95rem;
}
.contribute .note {
  flex: 1 1 100%;
  margin: 0;
  color: #d9d0b8;
  font-size: 0.88rem;
}
.btn-pay {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 1.15rem;
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-pay:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-pay.secondary {
  background: transparent;
  color: var(--gold-light);
  outline: 1px solid var(--gold);
}
.btn-pay.secondary:hover { background: var(--gold); color: var(--navy-deep); }
.contribute form { margin: 0; display: inline; }

.staff {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem 1.6rem;
  margin: 0.85rem 0 0.15rem;
}
.staff-card {
  margin: 0;
  width: 8.25rem;
  text-align: center;
}
.staff-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--navy);
  background: #1a1a1c;
}
.staff-card figcaption {
  margin: 0.4rem 0 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--ink);
}
.staff-card .role {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Byline with reporter mug, linking to their page */
.byline-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.65rem 0 1rem;
  font-family: var(--sans);
}
.byline-row img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--navy);
  flex: 0 0 56px;
}
.byline-row .by-name {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
}
.byline-row .by-name:hover { color: var(--red); }
.byline-row .by-role {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.byline-row .by-date {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Article page */
.article-head { max-width: 42rem; padding: 1.4rem 0 0.5rem; }
.article-head h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.12;
  margin: 0.2rem 0 0.5rem;
}
.article-body { max-width: 42rem; padding-bottom: 2.5rem; }
.article-body p { margin: 0 0 1rem; font-size: 1.05rem; }
.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.1rem;
  float: left;
  line-height: 0.85;
  padding: 0.08rem 0.4rem 0 0;
  color: var(--navy);
}

/* Reporter / newsroom pages */
.reporter-page { padding: 1.75rem 0 3rem; }
.reporter-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--rule);
}
.reporter-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--navy);
}
.reporter-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.35rem;
  line-height: 1.1;
}
.reporter-hero .role-line {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}
.reporter-hero .bio {
  font-size: 1.08rem;
  max-width: 36rem;
  margin: 0;
}
.story-list { list-style: none; margin: 0; padding: 0; }
.story-list h2 {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.85rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
}
.story-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid #d4cbb8;
}
.story-list .kicker { margin: 0 0 0.2rem; }
.story-list h3 { font-size: 1.28rem; margin: 0 0 0.25rem; }
.story-list h3 a { color: inherit; text-decoration: none; }
.story-list h3 a:hover { color: var(--red); }
.story-list .sum { margin: 0; color: var(--ink-soft); }

.newsroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 220px));
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
}
.newsroom-card { text-decoration: none; color: inherit; display: block; }
.newsroom-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--navy);
  margin-bottom: 0.55rem;
}
.newsroom-card h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}
.newsroom-card .role {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-page { padding: 1.25rem 0 3rem; }
.section-page > h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px double var(--rule);
}

@media (max-width: 720px) {
  .reporter-hero { grid-template-columns: 1fr; }
  .reporter-hero img { max-width: 220px; }
}


/* longer staff bios */
.reporter-hero {
  align-items: start;
}
.reporter-hero .role-line {
  letter-spacing: 0.06em;
  line-height: 1.35;
  max-width: 36rem;
}
.reporter-hero .bio {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  line-height: 1.55;
}
.reporter-hero .bio:last-child { margin-bottom: 0; }
.newsroom-card .role {
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: none;
  font-size: 0.88rem;
}
.byline-row .by-role {
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.3;
  font-size: 0.8rem;
}

.reporter-hero .bio a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.reporter-hero .bio a:hover { color: var(--red); }
