/* tomwilkins.us — shared styles
   Palette pulled from the campaign brochure: deep navy, flag red, pine green, parchment. */

:root {
  --navy-900: #0c1830;
  --navy-800: #12213f;
  --navy-700: #1a2f57;
  --navy-600: #253f70;
  --red: #bf2233;
  --red-dark: #9c1a28;
  --green: #2f5d3a;
  --green-light: #6f9a6a;
  --cream: #faf6ec;
  --cream-2: #f1ead8;
  --ink: #1b2233;
  --ink-soft: #4a5368;
  --gold: #c9a34e;
  --white: #ffffff;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-caps: "Cinzel", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1180px;
  --radius: 10px;
  --shadow: 0 18px 40px -18px rgba(12, 24, 48, 0.45);
}

*, *::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(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy-900); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 24, 48, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--red);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand {
  font-family: var(--font-caps); font-weight: 700; letter-spacing: .08em;
  color: var(--cream); text-decoration: none; font-size: 1.15rem; white-space: nowrap;
}
.brand span { color: var(--gold); }
.brand:hover { color: var(--white); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  color: #d9deea; text-decoration: none; font-size: .95rem; font-weight: 600;
  letter-spacing: .02em;
}
.nav a:hover { color: var(--white); }
.nav .nav-links { display: flex; gap: 1.4rem; }

@media (max-width: 860px) {
  .nav .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: .03em;
  padding: .85rem 1.35rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #244a2d; color: var(--white); }
.btn-ghost { border-color: rgba(250, 246, 236, .55); color: var(--cream); }
.btn-ghost:hover { background: rgba(250, 246, 236, .1); color: var(--white); }
.btn-navy { background: var(--navy-800); color: var(--cream); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }

/* ---------- Typography helpers ---------- */
.kicker {
  font-family: var(--font-caps); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: .85rem; color: var(--red);
  margin: 0 0 .6rem;
}
.on-dark .kicker { color: var(--gold); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 1rem; color: var(--navy-800); }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.4rem; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream); }

.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-soft); }
.on-dark .lead { color: #cfd6e6; }

.rule {
  display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0 1.4rem;
}
.rule::before, .rule::after { content: ""; height: 3px; width: 56px; background: var(--red); border-radius: 2px; }
.rule span { color: var(--gold); font-size: 1.1rem; line-height: 1; }
.rule.center { justify-content: center; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; scroll-margin-top: 64px; }
.section-navy { background: var(--navy-800); color: #e6e9f1; }
.section-navy-deep { background: var(--navy-900); color: #e6e9f1; }
.section-cream2 { background: var(--cream-2); }
.section-green { background: var(--green); color: var(--cream); }

.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Star-field texture used on navy sections */
.stars {
  background-image:
    radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.3px),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.1px);
  background-size: 34px 34px, 22px 22px;
  background-position: 0 0, 11px 17px;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 60%, #183225 140%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: end;
}
.hero-copy { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero h1 {
  font-family: var(--font-caps); font-weight: 700; letter-spacing: .02em;
  font-size: clamp(3rem, 8vw, 5.6rem); line-height: .98; margin-bottom: .4rem;
}
.hero .subtitle {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: #dfe4ef; margin: 0 0 1.4rem;
}
.hero-photo {
  position: relative; align-self: end;
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.12); border-bottom: 0;
}
.hero-photo img { width: 100%; aspect-ratio: 840 / 1070; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-photo { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ---------- Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: rgba(255,255,255,.12);
  border-top: 3px solid var(--red);
}
.stat { background: var(--navy-900); padding: 1.6rem 1.2rem; text-align: center; }
.stat b {
  display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  color: var(--cream); line-height: 1.1;
}
.stat span { display: block; font-size: .92rem; color: #aeb8cf; margin-top: .35rem; line-height: 1.35; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.media-left > .split-media { order: -1; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split-media figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .7rem; font-style: italic; }
.on-dark .split-media figcaption { color: #aeb8cf; }
.split-media.tall img { max-height: 720px; object-fit: cover; object-position: top; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.media-left > .split-media { order: 0; }
  .split-media { max-width: 520px; margin-inline: auto; }
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.7rem 1.6rem;
  box-shadow: 0 1px 0 rgba(12,24,48,.06), 0 12px 30px -20px rgba(12,24,48,.35);
  border-top: 4px solid var(--navy-700);
}
.card.red { border-top-color: var(--red); }
.card.card-feature { grid-column: 1 / -1; }
.card.card-feature p { max-width: 900px; }
.card.green { border-top-color: var(--green); }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0 0 .6rem; color: var(--ink-soft); font-size: 1.05rem; }
.card p:last-child { margin-bottom: 0; }
.card .meta { font-family: var(--font-caps); font-size: .78rem; letter-spacing: .14em; color: var(--red); text-transform: uppercase; margin-bottom: .4rem; }
.on-dark .card { background: var(--navy-700); border-top-color: var(--gold); box-shadow: none; }
.on-dark .card h3 { color: var(--cream); }
.on-dark .card p { color: #cdd4e4; }
.on-dark .card .meta { color: var(--gold); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7.2rem; top: .4rem; bottom: .4rem; width: 2px; background: rgba(191,34,51,.35);
}
.timeline li { display: grid; grid-template-columns: 6.4rem 1fr; gap: 1.8rem; padding: .85rem 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: calc(7.2rem - 6px); top: 1.35rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--cream); border: 3px solid var(--red);
}
.timeline .when { font-family: var(--font-caps); font-weight: 700; color: var(--navy-700); text-align: right; font-size: .95rem; padding-top: .15rem; }
.timeline .what b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-800); }
.timeline .what p { margin: .15rem 0 0; color: var(--ink-soft); font-size: 1.02rem; }
@media (max-width: 560px) {
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: .1rem; padding-left: 2rem; }
  .timeline li::before { left: 0; }
  .timeline .when { text-align: left; }
}

