/*
  ============================================================================
  kansasdeservesbetter.com
  ============================================================================
  @file       style.css
  @desc       One page, mobile first. Breakpoints at 600 and 900 px.
              Shares its palette and type with the full-record site.
  @author     mediaBrilliance digitalxtudio
  @version    0.1.0
  @updated    2026-10-05
  ============================================================================
*/

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0b0b;
  --panel: #161616;
  --line: #2a2a2a;
  --text: #f2efe8;
  --muted: #b3aea4;     /* 8.9:1 on --bg */
  --accent: #f5c400;    /* sunflower, 12:1 on --bg */
  --accent-ink: #0b0b0b;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; text-transform: uppercase; margin: 0; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 11, .94);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; }
.mark { font: 700 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--text); text-decoration: none; white-space: nowrap; padding: .75rem 0; }  /* 24px+ tap target */
.mark span { color: var(--accent); }
.nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font: 500 .9rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); text-decoration: none; padding: .75rem .5rem; white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a.vote { color: var(--accent); }
@media (max-width: 599px) { .nav a:not(.vote) { display: none; } }

/* -------------------------------------------------------------------- hero */
.hero { padding: clamp(3rem, 10vw, 7rem) 0 clamp(2.5rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.kicker { font: 500 .95rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 6.5rem); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 40rem; margin: 1.5rem 0 2rem; color: var(--text); }
.cta {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font: 700 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; padding: 1rem 1.5rem; border-radius: 2px;
}
.cta:hover { background: #fff; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(2rem, 6vw, 3.75rem); margin-bottom: 1.25rem; }
.section > .wrap > p { max-width: 42rem; }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 42rem; margin: 0 0 2.5rem; }

/* stats: the numbers carry the argument */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 2.5rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 1.25rem 1rem; }
.stat b { display: block; font: 700 clamp(2.4rem, 7vw, 3.6rem)/1 var(--display); color: var(--accent); }
.stat span { display: block; margin-top: .5rem; color: var(--muted); font-size: .95rem; line-height: 1.35; }

/* items: one claim, one source */
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) {
  .items { grid-template-columns: 1fr 1fr; }
  .item:last-child:nth-child(odd) { grid-column: 1 / -1; }  /* no empty cell when the count is odd */
}
.item { background: var(--bg); padding: 1.5rem 1.25rem; }
.item h3 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin-bottom: .6rem; }
.item p { margin: 0 0 .75rem; }
.item .when { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.src { font-size: .9rem; color: var(--muted); }
.src a { color: var(--muted); }
.src a:hover { color: var(--accent); }

blockquote { margin: 0 0 .75rem; padding-left: 1rem; border-left: 4px solid var(--accent); font-size: 1.15rem; }

/* ------------------------------------------------------------------- vote */
.vote-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 600px) { .vote-list { grid-template-columns: 1fr 1fr; } }
.vote-list li { background: var(--bg); padding: 1.25rem; }
.vote-list b { display: block; font: 700 1.5rem/1.1 var(--display); text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }

/* ----------------------------------------------------------------- footer */
.site-footer { padding: 2.5rem 0 3rem; color: var(--muted); font-size: .9rem; text-align: center; }
.site-footer p { margin: 0 auto .6rem; max-width: 46rem; }
.site-footer .foot-line { max-width: none; }
.foot-line span + span::before { content: "\00b7"; margin: 0 .6em; color: var(--muted); }
@media (min-width: 900px) { .foot-line span { white-space: nowrap; } }  /* break between parts, never inside one */
@media (max-width: 899px) {
  .foot-line span { display: block; }
  .foot-line span + span::before { content: none; }
}
.site-footer a { color: var(--muted); display: inline-block; padding: .2rem 0; }

/* studio credit, same as the other mediaBrilliance builds */
.credit { margin: 1.4rem 0 0; font-size: .75rem; letter-spacing: .02em; }
.site-footer .credit a { display: inline-flex; align-items: center; gap: .4rem; margin-left: .2rem;
  padding: 0; color: var(--muted); text-decoration: none; vertical-align: middle; }
.credit img { display: block; width: auto; height: 1em; }
.site-footer .credit a:hover, .site-footer .credit a:focus-visible { color: var(--accent); }

/* citations under a claim block, and the patients' quotes */
.cite { margin: -1rem 0 2rem; }
.stats-src { margin: -1.75rem 0 2.5rem; }

/* the way through to the full record */
.through { padding: clamp(3rem, 8vw, 5rem) 0; border-bottom: 1px solid var(--line); text-align: center; }
.through p { max-width: 36rem; margin: 0 auto 1.75rem; font-size: 1.15rem; }
.through .cta { font-size: clamp(1.15rem, 3vw, 1.5rem); padding: 1.15rem 1.75rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* quick answers: one question per block */
.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; } }
.qa { background: var(--bg); padding: 1.5rem 1.25rem; }
.qa h3 { font-size: clamp(1.2rem, 2.6vw, 1.4rem); text-transform: none; margin-bottom: .6rem; }
.qa p { margin: 0 0 .75rem; }
