/* ============================================================
   Bankes for Education — campaign site
   Design tokens
   ------------------------------------------------------------
   Palette grounded in school/civic materials:
     --slate    chalkboard slate (primary dark)
     --ink      warm ink-blue (text, headings)
     --chalk    chalk off-white (page background)
     --paper    pure-ish card surface
     --pencil   No.2 pencil amber (single accent)
     --rule     hairline rule / borders
   ============================================================ */

:root {
  --slate:  #2b3a42;
  --ink:    #1d2b3a;
  --chalk:  #f4f2ec;
  --paper:  #fbfaf6;
  --pencil: #e8a13a;
  --pencil-deep: #c47e1c;
  --rule:   #d7d3c7;
  --muted:  #5d6b73;

  /* Wyoming state flag accents — used sparingly alongside the slate/amber base */
  --wyo-blue: #173f6b;
  --wyo-red:  #b22234;

  --maxw: 1080px;

  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;
  --step-4: 2.9rem;
  --step-5: 3.8rem;
}

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

html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--rule); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--slate);
  color: var(--chalk);
  border-bottom: 4px solid var(--pencil);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--chalk);
  text-decoration: none;
  line-height: 1.1;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pencil);
  margin-top: 2px;
}
.nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav a {
  color: var(--chalk);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.nav a:hover, .nav a:focus-visible { border-bottom-color: var(--pencil); }
.nav a[aria-current="page"] { border-bottom-color: var(--pencil); }

/* ---------- Hero ---------- */
.hero {
  background: var(--slate);
  color: var(--chalk);
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
/* faint ruled-paper signature element */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2.4rem,
    rgba(244,242,236,0.05) 2.4rem,
    rgba(244,242,236,0.05) calc(2.4rem + 1px)
  );
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

/* Logo hero: background matches the logo image's own blue so the
   logo's block merges seamlessly with the section. */
.hero--logo {
  background: #011a69;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  text-align: center;
}
.hero--logo::after { display: none; } /* drop ruled-paper overlay behind logo */
.hero-logo {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto 1rem;
}
.hero-slogan {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.2;
  color: var(--chalk);
  max-width: 20ch;
  margin: 0 auto 1rem;
}
.hero--logo .eyebrow { color: #f2c14e; margin-top: 0; margin-bottom: 1.25rem; }
.hero--logo .btn-row { margin-bottom: 1.5rem; }
.hero.hero--logo .lede { margin-left: auto; margin-right: auto; margin-bottom: 0; max-width: 68ch; width: 100%; text-align: center; }
.hero--logo .btn-row { justify-content: center; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pencil);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 16ch;
}
.hero .lede {
  font-size: var(--step-1);
  max-width: 52ch;
  color: #d9d5cb;
  margin: 0 0 2rem;
}
.placeholder {
  background: rgba(232,161,58,0.18);
  border-bottom: 1px dashed var(--pencil);
  padding: 0 0.2em;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pencil); color: var(--ink); }
.btn-primary:hover { background: var(--pencil-deep); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: var(--chalk); }
.btn-ghost:hover { background: var(--chalk); color: var(--ink); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Headings in body ---------- */
h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.15;
  margin: 0 0 1rem;
}
h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin: 0 0 0.5rem;
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--pencil-deep);
  margin: 0 0 0.5rem;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem;
}
.card h3 { color: var(--ink); }

/* ---------- Highlights list (credential checkmarks) ---------- */
.highlights {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.highlights li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--pencil-deep);
}

