@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/roboto-latin-900-normal.woff2") format("woff2"); }

:root {
  --blue: #024daf;
  --navy: #00457d;
  --footer: #002544;
  --red: #db1446;
  --red-dark: #b30d38;
  --accent-red: #ed1a4c;
  --yellow: #fedf00;
  --text: #282828;
  --text-muted: #56606e;
  --border: #d9e1ec;
  --tint: #f3f6fa;
  --white: #fff;
  --focus: var(--navy);
  --container: 72rem;
  --gutter: clamp(1rem, 5vw, 3rem);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.125rem/1.65 "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; }

h2 {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

h3 {
  margin-bottom: .5rem;
  color: var(--navy);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}

a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }

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

.site-header,
.hero,
.section--blue,
.site-footer { --focus: var(--yellow); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 10;
  padding: .75rem 1.25rem;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }


/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}
.button:hover { text-decoration: none; }
.button--red { background: var(--red); color: var(--white); }
.button--red:hover { background: var(--red-dark); color: var(--white); }
.button--blue { background: var(--blue); color: var(--white); }
.button--blue:hover { background: var(--navy); color: var(--white); }
.button--white { background: var(--white); color: var(--blue); }
.button--outline { border-color: var(--blue); background: var(--white); color: var(--blue); }
.button--outline:hover { background: var(--blue); color: var(--white); }
.button--white:hover { background: var(--tint); color: var(--navy); }

.button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
}

.text-link {
  display: inline-block;
  padding-block: .25rem;
  font-weight: 700;
}

/* Header */

.site-header { background: var(--blue); color: var(--white); }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 5rem;
}

.wordmark {
  display: inline-flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 3rem;
  margin-right: auto;
  color: var(--white);
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark:hover { color: var(--white); }
.wordmark__first {
  display: block;
  padding-left: .08em;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .28em;
  line-height: 1;
}
.wordmark__last {
  position: relative;
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: .95;
}
.wordmark__last::after {
  display: block;
  width: 72%;
  height: .16rem;
  margin-top: .25rem;
  border-radius: 999px;
  background: var(--red);
  content: "";
}

.site-nav__list {
  display: flex;
  gap: .25rem;
  list-style: none;
}

.site-nav__list a {
  display: block;
  padding: .75rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__list a:hover { color: var(--white); text-decoration: underline; }

.site-nav__toggle {
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border: 2px solid var(--white);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.site-header__donate { min-height: 2.75rem; padding-block: .5rem; }

@media (min-width: 64rem) {
  .site-nav__toggle { display: none; }
}

@media (max-width: 63.99rem) {
  .js .site-nav__list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 5;
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gutter) 1rem;
    background: var(--navy);
  }
  .js .site-nav__list.is-open { display: flex; }
  .js .site-nav__list a { padding: .875rem 0; border-bottom: 1px solid rgb(255 255 255 / .2); font-size: 1.125rem; }
  .site-header__inner { flex-wrap: wrap; padding-block: .5rem; }
  .js .site-header__inner { flex-wrap: nowrap; padding-block: 0; }
  html:not(.js) .site-nav { flex-basis: 100%; order: 3; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; margin-inline: -.75rem; }
}

@media (max-width: 35rem) {
  .site-header__donate { display: none; }
  .wordmark { min-width: 0; min-height: 2.25rem; font-size: 1.125rem; line-height: 1.15; white-space: normal; }
  .wordmark__first { font-size: .5rem; letter-spacing: .24em; }
  .wordmark__last { font-size: 1.35rem; }
  .wordmark__last::after { height: .12rem; margin-top: .16rem; }
}

@media print {
  .site-header { background: var(--white); color: #000; }
  .site-header.site-header--overlay { background: var(--white); }
  .wordmark,
  .wordmark:hover { color: #000; }
  .wordmark__last::after { background: #000; }
}

/* Hero */

.site-header--overlay {
  position: relative;
  z-index: 2;
  margin-bottom: -5rem;
  background: transparent;
}

html:not(.js) .site-header--overlay {
  margin-bottom: 0;
  background: var(--navy);
}

.hero {
  position: relative;
  isolation: isolate;
  background: #00264d;
  color: var(--white);
  border-bottom: 6px solid var(--accent-red);
}

.hero__background,
.hero__background img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero__background img {
  object-fit: cover;
  object-position: 50% 60%;
}

.hero__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 30 64 / .8) 0%, rgb(0 30 64 / .55) 45%, rgb(0 30 64 / 0) 75%);
}

@media (max-width: 51.25rem) {
  .hero__background::after {
    background: linear-gradient(180deg, rgb(0 30 64 / .8) 0%, rgb(0 30 64 / .6) 55%, rgb(0 30 64 / 0) 85%);
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 29rem);
  align-items: end;
  gap: 0 3rem;
  min-height: 38rem;
  padding-top: calc(5rem + clamp(1.5rem, 4vw, 3rem));
}

.hero__text {
  align-self: center;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
}

.hero__subtitle {
  max-width: 24em;
  margin-bottom: .5rem;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.4;
}
.hero__election {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  font-weight: 700;
}


.hero__photo img {
  width: 100%;
  height: auto;
}

@media (max-width: 51.25rem) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding-bottom: 1.5rem; }
  .hero__photo { justify-self: center; width: min(100%, 22rem); }
}

