/* dgcheck static fallback styling.
 *
 * A separate file rather than a <style> block because this origin's CSP
 * has no 'unsafe-inline' (ops/nginx/sites-available/dgcheck.aikeylabs.com).
 * If these pages used inline styles they would render unstyled, and the
 * first person to see that would be tempted to "fix" it by adding
 * 'unsafe-inline' to the CSP -- which is the whole thing we are protecting.
 * Self-hosted, no @import, no web font.
 */

:root {
  color-scheme: light dark;
  --fg: #1b1f24;
  --muted: #5b6570;
  --bg: #ffffff;
  --panel: #f6f8fa;
  --line: #d8dee4;
  --accent: #1f6feb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6edf3;
    --muted: #9198a1;
    --bg: #0d1117;
    --panel: #161b22;
    --line: #30363d;
    --accent: #4493f8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

main { max-width: 42rem; margin: 0 auto; }

h1 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 .5rem; }
h2 { font-size: 1.05rem; margin: 2rem 0 .5rem; }

.lede { color: var(--muted); margin: 0 0 1.5rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.en { color: var(--muted); font-size: .9rem; }

ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .35rem 0; }

a { color: var(--accent); }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

code {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .35em;
  font-size: .9em;
}