/* ---------- Honors list ---------- */
.honors { columns: 2 320px; column-gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.honors li {
  break-inside: avoid; padding: .7rem 0 .7rem 2rem; position: relative;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.honors li::before { content: "★"; position: absolute; left: 0; top: .72rem; color: var(--gold); }
.honors li b { color: var(--cream); }
.honors li span { display: block; color: #aeb8cf; font-size: .95rem; }

/* ---------- Pull quote / banner ---------- */
.banner-cta {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-top: 4px solid var(--red); border-bottom: 4px solid var(--green);
  color: var(--cream); text-align: center;
}
.banner-cta h2 { font-family: var(--font-caps); letter-spacing: .02em; }

.chip-list { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.chip-list li {
  background: var(--white); border: 1px solid #ddd3bb; border-radius: 999px;
  padding: .35rem .9rem; font-size: .95rem; color: var(--navy-800);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aeb8cf; padding: 3rem 0 2rem; font-size: .98rem; border-top: 4px solid var(--green); }
.site-footer a { color: var(--cream); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-brand { font-family: var(--font-caps); font-weight: 700; color: var(--cream); font-size: 1.25rem; letter-spacing: .06em; }
.footer-contact { display: grid; gap: .4rem; }
.paid-for {
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12);
  text-align: center; font-size: .9rem; letter-spacing: .02em;
}

/* ---------- Misc ---------- */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.icon-inline { width: 1.05em; height: 1.05em; vertical-align: -.15em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* =========================================================
   Campaign page (/tom4jp-district2)
   ========================================================= */
.camp-hero {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.camp-hero-photo {
  position: relative; width: min(560px, 100%); margin: 0 auto; z-index: 0;
}
.camp-hero-photo img {
  width: 100%; aspect-ratio: 840 / 1070; object-fit: cover; object-position: top;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 98%);
          mask-image: linear-gradient(180deg, #000 62%, transparent 98%);
}
.camp-hero-text { position: relative; z-index: 1; margin-top: clamp(-11rem, -18vw, -6rem); }
.camp-hero-top {
  display: flex; justify-content: center; margin-bottom: 1.2rem;
}
@media (min-width: 900px) {
  .camp-hero { padding-top: 2rem; }
  .camp-hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 2rem; }
  .camp-hero-photo { width: 100%; max-width: 520px; }
  .camp-hero-photo img {
    max-height: calc(100vh - 170px); min-height: 440px;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .camp-hero-text { margin-top: 0; }
}
.party-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--red); color: var(--white);
  font-family: var(--font-caps); font-weight: 700; letter-spacing: .16em; font-size: .85rem;
  padding: .45rem 1.1rem; border-radius: 999px; text-transform: uppercase;
  box-shadow: 0 6px 18px -6px rgba(191,34,51,.7);
}
.star-rule { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.3rem auto .5rem; max-width: 560px; }
.star-rule::before, .star-rule::after { content: ""; flex: 1; height: 3px; background: var(--red); border-radius: 2px; }
.star-rule span { color: var(--cream); font-size: 1.6rem; line-height: 1; }
.camp-hero h1 {
  font-family: var(--font-caps); font-weight: 700; color: var(--cream);
  font-size: clamp(3.4rem, 11vw, 7.2rem); line-height: .92; margin: 0;
  text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
.camp-hero .office {
  font-family: var(--font-caps); font-weight: 600; color: var(--cream);
  font-size: clamp(1.15rem, 3vw, 1.9rem); letter-spacing: .06em; margin: .7rem 0 .2rem;
}
.district-rule { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.district-rule::before, .district-rule::after { content: ""; width: clamp(40px, 12vw, 150px); height: 3px; background: var(--green-light); border-radius: 2px; }
.district-rule span { font-family: var(--font-caps); color: var(--cream); letter-spacing: .35em; font-size: clamp(1rem, 2.4vw, 1.35rem); }
.camp-hero .county { color: #b9c3d8; margin: .6rem 0 0; font-size: 1rem; letter-spacing: .04em; }
.camp-hero .hero-actions { justify-content: center; }

/* Slogan triad */
.triad { text-align: center; background: var(--navy-900); padding: clamp(2.5rem, 6vw, 4rem) 0; color: var(--cream); }
.triad p.line {
  font-family: var(--font-caps); font-weight: 700; font-size: clamp(1.4rem, 3.6vw, 2.3rem);
  letter-spacing: .03em; margin: 0;
}
.triad .bar { width: 120px; height: 3px; background: var(--red); margin: .8rem auto; border-radius: 2px; }
.triad .tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.6rem); margin: 1.8rem 0 0; color: #dfe4ef; }
.triad .swoosh { width: 260px; height: 4px; margin: .7rem auto 0; border-radius: 50%; background: var(--green-light); }

/* Values ribbon */
.values {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 2.2rem;
  list-style: none; margin: 0; padding: 1.2rem 1rem; background: var(--green);
  font-family: var(--font-caps); font-weight: 700; letter-spacing: .2em; color: var(--cream); font-size: .95rem;
}
.values li::before { content: "★"; color: var(--gold); margin-right: .6rem; }

/* Vote box */
.vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.vote-date {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem; text-align: center;
  border: 2px solid var(--navy-800); box-shadow: var(--shadow);
}
.vote-date.primary { background: var(--navy-800); color: var(--cream); border-color: var(--red); }
.vote-date .label { font-family: var(--font-caps); font-size: .8rem; letter-spacing: .16em; color: var(--red); text-transform: uppercase; }
.vote-date.primary .label { color: var(--gold); }
.vote-date .date { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; margin: .3rem 0 .2rem; color: var(--navy-800); line-height: 1.15; }
.vote-date.primary .date { color: var(--cream); }
.vote-date p { margin: 0; font-size: .98rem; color: var(--ink-soft); }
.vote-date.primary p { color: #cdd4e4; }

/* Experience → Priority rows */
.priority {
  display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem;
  padding: 2rem 0; border-bottom: 1px solid #e0d7c0;
}
.priority:last-child { border-bottom: 0; }
.priority .num {
  font-family: var(--font-caps); font-weight: 700; font-size: 2.6rem; color: var(--red); line-height: 1;
}
.priority h3 { font-size: 1.55rem; margin-bottom: .35rem; }
.priority .proof {
  margin: .8rem 0 0; padding: .8rem 1rem; background: var(--white); border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0; font-size: 1rem; color: var(--ink-soft);
}
.priority .proof b { color: var(--green); font-family: var(--font-caps); letter-spacing: .1em; font-size: .78rem; display: block; margin-bottom: .15rem; }
@media (max-width: 560px) {
  .priority { grid-template-columns: 1fr; gap: .4rem; }
}

/* Promise list */
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.promises li {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; align-items: start;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1rem 1.2rem;
}
.promises li::before {
  content: "✓"; display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--red); color: var(--white); font-weight: 700;
}
.promises b { color: var(--cream); display: block; }
.promises span { color: #cdd4e4; font-size: 1rem; }

/* Plate list */
.plates { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem 1.2rem; }
.plates li { padding-left: 1.7rem; position: relative; }
.plates li::before { content: "◎"; position: absolute; left: 0; color: var(--red); }

/* Get involved */
.involve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.involve {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem;
  box-shadow: 0 12px 30px -20px rgba(12,24,48,.35); display: flex; flex-direction: column; gap: .6rem;
}
.involve h3 { font-size: 1.25rem; margin: 0; }
.involve p { margin: 0 0 .4rem; color: var(--ink-soft); font-size: 1rem; flex: 1; }

.share-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.copy-status { font-size: .9rem; color: var(--green); min-height: 1.3em; }

.brochure-thumb { border-radius: var(--radius); box-shadow: var(--shadow); max-width: 320px; margin-inline: auto; }
