:root {
  color-scheme: light;
  --background: #fafafa;
  --text: #222;
  --muted: #777;
  --line: #ddd;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

main {
  width: min(calc(100% - 3rem), 640px);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.intro {
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.intro,
section {
  animation: reveal 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

section:nth-of-type(1) {
  animation-delay: 80ms;
}

section:nth-of-type(2) {
  animation-delay: 160ms;
}

section:nth-of-type(3) {
  animation-delay: 240ms;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
}

h1 {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.lede {
  max-width: 30rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

section {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

section:last-child {
  padding-bottom: 0;
}

h2 {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

li + li {
  margin-top: 0.55rem;
}

a {
  color: inherit;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 150ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.connections li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
}

.connections span {
  color: var(--muted);
}

@media (max-width: 560px) {
  main {
    width: min(calc(100% - 2.5rem), 640px);
  }

  section {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  h2 {
    margin-top: 0;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #181818;
    --text: #f0f0f0;
    --muted: #999;
    --line: #383838;
  }
}

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

  a {
    transition: none;
  }
}
