:root {
  --bg: #faf8f4; --fg: #1f1d1a; --muted: #6f6a62; --line: #e4dfd6; --accent: #7a4b1e;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16150f; --fg: #ece7dd; --muted: #9c968b; --line: #2f2c25; --accent: #d9a86c; }
}
body {
  margin: 0; padding: 3rem 1rem; background: var(--bg); color: var(--fg);
  font: 16px/1.5 ui-serif, Georgia, "Times New Roman", serif;
}
main { max-width: 36rem; margin: 0 auto; }
a { color: var(--accent); }
nav { display: flex; gap: 1.25rem; margin-bottom: 2rem; font-size: .9rem; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--fg); }
h1 { font-weight: 400; font-size: 1.75rem; margin: 0 0 .25rem; }
h2 { font-weight: 400; font-size: 1.25rem; margin: 2.5rem 0 .5rem; }
.sub { color: var(--muted); margin: 0 0 2rem; }
form { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
input, button {
  font: inherit; padding: .45rem .7rem; border: 1px solid var(--line);
  border-radius: 6px; background: transparent; color: inherit;
}
button { background: var(--accent); border-color: var(--accent); color: var(--bg); cursor: pointer; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .25rem; border-bottom: 1px solid var(--line); }
th { font-weight: 400; color: var(--muted); font-size: .85rem; }
td.pos, td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num, th.num { text-align: right; }
.scroll { overflow-x: auto; margin: 1rem 0; }
.glyph { color: var(--accent); margin-right: .3rem; }
.motion { color: var(--accent); width: 2.5rem; text-align: right; }
.msg { color: var(--muted); }
.note { color: var(--muted); font-size: .9rem; }

/* Zodiac wheel (drawn by wheel.js) */
figure#wheel { margin: 0 0 2rem; }
.wheel { display: block; width: 100%; height: auto; font-family: inherit; }
.wheel .rings, .wheel .sectors, .wheel .ticks { fill: none; stroke: var(--line); stroke-width: 1; }
.wheel .signs text { fill: var(--accent); font-size: 18px; }
.wheel .chords { stroke: var(--muted); stroke-dasharray: 4 4; }
.wheel .leader { stroke: var(--line); }
.wheel .pt { --marker: var(--fg); }
.wheel .pt.lilith_true { --marker: var(--accent); }
.wheel .marker { fill: var(--marker); stroke: var(--marker); stroke-width: 2; }
.wheel .marker.retrograde { fill: var(--bg); }
.wheel .pt text, .wheel .date {
  fill: var(--fg); font-size: 12px; font-variant-numeric: tabular-nums;
  paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round;
}
.wheel .date { fill: var(--muted); }
