:root {
  color-scheme: light;
  --ink: #101114;
  --paper: #f4f6f8;
  --blue: #3457ff;
  --acid: #c7ff3e;
  --muted: #60636b;
  --line: rgba(16, 17, 20, 0.18);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-200%);
  background: var(--acid);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--pad);
}

.site-header {
  min-height: 5.25rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.status span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0.25rem rgba(52, 87, 255, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  min-height: calc(100svh - 5.25rem);
  border-bottom: 1px solid var(--line);
}

.hero-copy,
.artifact,
.map-heading,
.rooms {
  padding: var(--pad);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40rem;
}

.eyebrow,
.room-index,
.artifact-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 1.35rem 0 1.6rem;
  font-size: clamp(4.4rem, 10.2vw, 10.5rem);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.82;
}

.intro {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}

.artifact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--blue);
}

.artifact::before {
  position: absolute;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  content: "";
}

.artifact::after {
  position: absolute;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  content: "";
}

.artifact-window {
  position: relative;
  z-index: 2;
  width: min(30rem, 86%);
  transform: rotate(-4deg);
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 1.25rem 1.25rem 0 var(--acid);
}

.window-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem;
  border-bottom: 2px solid var(--ink);
}

.window-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.window-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  min-height: 19rem;
  padding: 0.75rem;
}

.signal {
  border: 1.5px solid var(--ink);
}

.signal-a {
  background: var(--ink);
}

.signal-b {
  background: repeating-linear-gradient(
    135deg,
    transparent 0 0.8rem,
    var(--ink) 0.8rem 0.95rem
  );
}

.signal-c {
  border-radius: 50% 50% 0 50%;
  background: var(--acid);
}

.signal-d {
  background: var(--blue);
}

.artifact-window > p {
  margin: 0;
  border-top: 2px solid var(--ink);
  padding: 0.8rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.artifact-label {
  position: absolute;
  right: var(--pad);
  bottom: 1.6rem;
  z-index: 3;
  color: white;
}

.map {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
}

.map-heading {
  border-right: 1px solid var(--line);
}

h2 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.rooms {
  display: grid;
  gap: 0;
}

.rooms article {
  display: grid;
  grid-template-columns: minmax(6rem, 0.45fr) minmax(10rem, 0.7fr) minmax(12rem, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.rooms article:first-child {
  padding-top: 0;
}

.rooms article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rooms h3,
.rooms p {
  margin: 0;
}

.rooms h3 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.rooms article > p:last-child {
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .hero,
  .map {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .artifact {
    min-height: 34rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .map-heading {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 4.5rem;
  }

  .status {
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }

  .artifact {
    min-height: 27rem;
  }

  .artifact::before {
    width: 20rem;
    height: 20rem;
  }

  .artifact-window {
    box-shadow: 0.75rem 0.75rem 0 var(--acid);
  }

  .window-grid {
    min-height: 14rem;
  }

  .rooms article {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
