/* ==========================================================================
   KOVACH FOR OHIO — DEMO SITE STYLES
   Fictional model candidate. Not a real campaign.
   Brand: Ink Navy #16212C · Ballot Red #BF3326 · Mill Steel #3F6180 ·
          Stamp Ochre #A0742A (seals only) · Receipt Paper #F1EFE7
   Type: Libre Franklin (display) · Newsreader (body) · IBM Plex Mono (figures)
   ========================================================================== */

:root {
  --ink: #16212C;
  --red: #BF3326;
  --red-dark: #9E2a20;   /* darkened red for small text / links on paper (AA) */
  --steel: #3F6180;
  --ochre: #A0742A;      /* seals / stamps only */
  --paper: #F1EFE7;
  --paper-card: #FBFAF5;
  --line: #CFC9BC;       /* hairline on paper */

  /* reversed / dark */
  --ink-bg: #11171E;
  --d-text: #ECE7DD;
  --d-red: #E5584A;
  --d-steel: #86AECB;
  --d-ochre: #D7AB52;

  --sans: "Libre Franklin", system-ui, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --wrap: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4, .sans {
  font-family: var(--sans);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }

a { color: var(--red-dark); }
a:hover, a:focus { color: var(--red); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--steel);
  margin: 0 0 0.6em;
}
.center { text-align: center; }

/* ---- Skip link / accessibility ---- */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 300;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--d-steel); outline-offset: 2px; }

/* ==========================================================================
   DEMO ribbon — on every page
   ========================================================================== */
.demo-ribbon {
  position: fixed;
  top: 20px; right: -58px;
  transform: rotate(45deg);
  background: var(--ochre);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  padding: 7px 70px;
  z-index: 250;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  text-align: center;
  pointer-events: none;
}

/* ==========================================================================
   Logo / mark
   ========================================================================== */
