@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #59625e;
  --paper: #f4f1ea;
  --signal: #d94f32;
  --line: rgba(23, 33, 29, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  background: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px), var(--paper);
  background-size: 64px 64px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

main {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
  position: relative;
}

section {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - clamp(56px, 10vw, 144px));
  min-height: calc(100svh - clamp(56px, 10vw, 144px));
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.status {
  align-items: center;
  display: flex;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  gap: 10px;
  letter-spacing: 0;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.status span {
  background: var(--signal);
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

h1 {
  font-size: clamp(54px, 10vw, 132px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
}

.summary {
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 28px);
  line-height: 1.45;
  margin: 32px 0 0;
  max-width: 620px;
}

footer {
  bottom: clamp(28px, 5vw, 72px);
  display: flex;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  justify-content: space-between;
  left: clamp(28px, 5vw, 72px);
  position: absolute;
  right: clamp(28px, 5vw, 72px);
  text-transform: uppercase;
  z-index: 2;
}

.route-field {
  height: min(72vw, 840px);
  opacity: 0;
  position: absolute;
  right: -10vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(72vw, 840px);
  animation: reveal 1.1s ease-out 160ms forwards;
}

.route {
  border: 2px solid var(--ink);
  border-radius: 50%;
  inset: 12%;
  position: absolute;
}

.route-one {
  clip-path: inset(0 0 51% 0);
  transform: rotate(18deg);
}

.route-two {
  border-color: var(--signal);
  clip-path: inset(46% 0 0 0);
  inset: 24%;
  transform: rotate(-24deg);
}

.route-three {
  border-color: var(--line);
  inset: 2%;
}

.node {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  height: 18px;
  position: absolute;
  width: 18px;
}

.node-one {
  left: 23%;
  top: 18%;
}

.node-two {
  border-color: var(--signal);
  bottom: 25%;
  right: 18%;
}

.node-three {
  bottom: 15%;
  left: 30%;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-47%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@media (max-width: 640px) {
  main {
    padding: 24px;
  }

  section {
    justify-content: flex-start;
    min-height: auto;
    padding-top: 22vh;
  }

  h1 {
    font-size: clamp(46px, 15.5vw, 68px);
  }

  footer {
    bottom: 24px;
    left: 24px;
    right: 24px;
  }

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

  .route-field {
    bottom: -12vw;
    height: 90vw;
    right: -24vw;
    top: auto;
    transform: none;
    width: 90vw;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(3%) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-field {
    animation: none;
    opacity: 1;
  }
}
