:root {
  --ink: #10212b;
  --paper: #f6f2e8;
  --sun: #ffcb45;
  --house: #a9caff;
  --firm: #ef7564;
  --mint: #9ae1cb;
  --line: color-mix(in srgb, var(--ink) 30%, transparent);
  --sans: Inter, Avenir Next, Avenir, Helvetica Neue, Arial, sans-serif;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
  font-kerning: normal;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.17em; }
a:hover { text-decoration-thickness: 0.15em; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--firm); outline-offset: 3px; }
button, select { font: inherit; }
.visually-hidden { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 8; background: var(--sun); color: var(--ink); padding: .7rem 1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.shell { width: min(1220px, calc(100% - 2.5rem)); margin: 0 auto; }

.masthead { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.masthead .shell { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
.wordmark { font-size: .77rem; font-weight: 850; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.edition-nav { align-items: center; display: flex; gap: .7rem; font-size: .85rem; }
.edition-nav a[aria-current="page"] { font-weight: 800; text-decoration-thickness: .15em; }

.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 .8rem; text-transform: uppercase; }
.hero { overflow: hidden; padding: clamp(2.8rem, 7vw, 6.7rem) 0 3.2rem; position: relative; }
.hero::before { background: var(--sun); border-radius: 999px; content: ""; height: min(34vw, 430px); position: absolute; right: max(-9vw, -140px); top: 2rem; width: min(34vw, 430px); z-index: 0; }
.hero-grid { display: grid; gap: 2.6rem; grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr); position: relative; z-index: 1; }
.hero-copy { max-width: 680px; }
h1 { font-family: var(--display); font-size: clamp(3.4rem, 9vw, 8.7rem); font-stretch: condensed; font-weight: 900; letter-spacing: -.045em; line-height: .8; margin: 0; text-transform: uppercase; }
h1 span { color: var(--firm); display: block; font-size: .45em; letter-spacing: -.025em; line-height: .9; margin: .2em 0 .14em; }
.deck { font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.45; margin: 1.5rem 0 1rem; max-width: 51ch; }
.source-line { border-left: 3px solid var(--sun); font-size: .81rem; line-height: 1.45; margin: 1.4rem 0 0; padding-left: .7rem; }

.balance-card { background: var(--ink); box-shadow: 10px 10px 0 var(--sun); color: var(--paper); min-height: 448px; overflow: hidden; padding: clamp(1rem, 2.8vw, 2rem); position: relative; }
.balance-card::before { background-image: radial-gradient(circle at 1px 1px, rgba(246, 242, 232, .22) 1px, transparent 1.5px); background-size: 12px 12px; content: ""; inset: 0; opacity: .24; position: absolute; }
.balance-card > * { position: relative; }
.toggle-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; margin: 0 0 .75rem; text-transform: uppercase; }
.measure-switch { border: 0; display: flex; gap: .5rem; margin: 0 0 1rem; padding: 0; }
.measure-switch label { cursor: pointer; font-size: .82rem; }
.measure-switch input { accent-color: var(--sun); margin: 0 .25rem 0 0; }
.balance { height: 251px; margin: 0 auto; max-width: 520px; position: relative; }
.beam { background: var(--paper); height: 8px; left: 7%; position: absolute; top: 102px; transform: rotate(-4.2deg); transform-origin: 50% 50%; transition: transform .6s cubic-bezier(.2,.75,.25,1); width: 86%; }
.beam::after { background: var(--sun); content: ""; height: 16px; left: 50%; position: absolute; top: -4px; transform: translateX(-50%); width: 16px; }
.fulcrum { border-bottom: 82px solid var(--sun); border-left: 47px solid transparent; border-right: 47px solid transparent; bottom: 18px; height: 0; left: 50%; position: absolute; transform: translateX(-50%); width: 0; }
.fulcrum::after { color: var(--ink); content: "="; font: 900 2.1rem/1 var(--display); left: 50%; position: absolute; top: 43px; transform: translateX(-50%); }
.pan { border-bottom: 2px solid var(--paper); bottom: 61px; min-height: 62px; padding-top: 7px; position: absolute; text-align: center; transition: bottom .6s cubic-bezier(.2,.75,.25,1); width: 37%; }
.pan::before, .pan::after { border-left: 1px solid var(--paper); content: ""; height: 50px; position: absolute; top: -48px; transform-origin: bottom; }
.pan::before { left: 18%; transform: rotate(-18deg); }
.pan::after { right: 18%; transform: rotate(18deg); }
.pan-home { left: 2%; bottom: 35px; }
.pan-firm { right: 2%; bottom: 87px; }
.pan strong { display: block; font-family: var(--display); font-size: 2.6rem; letter-spacing: -.03em; line-height: .9; }
.pan span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .07em; margin-top: .35rem; text-transform: uppercase; }
.balance-caption { font-size: .92rem; line-height: 1.42; margin: .2rem 0 0; max-width: 41ch; }
[data-measure="power"] .beam { transform: rotate(-.45deg); }
[data-measure="power"] .pan-home { bottom: 60px; }
[data-measure="power"] .pan-firm { bottom: 66px; }

