:root {
  --theme-background: #fff;
  --theme-primary: #6323b2;
  --theme-secondary: #8a48db;
  --theme-surface-focused: #f1f0ff;
  --theme-surface: #f8f8ff;
  --theme-shadow: #412234;
  --theme-text: #000;
  --theme-muted: #4e4658;
  --theme-border-radius: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --theme-background: #121212;
    --theme-primary: #a775e4;
    --theme-secondary: #9146ee;
    --theme-surface-focused: #29262c;
    --theme-surface: #242225;
    --theme-shadow: #5b3049;
    --theme-text: #ddd;
    --theme-muted: #b7adb9;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--theme-background);
  color: var(--theme-text);
  font-family:
    Lato,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgb(99 35 178 / 0.14), transparent 28rem),
    var(--theme-background);
}

.page {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 4rem 0;
}

.stack {
  display: grid;
  gap: 1rem;
}

.hero {
  margin-bottom: 1rem;
}

.card {
  border: 1px solid var(--theme-surface-focused);
  border-radius: var(--theme-border-radius);
  background: var(--theme-surface);
  box-shadow: 0 0 10px rgb(from var(--theme-shadow) r g b / 0.25);
  padding: clamp(1rem, 3vw, 2rem);
}

.eyebrow {
  color: var(--theme-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.15;
}

h1 {
  margin-top: 0.5rem;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p,
li {
  color: var(--theme-muted);
}

ul {
  padding-left: 1.25rem;
}

.lead {
  margin-top: 1rem;
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-surface-focused);
  border-radius: var(--theme-border-radius);
  background: var(--theme-primary);
  color: #fff;
  box-shadow: 0 0 10px rgb(from var(--theme-shadow) r g b / 0.25);
  padding: 0.75rem 1rem;
}

.button:hover,
.button:focus {
  background: var(--theme-secondary);
  color: #fff;
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.routes {
  display: grid;
  gap: 0.5rem;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

code {
  color: var(--theme-text);
}

pre {
  overflow-x: auto;
  border-radius: calc(var(--theme-border-radius) * 0.75);
  background: var(--theme-surface-focused);
  color: var(--theme-text);
  padding: 0.75rem;
}

a {
  color: var(--theme-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--theme-secondary);
}
