:root {
  color-scheme: dark;
  --bg: #07050c;
  --bg-elevated: #0e0a18;
  --text: #e6ddff;
  --muted: #a99cc9;
  --accent: #c084fc;
  --accent-bright: #e9d5ff;
  --accent-dim: #7c3aed;
  --rule: #2a1f45;
  --rain-head: #f3e8ff;
  --rain: #a855f7;
  --rain-dim: #4c1d95;
  --glow: rgba(192, 132, 252, 0.45);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--mono);
  padding: 24px 16px 48px;
  position: relative;
}
/* Static fallback behind the rain canvas, and the whole background where
   there is no canvas: a faint violet haze. */
body.landing {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.22), transparent 70%), var(--bg);
}
/* Subtle scanlines over everything; never intercepts input. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.16) 3px);
  opacity: 0.35;
}
#rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}
main {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
/* Keep landing-page text readable over the rain. */
body.landing main {
  background: rgba(7, 5, 12, 0.72);
  border-radius: 8px;
  padding: 8px 12px;
}
h1, h2 { font-weight: 600; letter-spacing: 0.01em; }
h1 {
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--accent-bright);
  text-shadow: 0 0 12px var(--glow);
}
h1::before { content: "$ "; color: var(--accent); }
h1::after {
  content: "\258D";
  margin-left: 2px;
  color: var(--accent);
  animation: blink 1.1s steps(1, end) infinite;
}
h2 {
  font-size: 16px;
  margin: 28px 0 8px;
  color: var(--accent);
}
h2::before { content: "> "; color: var(--accent-dim); }
p, li { margin: 0 0 12px; }
ul { padding-left: 22px; margin: 0 0 12px; }
li::marker { color: var(--accent-dim); }
strong { color: var(--accent-bright); font-weight: 600; }
.updated, .lede { color: var(--muted); margin: 0 0 20px; }
.updated::before { content: "// "; }
a { color: var(--accent); text-decoration-color: var(--accent-dim); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--accent-bright); text-shadow: 0 0 10px var(--glow); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
nav { margin: 0 0 24px; color: var(--muted); }
nav a { margin-right: 16px; }
nav::before { content: "~/ "; color: var(--accent-dim); }
.apps { list-style: none; padding: 0; }
.apps li {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent-dim);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.apps .links { display: block; color: var(--muted); margin-top: 4px; }
.apps .links a { margin-right: 12px; }
footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}
footer a { margin-right: 16px; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  h1::after { animation: none; }
  #rain { display: none; }
}
@media (min-width: 600px) {
  body { font-size: 16px; padding: 40px 24px 64px; }
  h1 { font-size: 26px; }
  h2 { font-size: 18px; }
}
