:root {
  --ink: #101014;
  --paper: #f7f1e8;
  --muted: #726c64;
  --line: rgba(16, 16, 20, 0.14);
  --red: #e84b3c;
  --gold: #f1c84b;
  --blue: #2368d7;
  --green: #237d5c;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 16, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(16, 16, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 20, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ink);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #343029;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(16, 16, 20, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(350px, 0.78fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  min-height: calc(100vh - 82px);
  padding: clamp(28px, 6vw, 76px) clamp(18px, 4vw, 56px) 36px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 910px;
  margin-bottom: 22px;
  font-size: clamp(3.45rem, 8.3vw, 7.7rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.94;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.7vw, 5.2rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.04rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 780px;
  color: #2f2b26;
  font-size: clamp(1.08rem, 1.75vw, 1.36rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 6px 6px 0 var(--ink);
}

.button.secondary {
  background: transparent;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin: auto 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-facts div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 6px 0 0;
  font-size: clamp(1.12rem, 1.7vw, 1.72rem);
  font-weight: 950;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 75, 60, 0.18), transparent 38%),
    linear-gradient(45deg, rgba(35, 104, 215, 0.16), transparent 42%),
    #ffffff;
  box-shadow: var(--shadow);
}

#news-canvas {
  width: min(100%, 720px);
  aspect-ratio: 1180 / 980;
}

.visual-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(16, 16, 20, 0.14);
  border-radius: 8px;
  background: rgba(247, 241, 232, 0.84);
  backdrop-filter: blur(12px);
}

.visual-caption span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 clamp(18px, 4vw, 56px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.signal-strip article {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.signal-strip article:last-child {
  border-right: 0;
}

.signal-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.signal-strip strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
}

.section {
  padding: clamp(60px, 9vw, 118px) clamp(18px, 4vw, 56px);
}

.two-column,
.city-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.prose,
.city-copy,
.story-grid p {
  color: #302c27;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
}

.prose p:last-child,
.city-copy p:last-child,
.story-grid p:last-child {
  margin-bottom: 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 0;
}

.details-grid article,
.story-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.card-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
}

.city-panel,
.story-section {
  background: #ffffff;
}

.city-board {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(rgba(16, 16, 20, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 20, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
}

.board-title {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.district {
  position: absolute;
  z-index: 2;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 950;
}

.district-one {
  top: 24%;
  left: 10%;
}

.district-two {
  top: 18%;
  right: 12%;
  background: rgba(241, 200, 75, 0.32);
}

.district-three {
  right: 15%;
  bottom: 22%;
  background: rgba(35, 104, 215, 0.14);
}

.district-four {
  bottom: 18%;
  left: 13%;
  background: rgba(232, 75, 60, 0.16);
}

.line {
  position: absolute;
  z-index: 1;
  border-top: 4px dashed rgba(16, 16, 20, 0.32);
}

.line-one {
  top: 33%;
  left: 36%;
  width: 30%;
}

.line-two {
  top: 53%;
  right: 20%;
  width: 25%;
  transform: rotate(90deg);
}

.line-three {
  bottom: 29%;
  left: 34%;
  width: 32%;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 0.18em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.story-section h2 {
  max-width: 980px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.story-grid span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.faq h2 {
  max-width: 980px;
}

details {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 900;
}

details p {
  max-width: 820px;
  padding-bottom: 22px;
  color: #343029;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: #403a32;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

#favicon-canvas {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
}

@media (max-width: 1050px) {
  .hero,
  .two-column,
  .city-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 460px;
  }

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

  .signal-strip article:nth-child(2) {
    border-right: 0;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.95rem, 14vw, 5.3rem);
  }

  .hero-facts,
  .signal-strip,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .signal-strip article:last-child {
    border-bottom: 0;
  }

  .city-board {
    min-height: 560px;
  }

  .district {
    left: 12%;
    right: auto;
    width: 70%;
  }

  .district-one {
    top: 16%;
  }

  .district-two {
    top: 34%;
  }

  .district-three {
    top: 52%;
    bottom: auto;
  }

  .district-four {
    bottom: 12%;
  }

  .line {
    display: none;
  }

  .button {
    width: 100%;
  }
}
