/* base.css : shared look for every page (colors, fonts, buttons, top nav).
   Visual style follows magpie.akkki.tech: soft grey page, white cards, Inter text,
   a chunky rounded display font for big headings, one blue accent. */

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

:root {
  --bg: #f8f8fa;
  --surface: #ffffff;
  --surface-2: #f4f4f6;
  --border: #e7e7ea;
  --border-strong: #d9d9de;
  --text: #232325;
  --heading: #1c1c1c;
  --muted: #737373;
  --faint: #a3a3a3;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eef3ff;
  --green: #16a34a;
  --green-soft: #e8f7ee;
  --red: #dc2626;
  --red-soft: #fdecec;
  --amber: #b45309;
  --amber-soft: #fff4e0;
  --purple: #7c5cff;
  --purple-soft: #f1edff;

  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Gluten', 'Inter', ui-sans-serif, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--font-mono); }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  height: 60px; padding: 0 32px;
  background: rgba(248, 248, 250, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--heading); }
.brand-mark { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 22px; color: #525252; font-size: 13.5px; }
.nav-links a:hover { color: var(--heading); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius);
  border: 1px solid transparent;
  font: 500 14px/1 var(--font); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: #525252; }
.btn-ghost:hover { background: var(--surface-2); color: var(--heading); }
.btn-danger { background: var(--red); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Small pieces ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; color: #525252;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.display { font-family: var(--font-display); font-weight: 700; color: var(--heading); letter-spacing: 0.005em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }

@media (max-width: 700px) {
  .nav { padding: 0 16px; gap: 12px; }
  .nav-links { display: none; }
}
