/* Akret Wiki — dark-first, monospace
   Goals: simple, legible, fast, durable. */

/* ----- Colors (dark default) ----- */
:root {
  --bg: #111;          /* soft black */
  --fg: #e0e0e0;       /* warm gray */
  --muted: #999;
  --link: #9bb6ff;
  --link-visited: #c5a3ff;
  --border: #333;
  --code-bg: #1a1a1a;
}

/* Light override for prefers-color-scheme: light */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --fg: #111;
    --muted: #555;
    --link: #0044cc;
    --link-visited: #6a35b1;
    --border: #ddd;
    --code-bg: #f6f8fa;
  }
}

/* ----- Base layout ----- */
html { font-size: 16px; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Centered narrow column, slightly wider */
#container, .markdown-body, .gollum-site, main, .page {
  max-width: 80ch;
  padding: 2.5rem 1rem 6rem;
  margin: 0 auto;
}

/* ----- Headings ----- */
h1, h2, h3, h4, h5, h6 {
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
  font-weight: 700;
}
h1 {
  font-size: 1.9rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .3rem;
}
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; color: var(--muted); }
h4, h5, h6 { font-size: 1rem; color: var(--muted); }

header, .header, .gollum-header { border: 0; background: none; }

/* ----- Text & links ----- */
p, ul, ol, blockquote, pre, table { margin: 1.25rem 0; }
li { margin: .4rem 0; }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:visited { color: var(--link-visited); }
a:hover, a:focus {
  text-decoration-thickness: 2px;
  outline: none;
}

/* ----- Code ----- */
code, kbd, samp {
  background: var(--code-bg);
  padding: .15rem .35rem;
  border-radius: 4px;
}
pre {
  background: var(--code-bg);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  overflow: auto;
}
pre code { background: transparent; padding: 0; }

/* ----- Media ----- */
img, video {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}
figure { margin: 1.5rem 0; }
figcaption {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .4rem;
}

/* -*
