/* ==========================================================================
   Michelle Kubo for WPUSD School Board
   Palette and type derived from the yard sign and the mail piece.
   ========================================================================== */

:root {
  --navy:      #0A1A3E;
  --navy-deep: #060F26;
  --navy-soft: #16295A;
  --gold:      #C1862C;
  --gold-lift: #D9A24E;
  --sand:      #E7D3AC;
  --sand-pale: #F3E7CE;
  --cream:     #FBF8F2;
  --paper:     #FFFFFF;
  --ink:       #16203A;
  --muted:     #55607A;
  --rule:      rgba(10, 26, 62, .14);

  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 4px;
}

/* --------------------------------------------------------------- reset -- */

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

html { scroll-behavior: smooth; scroll-padding-top: 128px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

figure { margin: 0; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0;
}

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

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem; z-index: 200;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .1em;
}
.skip:focus { left: 1rem; top: 1rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------ structure -- */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.band { padding-block: var(--band); position: relative; }
.band--cream { background: var(--cream); }
.band--paper { background: var(--paper); }
.band--sand  { background: var(--sand-pale); }
.band--navy  { background: var(--navy); color: #fff; }
.band--navy h1, .band--navy h2, .band--navy h3 { color: #fff; }

/* The white wave from the mail piece, reused as the seam between bands. */
.wave { display: block; width: 100%; height: clamp(38px, 5vw, 78px); }
.wave--shadow path.under { opacity: .28; }

/* Section marker: the gold rule and book mark from the sign's "for" divider */
.marker {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 2.6rem;
}
.marker::before, .marker::after {
  content: ""; height: 2px; width: clamp(40px, 12vw, 130px);
  background: var(--gold);
}
.marker img { width: 34px; height: 33px; }

/* --------------------------------------------------------------- type --- */

.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.band--navy .eyebrow { color: var(--gold-lift); }

.heading { font-size: clamp(1.95rem, 3.6vw, 3rem); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}
.band--navy .lede { color: rgba(255, 255, 255, .82); }

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

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; font-size: .95rem;
  padding: .95rem 2rem; border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold  { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-lift); }
.btn--navy  { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--ghost-dark:hover { background: rgba(10, 26, 62, .07); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row--center { justify-content: center; margin-top: 2.8rem; }

/* ---------------------------------------------------------------- nav --- */

.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(10, 26, 62, .0);
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
  padding-block: 1.1rem;
}
.masthead.stuck {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .22);
  padding-block: .55rem;
}
.masthead .shell { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: block; flex: 0 0 auto; }
.brand img { width: 210px; height: auto; transition: width .3s ease; }
.masthead.stuck .brand img { width: 150px; }

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); }
.nav a {
  font-family: var(--display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .11em; font-size: .84rem;
  color: #fff; text-decoration: none; padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--gold-lift); }
.nav .btn { padding: .7rem 1.5rem; font-size: .84rem; border-bottom: 0; }
.nav .btn:hover { border-bottom-color: transparent; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 46px; height: 40px; padding: 8px; color: #fff;
}
.nav-toggle span {
  display: block; height: 2px; background: currentColor; margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero -- */

.hero {
  background:
    radial-gradient(120% 90% at 78% 8%, var(--navy-soft) 0%, transparent 58%),
    var(--navy);
  color: #fff;
  padding-top: clamp(8.5rem, 15vw, 11rem);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(to top, rgba(6, 15, 38, .55), transparent);
  pointer-events: none;
}
.hero .shell {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: end;
  position: relative; z-index: 2;
}
.hero-copy { padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.1rem);
  line-height: .94;
  margin-bottom: 1.5rem;
}
.hero h1 .line-2 { display: block; color: var(--gold-lift); }
.hero .lede { color: rgba(255, 255, 255, .84); margin-bottom: 2rem; max-width: 46ch; }

.hero-figure { position: relative; align-self: end; }
.hero-figure img {
  width: 100%; height: auto; display: block;
  border-radius: 3px 3px 0 0;
}
.hero-figure::before {
  content: ""; position: absolute; inset: -14px -14px 0 -14px;
  border: 2px solid rgba(217, 162, 78, .55); border-bottom: 0; border-radius: 4px 4px 0 0;
}

/* ---------------------------------------------------------------- rail -- */

/* The gold banner from the mail piece, carried onto the page. */
.banner { background: var(--gold); padding-block: 1.15rem; }
.banner-text {
  margin: 0; text-align: center; color: #fff;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  text-transform: uppercase; letter-spacing: .06em; line-height: 1.15;
}

/* Credentials, set as a plain fact list rather than a run of glyphs. */
.facts { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 2px solid var(--gold); }
.facts li {
  padding: .72rem 0; border-bottom: 1px solid var(--rule);
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .11em;
  font-size: .8rem; color: var(--navy);
}

/* --------------------------------------------------------------- about -- */

.about .shell {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.about-figure img { width: 100%; border-radius: 3px; }
.about-quote {
  border-left: 4px solid var(--gold);
  padding: .3rem 0 .3rem 1.5rem;
  margin: 2rem 0 1.4rem;
}
.about-quote p {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.42; font-weight: 600; color: var(--navy);
  font-style: italic;
}
.about-quote cite {
  display: block; margin-top: .9rem; font-style: normal;
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .16em; font-size: .8rem; color: var(--gold);
}

/* ---------------------------------------------------------- priorities -- */

.priorities-quote {
  max-width: 60ch; margin: 0 auto 3.2rem; text-align: center;
}
.priorities-quote p {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  font-style: italic; color: var(--muted); line-height: 1.55;
}
.priorities-quote cite {
  display: block; margin-top: .9rem; font-style: normal;
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem; color: var(--gold);
}

/* Laid out the way the mail piece lays out the platform: a single column
   of rows that alternate side to side, with the book mark watermarked
   behind them. */
.priorities { position: relative; overflow: hidden; }
.priorities::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: min(560px, 70vw); aspect-ratio: 1 / 1;
  left: 50%; top: 46%; transform: translate(-50%, -40%);
  background: url("img/bookmark.png") center / contain no-repeat;
  opacity: .05;
}
.priorities .shell { position: relative; z-index: 1; }

.priority-list { max-width: 940px; margin-inline: auto; }
.priority {
  display: flex; align-items: flex-start;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.priority:first-child { border-top: 1px solid var(--rule); }
.priority:nth-child(even) { flex-direction: row-reverse; text-align: right; }
.priority .icon-badge {
  width: 74px; height: 74px; flex: 0 0 74px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
}
.priority .icon-badge svg { width: 36px; height: 36px; }
.priority-body { flex: 1 1 auto; padding-top: .35rem; }
.priority h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); margin-bottom: .5rem; color: var(--navy); }
.priority p { color: var(--muted); font-size: 1rem; line-height: 1.62; max-width: 56ch; }
.priority:nth-child(even) .priority-body p { margin-left: auto; }

/* -------------------------------------------------------- endorsements -- */

.endorse-group {
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .2em; font-size: .8rem; color: var(--gold-lift);
  text-align: center; margin-bottom: 1.6rem;
}
.endorse-list {
  list-style: none; margin: 0 0 2.8rem; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.1rem;
}
.endorse-list li { flex: 0 1 320px; }
.endorse-list li {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(217, 162, 78, .34);
  padding: 1.6rem 1.5rem; text-align: center;
}
.endorse-list b {
  display: block; font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
  font-size: 1.12rem; line-height: 1.25; color: #fff;
}
.endorse-list small {
  display: block; margin-top: .5rem; font-size: .88rem;
  color: var(--gold-lift); letter-spacing: .04em;
}
.endorse-foot { text-align: center; }
.endorse-foot p { margin-bottom: 1.2rem; color: rgba(255, 255, 255, .8); }

/* ----------------------------------------------------------------- why -- */

.why-top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-bottom: 3.6rem;
}
.why-figure figcaption {
  margin-top: 1rem; font-family: var(--display);
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; color: var(--muted);
}
.why-figure img { width: 100%; border-radius: 3px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--rule);
}
.timeline li { position: relative; padding: 0 0 2rem 2.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; background: var(--gold);
  transform: rotate(45deg);
}
.timeline .year {
  display: block; font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; color: var(--gold); margin-bottom: .3rem;
}
.timeline h3 { font-size: 1.16rem; color: var(--navy); margin-bottom: .35rem; }
.timeline p { color: var(--muted); font-size: .99rem; }

.stats {
  list-style: none; margin: 0; padding: 2.6rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  text-align: center;
}
.stats strong {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: var(--navy);
}
.stats span {
  display: block; margin-top: .55rem; font-size: .92rem; color: var(--muted);
  line-height: 1.4;
}

/* ---------------------------------------------------------- experience -- */

.exp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.exp {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 1.9rem 1.7rem;
  border-left: 3px solid var(--gold);
}
.exp h3 { font-size: 1.16rem; color: var(--navy); margin-bottom: .55rem; }
.exp p { color: var(--muted); font-size: .99rem; }

.exp-layout {
  display: grid; grid-template-columns: .82fr 1.18fr;
  gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.exp-figure img { width: 100%; border-radius: 3px; }

/* ----------------------------------------------------------- volunteer -- */

.volunteer-layout {
  display: grid; grid-template-columns: .92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.volunteer-intro { margin-bottom: 1.8rem; }
.volunteer-figure img { width: 100%; border-radius: 3px; }

.form { background: var(--paper); border: 1px solid var(--rule); padding: clamp(1.5rem, 3vw, 2.4rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row--three { grid-template-columns: 2fr 1fr 1fr; }
.field { margin-bottom: 1rem; }
.field label, .fieldset legend {
  display: block; font-family: var(--display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .76rem; color: var(--navy); margin-bottom: .4rem;
}
.field input {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--rule); border-radius: 2px; background: #fff; color: var(--ink);
}
.field input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(193, 134, 44, .18); }

.fieldset { border: 0; margin: 1.6rem 0 1rem; padding: 1.5rem 0 0; border-top: 1px solid var(--rule); }
.fieldset legend { padding: 0; margin-bottom: .3rem; }
.hint { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }

.help-options { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .97rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: 0 0 auto; }

.disclaimer { margin-top: 1.6rem; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.disclaimer summary {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .12em;
  font-size: .74rem; color: var(--muted); cursor: pointer;
}
.disclaimer p { font-size: .82rem; color: var(--muted); line-height: 1.55; margin-top: .8rem; }

.form .btn { width: 100%; margin-top: 1.4rem; }
.form-status { margin-top: 1rem; font-size: .97rem; display: none; }
.form-status.is-ok { display: block; color: #14603a; font-weight: 600; }
.form-status.is-bad { display: block; color: #9a2020; font-weight: 600; }

/* ------------------------------------------------------------- closing -- */

.closing { text-align: center; }
.closing h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  max-width: 22ch; margin: 0 auto 2.2rem; line-height: 1.14;
}
.closing .btn-row { justify-content: center; }

/* -------------------------------------------------------------- footer -- */

.colophon { background: var(--navy-deep); color: rgba(255, 255, 255, .72); padding-block: 3.4rem 2.4rem; }
.colophon .shell { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; }
.colophon img { width: 210px; height: auto; }
.colophon .tagline {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 1rem; color: #fff; margin-bottom: 1.2rem;
}
.colophon nav { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.4rem; }
.colophon nav a {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; color: rgba(255, 255, 255, .78); text-decoration: none;
}
.colophon nav a:hover { color: var(--gold-lift); }
.colophon small { display: block; font-size: .8rem; line-height: 1.7; color: rgba(255, 255, 255, .55); }

/* --------------------------------------------------------- transitions -- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .priority:hover { transform: none; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .priority-list { max-width: 720px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 122px; }
  .masthead { background: var(--navy); padding-block: .5rem; }
  .brand img, .masthead.stuck .brand img { width: 148px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 62px 0 auto 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 0 1.4rem;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .3);
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .nav.open { transform: none; }
  .nav a { padding: .9rem var(--gutter); border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav a:hover { border-bottom-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); }
  .nav .btn { margin: 1rem var(--gutter) 0; }

  .hero { padding-top: 6.5rem; padding-bottom: 5.5rem; }
  .hero .shell { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { padding-bottom: 0; order: 2; }
  .hero-figure { order: 1; max-width: 420px; margin-inline: auto; }
  .hero-figure::before { inset: -10px -10px 0 -10px; }

  .about .shell, .why-top, .exp-layout, .volunteer-layout {
    grid-template-columns: 1fr;
  }
  .about-side { max-width: 460px; }
  .priority { padding: 1.5rem 0; }
  .priority:nth-child(even) { flex-direction: row; text-align: left; }
  .priority:nth-child(even) .priority-body p { margin-left: 0; }
  .priority .icon-badge { width: 58px; height: 58px; flex-basis: 58px; }
  .priority .icon-badge svg { width: 29px; height: 29px; }
  .exp-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .colophon .shell { grid-template-columns: 1fr; gap: 1.6rem; text-align: left; }
  .colophon img { width: 175px; }
}

@media (max-width: 620px) {
  body { font-size: 1.02rem; }
  .priority-list { max-width: none; }
  .field-row, .field-row--three, .help-options { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .marker::before, .marker::after { width: 34px; }
}

/* ---------------------------------------------------------------- waves -- */

.seam { line-height: 0; }
.seam .wave { width: 100%; height: clamp(40px, 5.5vw, 84px); display: block; }
.seam--cream { background: var(--cream); }
.seam--paper { background: var(--paper); }
.seam--navy  { background: var(--navy); }

.wave path { fill: currentColor; }
.wave .under { fill: rgba(255, 255, 255, .38); }
.to-navy  { color: var(--navy); }
.to-cream { color: var(--cream); }
.to-paper { color: var(--paper); }
.to-navydeep { color: var(--navy-deep); }
.to-gold { color: var(--gold); }
.to-gold .under { fill: rgba(255, 255, 255, .45); }

.hero .wave-overlay {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4;
  pointer-events: none;
}
.to-sand { color: var(--sand-pale); }
