:root {
  color-scheme: dark;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  color: #f2f0e9;
  background: #090a0e;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 43%, rgba(83, 45, 122, 0.16), transparent 29rem),
    linear-gradient(135deg, #0d0f15 0%, #090a0e 48%, #06070a 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

header,
footer {
  position: fixed;
  z-index: 5;
  left: clamp(1.5rem, 5vw, 5rem);
  right: clamp(1.5rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
}

header {
  top: clamp(1.5rem, 5vh, 3.5rem);
}

footer {
  bottom: clamp(1.25rem, 4vh, 3rem);
  color: #747783;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
}

.mark {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-decoration: none;
}

.mark-glyph {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(237, 210, 139, 0.52);
  color: #edd28b;
  font-family: Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0;
  transform: rotate(45deg);
}

.mark-glyph::first-letter {
  transform: rotate(-45deg);
}

.status {
  margin: 0;
  color: #8b8d96;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
}

.status span {
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: #d5b96f;
  box-shadow: 0 0 1rem rgba(213, 185, 111, 0.8);
}

main {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 100svh;
  width: min(92rem, 100%);
  padding: 18vh clamp(1.5rem, 5vw, 5rem) 15vh;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 1.5rem 0.35rem;
  color: #a083cc;
  font-size: clamp(0.62rem, 0.8vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.45em;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4.2rem, 11vw, 10.5rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.76;
  text-transform: uppercase;
}

h1 em {
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  -webkit-text-stroke: 1px rgba(238, 212, 146, 0.88);
}

.intro {
  width: min(30rem, 80vw);
  margin: 2.5rem 0 0 0.35rem;
  color: #a8a8ad;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 1.5vw, 1.08rem);
  line-height: 1.7;
}

.atmosphere,
.rift,
.horizon {
  position: fixed;
  pointer-events: none;
}

.atmosphere {
  inset: 0;
  overflow: hidden;
}

.rift {
  top: 50%;
  left: 74%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-13deg);
}

.rift-back {
  width: min(38vw, 35rem);
  aspect-ratio: 0.58;
  border: 1px solid rgba(162, 126, 219, 0.25);
  box-shadow:
    0 0 6rem rgba(102, 55, 167, 0.22),
    inset 0 0 4rem rgba(102, 55, 167, 0.12);
}

.rift-front {
  width: min(31vw, 28rem);
  aspect-ratio: 0.51;
  border: 1px solid rgba(234, 209, 143, 0.48);
  box-shadow:
    0 0 2rem rgba(221, 186, 98, 0.12),
    inset 0 0 5rem rgba(5, 5, 9, 0.92);
}

.rift-front::before,
.rift-front::after {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(143, 104, 202, 0.21);
  border-radius: 50%;
  content: "";
  transform: rotate(6deg);
}

.rift-front::after {
  inset: 19%;
  border-color: rgba(234, 209, 143, 0.15);
  transform: rotate(-8deg);
}

.horizon {
  right: -8vw;
  bottom: 17%;
  width: 58vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(189, 157, 224, 0.28), transparent);
  transform: rotate(-9deg);
}

@media (max-width: 700px) {
  body {
    overflow: hidden;
  }

  .status {
    max-width: 8rem;
    text-align: right;
    line-height: 1.5;
  }

  main {
    justify-content: flex-end;
    padding-bottom: 22vh;
  }

  .rift {
    top: 36%;
    left: 68%;
  }

  .rift-back {
    width: 70vw;
  }

  .rift-front {
    width: 57vw;
  }

  footer p:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rift-back {
    animation: breathe 8s ease-in-out infinite alternate;
  }

  .status span {
    animation: signal 2.8s ease-in-out infinite;
  }
}

@keyframes breathe {
  to {
    opacity: 0.65;
    transform: translate(-50%, -50%) rotate(-10deg) scale(1.025);
  }
}

@keyframes signal {
  50% {
    opacity: 0.38;
  }
}