/* ---------- Issues list ---------- */
.issue {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.issue:last-child { border-bottom: none; }
.issue .num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--pencil-deep);
  line-height: 1;
}
.issue .lead-in { margin-bottom: 1.25rem; }
.subpoints {
  list-style: none;
  margin: 0;
  padding: 0;
}
.subpoints li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.subpoints li:last-child { margin-bottom: 0; }
.subpoints li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--pencil);
  border-radius: 2px;
}
.subpoints .sp-label {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Events ---------- */
.event {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.event:last-child { border-bottom: none; }
.event .date {
  font-weight: 700;
  color: var(--pencil-deep);
}
@media (max-width: 600px) {
  .event { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--pencil);
  outline-offset: 1px;
  border-color: var(--pencil);
}

/* ---------- Donate "coming soon" banner ---------- */
.notice {
  background: var(--paper);
  border: 1px dashed var(--pencil-deep);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
}
.notice .tag {
  display: inline-block;
  background: var(--pencil);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: #c7c3b9;
  padding: 3rem 0;
  font-size: 0.9rem;
}
.site-footer a { color: var(--pencil); }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: 2fr 1fr; }
@media (max-width: 600px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.disclaimer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: #9aa39a;
}

/* ---------- Wyoming bronco brand mark ---------- */
.bronco {
  height: 1.4em;
  width: auto;
  vertical-align: -0.25em;
  fill: var(--pencil);
}
.brand .bronco { margin-right: 0.5rem; }
.wyo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--wyo-blue);
}
.wyo-tag .bronco { height: 1.1em; fill: var(--wyo-red); }

.wyo-rule {
  height: 4px;
  border: none;
  margin: 0;
  background: linear-gradient(
    to right,
    var(--wyo-red) 0 33%,
    var(--paper) 33% 66%,
    var(--wyo-blue) 66% 100%
  );
}

/* ---------- Photos ---------- */
/* To use a real photo, replace the .photo-frame block with:
   <img class="photo" src="images/your-photo.jpg" alt="describe the photo">
   The dashed boxes below just show where each image will sit. */
.photo {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--rule);
  object-fit: cover;
}
.photo-frame {
  position: relative;
  border: 1px dashed var(--pencil-deep);
  border-radius: 6px;
  background: repeating-linear-gradient(
    45deg, var(--paper), var(--paper) 10px,
    #f1eee5 10px, #f1eee5 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--pencil-deep);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1rem;
  min-height: 220px;
}
.photo-frame.portrait { aspect-ratio: 3 / 4; }
.photo-frame.landscape { aspect-ratio: 4 / 3; }
.photo-frame.square { aspect-ratio: 1 / 1; }
.photo-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Hero corner photo ---------- */
.hero--logo .wrap { position: relative; }
.hero-corner-photo {
  position: absolute;
  top: 0.5rem;
  right: -1.5rem;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  /* Center on the face: the source image is full-length, so keep the crop high
     but not so high that it clips the top of the head. */
  object-position: 50% 38%;
  background: var(--paper);
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 28px rgba(0,0,0,0.30);
  z-index: 2;
}
/* On wide screens, push the photo out to the true right edge of the window,
   past the centered content wrap. */
@media (min-width: 1140px) {
  .hero-corner-photo {
    right: calc((var(--maxw) - 100vw) / 2 + 1rem);
  }
}
@media (max-width: 900px) {
  .hero-corner-photo { width: 190px; height: 190px; top: 0.5rem; right: -0.5rem; }
}
@media (max-width: 640px) {
  /* On narrow screens, drop the photo out of the corner and center it below the logo */
  .hero-corner-photo {
    position: static;
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
  }
}

/* ---------- Overlapping photo stack ---------- */
.photo-stack {
  position: relative;
  width: 100%;
  padding-bottom: 0.5rem;
}
.photo-stack__back {
  display: block;
  width: 82%;
  border-radius: 6px;
  border: 3px solid var(--paper);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.photo-stack__front {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 46%;
  border-radius: 6px;
  border: 3px solid var(--paper);
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}

/* ---------- Pull quote ---------- */
.pullquote {
  margin: 0;
  padding: 2rem 2.25rem;
  background: var(--paper);
  border-left: 5px solid var(--pencil);
  border-radius: 6px;
}
.pullquote p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 1rem;
}
.pullquote cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pencil-deep);
}

/* ---------- Utility ---------- */
.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.center { text-align: center; }
.skip {
  position: absolute; left: -999px;
  background: var(--pencil); color: var(--ink);
  padding: 0.6rem 1rem; border-radius: 4px; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }
