/* slamkeep.com — one stylesheet for every page (scripts/build-site.py copies it to site/style.css). No external fonts. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d2125;
  --muted: #5b646c;
  --line: #dcd8cf;
  --head: #f1eee7;
  --link: #1f5fae;
  --link-visited: #6a3fa0;
  --accent: #b5481d;
  --focus: #1f5fae;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --surface: #1c2024;
    --text: #e6e3dc;
    --muted: #a0a8ae;
    --line: #343a40;
    --head: #23282d;
    --link: #8cb8f0;
    --link-visited: #c4a6ee;
    --accent: #f0915f;
    --focus: #8cb8f0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:visited { color: var(--link-visited); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 4px 8px; z-index: 1; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--text); text-decoration: none; }
.brand:visited { color: var(--text); }
.brand::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.45em; border-radius: 3px; background: var(--accent); vertical-align: 0.02em; }
.lang { display: flex; gap: 4px; font-size: 0.95rem; }
.lang a, .lang span { padding: 4px 10px; border-radius: 6px; border: 1px solid transparent; text-decoration: none; }
.lang a:visited { color: var(--link); }
.lang span { border-color: var(--line); font-weight: 600; }

main { padding-top: 8px; padding-bottom: 40px; }
h1 { font-size: 1.85rem; line-height: 1.25; margin: 28px 0 16px; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 36px 0 12px; padding-top: 4px; }
h3 { font-size: 1.1rem; line-height: 1.35; margin: 28px 0 8px; }
h2, h3 { scroll-margin-top: 16px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.4em; }
li { margin: 4px 0; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 0.92em; background: var(--head); padding: 0 0.25em; border-radius: 3px; }

.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.table-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.5; }
table.cols-3 { min-width: 600px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--head); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td + td, th + th { border-left: 1px solid var(--line); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; padding: 20px 0 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.site-footer p { margin: 0; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.5rem; margin-top: 20px; }
  h2 { font-size: 1.22rem; margin-top: 28px; }
}
