/* Global */
body {
  font-family: "Times New Roman", Times, serif;
  background: #fff;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

a:hover,
a:active {
  text-decoration: underline;
}

:root {
  color-scheme: only light;
}

/* Home page */
.home-content {
  margin-left: 234px;
}

.home-container {
  overflow-y: clip;
}

.home-title {
  font-size: 1.4em !important;
}

.home-subtitle {
  font-style: italic;
  text-align: center;
  margin-bottom: 48px;
}

.sticky {
  float: left;
  position: sticky;
  width: 234px;
  z-index: 1;
  top: 0;
}

.sidebar-container {
  background: url(/images/featured_background.png) repeat-y;
  margin-top: -64px;
  padding-bottom: 64px;
  height: 100vh;
}

.sidebar {
  font-size: 0.9em;
  position: absolute;
  padding: 16px 0;
}

.sidebar p {
  margin: 8px 16px;
}

.featured-header {
  background: url(/images/featured_dna.png) no-repeat;
  height: 46px;
  margin: 64px 0 16px 8px;
  padding: 10px 0 0 80px;

  font-family: "Helvetica", sans-serif;
  font-size: 1.1em;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
  color: #dd312f;
}

.featured-article {
  margin-bottom: 48px;
}

.featured-link {
  text-align: center;
}

.featured-link a {
  font-weight: bold;
}

.snippet {
  color: #333;
  text-align: justify;
}

.more {
  margin: 24px 8px 8px 8px;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.75em;
  color: #666;
}

.main {
  margin: -64px auto 0 auto;
  padding: 64px 0;
  width: 70ch;
  font-size: 18px;
}

.main p {
  margin: 16px auto;
  line-height: calc(1ex / 0.32);
}

.red {
  color: #cc0000;
}

.green {
  color: #008000;
}

.gold {
  color: #ff9900;
}

.promo-video {
  margin: 64px auto;
}

.promo-video video {
  width: 640px;
  border-radius: 8px;
}

.caption {
  margin: 8px 0;
  color: #666;
  text-align: center;
  font-style: italic;
}

#motion-container {
  width: 100%;
  height: 90px;
  white-space: nowrap;
}

/* Articles */

article .title {
  font-size: 1.4em;
  font-weight: bold;
}
article .subtitle {
  margin-top: 8px;
  font-size: 1.1em;
}

.source {
  color: #666;
  margin-top: 8px;
}

article .date {
  font-family: "Helvetica", sans-serif;
  font-weight: bold;
  font-size: 0.8em;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #666;
}

article .writer {
  margin-top: 32px;
}

article .footer {
  margin: 48px 16px;
  border-left: 2px solid #999;
  padding-left: 16px;
}

article .writer-title {
  font-style: italic;
}

article p {
  margin: 16px 0;
}

article .excerpt {
  margin: 32px 48px;
  color: #333;
  text-align: center;
}

.profile {
  margin: 32px 0;
  display: flex;
  align-items: center;
}

.profile div {
  flex: 1;
}

.rounded img,
.profile img {
  border-radius: 8px;
}

.profile-text {
  line-height: 2.4em;
}

.image-left {
  float: left;
  margin: 16px 48px 32px 0;
}

.image-center {
  margin: 32px 0;
  text-align: center;
}

.image-right {
  float: right;
  margin: 16px 0 32px 48px;
}

.magazine {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  max-width: 471px;
  width: 80vw;
  line-height: 0;
  border-radius: 8px;
  margin: 32px 0 64px 0;
}

.magazine img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.statement {
  margin-top: 64px;
  text-align: center;
  font-style: italic;
}

.facts {
  float: left;
  width: 200px;
  background: #999;
  color: #fff;
  padding: 0 32px 0 48px;
  margin: 16px 32px 32px 0;
  border-radius: 8px;
  text-align: justify;
}

.facts ul {
  padding: 0;
  margin: 0;
}

.facts li {
  padding: 16px 0;
}

.facts h3 {
  font-family: "Helvetica", sans-serif;
  text-align: center;
}

.facts div {
  text-align: center;
  margin: 16px 0;
}

.highlight {
  margin: 48px 0 32px 16px;
  width: 240px;
  font-size: 2em;
  line-height: 1.8em;
  text-align: center;
  float: right;
  color: #666;
}

/* Articles overview page */
.articles-list ul {
  margin: 32px 0;
}

.articles-list li {
  padding: 16px 0;
  list-style: none;
}

