:root {
  color-scheme: light;
  --navy: #082f49;
  --teal: #176d69;
  --paper: #fbf8ef;
  --ink: #172f3e;
  --muted: #596b73;
  --line: #dcded7;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { color: var(--navy); font-family: var(--serif); font-weight: 400; }
h1 { margin-bottom: 30px; font-size: clamp(3.6rem, 7vw, 6rem); line-height: 1.06; letter-spacing: -.045em; }
h2 { max-width: 780px; margin-bottom: 26px; font-size: clamp(2.35rem, 4vw, 3.55rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { margin-bottom: 22px; font-size: clamp(1.65rem, 2.3vw, 2rem); line-height: 1.3; letter-spacing: -.015em; }
p { margin-bottom: 25px; }
:focus-visible { outline: 3px solid #9a7027; outline-offset: 6px; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 12px 18px; transform: translateY(-200%); color: white; background: var(--navy); }
.skip-link:focus { transform: none; }
section[id] { scroll-margin-top: 45px; }
.section-shell { width: min(1080px, calc(100% - 80px)); margin-inline: auto; }
.demo-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 30px; }
.demo-header img { width: 220px; height: auto; }
.site-link { font-size: .78rem; color: var(--muted); }
.site-link span { margin-left: 10px; }
.site-link:hover { color: var(--teal); }
.demo-opening { padding-block: 110px 130px; }
.eyebrow, .place-label { margin-bottom: 24px; color: #80642e; font-size: .68rem; font-weight: 750; letter-spacing: .13em; line-height: 1.6; text-transform: uppercase; }
.opening-description { max-width: 720px; color: var(--muted); font-size: 1.2rem; line-height: 1.9; }
.tour-link { display: inline-flex; align-items: center; gap: 28px; min-height: 44px; margin-top: 12px; border-bottom: 1px solid #9cad9f; color: var(--teal); font-size: .9rem; font-weight: 600; }
.tour-link:hover { border-color: var(--teal); }
.idea-section { border-top: 1px solid var(--line); padding-block: 110px 120px; }
.idea-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 12%; align-items: center; scroll-margin-top: 32px; }
.idea-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1rem; }
.question-links { list-style: none; margin: 0 0 32px; padding: 0; }
.question-links a { display: inline-flex; gap: 18px; align-items: baseline; padding-block: 6px; color: var(--teal); font-size: 1rem; }
.question-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.question-links span { font-size: .8rem; color: #98a699; }
.idea-copy .idea-invitation { margin: 34px 0 0; }
.idea-invitation strong { color: var(--ink); font-weight: 600; }
.idea-invitation a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.idea-invitation a:hover { color: var(--navy); }
.page-network { min-width: 0; margin: 0; }
.page-network figcaption { margin-bottom: 28px; color: var(--muted); font-size: .73rem; }
.network-diagram { display: block; width: 100%; height: auto; overflow: visible; }
.network-connections { stroke: #c3cfc1; stroke-width: 1.2; }
.network-pulses { stroke: #b39450; stroke-width: 3; stroke-linecap: round; }
.network-pulses use { stroke-dasharray: 7 193; stroke-dashoffset: 10; opacity: 0; }
.network-pulses use.is-active { opacity: 1; }
.network-box { fill: #fffdf8; stroke: #b6c5b8; stroke-width: 1.2; transition: fill .35s ease, stroke .35s ease; }
.network-node.is-receiving .network-box { fill: #e9efe3; stroke: #789b84; }
.network-fold { fill: #ece9d9; stroke: #b6c5b8; stroke-width: 1; }
.network-node text { fill: var(--navy); font: 400 21px var(--serif); text-anchor: middle; }
.network-toggle { display: block; margin: 10px 0 0 auto; min-height: 36px; border: 0; padding: 5px 0 5px 14px; background: transparent; color: #728075; font-size: .68rem; cursor: pointer; }
.network-toggle[hidden] { display: none; }
.network-toggle:hover { color: var(--teal); }
.page-network > p { margin: 42px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.9; }
.page-network strong { font-weight: 500; color: var(--teal); }
.question-section { padding-block: 110px 115px; border-top: 1px solid var(--line); }
.section-intro { max-width: 820px; margin-bottom: 70px; }
.section-intro > p { max-width: 690px; margin: 28px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.9; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
.example-card { display: flex; flex-direction: column; min-width: 0; }
.example-copy { padding-bottom: 34px; }
.place-label { margin-bottom: 18px; color: var(--teal); }
.example-copy > p:not(.place-label):not(.status-label) { margin: 0; color: var(--muted); font-size: .95rem; }
.status-label { margin: 18px 0 0; color: #817355; font-size: .75rem; font-style: italic; }
.existing-status { color: #65776e; }
.screenshot-slot { display: grid; place-items: center; min-height: 300px; margin: auto 0 0; border: 1px dashed #c5cfc5; padding: 40px; color: var(--navy); background: #f0f2eb; text-align: center; }
.screenshot-slot figcaption { display: grid; gap: 15px; max-width: 300px; }
.slot-label { color: #7a877c; font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; }
.screenshot-slot figcaption strong { font: 400 1.5rem/1.35 var(--serif); }
.screenshot-slot figcaption > span:last-child { color: #67776d; font-size: .75rem; line-height: 1.8; }
.atlas-tour { width: 100%; max-width: 340px; margin: auto 0 0; border: 1px solid #dce1d7; background: #f3f4ed; overflow: hidden; }
.atlas-tour > svg { display: block; width: 100%; height: auto; transition: opacity .35s ease; }
.atlas-scene { transition: opacity .6s ease; }
.atlas-insets { transition: opacity .5s ease; }
.atlas-context { fill: #e3e9dd; fill-rule: evenodd; stroke: #aabda7; stroke-width: .6; stroke-linejoin: round; }
.atlas-selected { fill: #e3e9dd; fill-rule: evenodd; stroke: #aabda7; stroke-width: .6; stroke-linejoin: round; transition: fill .3s ease, stroke .3s ease; }
.atlas-scene.is-highlighted .atlas-selected { fill: #d9ba70; stroke: #8b743e; stroke-width: 1; }
.atlas-controls { display: flex; align-items: center; justify-content: center; position: relative; min-height: 34px; }
.atlas-progress { display: flex; gap: 8px; padding-bottom: 6px; }
.atlas-progress i { width: 4px; height: 4px; border-radius: 50%; background: #ccd5c7; transition: background .3s; }
.atlas-progress i.is-current { background: #9b8250; }
.atlas-toggle { position: absolute; right: 7px; bottom: 3px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #71816b; cursor: pointer; }
.atlas-toggle[hidden] { display: none; }
.atlas-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.atlas-play-icon, .atlas-tour.is-paused .atlas-pause-icon { display: none; }
.atlas-tour.is-paused .atlas-play-icon { display: block; }
.example-bottom { display: flex; flex-direction: column; align-items: flex-start; padding-top: 29px; }
.button-link, .text-link { display: inline-flex; align-items: center; gap: 18px; max-width: 100%; min-height: 44px; color: var(--teal); font-size: .85rem; line-height: 1.7; }
.button-link { border-bottom: 1px solid #b4c2b4; padding-block: 7px; font-weight: 600; }
.button-link:hover, .text-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; }
.precinct-example-link { align-self: flex-start; margin-top: 12px; }
.precinct-copy-link { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.precinct-copy-link:hover { color: var(--navy); }
.action-note { max-width: 440px; margin: 17px 0; color: var(--muted); font-size: .75rem; line-height: 1.8; }
.example-bottom > :last-child { margin-bottom: 0; }
.section-takeaway { max-width: 750px; margin: 65px 0 0; color: #6d7b73; font-size: .85rem; line-height: 1.9; }
.representatives-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 64px 100px; align-items: start; }
.representatives-layout > .section-intro { margin-bottom: 0; }
.representatives-actions, .ballot-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.representatives-layout > .example-grid { grid-template-columns: minmax(0, 1fr); gap: 60px; }
.representatives-layout .example-copy { padding-bottom: 0; }
.representatives-layout > .section-takeaway { grid-column: 1 / -1; margin: 0; }
.ballot-layout { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); scroll-margin-top: 32px; }
.ballot-layout > .section-intro { grid-column: 2; grid-row: 1; }
.ballot-layout > .example-grid { grid-column: 1; grid-row: 1; }
.funding-intro, .funding-intro > p, .funding-intro h2 { max-width: none; }
.demo-race-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.demo-race-card { display: flex; flex-direction: column; min-width: 0; padding: 22px 16px 16px; border: 1px solid #bbcfbf; border-top: 4px solid #4d8b7b; border-radius: 6px; background: linear-gradient(155deg, #e7f0e5, #f5f6eb); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.demo-race-card:hover, .demo-race-card:focus-within { transform: translateY(-3px); border-color: #90ad9e; box-shadow: 0 12px 24px rgba(8, 47, 73, .09); }
.demo-race-card h3 { min-height: 3.75em; margin: 0 0 18px; color: #164d4b; font-size: 1.4rem; line-height: 1.25; letter-spacing: -.02em; }
.demo-race-card h3::after { content: ""; display: block; width: 30px; height: 3px; margin-top: 14px; background: #c5a653; }
.demo-race-description { min-height: 6.8em; margin: 0 0 24px; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.race-card-image { display: block; aspect-ratio: 1.45; margin-top: auto; overflow: hidden; border-radius: 3px; background: #e5ebe0; }
.race-portraits { display: grid; grid-template-columns: repeat(var(--portrait-count), minmax(0, 1fr)); width: 100%; height: 100%; gap: 2px; }
.race-portrait { display: block; position: relative; min-width: 0; height: 100%; overflow: hidden; }
.race-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.race-portrait > span { position: absolute; bottom: 0; left: 0; width: 100%; padding: 18px 4px 6px; color: white; background: linear-gradient(transparent, rgba(8, 33, 43, .8)); font-size: .59rem; font-weight: 500; line-height: 1.35; text-align: center; }
.race-page-shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.race-card-image.is-hybrid { display: grid; grid-template-rows: 65% 35%; gap: 3px; }
.race-card-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin-top: 15px; border-radius: 3px; padding: 9px 12px; background: var(--teal); color: #fffdf8; font-size: .78rem; font-weight: 600; }
.race-card-link:hover { background: #105451; }
.funding-next { margin-top: 46px; }
@media (max-width: 1100px) { .demo-race-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 600px) {
  .demo-race-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .demo-race-card h3, .demo-race-description { min-height: 0; }
  .race-card-image { aspect-ratio: 1.6; }
}
.pending-button { min-height: 44px; max-width: 100%; padding: 7px 0; border: 0; border-bottom: 1px dashed #c4c9bf; background: transparent; color: #7b8277; font-size: .85rem; line-height: 1.7; text-align: left; opacity: 1; cursor: default; }
.measure-section { border-top: 1px solid var(--line); padding-block: 115px; }
#measure, #whats-next { scroll-margin-top: 32px; }
.measure-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 80px; align-items: start; }
.measure-copy h2 { font-size: clamp(2.35rem, 3.5vw, 3.2rem); }
.measure-copy > p:not(.eyebrow):not(.status-label):not(.action-note) { color: var(--muted); font-size: .95rem; }
.measure-previews { display: grid; gap: 28px; width: 100%; max-width: 520px; }
.measure-preview { display: block; min-width: 0; overflow: hidden; border: 1px solid #c3d0c4; border-radius: 6px; background: #edf3e9; transition: transform .2s ease, box-shadow .2s ease; }
.measure-preview:hover, .measure-preview:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(8, 47, 73, .09); }
.measure-preview-images { display: grid; grid-template-columns: 104px minmax(0, 1fr); height: 154px; }
.demo-proposition-mark { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 14px 6px; background: var(--navy); color: #fffdf7; text-align: center; }
.demo-proposition-mark > span, .demo-proposition-mark small { color: #e2c681; font: 600 .58rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.demo-proposition-mark strong { font: 700 4rem/.95 var(--sans); letter-spacing: -.05em; }
.measure-photo { display: block; position: relative; min-width: 0; height: 154px; overflow: hidden; background: white; }
.measure-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.measure-photo-credit { position: absolute; right: 0; bottom: 0; left: 0; padding: 17px 7px 5px; color: white; background: linear-gradient(transparent, rgba(8, 33, 43, .8)); font-size: .5rem; line-height: 1.4; }
.measure-preview-title { margin: 0; padding: 16px 16px 0; color: var(--navy); font: 400 1.13rem/1.35 var(--serif); letter-spacing: -.01em; }
.measure-preview-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 48px; padding: 11px 16px; color: var(--teal); font-size: .8rem; font-weight: 600; }
.measure-next { grid-column: 1 / -1; }
.whats-next-section { padding-block: 95px; background: var(--navy); }
.whats-next-section h2 { margin: 0 0 36px; color: #fffdf7; }
.whats-next-copy { max-width: 780px; color: #dce7e6; font-size: .98rem; line-height: 1.9; }
.whats-next-copy ol { margin: 0 0 32px; padding-left: 24px; }
.whats-next-copy li { padding-left: 8px; margin-bottom: 18px; }
.whats-next-copy strong { color: #fffdf7; font-weight: 600; }
.whats-next-copy > :last-child { margin-bottom: 0; }
.demo-signature { margin-inline-start: 32px; }
.about-information { padding-block: 56px; }
.about-information strong { display: block; margin-bottom: 12px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.about-information p { max-width: 740px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.9; }
.demo-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 30px 40px; color: #6a7872; font-size: .75rem; }
.demo-footer a:hover { color: var(--teal); }
@media (max-width: 900px) {
  .representatives-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ballot-layout > .section-intro, .ballot-layout > .example-grid { grid-column: 1; grid-row: auto; }
  .example-grid { gap: 45px; }
  .idea-layout { gap: 8%; }
  .measure-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 700px) {
  .section-shell { width: calc(100% - 40px); }
  .demo-header { padding-block: 24px; gap: 18px; }
  .demo-header img { width: 165px; }
  .site-link { font-size: .72rem; text-align: right; line-height: 1.6; white-space: nowrap; }
  .site-link span { margin-left: 3px; }
  .demo-opening { padding-block: 78px 85px; }
  h1 { font-size: clamp(3.25rem, 12vw, 5rem); }
  .opening-description { font-size: 1.08rem; }
  .idea-section, .question-section, .measure-section { padding-block: 75px; }
  .idea-layout, .example-grid, .measure-layout { grid-template-columns: minmax(0, 1fr); gap: 60px; }
  .page-network { max-width: 450px; }
  .page-network > p { margin-top: 30px; }
  .section-intro { margin-bottom: 48px; }
  .section-intro > p { font-size: 1rem; }
  .example-grid { gap: 70px; }
  .example-copy { padding-bottom: 28px; }
  .example-bottom { padding-top: 24px; }
  .screenshot-slot { min-height: 255px; padding: 30px; }
  .section-takeaway { margin-top: 45px; }
  .whats-next-section { padding-block: 75px; }
  .about-information { padding-block: 40px; }
}
@media (max-width: 360px) {
  .demo-header img { width: 145px; }
  h1 { font-size: 3.15rem; }
  h2 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .network-box { transition: none; }
  .demo-race-card, .measure-preview { transition: none; }
  .demo-race-card:hover, .demo-race-card:focus-within, .measure-preview:hover, .measure-preview:focus-visible { transform: none; }
  .network-pulses { display: none; }
  .network-toggle { display: none; }
  .atlas-scene, .atlas-insets, .atlas-selected, .atlas-tour > svg { transition: none; }
}
