/* VoteFeed — election news. Image-first. Deep ink, one red. */
:root {
  --ink: #101218;
  --ink-soft: #2c3038;
  --paper: #f6f3ed;
  --paper-2: #efebe3;
  --rule: #d8d2c6;
  --muted: #6a665e;
  --accent: #c0182c;
  --accent-ink: #9d1424;
  --mast: #0a0b0e;
  --mast-line: #23252c;
  --cream: #f4efe6;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 80;
}

/* ——— Masthead ——— */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mast);
  color: #ece8e0;
  border-bottom: 1px solid var(--mast-line);
}
.mast-inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.mark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: #f4f0e8;
  line-height: 1;
}
.brand-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a958b;
  white-space: nowrap;
}
.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
}
.mast nav a {
  color: #d4cec4;
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
}
.mast nav a:hover,
.mast nav a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0a0b0e;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,12,0.18) 0%, rgba(8,9,12,0.12) 38%, rgba(8,9,12,0.78) 100%),
    linear-gradient(90deg, rgba(8,9,12,0.45) 0%, rgba(8,9,12,0.05) 55%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 74rem;
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.4rem 3.2rem;
  color: #f6f2ea;
}
.hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8c4c8;
  font-weight: 600;
  margin: 0 0 0.7rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
  max-width: 16ch;
  color: #fff;
}
.hero-dek {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.45;
  max-width: 34rem;
  margin: 0;
  color: #ddd6c8;
}

/* ——— Shared ——— */
.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ——— Featured pair ——— */
.featured-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.15rem;
  padding: 1.6rem 1.4rem 0.4rem;
  max-width: 74rem;
  margin: 0 auto;
}
.feat {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  min-height: 26rem;
  overflow: hidden;
  background: #111;
}
.feat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.feat:hover img { transform: scale(1.04); }
.feat-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,12,0.05) 20%, rgba(8,9,12,0.78) 100%);
}
.feat-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.5rem 1.45rem;
  z-index: 2;
}
.feat .kicker { color: #f0b8be; }
.feat h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
  color: #fff;
}
.feat .dek {
  margin: 0;
  color: #ddd6c8;
  font-size: 0.98rem;
  line-height: 1.4;
  max-width: 36rem;
}

/* ——— Story grid ——— */
.desk {
  padding: 2.6rem 0 0.6rem;
}
.desk-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--ink);
}
.desk-head h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.desk-head span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem 1.2rem;
  padding-bottom: 2rem;
}
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1c22;
  margin-bottom: 0.85rem;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-photo img { transform: scale(1.05); }
.card:hover h3 { color: var(--accent); }
.card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.card .dek {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0 0 0.65rem;
  flex: 1;
}

/* ——— Mid-page photo strip ——— */
.photo-strip {
  position: relative;
  min-height: 28rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0b0e;
  margin: 0.4rem 0 0;
}
.photo-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.strip-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,9,12,0.82) 0%, rgba(8,9,12,0.55) 46%, rgba(8,9,12,0.18) 100%);
}
.strip-copy {
  position: relative;
  z-index: 2;
  max-width: 74rem;
  width: 100%;
  margin: 0 auto;
  padding: 3.4rem 1.4rem;
  color: #f4efe6;
}
.strip-copy .kicker { color: #f0b8be; }
.strip-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
  max-width: 18ch;
  color: #fff;
}
.strip-copy p {
  max-width: 30rem;
  margin: 0 0 1.15rem;
  color: #ddd6c8;
  font-size: 1.05rem;
}
.strip-copy a {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
}
.strip-copy a:hover { color: #f0b8be; }

/* ——— Footer ——— */
.site-foot {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-foot a { color: var(--muted); }

/* ——— Inner story pages ——— */
.story-hero {
  position: relative;
  min-height: 48vh;
  overflow: hidden;
  background: #0a0b0e;
}
.story-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,12,0.12) 30%, rgba(8,9,12,0.55) 100%);
}
.story {
  padding: 2.4rem 0 3.2rem;
  max-width: 40.5rem;
}
.story h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0 0 0.75rem;
}
.story .dek {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  line-height: 1.45;
}
.story .meta {
  padding-bottom: 1.15rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.story p { margin: 0 0 1.05rem; }
.story h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.01em;
}
.story ul, .story ol { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.story li { margin: 0 0 0.4rem; }
.story .endnote {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
}
.related {
  border-top: 1px solid var(--rule);
  padding: 1.8rem 0 2.6rem;
}
.related h2 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.6rem;
}
.related a {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--ink);
  text-decoration: none;
}
.related a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
  .featured-row { grid-template-columns: 1fr; }
  .feat { min-height: 22rem; }
}
@media (max-width: 640px) {
  .story-grid { grid-template-columns: 1fr; }
  .related ul { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .hero-copy { padding-top: 5.5rem; }
  .brand-meta { display: none; }
  .feat { min-height: 20rem; }
  .photo-strip { min-height: 24rem; }
  .strip-shade {
    background: linear-gradient(180deg, rgba(8,9,12,0.2) 10%, rgba(8,9,12,0.82) 100%);
  }
}
