:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --fg: #d8dee9;
  --muted: #7f8996;
  --accent: #8cc8ff;
  --border: #27303a;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Fira Code", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

.terminal {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 11vh, 112px) 0 48px;
}

.prompt-block,
.block {
  margin-bottom: 2.5rem;
}

.prompt {
  margin: 0 0 0.7rem;
  color: var(--accent);
}

h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0.65rem 0 0.25rem;
}

p {
  margin: 0.35rem 0;
}

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

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li::before {
  content: "→ ";
  color: var(--muted);
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

@media (max-width: 520px) {
  .terminal {
    width: min(100% - 28px, 680px);
    padding-top: 44px;
  }

  .links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
