/* Doug Jenkins for President 2028
   Colors and lettering follow the campaign's own flyer: bold blue capitals,
   red "Independent Write In", and the blue swoosh. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1b3a8c;
  --blue-dark: #112762;
  --navy: #0c1a44;
  --red: #c1272d;
  --red-dark: #9e1c22;
  --white: #fff;
  --gray: #f1f3f7;
  --line: #d8dde8;
  --ink: #121a2e;
  --ink-2: #47526a;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); }
button, input, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--red); color: var(--white); padding: 12px 18px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }

.h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 850; font-stretch: 112%; line-height: 1.02; text-transform: uppercase; color: var(--blue); letter-spacing: -0.005em; }
.h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 108%; text-transform: uppercase; color: var(--blue); line-height: 1.2; }
.lead { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.5; color: var(--ink); font-weight: 500; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; color: var(--red); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border: 2px solid transparent; border-radius: 4px; font-weight: 800; font-stretch: 108%; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }

/* Swoosh (from the flyer) */
.swoosh { width: 100%; height: 28px; fill: var(--red); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 4px solid var(--blue); }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(12, 26, 68, 0.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-name { font-size: 1.6rem; font-weight: 900; font-stretch: 118%; text-transform: uppercase; color: var(--blue); letter-spacing: 0.01em; }
.logo-sub { margin-top: 5px; font-size: 0.78rem; font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: 0.14em; color: var(--red); }
.logo-light .logo-name { color: var(--white); }
.logo-light .logo-sub { color: #ff8a8f; }

.nav { display: none; align-items: center; gap: 24px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 3px solid transparent; }
.nav ul a:hover { color: var(--blue); border-bottom-color: var(--line); }
.nav ul a[aria-current='page'] { color: var(--blue); border-bottom-color: var(--red); }

.menu-btn { display: inline-flex; align-items: center; background: var(--blue); color: var(--white); border: 0; border-radius: 4px; padding: 10px 14px; min-height: 44px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; cursor: pointer; }
.menu-open, .menu-close { display: inline-flex; align-items: center; gap: 8px; }
.menu-close, .menu-btn[aria-expanded='true'] .menu-open { display: none; }
.menu-btn[aria-expanded='true'] .menu-close { display: inline-flex; }
.menu { position: fixed; inset: calc(var(--header-h) + 4px) 0 0 0; background: var(--white); overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 40px; }
.menu-main a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-weight: 850; font-stretch: 110%; text-transform: uppercase; color: var(--blue); text-decoration: none; }
.menu-sub { margin: 20px 0 28px; }
.menu-sub a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu a[aria-current='page'] { color: var(--red); }
body.nav-open { overflow: hidden; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn, .menu { display: none !important; }
}

/* Hero */
.hero { background: var(--blue); color: var(--white); padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 900; font-stretch: 115%; text-transform: uppercase; line-height: 1.1; }
.hero-kicker span { display: inline-block; background: var(--red); color: var(--white); padding: 6px 10px; font-size: 0.55em; letter-spacing: 0.1em; font-weight: 800; line-height: 1.2; }
.hero-slogan { margin-top: 18px; font-size: clamp(3.1rem, 1.5rem + 7vw, 7rem); font-weight: 900; font-stretch: 112%; line-height: 0.92; text-transform: uppercase; letter-spacing: -0.01em; }
.swoosh-hero { margin: 22px 0 32px; max-width: 560px; height: 30px; }
.hero-join-label { font-size: 1.1rem; margin-bottom: 12px; color: #dfe6f8; }
.hero-join-label strong { color: var(--white); text-transform: uppercase; font-weight: 850; letter-spacing: 0.02em; margin-right: 4px; }
.hero-photo { display: flex; justify-content: center; }
.hero-photo .photo, .about-photo .photo { border: 10px solid var(--white); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5); background: var(--white); max-width: 400px; width: 100%; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Signup */
.signup { max-width: 560px; }
.signup-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 520px) { .signup-row { flex-direction: row; } }
.signup input { flex: 1; min-height: 54px; padding: 12px 16px; border: 2px solid transparent; border-radius: 4px; background: var(--white); color: var(--ink); font-size: 1.05rem; }
.signup input::placeholder { color: #6b7488; }
.signup input:focus { outline: none; border-color: var(--red); }
.signup .btn { min-height: 54px; }
.signup .field-error { color: #ffd2d4; }
.signup .form-status { color: var(--white); }

/* Meet */
.meet-grid, .about-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .meet-grid { grid-template-columns: 1.3fr 1fr; gap: 80px; } }
.meet-copy .h2 { margin-bottom: 24px; }
.meet-copy p { margin-bottom: 16px; color: var(--ink-2); max-width: 36em; }
.meet-copy .lead { color: var(--ink); }
.meet-copy .h3 { margin: 32px 0 8px; }
.meet-copy .btn { margin-top: 16px; }
.flyer { max-width: 440px; width: 100%; justify-self: center; }
.flyer picture { border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(12, 26, 68, 0.45); }
.flyer figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-2); text-align: center; }

