/* Live. Work. Stay. Boulder. brand tokens (from Boulder Campaign v1) */
:root {
  --navy: #132035;
  --blue: #3b9bff;
  --blue-ink: #1769d1;   /* blue for text and links on paper */
  --sky: #b8e0f7;
  --orange: #e8622c;
  --paper: #fffdf8;
  --paper-2: #f4f1ea;
  --muted: #555c68;
  --line: #ddd9cf;

  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-underline-offset: 3px; font-weight: 600; }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
/* Brand display type: heavy, wide, uppercase, tight */
h1, h2, .display {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
}
h2 { font-size: clamp(2.25rem, 6vw, 4.25rem); max-width: 16ch; }
h3 { font-size: 1.125rem; font-weight: 800; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; font-size: calc(1.0625rem + 5px); }
.accent { color: var(--blue); }
.accent-orange { color: var(--orange); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 9vw, 112px) 0; }
section.wrap { padding: clamp(56px, 9vw, 112px) var(--gutter); }

.source { font-size: calc(0.8125rem + 3px); color: var(--muted); margin-top: 1.25em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 44px; width: auto; }
.site-nav { min-width: 0; display: flex; gap: clamp(12px, 2vw, 28px); overflow-x: auto; scrollbar-width: none; }
.site-nav a {
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: 0.9375rem;
  white-space: nowrap; padding: 6px 0;
}
.site-nav a:hover { color: var(--blue-ink); }
@media (max-width: 760px) {
  .brand img { height: 38px; }
  .site-nav a:not([href="#vote"]):not([href="#guide"]) { display: none; }
}
@media (max-width: 420px) {
  .site-header { gap: 12px; }
  .brand img { height: 26px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 0.875rem; }
}

/* Buttons: square, like the flyer bands */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  font-family: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 0;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--navy); }
.btn-light:hover { background: var(--sky); }

/* 1. Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 0; }
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: end;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.countdown {
  display: inline-block; font-weight: 800; font-size: 0.9375rem;
  background: var(--navy); color: var(--paper);
  padding: 6px 12px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.75rem, 5.6vw, 5.25rem); max-width: 11em; margin-bottom: 20px; }
.hero-sub { font-size: clamp(1.75rem, 2.4vw, 1.875rem); font-weight: 500; line-height: 1.2; margin-bottom: 16px; }
.hero-lede { color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-art { margin: 0; align-self: end; }
.hero-art img {
  width: 100%; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 55% 55%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 55% 55%, #000 70%, transparent 100%);
}
.vote-band {
  color: var(--orange); margin-top: 8px;
  padding: 18px var(--gutter); text-align: center;
}
.vote-band p {
  margin: 0 auto; max-width: none;
  font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em;
}
.vote-band strong { font-weight: 800; }
.hero-source { margin-top: 12px; }

/* 2. Why */
.why { max-width: 1180px; margin: 0 auto; }
section.why { padding-top: clamp(24px, 4vw, 40px); }
.why h2 { margin-bottom: 32px; max-width: 18ch; }
.why-body p { max-width: none; }
.pillars {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px;
}
.pillars h3 {
  display: flex; align-items: center; margin-bottom: 12px; padding-right: 14px;
  background: var(--paper-2); font-size: 1.375rem; font-weight: 800; line-height: 1.2;
}
.pillar-icon { display: grid; place-items: center; width: 60px; min-height: 60px; align-self: stretch; background: var(--blue); margin-right: 12px; flex: none; }
.pillar-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.pillars p { font-size: calc(0.9875rem + 5px); }

