:root { --bg: #fbfaf7; --fg: #1d1b19; --muted: #6d6a64; --card: #fff; --line: #e4e1da; --accent: #3a5bd9; --focus: #081e3a; --error: #c0392b; }
@media (prefers-color-scheme: dark) { :root { --bg: #141312; --fg: #edebe7; --muted: #a6a29b; --card: #1e1d1b; --line: #33312e; --accent: #8aa2ff; --focus: #ffc857; --error: #ff8a7a; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 24px; margin: 0 0 12px; }
h2 { font-size: 18px; margin: 20px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-top: 20px; }
.muted { color: var(--muted); }
/* Links as on www.fiabi.it: the text colour (contrast of the text) with an underline, thicker on hover; the focus
   ring is the site's (navy by day, gold by night). */
a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
code { font-size: 14px; overflow-wrap: anywhere; }
.error { color: var(--error); }
