/* Texas Stands Together - site styles
   Palette is the Lone Star flag triad, per the brand spec. */

:root {
  --navy: #0A2540;
  --navy-deep: #06192B;
  --red: #9B2226;
  --red-dark: #7A1A1D;
  --gold: #9C7A1E;
  --sand: #D8C9A3;
  --sand-light: #EFE6D2;
  --cream: #FBF6EF;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --rule: #E2D8C4;
  --shadow: 0 1px 2px rgba(10,37,64,.06), 0 8px 24px rgba(10,37,64,.07);
  --shadow-lift: 0 2px 4px rgba(10,37,64,.08), 0 16px 40px rgba(10,37,64,.12);
  --wrap: 1120px;
  --display: "Oswald", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }

.eyebrow {
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  font-weight: 500;
}
.eyebrow.on-navy { color: var(--sand); }

.lede { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.6; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; z-index: 200;
}
.skip:focus { left: 0; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,246,239,.95);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .7rem 0;
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name {
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--navy);
}
.brand-tag { font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--red); font-weight: 700; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  font-family: var(--display); font-size: .93rem; font-weight: 500;
  letter-spacing: .04em; color: var(--navy); text-decoration: none;
  padding: .5rem .8rem; border-radius: 4px;
}
.nav a:hover { background: var(--sand-light); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav .btn-nav {
  background: var(--navy); color: #fff; padding: .55rem 1.05rem; margin-left: .5rem;
}
.nav .btn-nav:hover { background: var(--red); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  border-radius: 5px; padding: .5rem .65rem; cursor: pointer; color: var(--navy);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: -1.25rem; right: -1.25rem;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--rule);
    padding: .5rem 1.25rem 1rem; display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .4rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav .btn-nav { margin: .75rem 0 0; text-align: center; border-radius: 4px; border-bottom: 0; }
}