/* Our Vision */
.vision { background: var(--gray); }
.vision-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.issues { display: grid; gap: 16px; }
@media (min-width: 720px) { .issues { grid-template-columns: 1fr 1fr; } }
.issue { display: flex; flex-direction: column; height: 100%; padding: 24px 26px 22px; background: var(--white); border-left: 6px solid var(--blue); text-decoration: none; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.issue:hover { border-left-color: var(--red); box-shadow: 0 10px 28px -14px rgba(12, 26, 68, 0.4); }
.issue-title { font-size: 1.3rem; font-weight: 850; font-stretch: 108%; text-transform: uppercase; color: var(--blue); line-height: 1.15; }
.issue-text { margin: 8px 0 14px; color: var(--ink-2); flex: 1; }
.issue-more { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); }
.issue:hover .issue-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dedication { margin-bottom: 36px; padding: 22px 26px; background: var(--gray); border-top: 4px solid var(--red); max-width: 760px; }
.dedication p { margin-top: 6px; font-size: 1.15rem; }

/* Statement */
.statement { background: var(--red); color: var(--white); padding: clamp(48px, 7vw, 88px) 0; }
.statement-text { font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); font-weight: 900; font-stretch: 110%; line-height: 1.02; text-transform: uppercase; max-width: 18ch; }
.statement-source { margin-top: 18px; font-weight: 600; }
.statement-source a { color: var(--white); }

/* Join band */
.join { background: var(--navy); color: var(--white); padding: clamp(48px, 7vw, 80px) 0; }
.join-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .join-inner { grid-template-columns: 1fr 1fr; gap: 56px; } }
.join-title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); font-weight: 900; font-stretch: 112%; text-transform: uppercase; line-height: 1; }
.join-text { margin-top: 10px; font-size: 1.2rem; color: #c9d3ee; }

/* Interior page header */
.page-head { position: relative; background: var(--blue); color: var(--white); padding: 24px 0 64px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; }
.crumbs li { display: flex; gap: 6px; color: #c9d3ee; }
.crumbs li + li::before { content: '›'; }
.crumbs a { color: var(--white); }
.page-title { margin-top: clamp(28px, 5vw, 48px); font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.4rem); font-weight: 900; font-stretch: 112%; line-height: 1; text-transform: uppercase; max-width: 22ch; overflow-wrap: break-word; }
.page-sub { margin-top: 14px; display: inline-block; background: var(--red); padding: 6px 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.swoosh-head { position: absolute; left: 0; right: 0; bottom: 14px; height: 24px; }

/* About */
@media (min-width: 960px) { .about-grid { grid-template-columns: 300px 1fr 340px; gap: 48px; } }
.about-photo .photo { max-width: 300px; border-color: var(--gray); }

/* Prose / issue pages */
.prose { max-width: 720px; }
.prose p { margin-bottom: 18px; font-size: 1.15rem; color: var(--ink); }
.prose .lead { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.prose .h3 { margin: 32px 0 8px; }
.prose a { font-weight: 700; }
.issue-body > p:first-child { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 500; }
.checks { margin: 4px 0 22px; }
.checks li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); font-weight: 600; line-height: 1.4; }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before { content: ''; position: absolute; left: 0; top: 21px; width: 18px; height: 10px; border-left: 4px solid var(--red); border-bottom: 4px solid var(--red); transform: rotate(-45deg); }
.next { margin-top: 36px; font-weight: 700; }
.next a { display: inline-flex; align-items: center; gap: 6px; }
.issue-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .issue-grid { grid-template-columns: 1fr 300px; gap: 72px; } }
.issue-side { background: var(--gray); padding: 24px; align-self: start; }
@media (min-width: 960px) { .issue-side { position: sticky; top: calc(var(--header-h) + 24px); } }
.side-h { font-size: 1rem; font-weight: 900; text-transform: uppercase; color: var(--blue); letter-spacing: 0.04em; margin-bottom: 8px; }
.issue-side a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.issue-side li:last-child a { border-bottom: 0; }
.issue-side a:hover { color: var(--blue); text-decoration: underline; }
.issue-side a[aria-current='page'] { color: var(--red); font-weight: 800; }

