/* Clay Mitchell for Storey County Commissioner — campaign site */
:root {
  --navy: #12284c;
  --navy-deep: #0b1c38;
  --navy-mid: #1c3a6e;
  --red: #b42318;
  --red-dark: #8e1b13;
  --cream: #f6f1e8;
  --cream-dark: #ece4d4;
  --paper: #fffcf7;
  --ink: #1c1c1c;
  --muted: #5a5854;
  --line: #d9d1c3;
  --focus: #1c3a6e;
  --shadow: 0 10px 30px rgba(18, 40, 76, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --max: 1120px;
  --header-h: 5.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); }
a:hover { color: var(--red); }
:focus-visible {
  outline: 3px solid var(--navy-mid);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  background: #fff;
  color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(18, 40, 76, 0.12);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.brand-star { width: 34px; height: 34px; }
.brand-logo { height: 42px; width: auto; }
.brand-gop { height: 36px; width: auto; margin-left: 0.15rem; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  border-radius: 4px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.65rem;
  display: block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Hero (home) */
.hero {
  position: relative;
  min-height: 32rem;
  display: flex;
  align-items: stretch;
  background: var(--navy-deep) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,28,56,0.82) 0%, rgba(11,28,56,0.55) 48%, rgba(11,28,56,0.25) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 3rem 1.25rem 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 360px);
  gap: 2rem;
  align-items: end;
}
.hero-copy { padding-bottom: 3rem; }
.hero-kicker {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e2b04a;
  margin: 0 0 0.7rem;
  font-weight: 700;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 0.35rem;
  font-weight: 700;
}
.hero-district {
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
  opacity: 0.92;
}
.hero-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.7rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.hero-values li {
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.4rem 0.9rem;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.hero-photo {
  position: relative;
  margin: 0;
  align-self: end;
  justify-self: end;
  width: 100%;
  line-height: 0;
  /* Shift right on wide desktops so the figure sits between the tailings pile and the hero edge */
  margin-right: calc(-1 * clamp(0px, (100vw - 1100px) * 0.35, 5.5rem));
}
.hero-photo picture,
.hero-photo img {
  display: block;
}
.hero-photo img {
  width: 100%;
  height: auto;
  max-height: 40rem;
  object-fit: contain;
  object-position: center bottom;
  /* Side shadow only; downward shadow is clipped at the hero edge */
  filter: drop-shadow(-10px 0 16px rgba(0,0,0,0.32)) drop-shadow(10px 0 16px rgba(0,0,0,0.28));
}
.photo-credit {
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  transform: translateX(calc(-100% - 0.4rem));
  margin: 0;
  white-space: nowrap;
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
  text-align: right;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  margin-left: 0.6rem;
}
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); color: #fff; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 16rem;
  display: flex;
  align-items: flex-end;
  background: var(--navy) center/cover no-repeat;
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,28,56,0.25) 0%, rgba(11,28,56,0.72) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 5rem 1.25rem 1.75rem;
  width: 100%;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0;
  line-height: 1.1;
}

/* Layout */
.wrap {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
}
.prose { max-width: 44rem; }
.prose p { margin: 0 0 1.15rem; }
.prose h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.55rem;
  margin: 2rem 0 0.7rem;
  line-height: 1.25;
}
.prose h2:first-child { margin-top: 0; }
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}
.split-photo img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.45rem 0 0;
}

/* Priorities list */
.priorities {
  list-style: none;
  margin: 0;
  padding: 0;
}
.priorities li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.priorities li:last-child { border-bottom: 0; }
.priorities li img {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.2rem;
}

