/* SPDX-FileCopyrightText: 2026 Keres Project
 * SPDX-License-Identifier: 0BSD
 */

:root {
  --bg: #ffffff;
  --fg: #0b0f14;
  --muted: #5a6570;
  --accent: #0969da;
  --panel: #f6f8fa;
  --border: #d0d7de;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --muted: #8b949e;
    --accent: #58a6ff;
    --panel: #161b22;
    --border: #30363d;
  }
}

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  max-width: 720px;
  margin: 64px auto;
  padding: 0 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

.skip:focus {
  position: static;
  clip: auto;
  width: auto;
  height: auto;
  margin: 0 0 12px;
  padding: 4px 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.875rem;
}
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header { margin-bottom: 24px; }
h1 { font-size: 1.5rem; margin: 0 0 4px; font-weight: 600; }
h1 span { color: var(--accent); }
h2 {
  font-size: 1rem;
  margin: 28px 0 8px;
  font-weight: 600;
  color: var(--fg);
}
p { color: var(--muted); margin: 0 0 16px; }

pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  font-size: 0.85rem;
  overflow-x: auto;
  margin: 0 0 20px;
  -webkit-overflow-scrolling: touch;
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
p code {
  background: var(--panel);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  body { margin: 40px auto; font-size: 15px; }
  h1 { font-size: 1.3rem; }
}
