/* Main Street Majority PAC — v2. Flat surfaces, strong type, readable structure. */
:root {
  --navy: #20344f;
  --navy-deep: #15263b;
  --gold: #eda53a;
  --gold-deep: #d98c27;
  --bg: #f5f3ee;
  --bg-deep: #e9e5dc;
  --ink: #1b2430;
  --ink-2: #424c57;
  --line: #cfc9be;
  --clay: #a54624;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --container: 1140px;
  --hd: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 20px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.7; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .65em; font-family: var(--display); line-height: 1.12; letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { font-size: clamp(2rem, 3.7vw, 3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1.2em; }
a { color: var(--clay); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--navy-deep); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: .7rem 1rem; background: var(--gold); color: var(--navy-deep); }
.skip-link:focus { top: 12px; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy-deep); color: #fff; border-bottom: 1px solid #405066; }
.site-header .container { min-height: var(--hd); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { text-decoration: none; min-width: 0; }
.wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark .line-1 { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.18rem; letter-spacing: .015em; }
.wordmark .line-2 { color: var(--gold); font-family: var(--display); font-weight: 600; font-size: .67rem; letter-spacing: .25em; margin-top: 3px; }
.nav { display: none; align-items: center; gap: 1.3rem; }
.nav a { color: #fff; font-size: .88rem; text-decoration: none; padding-block: .5rem; }
.nav a:hover { text-decoration: underline; }
.header-cta { display: none !important; }
.btn { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; border: 1px solid transparent; border-radius: 4px; padding: .8rem 1.15rem; font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.4; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.btn-donate { background: var(--gold); color: var(--navy-deep); }
.btn-donate:hover { background: var(--gold-deep); color: var(--navy-deep); }
.btn-lg { padding: .95rem 1.3rem; }
.btn-ghost { color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; flex-shrink: 0; padding: 8px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { height: 2px; background: #fff; }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(90vw, 360px); max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; color: #fff; background: var(--navy-deep); padding: 5rem 1.6rem 2rem; overflow-y: auto; overscroll-behavior: contain; }
.drawer[open] { display: flex; flex-direction: column; gap: .3rem; }
.drawer::backdrop { background: rgba(13,22,35,.65); }
body.menu-open { overflow: hidden; }
.drawer a { flex-shrink: 0; color: #fff; font-size: 1.15rem; padding: .7rem 0; text-decoration: none; border-bottom: 1px solid #405066; }
.drawer .btn-donate { color: var(--navy-deep); margin-top: 1rem; padding-inline: 1rem; }
.drawer-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; background: transparent; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }
html:not(.js) .site-header { position: relative; }
html:not(.js) .site-header .container { flex-wrap: wrap; }
html:not(.js) .nav { display: flex; flex-wrap: wrap; }

/* Opening */
.hero { position: relative; isolation: isolate; background: var(--navy-deep); color: #fff; padding-block: clamp(3rem, 7vw, 6.5rem); }
.hero-layout { position: relative; z-index: 1; }
.hero-copy { min-width: 0; max-width: 640px; }
.hero h1 { font-size: clamp(2.7rem, 5.7vw, 5rem); font-weight: 800; max-width: 13ch; letter-spacing: -.04em; }
.hero .lede { max-width: 58ch; font-size: 1.05rem; line-height: 1.75; color: #e4e7eb; }
.hero .lede:first-of-type { font-size: clamp(1.12rem, 1.55vw, 1.3rem); color: #fff; }
.hero-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: rgba(10, 20, 30, .82); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 52% 58%; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.8rem; }
.text-link { color: #fff; font-weight: 500; padding-block: .65rem; }
.text-link:hover { color: var(--gold); }

/* Reading sections */
section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-layout { display: grid; gap: 1.5rem 4rem; }
.section-layout > * { min-width: 0; }
.section-head { margin-bottom: 1.75rem; }
.section-layout .section-head { margin-bottom: 0; }
.prose { max-width: 66ch; }
.prose p:last-child { margin-bottom: 0; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.kicker { display: block; font-size: .82rem; font-weight: 600; color: var(--clay); margin-bottom: 1rem; }
.method-section { background: var(--bg-deep); }
.method-section .section-head { max-width: 850px; margin-bottom: 2.2rem; }
.method-section h2 { font-size: clamp(2.3rem, 4.8vw, 4.15rem); max-width: 23ch; }
.method-copy { border-left: 3px solid var(--clay); padding-left: clamp(1.1rem, 3vw, 2.3rem); margin-left: auto; }

/* Issues read as a list, not clickable tiles. */
.issue-list { border-top: 2px solid var(--navy); }
.issue-row { display: grid; grid-template-columns: 2.5rem 1fr; gap: .5rem 1rem; padding-block: 1.7rem; border-bottom: 1px solid var(--line); }
.issue-number { font-size: .85rem; color: var(--clay); font-variant-numeric: tabular-nums; padding-top: .22rem; }
.issue-row h3 { margin: 0; }
.issue-row p { grid-column: 2; margin: 0; color: var(--ink-2); }

/* About and forthcoming endorsements */
#about { border-top: 1px solid var(--line); }
.about-grid { display: grid; gap: 2rem; min-width: 0; }
.about-grid > * { min-width: 0; }
.about-card { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.about-card h3 { font-size: 1.1rem; }
.about-card p { margin: 0; }
.endorse { padding-block: 2rem; }
.endorse .container { border-top: 1px solid var(--line); padding-top: 2rem; }
.endorse h2 { font-size: 1.25rem; letter-spacing: 0; }
.endorse-box p { color: var(--ink-2); max-width: 65ch; margin-bottom: 0; }

/* Contact and footer */
.donate-band { margin-top: 1.5rem; background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.donate-band h2 { max-width: 22ch; }
.donate-band p { max-width: 60ch; color: #e4e7eb; }
.contact-link { display: inline-block; padding-block: .5rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 2.6vw, 1.8rem); color: var(--gold); }
.contact-link:hover { color: #fff; }
.site-footer { background: var(--navy-deep); color: #d1d7df; padding-block: 2.2rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { font-size: .85rem; max-width: 42ch; margin-top: .8rem; margin-bottom: 0; }
.footer-links h2 { color: #fff; font-family: var(--body); font-size: .9rem; letter-spacing: 0; margin-bottom: .65rem; }
.footer-links a { display: block; width: fit-content; color: #d1d7df; font-size: .88rem; padding-block: .3rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.disclaimer { border-top: 1px solid #405066; margin-top: 1.6rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .78rem; }
.disclaimer strong { color: #fff; font-weight: 600; }
.disclaimer a { color: #d1d7df; }
#version { font-variant-numeric: tabular-nums; }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 44px; height: 44px; border: 1px solid var(--navy-deep); border-radius: 4px; background: var(--gold); color: var(--navy-deep); font-size: 1.2rem; cursor: pointer; visibility: hidden; }
.to-top.show { visibility: visible; }

/* Supporting pages */
.privacy { max-width: 72ch; padding-block: 3rem; }
.privacy h1 { font-size: clamp(2rem, 6vw, 3rem); }
.privacy h2 { font-size: 1.5rem; margin-top: 2rem; }
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--navy); color: #fff; padding: 2rem; }
.nf .code { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 18vw, 9rem); color: var(--gold); line-height: 1; }
.nf h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: .5rem 0 1rem; }
.nf p { max-width: 46ch; margin: 0 auto 2rem; }
.nf .actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
@media (min-width: 760px) {
  .hero-art::after { background: linear-gradient(90deg, rgba(10, 20, 30, .9) 0%, rgba(10, 20, 30, .82) 58%, rgba(10, 20, 30, .3) 100%); }
  .section-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
  .issue-row { grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1.7fr); gap: 1.5rem; padding-block: 2rem; }
  .issue-row p { grid-column: 3; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (min-width: 1100px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex !important; font-size: .88rem; }
  .nav-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
