/* theme.css — design tokens */
:root {
  /* Barevná paleta (dle design dokumentu) */
  --bg-page: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4F4EF;
  --bg-code: #0F172A;
  --bg-code-alt: #1E293B;

  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-inverse: #F9FAFB;

  --accent: #0EA5A4;
  --accent-dark: #0B8E8D;
  --accent-light: #CCFBF1;
  --accent-tint: #E6FFFC;

  --amber: #F59E0B;
  --amber-light: #FEF3C7;

  --success: #10B981;
  --success-light: #D1FAE5;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #DBEAFE;

  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-base: 17px;
  --fs-md: 19px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --fs-3xl: 48px;

  --lh-tight: 1.22;
  --lh-base: 1.55;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --sh-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --sh-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);

  --content-max: 1200px;
  --sidebar-w: 280px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { margin: 0; line-height: var(--lh-tight); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--font-mono); }

/* Selection */
::selection { background: var(--accent-light); color: var(--text-primary); }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::-webkit-scrollbar-track { background: transparent; }

/* Utility */
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-secondary); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 500;
  background: var(--bg-subtle); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tag.accent { background: var(--accent-tint); color: var(--accent-dark); border-color: var(--accent-light); }
.tag.amber { background: var(--amber-light); color: #92400E; border-color: #FDE68A; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-md);
  font-weight: 500; font-size: var(--fs-sm);
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
  transition: all 160ms ease;
}
.btn:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.btn-primary {
  background: var(--accent); color: white; border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--bg-subtle); }

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 5px; border: 1px solid var(--border-strong);
  background: var(--bg-card); color: var(--text-secondary);
  font-family: var(--font-mono); font-size: 12px;
  box-shadow: 0 1px 0 var(--border-strong);
}
