@font-face {
  font-family: 'Old Round Regular';
  src: url('fonts/oldround-30-1-1-webfont.woff');
}

@font-face {
  font-family: 'Old Round Hover';
  src: url('fonts/oldround-30-hover-webfont.woff');
}

:root {
  --bg: #d3d9c7;
  --fg: #1f1f1f;
  --font-body: 'Old Round Regular', monospace;
  --font-hover: 'Old Round Regular', monospace;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
}

a {
  color: var(--fg);
  text-decoration: underline;
  font-weight: 600;
}

a:hover {
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-hover);
}

::selection {
  color: var(--bg);
  background: var(--fg);
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.3em;
}

h3 {
  font-size: 1.1em;
}

p {
  font-size: 1em;
}

/* --- Nav --------------------------------------------------------------- */

.navbar {
  padding: 18px 1.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-brand,
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-logo {
  width: 54px;
  height: auto;
  display: block;
}

.nav-title {
  font-size: 1.35em;
  font-weight: 600;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 300;
  padding: 2px;
}

/* --- Nav dropdown -------------------------------------------------------- */

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--fg);
  min-width: 140px;
  z-index: 10;
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  white-space: nowrap;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

/* --- Layout -------------------------------------------------------------- */

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4% 0 8%;
}

.container-2 {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto 8%;
}

#section-2 {
  margin-top: 4%;
}

.flex-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.info-block {
  padding-bottom: 4%;
}

/* --- Images --------------------------------------------------------------- */

.hero {
  display: flex;
  position: relative;
  justify-content: flex-start;
  align-items: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 700px;
  margin: 0 auto 0;
}

.inline-image {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 600px;
  margin-top: 8%;
  margin-bottom: 8%;
}

.hero-img,
.inline-img {
  display: none;
}

.hero h1 {
  background: #1F1F1F;
  color: #D3D9C7;
  white-space: nowrap;
}

.container .hero h1 {
  margin-left: -20%;
}

.title {
  background-color: #1f1f1f;
  color: #d3d9c7;
  width: 60%;
  font-size: 1em;
  line-height: 1em;
  padding: 5px;
  text-align: left;
  display: none;
}

.hero .title {
  position: absolute;
  top: 75%;
  left: 45%;
  width: 60%;
  margin: 0;
}

.inline-image .title {
  width: 70%;
  margin-top: 40%;
}

.hero:hover .title {
  display: block;
}

.inline-image:hover .title {
  display: block;
}

.logo-burst {
  background-size: 160px;
  background-repeat: no-repeat;
  background-position: right;
}

/* --- Call to action ------------------------------------------------------- */

.cta {
  display: inline-block;
  margin: 0.6em 0 0;
  padding: 10px 16px;
  border: 1px solid var(--fg);
  font-weight: 600;
  text-decoration: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1em;
}

.arrows {
  font-weight: 600;
  margin-bottom: 0;
}

/* --- Cards (blocks, orgs, benefits) --------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 1.5em;
}

.card {
  border: 1px solid var(--fg);
  padding: 1.2em;
  min-width: 0;
}

.card a {
  overflow-wrap: anywhere;
}

.card h3 {
  margin-top: 0;
}

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

.card .state {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.3em;
}

.small {
  font-size: 0.85em;
}

.cards.stacked {
  grid-template-columns: 1fr;
}

#core {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 2.5em;
}

#core h3 {
  flex-basis: 100%;
}

#core p {
  margin: 0;
}

#crew .cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin: 0;
  padding: 5rem 4rem 2rem;
  border-top: 1px solid var(--fg);
  font-size: 15px;
}

.site-footer a {
  font-weight: 300;
}

.site-footer__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.site-footer__logo {
  width: 250px;
  max-width: 100%;
  height: auto;
  margin: -2rem 0 0 0;
}

.site-footer__home,
.site-footer__home:hover {
  background: none;
  display: inline-block;
}

.site-footer__right {
  display: grid;
  grid-template-columns: auto auto auto;
  column-gap: 2.5rem;
  row-gap: 0.6rem;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.site-footer__about {
  opacity: 60%;
  font-size: 90%;
  text-align: right;
  grid-column: 1 / -1;
  justify-self: right;
  margin-top: 2rem;
}

@media only screen and (max-width: 782px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin: 0 5%;
  }

  .site-footer__left,
  .site-footer__col {
    align-items: center;
  }

  .site-footer__right {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
  }

  .site-footer__about {
    justify-self: center;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* --- Mobile ---------------------------------------------------------------- */

@media only screen and (max-width: 500px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.5em;
  }

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

  .nav-right .nav-logo {
    display: none;
  }

  .nav-title {
    font-size: 1.1em;
  }

  .dropdown-menu {
    position: static;
    display: block;
    border: none;
    padding-left: 12px;
  }

  .container {
    width: 92%;
    padding-top: 8%;
  }

  #section-2 {
    margin-top: 10%;
  }

  .hero {
    display: block;
    background-image: none !important;
    height: auto;
    margin-top: 18%;
    margin-bottom: 0;
    padding-left: 0;
  }

  .hero .title {
    position: static;
    width: 90%;
    margin: 0 auto;
  }

  .hero h1 {
    white-space: normal;
  }

  .hero-img {
    display: block;
    width: 100%;
    padding: 8px;
  }

  .inline-image {
    display: block;
    background-image: none !important;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .inline-img {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .title {
    width: 90%;
    font-size: 12px;
    line-height: 1em;
    padding: 8px !important;
    margin: 0 auto;
    display: block;
  }

  .logo-burst {
    background-size: 50px;
    background-position-y: 0;
  }
}
