/* =========================================================
   GISLER VOTES NO — Drew's original design system carrying
   Jordan's structure and copy (Sept 2026).
   ========================================================= */

:root {
  --parchment: oklch(0.93 0.025 82);
  --parchment-deep: oklch(0.88 0.035 80);
  --ink: oklch(0.20 0.015 60);
  --ink-soft: oklch(0.38 0.02 60);
  --red: oklch(0.52 0.22 25);
  --red-deep: oklch(0.42 0.22 25);
  --cream: oklch(0.96 0.015 85);
  --muted: oklch(0.72 0.015 85);

  --bg: var(--ink);
  --bg-accent: oklch(0.14 0.02 60);
  --scroll-bg: var(--parchment);
  --scroll-ink: var(--ink);
  --rule: oklch(0.5 0.02 60 / 0.3);
  --rule-soft: oklch(0.5 0.02 60 / 0.22);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--cream); font-family: var(--font-body); overflow-x: hidden; }
img { max-width: 100%; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.red { color: var(--red); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}

section { padding: clamp(80px, 12vh, 120px) 0; border-top: 1px solid var(--rule); }

.loading {
  padding: 80px 0; text-align: center; color: var(--muted);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase;
}

/* ---- HERO (original treatment) ---- */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--bg-accent);
  isolation: isolate;
  padding: 0;
  border-top: none;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 40%, oklch(0.22 0.02 60) 0%, oklch(0.12 0.02 60) 55%, oklch(0.06 0.01 60) 100%);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/gisler.png");
  background-repeat: no-repeat;
  background-position: right -40px top 58%;
  background-size: auto 82%;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
  mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 100%);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg,
      transparent 0 3px,
      oklch(0.0 0 0 / 0.08) 3px 4px);
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg,
      oklch(0.05 0.02 60 / 0.7) 0%,
      oklch(0.05 0.02 60 / 0.55) 35%,
      oklch(0.05 0.02 60 / 0.15) 60%,
      oklch(0.05 0.02 60 / 0.05) 85%),
    linear-gradient(180deg,
      oklch(0.05 0.02 60 / 0.2) 0%,
      oklch(0.05 0.02 60 / 0.05) 40%,
      oklch(0.05 0.02 60 / 0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px clamp(24px, 5vw, 80px) clamp(80px, 10vh, 140px);
  width: 100%;
  max-width: 1400px;
  color: var(--cream);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 22px 0 32px;
  text-wrap: balance;
}
.hero-title .line-1 { display: block; color: var(--cream); }
.hero-title .line-2 { display: block; color: var(--cream); }
.hero-title .line-2 .no {
  color: var(--red);
  font-style: italic;
  display: inline-block;
  transform: skewX(-5deg);
}
.hero-title .line-3,
.hero-title .line-4 {
  display: block;
  -webkit-text-stroke: 2px var(--cream);
  color: transparent;
}
.hero-summary {
  max-width: 640px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  color: oklch(0.92 0.02 85 / 0.92);
  border-left: 3px solid var(--red);
  padding-left: 20px;
  margin-top: 24px;
}
.hero-footer {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.hero-footer .arrow { animation: bob 2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---- PROPERTY TAX ---- */
.tax { background: var(--bg-accent); }
.tax h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 7vw, 108px); line-height: 0.92; letter-spacing: -0.015em;
  margin-top: 16px; max-width: 20ch; text-wrap: balance;
}
.tax h2 .red { display: block; }
.lead {
  max-width: 62ch; margin-top: 30px;
  font-family: var(--font-body); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6;
}
.stats { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 52px 0; }
.stat { flex: 1 1 220px; border-left: 4px solid var(--red); padding-left: 20px; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 5.5vw, 84px); line-height: 1; color: var(--cream);
}
.stat b.red { color: var(--red); }
.stat span { display: block; margin-top: 8px; font-family: var(--font-body); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.35; opacity: 0.85; }
.punch {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 46px); line-height: 1.05; color: var(--red); max-width: 30ch;
}

/* ---- 66 LOCAL BILLS ---- */
.bill-list-section h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 5vw, 72px); line-height: 0.95; margin: 12px 0 18px;
}
.bill-list-section h3 .red { display: block; }
.bill-list-intro { max-width: 62ch; font-family: var(--font-body); font-size: 18px; line-height: 1.55; color: var(--muted); }
.bill-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 34px;
  margin-top: 38px; border-top: 1px solid var(--rule);
}
.local-bill {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline;
}
.local-bill .num { font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--red); }
.local-bill .place { font-family: var(--font-body); font-size: 16px; }

