/* Page: Index */

body.page-index {
  overflow-x: hidden;
  overflow-y: auto;
}

.page-index .main {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}

.index-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.index-cover-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 var(--page-gutter);
}

.index-title {
  z-index: 10;
}

.index-title-text {
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 108px;
  font-weight: 800;
  margin: 0;
  line-height: 0.9;
  letter-spacing: -3px;
}

.index-earth-wrapper {
  position: fixed;
  bottom: 80px;
  right: calc((100vw - var(--page-max-width)) / 2);
  z-index: 10;
}

.index-earth-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.index-earth-caption {
  text-align: right;
  color: white;
  font-size: var(--font-size-xl);
  font-weight: 300;
  line-height: 1.3;
  max-width: 500px;
  white-space: nowrap;
}

.index-earth-subcaption {
  color: gray;
  font-size: var(--font-size-sm);
  font-weight: 300;
  text-align: right;
  margin-bottom: 12px;
}

.index-earth-img {
  width: 400px;
  height: 400px;
  object-fit: contain;
  border-radius: 50%;
}

.index-earth-date {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
}

.index-earth-date-prefix,
.index-earth-date-ad,
.index-earth-date-year {
  color: white;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

.index-earth-date-year {
  font-variant-numeric: tabular-nums;
  min-width: 48px;
}

.index-bg {
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  position: fixed;
  background-image: url("../../assets/index/earth_bg.jpg");
  background-size: cover;
  z-index: -1;
}

@media (max-width: calc(var(--page-max-width) + (var(--page-gutter) * 2))) {
  .index-earth-wrapper {
    right: var(--page-gutter);
  }
}

/* Mobile Layout for Index Page */
@media (max-width: 768px) {
  body.page-index {
    overflow-y: auto;
  }

  body.page-index .header {
    z-index: 10000;
  }

  body.page-index .header_nav_mobile {
    z-index: 10001;
  }

  body.page-index .footer {
    z-index: 10000;
  }

  .index-cover {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 80px;
    z-index: 1;
  }

  .index-cover-inner {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
  }

  .index-title {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .index-title-text {
    font-size: 86px;
    text-align: center;
  }

  .index-earth-wrapper {
    position: static;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .index-earth-stack {
    align-items: center;
  }

  .index-earth-caption {
    text-align: center;
    white-space: normal;
    max-width: 100%;
  }

  .index-earth-subcaption {
    text-align: center;
  }

  .index-earth-img {
    width: 280px;
    height: 280px;
  }

  .index-earth-date {
    justify-content: center;
  }
}
