:root {
  --blue: #1a4580;
  --red: #8a181a;
  --med-red: #B52022;
  --green: #2a6e2a;
  --reverse-hover: LightGoldenrodYellow;
  --text: DarkSlateGray;
  --main-bg: #dce0e5;
  --sans: "Inter", sans-serif;
  --headline: "Merriweather Sans", sans-serif;
  --serif: "Georgia", serif;
}

body, html {
  overflow-x: hidden; }

html {
  box-sizing: border-box; }

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

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

figure {
  margin: 0;
  padding: 0;
}

.sep {
  margin: 1em 0;
  text-align: center;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--headline);
}

h1 {line-height: 1.2;}

body {
  background-color: var(--red);
  color: white;
  font: 400 15px/1.5 var(--sans);
}

header {
  align-items: stretch;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  padding-right: 1.5em;
}

header figure {
  width: 240px;
}

header figure a {
  display: block;
  padding: 1em 1.5em;
}

header nav {
  align-items: stretch;
  display: none;
  flex-flow: row nowrap;
}

header nav ul {
  align-items: stretch;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav li {
  align-items: center;
  display: flex;
}

header nav a {
  color: white;
  display: block;
  flex: 1;
  font-size: 0.875em;
  font-weight: 500;
  padding: 2em 1.5em;
  text-decoration: none;
  text-transform: uppercase;
}

header nav a.button {
  margin: 0 1em;
}

header nav a:link, header nav a:visited {
  color: white;
}

header nav a:hover, header nav a:active {
  color: var(--reverse-hover);
}

#hamburger {
  padding: 0.5em;
}

#hamburger img {
  opacity: 0.7;
  width: 30px;
  transition: opacity 0.5s linear;
}

#hamburger img:hover {
  cursor: pointer;
  opacity: 1.0;
}

@media only screen and (min-width: 1100px) {
  header nav {display: flex;}
  #hamburger {display: none;}
}

footer {
  margin: 3em 0 5em;
  text-align: center;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li {
  margin: 0.5em 0;
}

footer a {
  color: var(--reverse-hover);
  text-decoration: none;
}

main {
  background-color: var(--main-bg);
  margin: 0;
  padding: 0;
}

#ui {
  background: white;
  color: var(--text);
  margin: 0 auto;
  padding: 1.5em 1.75em;
  max-width: 1040px;
}

#ui a {
  color: var(--red);
}

h1 {
  font-size: 2.5em;
  font-weight: 600;
  margin: 0 0 0.5em;
}

section {
  margin: 1em -1.75em;
  padding: 1em 1.75em;
}

section:nth-child(odd) {
  background-color:rgba(220, 224, 229, 0.35);
}

section h2 {
  font-weight: 500;
  margin: 0.5em 0 0;
}

#home__actions h2 {
  font-weight: 500;
  margin: 1em 0 -0.5em;
  text-align: center;
}

section figure {
  margin: 1em auto;
  max-width: 400px;
}

@media only screen and (min-width: 650px) {
  section figure {
    margin: 0;
    max-width: none;
  }
  .section-content-wrapper {
    display: grid;
    gap: 1.5em;
    grid-template-columns: [photo] 35% [content] 1fr;
  }

  .section-content-wrapper.photo-right {
    grid-template-columns: [content] 1fr [photo] 33%;
  }
}



.section-photo {
  grid-area: photo;
}

.section-content {
  grid-area: content;
}

.section-content p {
  line-height: 1.618;
  margin: 0 0 1.25em;
}

blockquote {
  background: white;
  border-left: 5px solid var(--blue);
  font-family: var(--serif);
  font-size: 1.1em;
  margin: 1em 0;
  padding: 1.5em;
}

blockquote .citation {
  line-height: 1.2;
  margin: -0.75em 0 0;
}

blockquote cite {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-style: italic;
}

main#home {
  background-color: transparent ;
}


/* === HERO === */

#hero {
  background-color: var(--blue);
  background-image: url('/static/img/photos/Sun\ Go\ Down-mobile.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

#hero__inner {
  padding: 4em 2em 2em;
}

#hero__text {
  background: rgba(7, 21, 38, 0.9);
  color: white;
  padding: 1em 1.5em;
}

#hero__inner * {
  margin: 0.5rem 0;
}

#hero__inner h4 {
  font-size: 0.875em;
  font-weight: 600;
}

#hero__inner p {
  font-size: 1.3em;
  font-weight: 500;
  line-height: 1.35;
}

@media only screen and (min-width: 650px) {
  #hero {
    background-image: url('/static/img/photos/Sun\ Go\ Down.jpg');
  }

  #hero__inner {
    background: linear-gradient(
      to right, rgba(15, 40, 74, 0.9) 0%,
      rgba(15, 40, 74, 0.7) 33%,
      rgba(15, 40, 74, 0) 67%
    );
    background-size: cover;
    padding: 6em 1.5em 4em;
    z-index: 5;
  }

  #hero__text {
    background: color-mix(in srgb, var(--blue) 30%, black 70%);
    width: 50%;
  }

  #hero__inner h4 {
    font-size: 1em;
  }

  #hero__inner p {
    font-size: 1.618em;
  }
}

/* === HOME HEADER === */

#home-header {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  padding: 0;
}

#home-header figure {
  background: white;
  border-bottom: 1px solid white;
  border-left: 1px solid white;
  border-right: 1px solid white;
  left: 50%;
  position: absolute;
  top: 0;
  width: 200px;
  translate: -50% 0;
}

@media only screen and (min-width: 600px) {
  #home-header figure {
    left: 1em;
    translate:unset;
    width: 240px;
  }
}

/* === HOME ELECTION === */
#home__election {
  font-weight: 500;
  text-align: center;
}

@media only screen and (min-width: 650px) {
  #home__election {
    font-size: 1.25em;
  }
}

/* === HOME ACTION === */

#home__actions form {
  margin: 1em auto;
  position: relative;
  text-align: center;
}

#home__donate {
  margin: 2em 0 1.5em;
  text-align: center;
}

#subscription-success {
  background: var(--green);
  border-radius: 40px;
  color: white;
  font-size: 40px;
  line-height: 2;
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s linear;
}

#subscription-success.fading {
  opacity: 0;
}


#subscription-success.hidden {
  display: none;
}

/* === HOME MESSAGE === */

#home__message {
  background: white;
  color: var(--text);
  margin: 2em auto;
  padding: 1.5em 1.75em;
}

#home__message h2 {
  font-size: 1.25em;
  line-height: 1.25;
}

@media only screen and (min-width: 650px) {
  #home__message {
    padding: 1.5em 1.75em;
    max-width: 800px;
  }
  #home__message h2 {
    font-size: 1.5em;
  }
}

nav#mobile {
  background: var(--red);
  color: white;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 10;
}

nav#mobile.engaged {
  display: block;
}

nav#mobile ul {
  list-style: none;
  margin: 1em auto;
  padding: 0;
  max-width: 600px;
}

nav#mobile li {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5em 0;
  text-align: center;
}

nav#mobile a {
  color: white;
  font-size: 1.5em;
  font-weight: 500;
  text-decoration: none;
}

nav#mobile a.button {
  font-size: 1rem;
  margin-top: 2em;
}

#mobile-nav-close {
  font-size: 2em;
  line-height: 1;
  position: fixed;
  top: 0.5rem;
  right: 1rem;
}

#mobile-nav-close:hover {
  cursor: pointer;
}
