:root {
  --bg: #f5efe4;
  --surface: rgba(255, 252, 247, 0.8);
  --surface-strong: #fffaf1;
  --ink: #1f2430;
  --muted: #5b6170;
  --line: rgba(31, 36, 48, 0.12);
  --shadow: 0 24px 60px rgba(89, 63, 24, 0.14);
  --hero-a: #ffd682;
  --hero-b: #ff9f6b;
  --hero-c: #6cc5b3;
  --accent: #b8483a;
  --accent-deep: #7f2015;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Aptos", "Segoe UI Variable", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 130, 0.55), transparent 30%),
    radial-gradient(circle at top right, rgba(108, 197, 179, 0.45), transparent 28%),
    linear-gradient(180deg, #fff8ef 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 16px auto 48px;
}

.hero {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 214, 130, 0.9), rgba(255, 159, 107, 0.78) 45%, rgba(108, 197, 179, 0.82)),
    #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -35% auto;
  width: 420px;
  height: 420px;
  background: rgba(255, 250, 241, 0.26);
  border-radius: 38% 62% 47% 53%;
  filter: blur(2px);
}

.topbar,
.hero-grid,
.section,
.overview-grid,
.candidate-layout,
.sources-grid,
.issue-grid,
.articles-grid {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 4px 20px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar-links a {
  text-decoration: none;
  color: rgba(31, 36, 48, 0.78);
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.section,
.source-card,
.overview-card,
.issue-card,
.featured-article,
.selection-panel,
.candidate-table-wrap {
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 18px 10px 12px 4px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(31, 36, 48, 0.65);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.05;
}

h1 {
  max-width: 9ch;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.3rem;
}

.lead,
.section-copy,
.panel-note,
.source-card p,
.overview-card p,
.issue-card p,
.featured-article p,
.selection-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-ghost {
  border: 1px solid rgba(31, 36, 48, 0.14);
  background: rgba(255, 250, 241, 0.55);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.countdown-card,
.quick-facts,
.section,
.source-card,
.overview-card,
.issue-card,
.featured-article,
.selection-panel,
.candidate-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 40px rgba(91, 65, 27, 0.09);
}

.countdown-card {
  padding: 20px;
}

.panel-label {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(31, 36, 48, 0.56);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.countdown-block {
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.countdown-block strong {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.countdown-block span {
  color: rgba(31, 36, 48, 0.56);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.quick-facts div {
  padding: 16px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.quick-facts span {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
}

.quick-facts p {
  margin: 6px 0 0;
  color: rgba(31, 36, 48, 0.68);
}

.section {
  padding: 28px;
  margin-top: 20px;
}

.section-heading {
  margin-bottom: 24px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.overview-grid,
.issue-grid,
.articles-grid,
.sources-grid,
.history-grid,
.link-grid {
  display: grid;
  gap: 16px;
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-card,
.issue-card,
.source-card,
.history-card,
.link-card {
  padding: 20px;
}

.overview-card {
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: "";
  position: absolute;
  inset: auto -18px -36px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  opacity: 0.12;
  background: var(--card-accent, #6cc5b3);
}

.history-card,
.link-card {
  border: 1px solid rgba(31, 36, 48, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
}

.history-card strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  margin: 12px 0 8px;
}

.history-card p,
.link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card a {
  margin-top: auto;
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: none;
}

.link-card a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(31, 36, 48, 0.06);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.overview-meta,
.issue-tags,
.article-tags,
.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview-meta span,
.issue-tags span,
.article-tags span,
.featured-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 36, 48, 0.06);
  color: rgba(31, 36, 48, 0.74);
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(31, 36, 48, 0.06);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.filter-button.is-active {
  background: var(--filter-color, var(--ink));
  color: #fff;
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-1px);
}

.candidate-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 18px;
}

.candidate-table-wrap {
  overflow: hidden;
}

.candidate-table {
  width: 100%;
  border-collapse: collapse;
}

.candidate-table th,
.candidate-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.candidate-table thead th {
  color: rgba(31, 36, 48, 0.56);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.candidate-table tbody tr {
  border-top: 1px solid var(--line);
  transition: background 160ms ease;
}

.candidate-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.35);
}

.candidate-table td:first-child {
  width: 64px;
  font-weight: 800;
}

.candidate-table td:nth-child(2) {
  font-weight: 700;
}

.selection-panel {
  padding: 22px;
}

.party-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.party-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--party-color, var(--accent));
}

.party-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.party-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.party-list li strong {
  display: block;
}

.issue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.issue-card {
  min-height: 100%;
}

.issue-card .source-note,
.selection-panel .source-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: rgba(31, 36, 48, 0.54);
  font-size: 0.92rem;
}

.spotlight .featured-meta {
  margin: 0;
  color: rgba(31, 36, 48, 0.6);
  font-weight: 700;
}

.featured-article {
  padding: 28px;
}

.featured-article h3 {
  margin-bottom: 12px;
}

.featured-link,
.source-card a,
.article-card a {
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: none;
}

.featured-link:hover,
.source-card a:hover,
.article-card a:hover {
  text-decoration: underline;
}

.articles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(31, 36, 48, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
}

.article-card h3 {
  font-size: 1.16rem;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(31, 36, 48, 0.58);
  font-size: 0.9rem;
  font-weight: 700;
}

.search-field input,
.select-wrap select {
  min-width: 260px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(31, 36, 48, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1080px) {
  .hero-grid,
  .candidate-layout,
  .overview-grid,
  .issue-grid,
  .articles-grid,
  .sources-grid,
  .history-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .split-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    margin-top: 10px;
  }

  .hero {
    padding: 12px;
    border-radius: 28px;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 20px;
  }

  .candidate-table th:nth-child(4),
  .candidate-table td:nth-child(4) {
    display: none;
  }
}
