:root {
  --paper: #e6eee8;
  --ink: #12241c;
  --signal: #1b6b4a;
  --dot: #c44536;
  --focus: #12241c;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Literata", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-size: 1.25rem;
  line-height: 1.45;
}

.frame {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 2.5rem;
  border-top: 4px solid var(--signal);
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  font-family: Syne, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.bar p {
  margin: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--dot);
  flex: none;
}

.stage {
  margin-top: auto;
  max-width: 42rem;
}

h1 {
  margin: 0;
  font-family: Syne, "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2.6rem, 16vw, 9.25rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.84;
}

.trace {
  display: block;
  width: min(100%, 36rem);
  height: 4.25rem;
  margin-top: 0.35rem;
}

.trace path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: draw 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.12s forwards;
}

.lead {
  max-width: 34rem;
  margin: 1.15rem 0 0;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .frame {
    padding: 2.75rem 4rem 3.5rem;
  }

  .bar {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trace path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