.mark { display: inline-block; vertical-align: middle; }
.lockup {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.lockup .wordmark {
  font-family: var(--sans); font-weight: 900; letter-spacing: -0.02em;
  font-size: 1.5rem; line-height: 1; color: var(--ink);
}
.lockup .subline {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel); display: block; margin-top: 3px;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(241,239,231,0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; padding: 8px 20px; max-width: var(--wrap); margin: 0 auto;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: var(--radius);
  display: inline-block;
}
.nav-links a:hover, .nav-links a:focus { background: rgba(63,97,128,.12); color: var(--ink); }
.nav-links a.active { color: var(--red); }
.nav-links a.btn-donate {
  background: var(--red); color: #fff; margin-left: 6px;
}
.nav-links a.btn-donate:hover, .nav-links a.btn-donate:focus { background: var(--red-dark); color:#fff; }

.nav-toggle {
  display: none; background: var(--ink); color: #fff; border: 0;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
  padding: 11px 14px; border-radius: var(--radius); cursor: pointer; min-height: 44px;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 12px 14px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; border-radius: var(--radius); }
  .nav-links a.btn-donate { margin: 6px 0 0; text-align: center; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 800; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 0;
  padding: 14px 22px; min-height: 48px; border-radius: var(--radius);
  letter-spacing: 0.01em; transition: transform .05s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--red-dark); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover, .btn-ink:focus { background: #0c131a; color: #fff; }
.btn-steel { background: var(--steel); color: #fff; }
.btn-steel:hover, .btn-steel:focus { background: #2f4d66; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover, .btn-outline:focus { background: var(--ink); color: #fff; }
.btn-lg { font-size: 1.1rem; padding: 16px 28px; }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 64px 0; }
.section-tight { padding: 44px 0; }
.lede { font-size: 1.3rem; }
.measure { max-width: 60ch; }

/* ==========================================================================
   HERO — Ballot Red
   ========================================================================== */
.hero {
  background: var(--red);
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  max-width: var(--wrap); margin: 0 auto; padding: 56px 20px 64px;
}
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 900;
  text-wrap: balance;
}
.hero .reversed-lockup { margin-bottom: 22px; }
.hero .bio-line {
  font-family: var(--mono); font-size: 1rem; letter-spacing: 0.02em;
  background: rgba(0,0,0,.18); display: inline-block; padding: 8px 12px; border-radius: var(--radius);
  margin-bottom: 8px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .cta-row .btn-primary { background: #fff; color: var(--red-dark); }
.hero .cta-row .btn-primary:hover, .hero .cta-row .btn-primary:focus { background: var(--paper); color: var(--red-dark); }
.hero .cta-row .btn-outline { box-shadow: inset 0 0 0 2px #fff; color: #fff; }
.hero .cta-row .btn-outline:hover, .hero .cta-row .btn-outline:focus { background:#fff; color: var(--red-dark); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 44px; }
}

/* ==========================================================================
   RECEIPT motif
   ========================================================================== */
.receipt {
  background: var(--paper-card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
  padding: 26px 24px 30px;
  position: relative;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  border-radius: 2px;
  /* torn / zigzag bottom edge */
}
.receipt::before, .receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background-size: 14px 14px;
}
.receipt::before {
  top: -9px;
  background-image:
    linear-gradient(135deg, var(--paper-card) 50%, transparent 50%),
    linear-gradient(225deg, var(--paper-card) 50%, transparent 50%);
  background-position: top left;
}
.receipt::after {
  bottom: -9px;
  background-image:
    linear-gradient(45deg, var(--paper-card) 50%, transparent 50%),
    linear-gradient(-45deg, var(--paper-card) 50%, transparent 50%);
  background-position: bottom left;
}
.receipt .r-head { text-align: center; border-bottom: 2px dashed var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.receipt .r-store {
  font-family: var(--sans); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.02em;
  text-transform: uppercase; display: block;
}
.receipt .r-meta { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--steel); text-transform: uppercase; }
.receipt .r-line {
  display: flex; justify-content: space-between; gap: 10px; padding: 4px 0;
  font-variant-numeric: tabular-nums;
}
.receipt .r-line .r-item { flex: 1; }
.receipt .r-line .r-amt { white-space: nowrap; font-weight: 600; }
.receipt .r-dot { border-bottom: 1px dotted var(--line); margin: 8px 0; }
.receipt .r-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px dashed var(--ink); margin-top: 10px; padding-top: 12px;
}
.receipt .r-total .r-label { font-family: var(--sans); font-weight: 900; font-size: 1rem; }
.receipt .r-total .r-val { font-family: var(--sans); font-weight: 900; font-size: 1.15rem; color: var(--red); }
.receipt .r-note { font-size: 0.72rem; color: var(--steel); text-align: center; margin-top: 14px; letter-spacing: 0.04em; }

/* AUDITED stamp */
.stamp {
  position: absolute; right: 14px; bottom: 56px;
  transform: rotate(-14deg);
  border: 3px solid var(--red);
  color: var(--red);
  font-family: var(--mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 12px; border-radius: 6px;
  font-size: 0.8rem; line-height: 1.15; text-align: center;
  opacity: 0.9;
  box-shadow: 0 0 0 2px rgba(191,51,38,.15) inset;
}
.stamp .big { font-size: 1.05rem; display: block; }

/* ==========================================================================
   Receipt line-items (Issues page) — expandable
   ========================================================================== */
.issue-receipt {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 760px; margin: 0 auto; box-shadow: 0 6px 20px rgba(0,0,0,.06);
  overflow: hidden;
}
.issue-row { border-bottom: 1px dashed var(--line); }
.issue-row:last-child { border-bottom: 0; }
.issue-row summary {
  list-style: none; cursor: pointer; padding: 18px 20px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-variant-numeric: tabular-nums; min-height: 44px;
}
.issue-row summary::-webkit-details-marker { display: none; }
.issue-row summary:hover, .issue-row summary:focus { background: rgba(63,97,128,.07); }
.issue-row .i-name { font-family: var(--sans); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.issue-row .i-tag { font-size: 0.72rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.08em; display:block; margin-top:4px; }
.issue-row .i-amt { font-family: var(--sans); font-weight: 900; color: var(--red); white-space: nowrap; }
.issue-row .i-plus { font-family: var(--mono); color: var(--steel); margin-left: 8px; }
.issue-row[open] .i-plus { color: var(--red); }
.issue-row .i-body { padding: 0 20px 20px; font-family: var(--serif); }
.issue-row .i-body p:last-child { margin-bottom: 0; }

/* contrast "he votes with them" receipt */
.contrast-receipt { background: var(--ink); color: var(--d-text); border-color: #27333f; }
.contrast-receipt .issue-row { border-color: #27333f; }
.contrast-receipt .issue-row .i-name { color: #fff; }
.contrast-receipt .issue-row summary:hover, .contrast-receipt .issue-row summary:focus { background: rgba(255,255,255,.06); }
.contrast-receipt .issue-row .i-amt { color: var(--d-red); }
.contrast-receipt .issue-row .i-tag { color: var(--d-steel); }
.contrast-receipt .issue-row .i-body { color: var(--d-text); }
.contrast-receipt .issue-row .i-plus { color: var(--d-steel); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.card h3 { font-size: 1.25rem; }

.press-item {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--paper-card); border: 1px solid var(--line); border-left: 5px solid var(--red);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,.05);
}
.press-item:hover, .press-item:focus { color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.press-item .p-date { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--steel); }
.press-item .p-kind { font-family: var(--mono); font-size: 0.72rem; color: var(--red); font-weight: 600; }
.press-item h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.press-item p { margin: 0; }

/* latest strip */
.latest .press-item { border-left-color: var(--steel); }

/* ==========================================================================
   Band sections
   ========================================================================== */
.band-ink { background: var(--ink); color: var(--d-text); }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .eyebrow { color: var(--d-steel); }
.band-ink a { color: var(--d-steel); }
.band-ink a:hover, .band-ink a:focus { color: #fff; }
.band-steel { background: var(--steel); color: #fff; }
.band-steel h2, .band-steel .eyebrow { color: #fff; }
.band-paper2 { background: #E8E5DA; }

/* quote */
.pullquote {
  font-family: var(--sans); font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  line-height: 1.12; letter-spacing: -0.02em; max-width: 24ch; margin: 0 auto; text-wrap: balance;
}
.pullquote .by { display:block; font-family: var(--mono); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 16px; }

/* ==========================================================================
   Meet Tess
   ========================================================================== */
.bio-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; gap: 26px; } }
.bio-photo { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.18); width: 100%; }
.photo-cap { font-family: var(--mono); font-size: 0.72rem; color: var(--steel); letter-spacing: 0.06em; margin-top: 8px; text-transform: uppercase; }

.glance {
  width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.95rem;
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.glance th, .glance td { text-align: left; padding: 11px 16px; border-bottom: 1px dashed var(--line); }
.glance tr:last-child th, .glance tr:last-child td { border-bottom: 0; }
.glance th { color: var(--steel); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; font-weight: 600; width: 38%; }
.glance td { font-family: var(--sans); font-weight: 700; }

.photo-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 680px) { .photo-strip { grid-template-columns: 1fr 1fr; } }
.photo-strip figure { margin: 0; }
.photo-strip img { border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.12); aspect-ratio: 4/3; object-fit: cover; width:100%; }

/* ==========================================================================
   Forms (mock)
   ========================================================================== */
.form-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.form-card h3 { font-size: 1.4rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--sans); font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--serif); font-size: 1rem; /* 16px: no iOS zoom */
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--steel); outline: 3px solid rgba(63,97,128,.3); outline-offset: 0; }

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 480px){ .amount-grid { grid-template-columns: repeat(2,1fr); } }
.amount-grid button {
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem; padding: 14px 0; min-height: 48px;
  border: 2px solid var(--steel); background: #fff; color: var(--ink); border-radius: var(--radius); cursor: pointer;
}
.amount-grid button[aria-pressed="true"] { background: var(--steel); color: #fff; }

.form-note {
  font-family: var(--mono); font-size: 0.78rem; color: var(--steel); margin-top: 14px; letter-spacing: 0.03em;
}
.form-result {
  display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius);
  background: #E7EFE4; border: 1px solid #9BBF8F; color: #234d1b;
  font-family: var(--mono); font-size: 0.92rem;
}
.form-result.show { display: block; }
.form-result strong { font-family: var(--sans); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink-bg); color: var(--d-text);
  padding: 48px 0 40px; margin-top: 0;
  border-top: 5px solid var(--red);
}
.site-footer .foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer .foot-grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--d-steel); margin-bottom: 12px; }
.site-footer a { color: var(--d-steel); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-lockup .wordmark { color: #fff; }
.footer-lockup .subline { color: var(--d-steel); }
.keeps { font-family: var(--mono); color: var(--d-red); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 10px; }

.social { display: flex; gap: 12px; margin-top: 6px; }
.social a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #2a3540; border-radius: 50%;
}
.social a:hover, .social a:focus { background: #1b2630; }
.social svg { width: 18px; height: 18px; fill: var(--d-steel); }
.social a:hover svg, .social a:focus svg { fill: #fff; }

.disclaimer {
  border-top: 1px solid #2a3540; margin-top: 34px; padding-top: 22px;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.7; color: #A9B4BE;
}
.disclaimer .paidfor { color: var(--d-text); font-weight: 600; }
.disclaimer .fict { display: block; margin-bottom: 8px; }
.disclaimer .credit { display: block; margin-top: 10px; color: #8893A0; }
.disclaimer .credit strong { color: var(--d-ochre); font-weight: 700; }

/* demo note banner under header (sitewide, honest) */
.demo-banner {
  background: var(--ochre); color: #fff; text-align: center;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em;
  padding: 7px 44px 7px 14px;
}
.demo-banner strong { font-weight: 700; }

/* utility */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.hide { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