/* Sections */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--tint); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue h2 { color: var(--white); }

.section__intro {
  max-width: 40em;
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
}

.note {
  max-width: 44em;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.section--blue .note { color: var(--white); }
.section--blue .note a { color: var(--white); font-weight: 700; }

.vote-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.vote-options > div {
  padding-top: 1rem;
  border-top: 3px solid var(--blue);
}

.vote-options dt {
  margin-bottom: .25rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.vote-options strong {
  color: var(--navy);
  font-size: 1.375rem;
  font-weight: 900;
}

.vote-options__action { margin-top: 1rem; }
.vote-options__action .button { min-height: 2.75rem; padding: .5rem 1rem; gap: .5rem; font-size: .9375rem; }

.icon-new-tab {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 48rem) {
  .vote-options { grid-template-columns: 1fr; gap: 1.5rem; }
}


.prose { max-width: 40em; }
.prose p + p { margin-top: 1.25em; }


/* Footer */

.site-footer {
  padding-block: 3.5rem 2.5rem;
  background: var(--footer);
  color: #c9d6e6;
  font-size: 1rem;
}

.site-footer a {
  display: inline-block;
  padding-block: .25rem;
  color: var(--white);
}
.site-footer a:hover { color: var(--yellow); }

.site-footer p + p { margin-top: .5rem; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer__name {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer__heading {
  margin-bottom: .5rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .12);
  color: var(--white);
}

.site-footer .social-links a:hover,
.site-footer .social-links a:focus-visible {
  background: var(--white);
  color: var(--footer);
}

.social-links svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

.site-footer__legal {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .2);
}



@media (max-width: 51.25rem) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (forced-colors: active) {
  .button,
  .site-nav__toggle { border-color: ButtonText; }
}

@media print {
  .skip-link,
  .site-nav,
  .site-header__donate,
  .button-group,
  .hero__photo { display: none; }
  .site-header,
  .hero,
  .section--blue,
  .site-footer { background: none; color: #000; }
  .site-footer a,
  .site-footer__name,
  .section--blue h2 { color: #000; }
  .site-footer .social-links a { color: #000; background: none; border: 1px solid #000; }
}

.page-title {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}



/* Inside pages and sign-up forms */

.container--narrow { max-width: calc(46rem + 2 * var(--gutter)); }

.page .prose p { max-width: none; }

.signup-form { margin-top: 1rem; }
.signup-form > .form-hint { margin-bottom: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}

@media (max-width: 40rem) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: 1.5rem; }

.form-field label,
.form-fieldset legend {
  display: block;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-optional { color: var(--text-muted); font-weight: 400; }

.form-hint {
  margin-top: .125rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.form-error {
  margin-top: .25rem;
  color: var(--red-dark);
  font-size: 1rem;
  font-weight: 700;
}

.form-field--error {
  padding-left: 1rem;
  border-left: 4px solid var(--red-dark);
}

.form-input {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin-top: .5rem;
  padding: .625rem .75rem;
  border: 2px solid #56606e;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 1.125rem;
}

textarea.form-input { resize: vertical; }

.form-field--error .form-input { border-color: var(--red-dark); }

.form-field--short .form-input { max-width: 10rem; }

.form-fieldset {
  min-width: 0;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.form-fieldset legend { padding: 0; }

.form-check {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-top: .75rem;
}

.form-check input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: .1rem 0 0;
  accent-color: var(--blue);
}

.form-check label { font-weight: 400; }

.form-field--consent { margin-top: 2rem; }

.form-trap { display: none; }

.form-errors {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 4px solid var(--red-dark);
  border-radius: 8px;
}
.form-errors:empty { display: none; }

.form-errors h2 {
  margin-bottom: .75rem;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.3;
  text-transform: none;
}

.form-errors ul { padding-left: 1.25rem; }

.form-errors a {
  color: var(--red-dark);
  font-weight: 700;
}

@media (forced-colors: active) {
  .form-input,
  .form-errors { border-color: CanvasText; }
}


/* Motion and mobile menu */

:root { --ease: cubic-bezier(.2, .7, .2, 1); --dur: 220ms; }

.button,
.site-nav__toggle,
.site-nav__list a,
.text-link,
.form-input {
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgb(0 20 50 / .22); }
.button:active { transform: translateY(0); box-shadow: 0 2px 6px rgb(0 20 50 / .2); transition-duration: 80ms; }
.form-input:focus { box-shadow: 0 0 0 4px rgb(2 77 175 / .18); }

@media (min-width: 64rem) {
  .site-nav__list a { position: relative; }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    bottom: .4rem;
    right: .75rem;
    left: .75rem;
    height: 2px;
    background: currentColor;
    clip-path: inset(0 100% 0 0);
    transition: clip-path var(--dur) var(--ease);
  }
  .site-nav__list a:hover { text-decoration: none; }
  .site-nav__list a:hover::after,
  .site-nav__list a:focus-visible::after { clip-path: inset(0); }
}

/* Hamburger icon */
.site-nav__toggle { display: inline-flex; align-items: center; gap: .55rem; padding-inline: .85rem 1rem; }
.site-nav__icon { position: relative; display: block; width: 1.15rem; height: .85rem; }
.site-nav__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease);
}
.site-nav__icon span:nth-child(1) { top: 0; }
.site-nav__icon span:nth-child(2) { top: calc(50% - 1px); }
.site-nav__icon span:nth-child(3) { top: calc(100% - 2px); }
.site-nav__toggle[aria-expanded="true"] .site-nav__icon span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__icon span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.site-nav__toggle[aria-expanded="true"] .site-nav__icon span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }
.site-nav__toggle[aria-expanded="true"] { background: var(--white); color: var(--navy); }

/* Mobile panel */
.site-header { position: relative; z-index: 20; }
.site-nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 4;
  background: rgb(0 20 50 / .55);
  animation: fade-in var(--dur) var(--ease) both;
}
.site-nav__cta { display: none; }

@media (max-width: 63.99rem) {
  .js .site-nav__list {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.5rem);
    padding: .25rem var(--gutter) 1.25rem;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 40px rgb(0 20 50 / .35);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .js .site-nav__list.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
  }
  .js .site-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem .25rem;
    font-size: 1.125rem;
    font-weight: 700;
  }
  .js .site-nav__list a:not(.button)::after {
    content: "";
    width: .55rem;
    height: .55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: .7;
  }
  .js .site-nav__list a:hover { text-decoration: none; background: rgb(255 255 255 / .06); }
  .js .site-nav__list li { opacity: 0; transform: translateY(-6px); transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
  .js .site-nav__list.is-open li { opacity: 1; transform: none; }
  .js .site-nav__list.is-open li:nth-child(1) { transition-delay: 40ms; }
  .js .site-nav__list.is-open li:nth-child(2) { transition-delay: 80ms; }
  .js .site-nav__list.is-open li:nth-child(3) { transition-delay: 120ms; }
  .js .site-nav__list.is-open li:nth-child(4) { transition-delay: 160ms; }
  .js .site-nav__list.is-open li:nth-child(5) { transition-delay: 200ms; }
  .menu-open .site-header--overlay { background: var(--blue); }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 35rem) {
  .js .site-nav__cta { display: block; margin-top: 1rem; }
  .js .site-nav__cta .button { width: 100%; justify-content: center; padding: .9rem 1rem; }
}