.articles-list .writer {
  margin-bottom: 8px;
}

.headline {
  font-family: "Helvetica", sans-serif;
  font-weight: bold;
}

.article-snippet {
  margin: 16px 0;
}

/* Credits page */
.credits {
  text-align: center;
}

.who {
  margin: 64px 0 32px 0;
  text-transform: uppercase;
  color: #800000;
  font-weight: bold;
}

.movement {
  width: 60ch;
  margin: 64px auto;
}

.funding {
  font-size: 0.9em;
  text-align: center;
}

/* FHPS page */
.fhps {
  padding: 16px 0 64 0;
}

.fhps-logo {
  text-align: center;
  margin-bottom: 32px;
}

.fhps-logo img {
  width: 100%;
  max-width: 395px;
}

.fhps a:link,
.fhps a:visited,
.fhps a:hover,
.fhps a:active {
  text-decoration: none;
}

/* Links page */
.links-content p {
  padding: 16px 0;
}

/* Support page */
.support {
  width: 320px;
}
.divider {
  margin: 48px 0;
  width: 320px;
  border-bottom: 1px solid #000;
}

.location {
  text-decoration: underline;
  margin-bottom: 32px;
}

/* Join page */
.join-form {
  margin-bottom: 100px;
  max-width: 640px;
  font-size: 0.9em;
}

.form-row {
  background: #086b08;
  color: #ffffff;
  padding: 4px 8px;

  display: flex;
  justify-content: space-between;
}

.alt {
  background: none;
  color: #000000;
}

.form-control {
  flex: 0 1 220px;
  text-align: right;
}

.form-input {
  width: 204px;
}

.form-textarea {
  width: 204px;
  height: 100px;
}

.form-select {
  width: 212px;
}

.sex {
  display: inline-block;
  margin: 0 32px 0 4px;
}

.submit-button {
  text-align: center;
  margin-top: 32px;
}

/* Landing page */
.landing {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
}

.landing .logo {
  flex: 0 1;
  margin: 16px 0;
  width: 80%;
  max-width: 320px;
  text-align: center;
}

.landing .logo img {
  width: 100%;
  height: auto;
}

.welcome {
  margin: 32px 0;
  font-size: 1.1em;
  width: 60ch;
}

.welcome p {
  margin: 32px 0;
}

.tagline {
  text-align: center;
  font-style: italic;
}

.visit-button {
  border: 4px solid #c44834;
  background: #7e1200;
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;

  font-family: "Helvetica", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}
/* 404 */
.not-found {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-transform: uppercase;
  font-family: "Helvetica", sans-serif;
  font-size: 1.2em;
  color: #666;
}

.not-found div {
  flex: 0 1;
  margin: 16px 0;
  width: 80%;
  max-width: 240px;
  text-align: center;
}

.not-found img {
  width: 100%;
  height: auto;
}

/* General */
.page-content {
  font-size: 18px;
  line-height: calc(1ex / 0.32);

  margin: 32px auto 64px auto;
  max-width: 100%;
  width: 70ch;
}

.page-content ol {
  padding-left: 16px;
  counter-reset: list;
}

li {
  padding: 4px 0;
}

.page-content ol > li {
  list-style: none;
}

.page-content ol > li:before {
  content: "(" counter(list, numeric) ") ";
  counter-increment: list;
}

.page-header {
  font-family: "Helvetica", sans-serif;
  letter-spacing: 0.2em;
  font-size: 1.2em;
  font-weight: 800;
  color: #dd312f;

  text-align: center;
  margin-bottom: 32px;
}

.section-header {
  font-weight: bold;
}

section {
  padding: 1.2em 0;
}

.note {
  font-size: 0.9em;
  color: #666;

  text-align: center;
  margin-bottom: 32px;
}

/* Navigation */
.nav {
  position: relative;
  width: 100%;
  z-index: 2;
}

.nav img {
  display: block;
}

.nav a:link,
.nav a:visited,
.nav a:hover,
.nav a:active {
  text-decoration: none;
}

.nav a img.over,
.nav a:hover img.default {
  display: none;
}

.nav a img.default,
.nav a:hover img.over {
  display: inherit;
}

