:root {
  --night: #171410;
  --plaster: #f4efe6;
  --mute: #c4b8a5;
  --stamp: #e23d28;
  --stair: #3d4f45;
  --lamp: #e7d7b8;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Golos Text", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--plaster);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--lamp);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 4px;
}

.hero {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
}

.hero__kicker {
  margin: 0 0 0.85rem;
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__name {
  margin: 0;
  color: var(--lamp);
  font-family: var(--display);
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.hero__name a {
  color: inherit;
  text-decoration: none;
}

.hero__name a:hover {
  color: var(--plaster);
}

.hero__thesis {
  margin: 1.75rem 0 0;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__stats {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1.75rem 3rem;
  width: fit-content;
  margin: 2.5rem 0 0;
}

.hero__stats div {
  margin: 0;
}

.hero__stats dt {
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__stats dd {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.archive {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.archive__lead {
  margin: 0 0 1.5rem;
  color: var(--mute);
  font-size: 1rem;
  font-weight: 500;
}

.fail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.15rem 2rem;
  align-items: center;
  padding: 1.85rem 0.25rem 1.85rem 0;
  border-top: 1px solid var(--stair);
  animation: rise 0.7s ease both;
}

.fail:nth-child(1) {
  animation-delay: 0.04s;
}
.fail:nth-child(2) {
  animation-delay: 0.08s;
}
.fail:nth-child(3) {
  animation-delay: 0.12s;
}
.fail:nth-child(4) {
  animation-delay: 0.16s;
}
.fail:nth-child(5) {
  animation-delay: 0.2s;
}
.fail:nth-child(6) {
  animation-delay: 0.24s;
}
.fail:nth-child(7) {
  animation-delay: 0.28s;
}
.fail:nth-child(8) {
  animation-delay: 0.32s;
}

.fail:last-child {
  border-bottom: 1px solid var(--stair);
}

.fail p {
  margin: 0;
  max-width: 38ch;
}

.stamp {
  display: inline-block;
  margin: 0.2rem 0.1rem;
  padding: 0.28rem 0.5rem 0.18rem;
  border: 2px solid var(--stamp);
  color: var(--stamp);
  font-family: var(--display);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .fail {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .stamp {
    transform: rotate(-6deg);
    transform-origin: left center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fail {
    animation: none;
  }
}
