* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  background: #e9e6dc;
  color: #003cff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.2;
}


/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  padding: 18px 24px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;

  align-items: start;

  z-index: 100;
}


/* AMALIA */

.amalia {
  justify-self: start;

  color: #003cff;
  text-decoration: none;

  font-size: 18px;
  letter-spacing: -0.04em;
}


/* CENTER NAV */

.main-nav {
  display: flex;
  gap: 28px;

  justify-content: center;
  align-items: center;
}

.main-nav a {
  color: #003cff;
  text-decoration: none;
  font-size: 13px;
}

.main-nav a:hover {
  color: #8a0010;
}


/* MILLIONS */

.millions {
  justify-self: end;

  color: #003cff;
  text-decoration: none;

  font-size: 18px;
  letter-spacing: -0.04em;
}


/* HOMEPAGE */

.home {
  width: 100%;
  height: 100vh;

  padding: 70px 24px 55px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container {
  width: 100%;
  height: calc(100vh - 125px);

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}


/* FOOTER */

.site-footer {
  position: fixed;

  bottom: 0;
  left: 0;

  width: 100%;

  padding: 12px 24px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;

  color: #8a0010;

  font-size: 10px;
  letter-spacing: 0.03em;

  z-index: 100;

  pointer-events: none;
}

.site-footer span:nth-child(1) {
  text-align: left;
}

.site-footer span:nth-child(2),
.site-footer span:nth-child(3) {
  text-align: center;
}

.site-footer span:nth-child(4) {
  text-align: right;
}

.site-footer .emergency {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;

  white-space: nowrap;
}


/* MOBILE */

@media (max-width: 700px) {

  .site-header {
    padding: 14px;
    grid-template-columns: 1fr 1fr;
  }

  .amalia,
  .millions {
    font-size: 16px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;

    justify-content: center;

    margin-top: 15px;

    gap: 18px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .home {
    padding: 100px 12px 50px;
  }

  .video-container {
    height: calc(100vh - 150px);
  }

  .site-footer {
    padding: 10px 14px;
    font-size: 8px;
  }
}
/* ================================
   ARCHIVE
   ================================ */

.archive {
  width: 100%;
  padding: 85px 24px 60px;
}

.archive-grid {
  width: 100%;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 12px;
}

.archive-grid figure {
  margin: 0;
  padding: 0;

  width: 100%;
}

.archive-grid img {
  width: 100%;
  height: auto;

  display: block;

  object-fit: cover;
}


/* ARCHIVE MOBILE */

@media (max-width: 700px) {

  .archive {
    padding: 110px 12px 50px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

}
/* ================================
   ARCHIVE YEARS
   ================================ */

.archive {
  width: 100%;
  padding: 90px 24px 70px;
}

.archive-year {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;

  margin-bottom: 100px;
}

.archive-year-label {
  color: #8a0010;
  font-size: 13px;

  position: sticky;
  top: 90px;

  height: fit-content;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.archive-grid figure {
  margin: 0;
}

.archive-grid img {
  display: block;
  width: 100%;
  height: auto;
}


/* MOBILE */

@media (max-width: 700px) {

  .archive {
    padding: 105px 12px 50px;
  }

  .archive-year {
    grid-template-columns: 50px 1fr;
    gap: 10px;

    margin-bottom: 70px;
  }

  .archive-year-label {
    top: 105px;
    font-size: 11px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

}

/* IPHONE / MOBILE FOOTER */

@media screen and (max-width: 600px) {
  .site-footer {
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;

    grid-template-columns: 1fr 1fr;
    row-gap: 8px;

    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));

    font-size: 9px;
    z-index: 100;
  }

  .site-footer span:nth-child(1) {
    text-align: left;
  }

  .site-footer span:nth-child(2) {
    text-align: right;
  }

  .site-footer span:nth-child(3) {
    text-align: left;
  }

  .site-footer span:nth-child(4) {
    text-align: right;
  }

  .site-footer .emergency {
    position: static;
    grid-column: 1 / -1;

    transform: none;
    text-align: center;

    white-space: normal;
    line-height: 1.4;
    font-size: 8px;
  }
}