/* Nox Development public site. One stylesheet for the hub, every app's docs and downloads. */
:root {
  --bg: #ffffff;
  --fg: #1d2333;
  --muted: #5b6275;
  --border: #dde1ea;
  --surface: #f5f6fa;
  --accent: #3f3fc8;
  --accent-fg: #ffffff;
  --header-bg: #10132a;
  --header-fg: #eef0ff;
  --code-bg: #f1f2f7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141c;
    --fg: #e4e7f0;
    --muted: #a0a7b8;
    --border: #2c3142;
    --surface: #1a1d28;
    --accent: #9a9cff;
    --accent-fg: #10132a;
    --header-bg: #0a0c18;
    --header-fg: #eef0ff;
    --code-bg: #1f2331;
    color-scheme: dark;
  }
}

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

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

.site-header { background: var(--header-bg); color: var(--header-fg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--header-fg); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.brand img { border-radius: 6px; }
.header-link { color: var(--header-fg); }

.app-nav { background: var(--surface); border-bottom: 1px solid var(--border); }
.app-nav .wrap { padding-top: 10px; padding-bottom: 10px; }
.app-name { display: block; font-weight: 600; color: var(--fg); text-decoration: none; margin-bottom: 4px; }
.app-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
.app-nav a[aria-current="page"] { color: var(--fg); font-weight: 600; text-decoration: none; }

.content { padding-top: 24px; padding-bottom: 48px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 0.6em; }
h1 { font-size: 1.9rem; margin-top: 0.4em; }
h2 { font-size: 1.4rem; padding-bottom: 0.2em; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin: 0.2em 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  line-height: 1.45;
}
pre code { background: none; padding: 0; font-size: 0.85rem; }

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: var(--surface); }

.download-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px 16px 8px; margin: 1.5em 0; }
.download-box h2 { border-bottom: 0; margin-top: 0.8em; }
table.downloads td:first-child { white-space: nowrap; }
.crumbs { color: var(--muted); font-size: 0.9rem; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { padding-top: 16px; padding-bottom: 24px; }
.site-footer p { margin: 0.3em 0; }

@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
  table.downloads td:first-child { white-space: normal; }
}