/* Contact */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 72px; } }
.contact { margin-top: 24px; }
.contact div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact dt { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); }
.contact dd { font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.contact a { color: var(--ink); }
.form { background: var(--gray); padding: clamp(24px, 4vw, 40px); border-top: 6px solid var(--blue); }
.form .h3 { margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 4px; background: var(--white); font-size: 1rem; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field [aria-invalid='true'] { border-color: var(--red); }
.field-error { margin-top: 6px; color: var(--red-dark); font-weight: 700; font-size: 0.9rem; }
.form-status { margin-top: 14px; font-weight: 700; }
.form-status:empty { display: none; }
.form-help { margin-top: 12px; font-size: 0.9rem; color: var(--ink-2); }

/* News */
.news { display: grid; gap: 20px; margin-top: 28px; }
.news li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.news time { font-weight: 800; color: var(--red); font-size: 0.85rem; text-transform: uppercase; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d3ee; padding: 0 0 28px; font-size: 0.95rem; }
.swoosh-footer { height: 26px; fill: var(--red); transform: translateY(-1px); margin-bottom: 48px; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.2fr 0.7fr 1.5fr 1.1fr; } }
.footer-slogan { margin-top: 16px; font-size: 1.3rem; font-weight: 900; font-stretch: 110%; text-transform: uppercase; color: var(--white); }
.footer-h { font-size: 0.85rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 14px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #e3e9f8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (min-width: 480px) { .footer-issues { columns: 2; column-gap: 24px; } .footer-issues li { break-inside: avoid; margin: 0 0 8px !important; } }
.footer-contact li { overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 0.85rem; }
.paid-for { border: 2px solid var(--white); padding: 8px 14px; color: var(--white); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .join, .site-footer .footer-grid, .issue-side { display: none !important; } .hero, .page-head, .statement { background: none !important; color: #000 !important; } }

@media (max-width: 479px) {
  :root { --header-h: 68px; }
  .logo-name { font-size: 1.2rem; white-space: nowrap; }
  .logo-sub { font-size: 0.66rem; }
  .hero-photo .photo { max-width: 300px; }
}

/* Header buttons */
.nav-btns { display: flex; gap: 8px; }
.menu-btns { display: grid; gap: 10px; }
.icon-flip { transform: scaleX(-1); }
.btn-lg { min-height: 60px; padding: 14px 40px; font-size: 1.1rem; }
@media (min-width: 960px) and (max-width: 1119px) { .nav ul a { padding: 10px 8px; font-size: 0.88rem; } .nav { gap: 12px; } }

/* Campaign Moments slider */
.moments .h2 { margin-bottom: 32px; }
.slides { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 720px) { .slide { flex-basis: calc(50% - 8px); } }
@media (min-width: 1100px) { .slide { flex-basis: calc(33.333% - 11px); } }
.slide figure { background: var(--gray); height: 100%; display: flex; flex-direction: column; }
.slide picture { height: 420px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.slide img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 10px 24px -12px rgba(12, 26, 68, 0.45); }
.slide figcaption { padding: 14px 20px; border-top: 4px solid var(--blue); font-weight: 700; background: var(--white); }
.slider-nav { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.slider-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--blue); background: var(--white); color: var(--blue); cursor: pointer; }
.slider-btn:hover { background: var(--blue); color: var(--white); }
.slider-btn:disabled { opacity: 0.35; cursor: default; background: var(--white); color: var(--blue); }
.slider-count { font-weight: 800; min-width: 3ch; text-align: center; }

/* Support the Campaign */
.support { background: var(--gray); border-top: 6px solid var(--red); padding: clamp(48px, 7vw, 80px) 0; }
.support-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .support-inner { grid-template-columns: 1fr auto; gap: 56px; } }
.support-text { margin-top: 12px; font-size: 1.2rem; max-width: 40em; }
.contact-sub { margin-top: 28px; }
@media (min-width: 1100px) { .slides:has(> .slide:nth-child(2):last-child) .slide { flex-basis: calc(50% - 8px); } }
.slider-nav[hidden] { display: none; }

.hero-slogan2 { margin: -14px 0 28px; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); font-weight: 800; font-stretch: 110%; text-transform: uppercase; color: #dfe6f8; letter-spacing: 0.02em; }

/* Mobile sticky action bar */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); box-shadow: 0 -6px 20px rgba(12, 26, 68, 0.18); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 850; font-stretch: 108%; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; }
.action-bar a:nth-child(1) { background: var(--red); color: var(--white); }
.action-bar a:nth-child(2) { background: var(--white); color: var(--blue); }
.action-bar a:nth-child(3) { background: var(--blue); color: var(--white); }
.action-bar a:focus-visible { outline-offset: -4px; outline-color: var(--ink); }
body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
body.nav-open .action-bar { display: none; }
@media (min-width: 960px) { .action-bar { display: none; } body { padding-bottom: 0; } }
.slide figcaption { flex: 1; }
@media (max-width: 719px) { .slide picture { height: 320px; padding: 12px; } }
