/* Shared by index.html and about.html. Light by default; the dark theme is opt-in via the
   theme button and is a soft charcoal rather than near-black. */
:root{
  --bg:#f7f6f2; --panel:#fff; --ink:#1f1e1b; --muted:#6e6c66;
  --line:#e6e4dd; --accent:#8a6d3b; --accent-ink:#fff; --shadow:0 1px 2px rgba(0,0,0,.06);
}
:root[data-theme="dark"]{
  --bg:#2a2a26; --panel:#33332e; --ink:#ecebe3; --muted:#a9a79c;
  --line:#44443d; --accent:#d8b66a; --accent-ink:#2a2a26; --shadow:0 1px 2px rgba(0,0,0,.25);
}
*{box-sizing:border-box}
html,body{margin:0}
body{
  background:var(--bg); color:var(--ink);
  font-family:"Inter",system-ui,sans-serif; line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--accent)}
.wrap{max-width:1180px; margin:0 auto; padding:0 16px}
.top{display:flex; align-items:center; gap:12px; padding:18px 0 10px}
.top .brand{flex:1; min-width:0}
.top h1{font-size:20px; margin:0; letter-spacing:-.01em; line-height:1.25}
.top h1 a{color:inherit; text-decoration:none}
.credit{margin:2px 0 0; font-size:12.5px; color:var(--muted)}
.top nav{display:flex; align-items:center; gap:8px; flex:0 0 auto}
.navlink{font-size:13px; font-weight:600; text-decoration:none; color:var(--ink);
  border:1px solid var(--line); background:var(--panel); border-radius:999px; padding:5px 12px}
.navlink:hover{border-color:var(--accent)}
.theme{border:1px solid var(--line); background:var(--panel); color:var(--ink);
  border-radius:999px; width:32px; height:32px; cursor:pointer; padding:0;
  display:inline-flex; align-items:center; justify-content:center}
footer{color:var(--muted); font-size:12px; border-top:1px solid var(--line);
  padding:18px 0 40px; margin-top:24px; line-height:1.6}
footer a{color:var(--accent); text-decoration:none}
footer a:hover{text-decoration:underline}
footer .note{display:block; margin-top:6px; opacity:.85}