.primary-nav {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.primary-links {
  height: 29px;
  display: flex;
}

.secondary-links {
  display: flex;
}

.articles-link {
  width: 158px;
}

.gradation {
  background: url(/images/red_gradation.gif) repeat-x;
  flex: 1;
}

.banner-left {
  height: 140px;
  flex: 0;
}

.banner-right {
  width: 384px;
  height: 111px;
}

.graphic-mid {
  display: flex;
  justify-content: space-between;
}

.nav .logo {
  margin: 12px 16px;
}

.nav .logo img {
  height: 86px;
}

.nav-fill {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.secondary-nav {
  box-shadow: inset 0px 2px 0px 0px #000;
  height: 18px;
  background: #086b08;
  display: flex;
}

.nav-under {
  display: flex;
}

/* Mobile site */

#mobile-overlay {
  display: none;
  flex-direction: column;
  background: #fff;
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4;
}

#nav-open,
#nav-close {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

#nav-logo {
  padding-top: 48px;
  display: none;
  text-align: center;
  flex: 0 1 140px;
}

#nav-logo img {
  height: 75px;
}

#nav-close {
  display: none;
}

.mobile-nav {
  flex: 1;
  margin: 0 auto;
  padding-bottom: 128px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-nav a,
.mobile-nav a:active,
.mobile-nav a:visited,
.mobile-nav a:hover {
  font-family: "Helvetica", sans-serif;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  color: #086b08;
  display: block;
}

@media (max-width: 900px) {
  .primary-links,
  .secondary-links {
    display: none;
  }

  .primary-nav {
    display: flex;
    align-items: flex-end;
    width: 100vw;
    max-width: 651px;
  }

  .banner-left {
    height: fit-content;
    flex: 0.4101;
  }

  .nav-fill {
    flex: 0.5899;
    margin-right: 16px;
  }

  .banner-left img,
  .under-right img,
  .graphic-mid img,
  .graphic-mid {
    height: auto;
    width: 100%;
  }

  .nav-under {
    display: flex;
    width: 100vw;
    max-width: 672px;
    margin-bottom: 32px;
  }

  .under-left {
    flex: 0.3974;
  }

  .under-right {
    flex: 0.6026;
    margin-right: 16px;
  }

  .under-left img,
  .under-right img {
    width: 100%;
  }

  #nav-open {
    display: block;
  }

  .nav .logo {
    display: none;
    position: absolute;
    top: 64px;
    z-index: 6;
  }

  .landing {
    justify-content: flex-start;
    padding-top: 32px;
  }

  .welcome {
    width: 100%;
  }

  .welcome p {
    margin: 16px 32px;
  }

  .tagline {
    margin: 0 32px;
  }

  .page-content {
    margin: 0;
    padding: 0 16px;
    width: inherit;
  }

  .page-content ul {
    padding-left: 0;
  }

  .home-content {
    margin-left: 0;
  }

  .home-container {
    display: flex;
    flex-direction: column-reverse;
  }

  .home-subtitle {
    padding: 0 16px;
  }

  .main {
    width: inherit;
  }

  .main p {
    padding: 0 16px;
  }

  #motion-container {
    width: 100vw !important;
  }

  .promo-video video {
    width: 100vw;
    border-radius: 0;
  }

  .sl-counter {
    top: auto !important;
    right: auto !important;
    bottom: 16px !important;
    width: 100vw;
    text-align: center;
  }

  .sl-prev,
  .sl-next {
    width: fit-content !important;
    margin-top: 30vh !important;
  }

  .sl-prev {
    margin-left: -8px !important;
  }

  .sl-next {
    margin-right: -8px !important;
  }

  .sl-close {
    top: 32px !important;
    left: auto !important;
    right: 32px !important;
  }

  .sticky {
    float: none;
    position: relative;
    width: 100vw;
    margin-top: 32px;
  }

  .sidebar {
    font-size: 1em;
    line-height: calc(1ex / 0.32);
  }
  .sidebar-container {
    background: none;
  }

  .featured-header {
    margin: 32px auto;
    width: 140px;
  }

  .featured-link a {
    font-size: 1.1em;
  }

  .fhps-text ul,
  section ul {
    padding-left: 32px !important;
  }

  .movement {
    width: auto;
  }

  .form-input {
    width: 160px;
  }

  .form-select {
    width: 168px;
  }

  .form-textarea {
    width: 160px;
    height: 64px;
  }

  .form-control {
    flex: 0 1 200px;
  }

  .label {
    flex: 0 0 40vw;
    padding-right: 8px;
  }

  .sex {
    display: inline-block;
    margin: 0 4px;
  }

  .support {
    margin-top: 32px;
  }
}