/* Principles */
.principles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: princ;
}
.principles-list li {
  counter-increment: princ;
  padding: 1.1rem 0 1.1rem 3.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.principles-list li::before {
  content: counter(princ);
  position: absolute;
  left: 0;
  top: 1.05rem;
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.25rem;
  width: 2.2rem;
}
.principles-list li:last-child { border-bottom: 0; }

/* Contribute */
.pledge { font-size: 1.05rem; }
.signature {
  width: min(240px, 70%);
  margin: 0.25rem 0 0.2rem;
}
.mail-box {
  background: var(--cream);
  border-left: 4px solid var(--red);
  padding: 1.25rem 1.35rem;
  margin-top: 1.5rem;
}
.mail-box h2 { margin: 0 0 0.7rem; font-family: var(--serif); color: var(--navy); font-size: 1.3rem; }
.mail-box address { font-style: normal; line-height: 1.55; }
.note { font-size: 0.95rem; margin: 0.85rem 0 0; }

/* Contact extras */
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.contact-meta li { display: flex; align-items: center; gap: 0.6rem; }
.contact-meta img { width: 28px; height: auto; }
.contact-meta a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-meta a:hover { color: var(--red); }

/* Forms */
form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label, .legend {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.req { color: var(--red); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid #c9c1b3;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 8rem; resize: vertical; }
.radios { display: grid; gap: 0.45rem; }
.radios label {
  font-weight: 500;
  color: var(--ink);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.todo-note {
  background: #fff6d8;
  border: 1px solid #e2c86a;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  color: #4a3d10;
  margin: 0 0 0.25rem;
}
.form-success { display: none; }
form:target + .form-success,
.form-success:target { display: block; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #d7deea;
  padding: 2.25rem 1.25rem 1.75rem;
  margin-top: auto;
}
.footer-inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
}
.disclaimer {
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}
.check { color: #e2b04a; font-weight: 700; }
.footer-nav, .social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}
.footer-nav a, .social a { color: #d7deea; text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover, .social a:hover { color: #fff; }
.social li a { display: flex; align-items: center; gap: 0.4rem; }
.social img { width: 22px; height: 22px; }
.copyright { margin: 0; font-size: 0.85rem; color: #9aa6b8; }

/* Utility */
.cta-row { margin-top: 1.75rem; }
.lede { font-size: 1.12rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #fff;
    padding: 0.5rem 0 0.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.7rem 1.4rem; border-bottom: 0; }
  .site-nav a[aria-current="page"] { background: rgba(255,255,255,0.08); }
  .header-inner { position: relative; }
  .hero-inner, .split, .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 2.25rem; }
  .hero-photo {
    order: 0;
    max-width: 240px;
    margin: 0 auto;
    margin-right: auto; /* cancel the desktop right shift */
    justify-self: center;
  }
  .hero-photo img { max-height: 22rem; }
  .photo-credit { display: none; }
  .hero-copy { padding-bottom: 0.85rem; text-align: center; }
  .hero-values { justify-content: center; }
  .btn-light { margin-left: 0.4rem; }
  .panel { padding: 1.4rem 1.15rem; }
}

/* Honeypot: visually hidden, still in the tab order only for assistive tech skip */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Prominent Donate button in the header */
.header-donate {
  flex-shrink: 0;
  background: var(--red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.65rem 1.05rem;
  border-radius: 2px;
  border-bottom: 0 !important;
}
.header-donate:hover {
  background: var(--red-dark);
  color: #fff !important;
  border-bottom-color: transparent !important;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

/* Contribute: online donate panel */
.donate-panel {
  background: var(--navy-deep);
  color: #fff;
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.donate-panel h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 0.6rem;
  color: #fff;
}
.donate-panel p { margin: 0 0 1rem; color: #e8eef8; }
.btn-paypal {
  display: inline-block;
  background: #ffc439;
  color: #003087 !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 1.25rem;
  padding: 1.15rem 2.2rem;
  border-radius: 4px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-paypal:hover { background: #f5b800; color: #003087 !important; }
.btn-paypal-submit { width: auto; }
.fineprint { font-size: 0.9rem; color: #c9d3e3; margin-top: 0.85rem; }
.reporting-note {
  background: var(--cream);
  border-left: 4px solid var(--navy);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.98rem;
}
.reporting-note h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
}
.check-inline { color: var(--red); font-weight: 700; font-size: 0.85rem; }
.pre-donate { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.2); }
.pre-donate h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.donate-panel .field input,
.donate-panel .field label { color: var(--ink); }
.donate-panel .field label { color: #e8eef8; }
.donate-panel input[type="text"],
.donate-panel input[type="email"] { color: var(--ink); }
.or-skip { margin: 1rem 0 0; font-size: 0.95rem; color: #c9d3e3; }
.or-skip a { color: #ffc439; }

@media (max-width: 860px) {
  .brand-gop { display: none; }
  .brand-logo { height: 36px; }
  .header-actions { margin-left: auto; }
  .nav-toggle { order: -1; }
  .header-donate { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
  .donate-panel { padding: 1.5rem 1.15rem; }
}

.req { color: #e2b04a; font-weight: 700; }
