:root {
  --bg: #f6efd9; --card: #fffdf6; --text: #1b1b1b; --muted: #4a4a4a; --line: #d8cfb4;
  --toxic: #8fe000; --link: #3d6b00; --code: #efe6cb;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151515; --card: #202020; --text: #f6efd9; --muted: #b8b2a0; --line: #3a3a3a;
    --link: #8fe000; --code: #262626; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, sans-serif; }
a { color: var(--link); }

/* Navigation */
.nav { border-bottom: 2px solid var(--text); background: var(--card); }
.nav-inner { max-width: 760px; margin: 0 auto; padding: 8px 16px; display: flex;
  align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline;
  text-decoration-color: var(--toxic); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.nav .home { display: flex; align-items: center; gap: 8px; margin-right: auto;
  font-family: "Arial Black", Impact, system-ui, sans-serif; }
.nav .home img { width: 32px; height: 32px; }

main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
h1, h2, h3 { font-family: "Arial Black", Impact, system-ui, sans-serif; line-height: 1.2; }
h1 { font-size: 34px; margin: 8px 0 16px; }
h2 { font-size: 24px; margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
footer { margin-top: 64px; color: var(--muted); font-size: 14px; }

/* Home */
.hero { text-align: center; }
.hero img { width: min(360px, 90%); height: auto; transform: rotate(-2deg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); }
.intro { margin-top: 32px; font-size: 19px; }

/* Articles */
.meta { color: var(--muted); font-size: 14px; }
.note { margin: 20px 0; padding: 12px 16px; background: var(--card); border: 2px solid var(--text);
  border-left: 10px solid var(--toxic); border-radius: 8px; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code);
  padding: 1px 5px; border-radius: 4px; }
pre { overflow-x: auto; padding: 14px 16px; background: var(--code); border-radius: 8px;
  font-size: 14px; line-height: 1.5; }
pre code { padding: 0; background: none; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line);
  vertical-align: top; }
.table-wrap { overflow-x: auto; }

/* Lists of guides and log entries */
.cards { list-style: none; padding: 0; }
.cards li { padding: 16px 0; border-top: 1px solid var(--line); }
.cards time { display: block; color: var(--muted); font-size: 14px; }