/* 2b. Who */
.who { background: var(--navy); color: #d7dce5; }
.who h2, .who h3, .who strong { color: #fff; }
.who a { color: var(--sky); }
.who .source { color: #9aa3b2; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .who-grid { grid-template-columns: 1fr; } }
.who h2 { margin-bottom: 20px; max-width: none; white-space: nowrap; font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.who-lede { font-size: calc(1.3125rem + 5px); font-weight: 700; color: var(--sky); line-height: 1.4; }
.who-grid > div:first-child { display: flex; flex-direction: column; }
.sticker {
  position: relative; align-self: center; margin: auto 0;
  width: clamp(250px, 27.5vw, 350px); aspect-ratio: 1; border-radius: 50%;
  background: #0d1626; box-shadow: 0 0 0 2px rgba(184,224,247,.18), 0 18px 40px rgba(0,0,0,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%;
  transform: rotate(-6deg);
}
.sticker::before {
  content: ""; position: absolute; inset: 7%; border-radius: 50%;
  border: 2px dashed var(--sky);
}
.sticker-mark {
  width: 24%; aspect-ratio: 398 / 355; background: var(--blue);
  -webkit-mask: url("/assets/mark-light.png") center / contain no-repeat;
  mask: url("/assets/mark-light.png") center / contain no-repeat;
}
.sticker-text {
  font-family: var(--display); font-weight: 900; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(1.40625rem, 2.375vw, 1.875rem); line-height: 1; text-align: center; color: var(--blue);
}
.sticker-text em { font-style: normal; color: #fff; }
@media (max-width: 860px) { .sticker { margin-top: 32px; } }
.plain-list { padding: 0; margin: 0 0 32px; list-style: none; }
.plain-list li { font-size: calc(1.0625rem + 5px); padding: 14px 0; border-top: 1px solid rgba(255,255,255,.15); }
.plain-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.note { margin: 0; padding: 24px; background: rgba(255,255,255,.06); border-left: 4px solid var(--blue); }
.note blockquote { margin: 12px 0; font-size: calc(1.0625rem + 5px); font-style: italic; color: #fff; }
.note figcaption { font-weight: 800; color: #fff; }

/* 4 + 6. Vote */
.vote { background: var(--paper); border-top: 6px solid var(--blue); padding-top: 28px; }
.vote h2 { font-size: clamp(2rem, 6vw, 3.75rem); max-width: 20ch; margin-bottom: 12px; }
.vote-lede { font-size: calc(1.125rem + 5px); font-weight: 700; }
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 36px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.steps li { counter-increment: step; padding: 20px; background: #fff; border: 2px solid var(--navy); }
.steps h3 {
  display: flex; align-items: center; margin-bottom: 10px;
  font-family: var(--display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 1.25rem;
}
.steps h3::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 32px; height: 32px; margin-right: 12px;
  background: var(--blue); color: #fff; font-size: 1rem;
}
.steps p { margin: 0; font-size: calc(0.9875rem + 5px); }

/* Text reminders opt-in form */
.reminders { margin: 0 0 36px; padding: 24px 20px; background: #fff; border: 2px solid var(--navy); max-width: 860px; }
.reminders-title {
  font-family: var(--display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 1.5rem; margin-bottom: 8px;
}
.reminders-lede { font-size: calc(0.9875rem + 5px); margin-bottom: 18px; }
.reminders-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 20px; }
@media (max-width: 600px) { .reminders-fields { grid-template-columns: 1fr; } }
.reminders-form input[type="text"], .reminders-form input[type="tel"] {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-weight: 500; color: var(--navy);
  background: var(--paper); border: 2px solid var(--navy); border-radius: 0;
}
.reminders-form input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-bottom: 20px; }
.consent input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--navy); cursor: pointer; }
.consent label { font-size: calc(0.8125rem + 6px); line-height: 1.5; cursor: pointer; }
.consent a, .reminders .apply-status a { color: var(--blue-ink); }
.reminders-note { font-size: calc(0.8125rem + 3px); color: var(--muted); margin: 10px 0 0; }
.reminders .apply-status { font-size: 1rem; font-weight: 700; margin: 14px 0 0; }

/* Wide map on top, drop boxes and Vote Centers side by side underneath */
.where { display: grid; gap: 32px; }
#map { height: clamp(320px, 50vh, 520px); border: 2px solid var(--navy); background: var(--paper-2); }
.where-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
@media (max-width: 860px) { .where-lists { grid-template-columns: 1fr; } }
.map-key { font-size: 0.8125rem; color: var(--muted); margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: -8px; vertical-align: middle; }
.key-both { background: var(--blue); }
.key-box { background: var(--navy); }
.key-vc { background: var(--orange); }
.where-lists h3 { font-family: var(--display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 1.5rem; }
.where-lists summary + .hours { margin-top: 6px; min-height: 3.1em; }
.hours { font-size: 0.9375rem; color: var(--muted); }
.loc-list { list-style: none; padding: 0; margin: 0 0 28px; }
.loc-list li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.loc-list li:last-child { border-bottom: 1px solid var(--line); }
.loc-list button { all: unset; cursor: pointer; font-weight: 800; color: var(--navy); }
.loc-list button:hover { color: var(--blue-ink); text-decoration: underline; }
.loc-list button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.loc-addr { grid-column: 1; font-size: 0.875rem; color: var(--muted); }
.status {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-size: 0.8125rem; font-weight: 800; padding: 3px 10px;
  background: var(--paper-2); color: var(--muted); white-space: nowrap;
}
.status.open { background: var(--sky); color: var(--navy); }

.how {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px;
  margin: 56px 0 32px; padding-top: 32px; border-top: 2px solid var(--navy);
}
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
.how h3 { font-family: var(--display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 1.5rem; margin-bottom: 10px; }

.faq { border-top: 1px solid var(--line); padding: 4px 0; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; }
.faq p { padding-bottom: 8px; }

/* Drop-downs for long text: collapsed on phones, open on wider screens (app.js) */
.fold > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary > * { margin: 0; }
.fold > summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform 0.15s;
}
.fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.fold-where > summary, .fold-terms > summary, .fold-privacy > summary { justify-content: space-between; }
.fold-bio > summary { display: inline-flex; padding: 6px 0; font-size: 1rem; font-weight: 800; color: var(--blue-ink); }
.fold-bio > summary + p { margin-top: 0; }
@media (min-width: 761px) { .fold-bio > summary { display: none; } }
@media (max-width: 760px) {
  .fold-where { border-top: 1px solid var(--line); }
  .fold-where:last-child { border-bottom: 1px solid var(--line); }
  .fold-where > summary { padding: 14px 0; }
  .fold-where .loc-list { margin-bottom: 16px; }
  .where-lists summary + .hours { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .fold > summary::after { transition: none; } }

/* 5. Guide: the flyer back, a blue-framed picks card */
.guide { background: var(--paper-2); }
.picks {
  background: var(--paper); border: clamp(10px, 1.6vw, 16px) solid var(--blue);
  padding: clamp(20px, 4vw, 48px);
}
.picks h2 { font-size: clamp(2.25rem, 6vw, 3.75rem); margin-bottom: 12px; }
.picks-lede { font-size: calc(1.25rem + 5px); font-weight: 500; margin-bottom: 20px; }
.picks-race { border-top: 1px solid #a9a59c; padding: 18px 0 4px; }
.picks-race h3 { font-family: var(--display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 1.25rem; }
.picks-mayor { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 6px 0 12px; }
.picks-mayor strong { font-weight: 800; }
.picks-note { color: var(--muted); font-size: calc(1.125rem + 5px); margin: 2px 0 12px; }
.picks-council { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 40px; }
.picks-council li { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 800; line-height: 1.5; }
.picks-race a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.picks-race a:hover { color: var(--blue-ink); }
.picks-blurb, .picks-why { font-size: calc(1rem + 5px); max-width: 90ch; }
.picks-why { margin-bottom: 8px; }
.picks-council li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--line); }
.picks-council p { font-size: calc(0.9375rem + 5px); font-weight: 400; line-height: 1.5; margin: 4px 0 0; }
.picks-inperson { border-top: 1px solid #a9a59c; padding: 18px 0 4px; }
.picks-inperson p { margin: 0; max-width: 90ch; }
.picks .source { margin-top: 16px; }

/* 8. Organize */
.organize { background: var(--orange); color: #fff; }
.organize-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.organize h2 { margin-bottom: 16px; }
.organize p { font-size: calc(1.125rem + 5px); }

/* Organizer application form */
.apply { flex: 1 1 100%; max-width: 760px; }
.organize .apply-intro { font-weight: 800; margin-bottom: 20px; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }
fieldset.field { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--navy); }
.apply input[type="text"], .apply input[type="email"], .apply input[type="tel"], .apply textarea,
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-weight: 500; color: var(--navy);
  background: var(--paper); border: 2px solid var(--navy); border-radius: 0;
}
.apply textarea, .contact-form textarea { resize: vertical; }
.apply input:focus-visible, .apply textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.apply-privacy a { color: #fff; }
.apply-honey { position: absolute; left: -9999px; }
.organize .apply-privacy { font-size: calc(0.8125rem + 6px); margin-top: 12px; }
.apply-terms-title { font-size: 1.25rem; font-weight: 800; }
.fold-terms { margin-top: 24px; }
.fold-terms > summary + .apply-privacy { margin-top: 6px; }
.organize .apply-status { font-size: 1rem; font-weight: 700; margin-top: 14px; }
.apply-status:empty { display: none; }
.apply-status a { color: #fff; }
@media (max-width: 600px) { .apply-grid { grid-template-columns: 1fr; } }

/* 8b. Privacy Policy */
section.privacy { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.privacy > * { max-width: 760px; }
.privacy h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.fold-privacy > summary + p { margin-top: 14px; }
.privacy h3 { font-size: 1rem; margin: 20px 0 4px; }
.privacy p { font-size: 1rem; margin-bottom: 0; }
.privacy p + p { margin-top: 10px; }
.privacy-updated { color: var(--muted); }

/* 9. Footer */
.site-footer { background: var(--navy); color: #c4cad6; padding: 48px 0 64px; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 240px 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 240px 1fr; } .contact-form { grid-column: 1 / -1; max-width: 520px; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 240px; }
.site-footer p.footer-links { margin-top: 14px; font-size: 1rem; }
.footer-links a { color: var(--sky); }

/* Footer message form */
.contact-form { display: flex; flex-direction: column; gap: 14px; color: #fff; }
.contact-title { font-size: 1.5rem; margin-bottom: 4px; color: #fff; }
.site-footer p.contact-email { margin: 0; font-size: 1rem; }
.contact-email a { color: var(--sky); }
.contact-form .btn { align-self: flex-start; }
.site-footer p.apply-status { font-size: 1rem; font-weight: 700; color: #fff; }
.site-footer .apply-status a { color: var(--sky); }
.disclosure {
  color: #fff; font-size: 1.0625rem;
  border: 2px solid #fff; padding: 12px 16px; display: inline-block;
}
.site-footer p:not(.disclosure) { font-size: calc(0.9375rem + 5px); }
.sources { padding-left: 1.25em; margin: 24px 0; font-size: 0.8125rem; }

/* Leaflet tweaks */
.leaflet-popup-content { font-family: var(--body); font-size: 0.875rem; line-height: 1.4; }
.leaflet-popup-content strong { display: block; font-size: 0.9375rem; }
