/* Stump campaign site. Colors come from the campaign's brand settings
   (injected as --brand, --accent, etc.). Type comes from the chosen style. */

@font-face { font-family: 'Archivo'; src: url(/assets/fonts/archivo.woff2) format('woff2-variations'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/assets/fonts/public-sans.woff2) format('woff2-variations'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/assets/fonts/public-sans-italic.woff2) format('woff2-variations'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url(/assets/fonts/source-serif-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url(/assets/fonts/source-serif-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --brand: #1b3a6b;
  --brand-text: #1b3a6b;
  --accent: #b5102a;
  --on-accent: #ffffff;
  --tint: #eef0f3;
  --paper: #faf9f6;
  --ink: #111418;
  --muted: #555b63;
  --white: #ffffff;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --body-font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-font: 'Archivo', 'Public Sans', system-ui, sans-serif;
  --display-weight: 800;
  --display-stretch: 82%;
  --display-tracking: -0.01em;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 11vw, 152px);
  --radius: 4px;
}

.type-classic { --display-font: 'Source Serif 4', Georgia, serif; --display-weight: 700; --display-stretch: 100%; --display-tracking: -0.015em; }
.type-modern { --display-font: 'Public Sans', system-ui, sans-serif; --display-weight: 750; --display-stretch: 100%; --display-tracking: -0.025em; }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body-font); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.hero a:focus-visible, .footer a:focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

.display { font-family: var(--display-font); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); line-height: 1.02; overflow-wrap: break-word; min-width: 0; margin: 0; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.banner { background: var(--ink); color: var(--white); font-size: 0.9375rem; text-align: center; padding: 10px var(--gutter); }
.banner a { color: var(--white); }
.banner-preview { background: #7a4b00; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius); border: 2px solid transparent; font: 700 1rem/1.1 var(--body-font); text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-brand { background: var(--brand); color: var(--white); }
.btn-brand:hover { background: color-mix(in srgb, var(--brand) 84%, var(--ink)); }
.btn-quiet { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-quiet:hover { border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: color-mix(in srgb, var(--white) 86%, var(--ink)); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.nav-brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.nav-logo { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.nav-name { font-family: var(--display-font); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.375rem; letter-spacing: var(--display-tracking); }
.nav nav { flex: 1 1 auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav-links a:hover { color: var(--brand-text); text-decoration: underline; }
.nav-actions { display: flex; gap: 10px; margin-left: auto; }
@media (max-width: 900px) { .nav nav { display: none; } }
@media (max-width: 520px) { .nav-actions .btn-quiet { display: none; } .nav-inner { gap: 16px; min-height: 64px; } .nav-logo { height: 36px; } }

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--brand); color: var(--white); min-height: min(86vh, 780px); display: flex; align-items: flex-end; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-has-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--ink) 78%, transparent) 100%), linear-gradient(90deg, color-mix(in srgb, var(--ink) 45%, transparent) 0%, transparent 60%); }
.hero-copy { padding-block: clamp(64px, 10vw, 112px) clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(3rem, 8.4vw, 7.5rem); max-width: 13ch; text-wrap: balance; }
.hero-sentence { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); line-height: 1.45; max-width: 36ch; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero:not(.hero-has-photo) { min-height: min(70vh, 640px); }

/* Sections */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section-title { font-size: clamp(2.5rem, 5.6vw, 4.75rem); max-width: 16ch; text-wrap: balance; }
.section-intro { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.5; max-width: 52ch; margin: 24px 0 0; color: var(--ink); }
.prose p { margin: 0 0 1.1em; max-width: 64ch; }
.prose p:last-child { margin-bottom: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-no-photo { grid-template-columns: minmax(0, 1fr); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-copy .prose { margin-top: 32px; font-size: 1.1875rem; }
@media (max-width: 800px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-photo img { aspect-ratio: 4 / 3; } }

/* Issues */
.issues { background: var(--tint); }
.issue-list { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; }
.issue { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 5vw, 80px); padding-block: 36px; border-top: 2px solid var(--ink); }
.issue:last-child { border-bottom: 2px solid var(--ink); }
.issue-title { font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.1; }
.issue-body { font-size: 1.125rem; }
@media (max-width: 800px) { .issue { grid-template-columns: minmax(0, 1fr); padding-block: 28px; } }

/* Endorsements */
.endorse-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 5vw, 64px); margin-top: clamp(40px, 6vw, 72px); }
.endorse-quote { margin: 0; padding-top: 28px; border-top: 4px solid var(--accent); }
.endorse-quote blockquote { margin: 0; }
.endorse-quote p { font-family: var(--display-font); font-weight: 600; font-stretch: 100%; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.3; margin: 0; }
.endorse-quote figcaption { margin-top: 20px; display: flex; flex-direction: column; }
.endorse-name { font-weight: 700; }
.endorse-role { color: var(--muted); font-size: 1rem; }
.endorse-list { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 40px; }
.endorse-list li { display: flex; flex-direction: column; padding-block: 16px; border-top: 1px solid var(--line); }

