/* YesForPropI.com */

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

:root {
  --dark: #07311c;
  --darker: #04230f;
  --mid: #2f6946;
  --yellow: #ffc93c;
  --olive: #788541;
  --ink: #142219;
  --body: #26352c;
  --muted: #55645a;
  --line: #d5ded7;
  --soft: #f1f5f0;
  --white: #ffffff;
  --on-dark: #dbe6de;
  /* Every face is a slab serif so the letter I always carries serifs. */
  --slab: "Roboto Slab", Rockwell, Georgia, "Times New Roman", serif;
  --container: 1140px;
  --gutter: 24px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--slab);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

strong,
b {
  font-weight: 700;
}

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

a {
  color: var(--mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--dark);
}

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

h1,
h2,
h3 {
  font-family: var(--slab);
  color: var(--dark);
  margin: 0;
}

h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

p {
  margin: 0 0 16px;
}

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

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

.section {
  padding: 72px 0;
}

.section--soft {
  background: var(--soft);
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mid);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Banner */

.banner {
  background: var(--dark);
}

.banner h1 {
  margin: 0;
  line-height: 0;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1702 / 630;
  max-height: 600px;
}

/* Voting dates bar */

.votebar {
  background: var(--yellow);
  color: var(--dark);
  padding: 14px 0;
}

.votebar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.votebar p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

/* Buttons */

.button {
  display: inline-block;
  flex-shrink: 0;
  padding: 10px 20px;
  border: 2px solid var(--dark);
  border-radius: 4px;
  background: var(--dark);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.button:hover {
  background: var(--darker);
  border-color: var(--darker);
  color: var(--white);
}

.button--outline {
  background: transparent;
  color: var(--dark);
}

.button--outline:hover {
  background: var(--dark);
  color: var(--white);
}

/* Why I am voting for Prop I */

.voices {
  background: var(--dark);
  color: var(--white);
  padding-top: 64px;
}

.voices h2 {
  color: var(--yellow);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.typebox {
  padding: 26px 30px;
  border: 3px solid var(--yellow);
  border-radius: 6px;
  background: var(--white);
  color: var(--dark);
  cursor: default;
}

.typed {
  display: none;
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
}

.caret {
  display: inline-block;
  width: 0.08em;
  height: 0.95em;
  margin-left: 0.06em;
  background: var(--mid);
  vertical-align: -0.1em;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.voices-list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.voices-list li {
  margin-bottom: 4px;
}

.voices-list li::marker {
  color: var(--mid);
}

.voices.is-typing .typed {
  display: block;
}

.voices.is-typing .voices-list {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.voices-lede {
  margin: 24px 0 0;
  color: var(--on-dark);
  font-size: 19px;
}

.neighborhood {
  height: 96px;
  margin-top: 56px;
  background: url("../img/neighborhood.svg") center bottom / auto 96px repeat-x;
}

/* Layout */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.split--wide-left {
  grid-template-columns: 7fr 5fr;
}

.split--center {
  align-items: center;
}

.lede + .split {
  margin-top: 36px;
}

/* Lists */

.bullets {
  margin: 0;
  padding-left: 1.2em;
}

.bullets li {
  margin-bottom: 14px;
  padding-left: 4px;
}

.bullets li:last-child {
  margin-bottom: 0;
}

.bullets li::marker {
  color: var(--mid);
}

.bullets strong {
  color: var(--ink);
}

/* Ballot */

.ballot {
  padding: 26px 28px 28px;
  background: var(--soft);
  border-left: 6px solid var(--yellow);
}

.ballot img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 6px auto 16px;
  border: 1px solid #c3cdc6;
  background: var(--white);
}

.ballot .source {
  color: var(--muted);
  font-size: 15px;
}

/* Figures */

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  border-radius: 2px;
}

figcaption {
  margin-top: 10px;
  color: var(--dark);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.places figcaption {
  margin-top: 14px;
  color: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.places figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dark);
  font-size: 19px;
  line-height: 1.3;
}

.photo-band img {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 460px);
  object-fit: cover;
  object-position: center 62%;
  border-radius: 0;
}

/* Trust */

.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.points > div {
  padding-top: 20px;
  border-top: 4px solid var(--mid);
}

/* Straight answers */

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
  margin-top: 36px;
}

.answers > div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Election Center */

.election {
  background: var(--dark);
  color: var(--on-dark);
}

.election .eyebrow {
  color: var(--yellow);
}

.election h2 {
  color: var(--white);
}

.election .lede {
  color: var(--on-dark);
}

.dates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0 16px;
  padding: 0;
  list-style: none;
}

.dates li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 4px;
  background: var(--mid);
  color: var(--white);
}

.dates .day {
  flex-shrink: 0;
  width: 58px;
  padding: 6px 0 4px;
  border-radius: 4px;
  background: var(--white);
  color: var(--dark);
  text-align: center;
  line-height: 1;
}

.dates .month {
  display: block;
  color: var(--mid);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dates .num {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  font-weight: 800;
}

.dates strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.dates span.when {
  display: block;
  margin-top: 4px;
  color: var(--on-dark);
  font-size: 15px;
  line-height: 1.45;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  border-top: 5px solid var(--yellow);
  border-radius: 4px;
  background: var(--white);
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

.info h3 {
  font-size: 21px;
}

.info .bullets {
  margin-bottom: 14px;
  columns: 2;
  column-gap: 32px;
}

.info .bullets li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.info .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.info .button {
  font-size: 15px;
  padding: 8px 16px;
}

.closing {
  margin: 48px 0 0;
  color: var(--white);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.closing span {
  color: var(--yellow);
}

/* Footer */

.site-footer {
  background: var(--darker);
  color: #c4d2c8;
  padding: 36px 0 40px;
  font-size: 15px;
  line-height: 1.6;
}

.site-footer a {
  color: var(--white);
}

.site-footer .disclosure {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

/* Privacy page */

.page-top {
  background: var(--dark);
  padding: 18px 0;
}

.page-top a {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.page-top a span {
  color: var(--yellow);
}

.policy h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.policy .updated {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.policy h2 {
  font-size: 26px;
  margin: 40px 0 12px;
}

.policy .bullets {
  margin-bottom: 16px;
}

/* Responsive */

@media (max-width: 1040px) {
  .dates {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  h2 {
    font-size: 30px;
  }

  .split,
  .split--wide-left {
    gap: 36px;
  }

  .answers,
  .points {
    gap: 32px;
  }
}

@media (max-width: 800px) {
  .split,
  .split--wide-left,
  .points,
  .answers {
    grid-template-columns: 1fr;
  }

  .places {
    grid-template-columns: 1fr 1fr;
  }

  .places figure:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16.5px;
  }

  h2 {
    font-size: 27px;
  }

  .section {
    padding: 48px 0;
  }

  .voices {
    padding-top: 44px;
  }

  .typebox {
    padding: 18px 18px;
  }

  .neighborhood {
    height: 64px;
    margin-top: 40px;
    background-size: auto 64px;
  }

  .lede {
    font-size: 17.5px;
  }

  .banner img {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .votebar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .voices-list {
    font-size: 19px;
  }

  .ballot {
    padding: 22px 18px;
  }

  .places,
  .dates,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info .bullets {
    columns: 1;
  }

  .policy h1 {
    font-size: 30px;
  }
}