/* ---- PATTERN CARDS (parchment) ---- */
.pattern { background: var(--bg-accent); text-align: center; }
.pattern h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 7vw, 108px); line-height: 0.92; margin-top: 15px;
}
.pattern h2 .red { display: block; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; text-align: left; }
.card {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 30%, oklch(0.96 0.02 82 / 0.6), transparent 60%),
    radial-gradient(ellipse at 80% 70%, oklch(0.85 0.04 75 / 0.5), transparent 55%),
    var(--scroll-bg);
  color: var(--scroll-ink);
  padding: 36px 30px;
  min-height: 420px;
  display: flex; flex-direction: column;
  box-shadow:
    inset 0 0 60px oklch(0.6 0.06 65 / 0.25),
    inset 8px 0 20px oklch(0.7 0.06 70 / 0.3),
    inset -8px 0 20px oklch(0.7 0.06 70 / 0.3),
    0 20px 50px oklch(0.05 0.02 60 / 0.55);
  overflow: hidden;
}
.card::before {
  /* paper texture — subtle fiber grain */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(91deg,
      transparent 0 3px,
      oklch(0.4 0.05 60 / 0.2) 3px 4px),
    repeating-linear-gradient(2deg,
      transparent 0 7px,
      oklch(0.4 0.05 60 / 0.15) 7px 8px);
  mix-blend-mode: multiply;
}
.card > * { position: relative; }
.card .bill { font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: 0.18em; color: var(--ink-soft); }
.card h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1.02; margin: 20px 0 16px; color: var(--ink);
}
.card p { font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--ink); }
.nay {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 1.8vw, 26px); letter-spacing: 0.1em;
  color: var(--red); border: 3px solid var(--red); padding: 6px 16px;
  transform: rotate(-3deg);
}
.card .nay { margin-top: auto; }
.card .nay { margin-bottom: 4px; }

/* ---- FULL RECORD ---- */
.record .sub {
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  color: var(--muted); max-width: 60ch; margin-top: 26px;
}
.record h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 5vw, 56px); line-height: 0.98; margin-top: 14px;
}
.record h2 .red { display: block; }
.table { margin-top: 40px; border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 1.2fr 2.4fr 0.6fr 1.25fr; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--rule-soft); align-items: center;
}
.head {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.billno, .roll { font-family: var(--font-mono); font-size: 13px; }
.roll { color: var(--muted); white-space: nowrap; }
.billno { white-space: nowrap; }
.desc { font-family: var(--font-body); font-size: 16px; }
.badge {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--cream); background: var(--red); padding: 3px 9px; border-radius: 2px;
  width: max-content;
}

/* ---- CLOSE ---- */
.close { background: var(--bg-accent); text-align: center; padding: clamp(100px, 16vh, 180px) 0; }
.close h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 108px); line-height: 0.92; letter-spacing: -0.015em;
  max-width: 16ch; margin: 0 auto; text-wrap: balance;
}
.close h2 span { display: block; color: var(--red); }
.close p { max-width: 60ch; margin: 32px auto; font-family: var(--font-body); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; }
.buttons { display: flex; justify-content: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; /* WCAG touch target */
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.15em;
  text-transform: uppercase;
  background: none; border: 2px solid var(--cream); color: var(--cream);
  padding: 8px 20px; cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn:hover { border-color: var(--red); color: var(--red); }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--cream); }
.btn.primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--cream); }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* ---- TABLET ---- */
@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .bill-grid { grid-template-columns: 1fr; }
  .head { display: none; }
  .row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .row .billno { grid-column: 1; }
  .row .badge { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .row .desc { grid-column: 1; font-size: 15px; }
  .row .roll { display: none; }
}

/* ---- PHONE: rebuilt scale ---- */
@media (max-width: 700px) {
  section { padding: 60px 0; }
  .eyebrow { font-size: 11px; letter-spacing: 0.2em; }
  .hero-content { padding: 40px 20px 90px; }
  .hero-title { font-size: clamp(40px, 12.5vw, 56px); }
  .hero-summary { font-size: 16px; }
  .hero-footer { font-size: 11px; bottom: 18px; }
  .hero-scrim {
    background:
      linear-gradient(180deg,
        oklch(0.05 0.02 60 / 0.45) 0%,
        oklch(0.05 0.02 60 / 0.35) 45%,
        oklch(0.05 0.02 60 / 0.85) 100%);
  }
  .tax h2, .pattern h2 { font-size: clamp(36px, 10.5vw, 54px); }
  .lead { font-size: 17px; }
  .stats { gap: 20px; margin: 36px 0; }
  .stat b { font-size: 48px; }
  .stat span { font-size: 15px; }
  .punch { font-size: 24px; line-height: 1.12; }
  .bill-list-section h3 { font-size: clamp(30px, 9vw, 42px); }
  .bill-list-intro { font-size: 16px; }
  .cards { margin-top: 36px; }
  .card { padding: 26px 22px; }
  .card h3 { font-size: 26px; }
  .card p { font-size: 16px; }
  .nay { font-size: 20px; }
  .record h2 { font-size: clamp(30px, 9vw, 42px); }
  .close { padding: 90px 0; }
  .close h2 { font-size: clamp(34px, 10vw, 48px); }
  .buttons { flex-direction: column; align-items: stretch; }
}
