/* ==========================================================================
   Layout: content area, layout grid, background scenery, footer
   ========================================================================== */

/* ---------- Content area ---------- */

.content {
  position: relative;
  z-index: 2;
  color: var(--purple-deep);
  padding-bottom: 1rem;
}

@media (min-width: 331px) and (max-width: 992px) {
  h1 {
    margin: 3rem;
  }

  .content {
    margin: 8rem 15rem 0;
  }

  [data-theme="sub"] h1 {
    margin: 0;
  }

  [data-theme="sub"] .content {
    margin: 6rem 1rem 0 1rem;
  }
}

@media (min-width: 993px) {
  .content {
    margin: 5rem 8rem 0 8rem;
  }

  [data-theme="sub"] .content {
    margin: 8rem auto;
    max-width: 1080px;
  }
}

@media (min-width: 2560px) {
  .content {
    padding: 0 10rem;
  }
}

/* ---------- Layout grid (Kirby layout field) ---------- */

.row {
  padding-bottom: 4rem;
}

.col-4  { flex-basis: 33%; }
.col-6  { flex-basis: 45%; }
.col-8  { flex-basis: 66.66%; }
.col-12 { width: 100%; }

@media (min-width: 331px) and (max-width: 599px) {
  .col-3 { flex-basis: 50%; }
}

@media (min-width: 331px) and (max-width: 922px) {
  .col-4,
  .col-8 { flex-basis: unset; }
}

/* ---------- Background mountains ---------- */

.mountains-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.mountainCenter {
  position: absolute;
  top: 3rem;
  left: 0;
  right: 0;
  z-index: -1;
  height: 100rem;
  min-width: 100vw;
  pointer-events: none;
  transition: 2.5s;
}

.mountainCenter img {
  width: 100%;
  min-width: 720px;
}

[data-theme="sub"] .mountainCenter { top: -15rem; }

@media (min-width: 993px) {
  [data-theme="sub"] .mountainCenter { top: -25rem; }
}

@media (min-width: 1920px) and (max-width: 2560px) {
  [data-theme="sub"] .mountainCenter { top: -40rem; }
}

@media (min-width: 2560px) {
  [data-theme="sub"] .mountainCenter { top: -30rem; }
}

/* z-index doubles as parallax depth for .paralax elements (see paralaxxer.js) */
.foreground {
  position: absolute;
  bottom: -1rem;
  z-index: 2;
  max-width: 25vw;
}

.foreground img {
  width: 100%;
  filter: blur(5px);
}

.foreground.left  { left: -3rem; }
.foreground.right { right: -1rem; }

/* ---------- Big logo (fades out on scroll) ---------- */

.bigLogo {
  position: fixed;
  bottom: -1rem;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 70vh;
  pointer-events: none;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.bigLogo.scrolled,
[data-theme="sub"] .bigLogo {
  opacity: 0;
}

.bigLogo.scrolled {
  transform: translateY(100%);
}

/* z-index doubles as parallax depth for .paralax elements (see paralaxxer.js) */
.bigLogo img {
  z-index: 1;
  height: 100%;
  max-height: 60vh;
  width: auto;
  margin-top: -22px;
}

/* ---------- Footer & sponsors ---------- */

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
}

.footer-bottom {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  opacity: 0.5;
  color: var(--ink-black);
}

.sponsors-container {
  text-align: center;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin: 2rem 0;
}

.sponsor-item {
  flex: 0 1 auto;
}

.sponsor-item img {
  max-height: 80px;
  max-width: 200px;
  filter: grayscale(1) invert(1);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.sponsor-item img:hover {
  opacity: 1;
}

.sponsor-item span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--ink-black);
}

/* ---------- Archive note (site option "Archived") ---------- */

.archive-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 1500;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.archive-note .badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  pointer-events: auto;
}

.archive-note .archive-note_link {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--lilac-light);
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.archive-note .archive-note_link:hover {
  color: var(--purple-deep);
}
