:root {
  /* Palette: Catppuccin Macchiato */
  --base: #24273a;
  --text: #cad3f5;
  --subtext0: #a5adcb;
  --overlay0: #6e738d;
  --green: #a6da95;
  --mauve: #c6a0f6;
  --blue: #8aadf4;
  --rosewater: #f4dbd6;

  /* Roles */
  --bg: var(--base);
  --fg: var(--text);
  --muted: var(--subtext0);
  --accent: var(--green);
  --link-underline: var(--overlay0);
  --link-hover: var(--blue);
  --cursor: var(--rosewater);
  --tagline: var(--mauve);
}

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

body {
  margin: 0;
  padding: 1.5rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg);
  color: var(--fg);
  font-family:
    ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.6;
}

main {
  width: 100%;
  max-width: 60ch;
}

.prompt {
  margin: 0;
  color: var(--muted);
}

.prompt::before {
  content: "❯ ";
  content: "❯ " / "";
  color: var(--accent);
}

h1 {
  margin: 0.25rem 0 0;
  font-size: 1.75rem;
  font-weight: normal;
}

.tagline {
  margin: 0 0 2rem;
  color: var(--tagline);
}

kbd {
  font-family: inherit;
}

dl {
  margin: 0.25rem 0 2rem;
  display: grid;
  grid-template-columns: 10ch 1fr;
  gap: 0.25rem 1rem;
}

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

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

a {
  color: var(--fg);
  text-decoration-color: var(--link-underline);
  text-underline-offset: 0.25em;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

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

.cursor {
  display: inline-block;
  width: 1ch;
  height: 1.1em;
  background-color: var(--cursor);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

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

@media (max-width: 480px) {
  body {
    font-size: 0.9375rem;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dd {
    margin-bottom: 0.5rem;
  }
}