/* Entrance and scroll reveals */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise-in 600ms var(--ease) both; }
  .hero__text > :nth-child(1) { animation-delay: 60ms; }
  .hero__text > :nth-child(2) { animation-delay: 160ms; }
  .hero__text > :nth-child(3) { animation-delay: 240ms; }
  .hero__text > :nth-child(4) { animation-delay: 320ms; }
  .hero__photo { animation: rise-in 800ms var(--ease) 200ms both; }
  .form-errors[role="alert"] { animation: rise-in 400ms var(--ease) both; }
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease) var(--reveal-delay, 0ms), transform 600ms var(--ease) var(--reveal-delay, 0ms); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 64rem) {
  .site-nav__toggle, .site-nav__backdrop, .site-nav__cta { display: none; }
}

/* Hero photo: View from Mount Tolmie (Wikimedia Commons, JustSomePics, CC BY-SA 4.0) with brand-blue tint */
.hero__background::after { background: linear-gradient(90deg, rgb(0 30 70 / .9) 0%, rgb(0 45 110 / .72) 45%, rgb(2 77 175 / .45) 100%); }
.hero__background img { filter: saturate(.8) brightness(.9); }
@media (max-width: 51.25rem) {
  .hero__background::after { background: linear-gradient(180deg, rgb(0 30 70 / .9) 0%, rgb(0 45 110 / .72) 50%, rgb(2 77 175 / .4) 100%); }
}
.site-footer__credit { margin-top: .75rem; font-size: .85rem; opacity: .8; }
.site-footer__authorized { margin-bottom: .5rem; color: var(--white); font-weight: 700; }
.site-footer__authorized a { color: inherit; text-decoration: none; }