@media (max-width: 430px) {
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: .92rem; letter-spacing: .08em; }
  .brand-tag { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: clamp(3.25rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5.25rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 82% 6%, rgba(155,34,38,.36), transparent 62%),
    radial-gradient(700px 420px at 4% 98%, rgba(156,122,30,.26), transparent 64%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1, .hero h2 { color: #fff; }

.hero-grid {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-seal { order: -1; max-width: 210px; margin-inline: auto; }
}

.hero-seal img {
  width: 100%; border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.26rem);
  color: rgba(255,255,255,.86);
  max-width: 48ch; margin-bottom: 2rem;
}

.hero-rule {
  width: 84px; height: 4px; margin: 0 0 1.5rem;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--gold) 66% 100%);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-note {
  margin-top: 2.2rem; padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .93rem; color: rgba(255,255,255,.7); max-width: 54ch;
}

.hero--page { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.hero--page .hero-sub { max-width: 60ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-size: .98rem; font-weight: 500; letter-spacing: .045em;
  padding: .85rem 1.6rem; border-radius: 5px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */

section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-sand { background: var(--sand-light); border-block: 1px solid var(--rule); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.85); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-white { background: var(--white); border-block: 1px solid var(--rule); }

.section-head { max-width: 64ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Issue cards ---------- */

.issues { display: grid; grid-template-columns: repeat(auto-fit, minmax(318px, 1fr)); gap: 1.1rem; }

.issue {
  position: relative; background: var(--white);
  border: 1px solid var(--rule); border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.issue:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.issue::after {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  background: var(--gold); border-radius: 0 3px 3px 0;
}
.issue-num {
  font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .16em;
  color: var(--red); display: block; margin-bottom: .35rem;
}
.issue h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.issue p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 1.25rem; align-items: start;
  background: var(--white); border: 1px solid var(--rule); border-radius: 8px;
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
}
.step h3 { margin-bottom: .35rem; font-size: 1.14rem; }
.step p { font-size: .97rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: .8rem; }
}

/* ---------- Cards and grids ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 8px;
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card--navy { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); box-shadow: none; }
.card--navy p { color: rgba(255,255,255,.8); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 840px) { .split { grid-template-columns: 1fr; } }

/* ---------- Lists ---------- */

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2rem; font-size: 1rem; color: var(--ink-soft); }
.checklist li::before {
  content: "\2605"; position: absolute; left: 0; top: -.05em;
  color: var(--gold); font-size: 1.05rem;
}
.checklist strong { color: var(--ink); font-weight: 600; }
.section-navy .checklist li { color: rgba(255,255,255,.82); }
.section-navy .checklist strong { color: #fff; }
.section-navy .checklist li::before { color: var(--sand); }

.numlist { padding-left: 1.2rem; margin: 0; display: grid; gap: .85rem; }
.numlist li { padding-left: .4rem; color: var(--ink-soft); }
.numlist li::marker { color: var(--red); font-weight: 700; font-family: var(--display); }
.numlist strong { color: var(--ink); }

/* ---------- Pull quote ---------- */

.pullquote {
  border-left: 4px solid var(--red);
  padding: .3rem 0 .3rem 1.6rem;
  margin: 2.2rem 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.34; color: var(--navy);
}
.pullquote cite { display: block; font-family: var(--body); font-size: .82rem; font-style: normal;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: .9rem; }
.section-navy .pullquote { color: #fff; border-left-color: var(--sand); }

/* ---------- Tracker ---------- */

.tracker { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.status {
  background: var(--white); border: 1px solid var(--rule); border-top: 5px solid var(--rule);
  border-radius: 8px; padding: 1.5rem; box-shadow: var(--shadow);
}
.status--undecided { border-top-color: #8E98A2; }
.status--yes { border-top-color: #2F7D4F; }
.status--no { border-top-color: var(--red); }
.status-label {
  font-family: var(--display); letter-spacing: .16em; text-transform: uppercase;
  font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: .55rem;
  margin-bottom: .7rem;
}
.status--undecided .status-label { color: #55606B; }
.status--yes .status-label { color: #2F7D4F; }
.status--no .status-label { color: var(--red); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.status--undecided .dot { background: #8E98A2; }
.status--yes .dot { background: #2F7D4F; }
.status--no .dot { background: var(--red); }
.status p { font-size: .95rem; color: var(--ink-soft); }
.status .evidence {
  margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--rule);
  font-size: .87rem; color: var(--ink-soft);
}
.status .evidence strong {
  color: var(--navy); display: block; font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: .25rem;
}

.tally {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: 8px; overflow: hidden; margin-bottom: 2.4rem;
}
.tally div { background: var(--white); padding: 1.4rem 1rem; text-align: center; }
.tally .n { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--navy); display: block; }
.tally .k { font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); margin-top: .45rem; display: block; }

/* ---------- Callout ---------- */

.callout {
  background: var(--sand-light); border: 1px solid var(--sand);
  border-left: 4px solid var(--gold); border-radius: 6px;
  padding: 1.35rem 1.5rem; font-size: .96rem; color: var(--ink-soft);
}
.callout strong { color: var(--navy); }
.callout--red { border-left-color: var(--red); }

/* ---------- Sources ---------- */

.sources { font-size: .87rem; color: var(--ink-soft); margin-top: 2rem; }

/* ---------- CTA band ---------- */

.band {
  background: var(--red); color: #fff; text-align: center;
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
}
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.92); max-width: 58ch; margin-inline: auto; }
.band .hero-actions { justify-content: center; margin-top: 1.8rem; }
.band .btn-ghost:hover { color: var(--red); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 3.25rem 0 2rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.site-footer h4 {
  font-family: var(--display); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sand); margin: 0 0 .9rem;
}
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--sand); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .84rem; color: rgba(255,255,255,.55);
}

/* ---------- Utility ---------- */

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .issue:hover { transform: none; }
}