.statement { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); padding: clamp(2.7rem, 6vw, 5rem) 0; }
.statement-grid { align-items: end; display: grid; gap: 2rem; grid-template-columns: 1.45fr .55fr; }
.statement h2 { font-family: var(--display); font-size: clamp(2.35rem, 6vw, 5.4rem); letter-spacing: -.035em; line-height: .92; margin: 0; text-transform: uppercase; }
.statement p { font-size: 1.1rem; line-height: 1.5; margin: .8rem 0 0; max-width: 56ch; }
.delta { background: var(--mint); padding: 1.2rem; }
.delta strong { display: block; font-family: var(--display); font-size: 3.2rem; letter-spacing: -.04em; line-height: .9; }
.delta span { display: block; font-size: .85rem; font-weight: 700; line-height: 1.25; margin-top: .5rem; }

.section { padding: clamp(3.1rem, 7vw, 6.5rem) 0; }
.section-head { display: grid; gap: 1rem; grid-template-columns: .8fr 1.2fr; margin-bottom: 2rem; }
.section h2 { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 4.4rem); letter-spacing: -.035em; line-height: .9; margin: 0; text-transform: uppercase; }
.section-head p { font-size: 1.05rem; line-height: 1.5; margin: .1rem 0 0; max-width: 58ch; }

.split-proof { border-top: 1px solid var(--line); }
.proof-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 1rem; grid-template-columns: 10rem 1fr 6rem; padding: 1.15rem 0; }
.proof-row > span { font-size: .86rem; font-weight: 800; text-transform: uppercase; }
.bar { background: color-mix(in srgb, var(--ink) 10%, transparent); display: flex; height: 34px; overflow: hidden; }
.bar i { display: block; height: 100%; }
.bar i:first-child { background: var(--house); }
.bar i:last-child { background: var(--firm); }
.proof-row b { font-size: .92rem; text-align: right; }
.legend { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .82rem; margin-top: .9rem; }
.legend i { border-radius: 50%; display: inline-block; height: .72rem; margin-right: .35rem; width: .72rem; }
.legend .home { background: var(--house); }
.legend .firm { background: var(--firm); }

.county { background: var(--sun); }
.county-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr); }
.county select { background: transparent; border: 2px solid var(--ink); border-radius: 0; color: var(--ink); font-size: 1rem; font-weight: 800; margin-top: 1rem; max-width: 100%; padding: .75rem .8rem; width: 100%; }
.county-output { border-left: 4px solid var(--ink); padding-left: 1.3rem; }
.county-output .county-number { display: block; font-family: var(--display); font-size: clamp(3.2rem, 8vw, 6rem); letter-spacing: -.045em; line-height: .8; }
.county-output p { font-size: 1.1rem; line-height: 1.46; margin: .8rem 0 0; max-width: 46ch; }
.county-output small { display: block; font-size: .8rem; line-height: 1.4; margin-top: .9rem; }

.limits { border-left: 4px solid var(--firm); font-size: 1rem; line-height: 1.5; margin-top: 1.8rem; max-width: 74ch; padding-left: 1rem; }
.sources { border-top: 1px solid var(--line); padding: 2.3rem 0 4.2rem; }
.sources h2 { font-family: var(--display); font-size: 2rem; letter-spacing: -.03em; margin: 0 0 .6rem; text-transform: uppercase; }
.sources ol { line-height: 1.55; margin: 0; max-width: 82ch; padding-left: 1.2rem; }
.sources li + li { margin-top: .6rem; }
.footer { background: var(--ink); color: var(--paper); padding: 1.2rem 0; }
.footer .shell { align-items: baseline; display: flex; font-size: .78rem; gap: 1.2rem; justify-content: space-between; }
.footer p { margin: 0; }

@media (max-width: 760px) {
  .shell { width: min(100% - 1.5rem, 1220px); }
  .hero::before { height: 220px; right: -100px; top: 8rem; width: 220px; }
  .hero-grid, .statement-grid, .section-head, .county-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; }
  h1 { font-size: clamp(3.5rem, 18vw, 6.5rem); }
  .balance-card { box-shadow: 7px 7px 0 var(--sun); min-height: 422px; }
  .proof-row { grid-template-columns: 5.4rem 1fr; }
  .proof-row b { grid-column: 2; text-align: left; }
  .footer .shell { align-items: flex-start; flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