/* Events */
.event-list { list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; }
.event { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 40px); padding-block: 32px; border-top: 1px solid var(--line); align-items: start; }
.event:last-child { border-bottom: 1px solid var(--line); }
.event-date { margin: 0; display: flex; flex-direction: column; line-height: 1; color: var(--brand-text); }
.event-month { font-weight: 700; font-size: 1rem; }
.event-day { font-size: 3.5rem; margin-top: 4px; }
.event-title { font-size: 1.5rem; line-height: 1.2; margin: 0 0 6px; }
.event-when, .event-where { margin: 0; color: var(--ink); }
.event-where { color: var(--muted); }
.event-details { margin-top: 12px; font-size: 1.0625rem; }
.event-actions { margin: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 1rem; text-align: right; }
@media (max-width: 800px) { .event { grid-template-columns: 64px minmax(0, 1fr); } .event-day { font-size: 2.5rem; } .event-actions { grid-column: 2; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; } }

/* Volunteer */
.volunteer { background: var(--brand); color: var(--white); }
.volunteer .section-intro { color: var(--white); }
.volunteer a { color: var(--white); }
.volunteer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .volunteer-grid { grid-template-columns: minmax(0, 1fr); } }
.form { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); display: grid; gap: 20px; }
.form a { color: var(--brand-text); }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field label, .field legend { font-weight: 700; font-size: 1rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--white); border: 1.5px solid color-mix(in srgb, var(--ink) 32%, transparent); border-radius: var(--radius); padding: 12px 14px; min-height: 50px; width: 100%; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.field input[aria-invalid='true'] { border-color: #b3261e; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px 20px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; min-height: 32px; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); flex: 0 0 auto; }
.form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-status.is-error { color: #b3261e; }
.form-status.is-ok { color: #1d6b3a; }
.form-fine { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.cf-turnstile { min-height: 65px; }

/* Donate */
.donate-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: minmax(0, 1fr); } }
.donate-actions { display: grid; gap: 16px; }
.amounts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: 12px; }
.amount { display: flex; align-items: center; justify-content: center; min-height: 64px; border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-family: var(--display-font); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.625rem; transition: background-color 0.15s ease, color 0.15s ease; }
.amount:hover { background: var(--ink); color: var(--white); text-decoration: none; }
.donate-actions .btn { width: 100%; }

/* Vote */
.vote { background: var(--tint); }
.vote-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .vote-grid { grid-template-columns: minmax(0, 1fr); } }
.vote .prose { margin-top: 24px; font-size: 1.1875rem; }
.vote-links { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; font-weight: 700; font-size: 1.1875rem; }
.vote-fine { color: var(--muted); font-size: 1rem; margin: 24px 0 0; max-width: 56ch; }
.vote-dates { list-style: none; padding: 0; margin: 0; }
.vote-dates li { display: flex; flex-direction: column; padding-block: 20px; border-top: 2px solid var(--ink); }
.vote-dates li:last-child { border-bottom: 2px solid var(--ink); }
.vote-date { font-family: var(--display-font); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.625rem; line-height: 1.15; }
.vote-label { color: var(--ink); }

/* Footer */
.footer { background: var(--ink); color: var(--white); padding-block: clamp(56px, 8vw, 96px) 40px; }
.footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-title { font-size: clamp(2rem, 4vw, 3rem); }
.footer-name p:not(.footer-title) { margin: 8px 0 0; color: color-mix(in srgb, var(--white) 78%, var(--ink)); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--white) 22%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.paid-for { margin: 0; padding: 10px 14px; border: 1.5px solid var(--white); font-weight: 600; font-size: 1rem; }
.footer-small { margin: 0; font-size: 0.9375rem; color: color-mix(in srgb, var(--white) 78%, var(--ink)); align-self: center; }
.sep { opacity: 0.6; padding-inline: 4px; }
.footer-credits { margin: 20px 0 0; font-size: 0.875rem; color: color-mix(in srgb, var(--white) 72%, var(--ink)); max-width: 80ch; }

/* Coming soon */
.soon { min-height: 100vh; display: grid; place-items: center; background: var(--paper); }
.soon-main { text-align: center; padding: 40px var(--gutter); max-width: 720px; }
.soon-main h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.soon-main p { font-size: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print { .nav, .hero-actions, .volunteer, .donate { display: none; } }
