:root {
  --bg: #fafaf7;
  --fg: #1c1c1a;
  --muted: #76766f;
  --accent: #2f7d4f;
  --rule: #e2e2dc;
  --font: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f0e;
    --fg: #d9dbd6;
    --muted: #7c7f78;
    --accent: #6fd39a;
    --rule: #232522;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.7 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 12vh 20px 48px;
  flex: 1;
}

a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.prompt { color: var(--accent); user-select: none; }
.muted { color: var(--muted); }

h1, h2, h3 { font-size: 1em; font-weight: 600; margin: 0; }

.brand { font-size: 1.6em; letter-spacing: -0.02em; margin-bottom: 4px; }

.block { margin-top: 32px; }
.block > .cmd { margin-bottom: 6px; }
.block > .out { padding-left: 2ch; }

ul { list-style: none; margin: 0; padding: 0; }
.out li::before { content: "- "; color: var(--muted); }

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

footer {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
footer a { color: var(--muted); }

/* legal pages */
.doc { padding-top: 8vh; }
.doc h1 { font-size: 1.3em; margin-bottom: 4px; }
.doc h2 { margin-top: 32px; margin-bottom: 8px; }
.doc h2::before { content: "## "; color: var(--muted); }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul li { padding-left: 2ch; text-indent: -2ch; }
.doc ul li::before { content: "- "; color: var(--muted); }
.back { display: inline-block; margin-bottom: 24px; }
