/* Skookm Engineering — shared site chrome
   Used by index.html and docs/index.html.
   Tool pages (e.g. diagnostics/index.html) are self-contained and don't
   need this file — their own internal nav stays as-is. */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface2: #f5f4ef;
  --border: rgba(0,0,0,0.12);
  --border-strong: rgba(0,0,0,0.22);
  --text: #1a1a18;
  --text-secondary: #6b6b67;
  --text-hint: #999994;
  --accent: #d97706;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1a;
    --surface: #252522;
    --surface2: #1c1c1a;
    --border: rgba(255,255,255,0.1);
    --border-strong: rgba(255,255,255,0.18);
    --text: #eeede8;
    --text-secondary: #9a9990;
    --text-hint: #6b6b67;
    --accent: #f59e0b;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* Site-level nav — sits above whatever a tool page renders on its own */
.site-nav {
  display: flex; align-items: center; gap: 0;
  border-bottom: 0.5px solid var(--border);
  padding: 0 1.5rem;
  background: var(--surface);
  position: sticky; top: 0; z-index: 200;
}
.site-nav-brand {
  font-size: 13px; font-weight: 500; color: var(--text);
  padding: .75rem 1.25rem .75rem 0;
  border-right: 0.5px solid var(--border);
  margin-right: 1rem; letter-spacing: -.01em; white-space: nowrap;
  text-decoration: none;
}
.site-nav-brand span { color: var(--accent); }
.site-nav a.site-nav-link {
  padding: .75rem .9rem; font-size: 13px;
  color: var(--text-secondary); text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color .15s; white-space: nowrap;
}
.site-nav a.site-nav-link:hover { color: var(--text); }
.site-nav a.site-nav-link.active { color: var(--text); border-bottom-color: var(--text); }

/* Page shell for simple content pages (index, docs) */
.page-shell { padding: 1.5rem; max-width: 1000px; margin: 0 auto; }
.page-shell h1 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; margin-bottom: .3rem; }
.page-shell h1 span { color: var(--accent); }
.page-shell .subtitle { font-size: 12px; color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Tool cards on the landing page */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .85rem; }
.tool-card {
  display: block; background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; text-decoration: none;
  color: var(--text); transition: border-color .15s;
}
.tool-card:hover { border-color: var(--border-strong); }
.tool-card h3 { font-size: 14px; font-weight: 500; margin-bottom: .35rem; }
.tool-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* Doc list */
.doc-list { display: flex; flex-direction: column; gap: .5rem; }
.doc-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: .75rem 1rem;
}
.doc-item .doc-name { font-size: 13px; font-weight: 500; }
.doc-item .doc-meta { font-size: 11px; color: var(--text-hint); font-family: var(--mono); }
.doc-item a.doc-open {
  font-size: 12px; font-weight: 500; color: var(--text);
  border: 0.5px solid var(--border-strong); border-radius: var(--radius);
  padding: .35rem .75rem; text-decoration: none; white-space: nowrap;
}
.doc-item a.doc-open:hover { background: var(--surface2); }
