/* docs.urlyze.io — hand-written, framework-free. Content-first, quiet design.
   Verdict colors are sacred: green/amber/red/gray mean verdicts ONLY. */

:root {
  --bg: #ffffff;
  --bg-raised: #f6f8fa;
  --text: #1a2233;
  --text-muted: #5b6572;
  --border: #e3e7ec;
  --accent: #2f6fed;
  --accent-soft: #eaf1ff;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --verdict-clean: #16a34a;
  --verdict-suspicious: #d97706;
  --verdict-malicious: #dc2626;
  --verdict-unknown: #6b7280;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-raised: #111a2c;
    --text: #e6ebf2;
    --text-muted: #9aa7b8;
    --border: #223047;
    --accent: #6ea0ff;
    --accent-soft: #16233c;
    --code-bg: #0a0f1c;
    --code-text: #dbe4f0;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

header.site {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

header.site .brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

header.site .brand span { color: var(--accent); }

nav.site {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

nav.site a:hover { color: var(--text); }
nav.site a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.4rem; }
h2 { font-size: 1.3rem; margin: 2.4rem 0 0.6rem; }
h3 { font-size: 1.05rem; margin: 1.8rem 0 0.5rem; }
p.lead { color: var(--text-muted); font-size: 1.05rem; margin-top: 0; }
a { color: var(--accent); }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.08em 0.35em;
}

pre {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}

pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  margin: 1rem 0;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; }

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 1.2rem 0;
  font-size: 0.94rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.badge.clean { color: var(--verdict-clean); }
.badge.suspicious { color: var(--verdict-suspicious); }
.badge.malicious { color: var(--verdict-malicious); }
.badge.unknown { color: var(--verdict-unknown); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  background: var(--bg-raised);
}

.card h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.card a { text-decoration: none; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1.2rem 1.5rem;
  text-align: center;
}
