/* base.css — design tokens, reset, typography */

:root {
  --bg:          #0d1117;
  --bg-surface:  #161b22;
  --bg-subtle:   #1c2333;
  --border:      #30363d;
  --text:        #b5bac1;
  --text-muted:  #e6edf3; 
  --text-dim:    #8b949e;
  --accent:      #93bfeb;
  --accent-dim:  rgba(88, 166, 255, 0.12);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition: 150ms ease;
  --transition-slow: 300ms ease;

  --nav-width: 240px;
  --content-max: 720px;
}

[data-theme="light"] {
  --bg:          #ffffff;
  --bg-surface:  #f6f8fa;
  --bg-subtle:   #eaeef2;
  --border:      #d0d7de;
  --text:        #1f2328;
  --text-muted:  #656d76;
  --text-dim:    #afb8c1;
  --accent:      #68a6e3;
  --accent-dim:  rgba(9, 105, 218, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.95rem; }

p {
  color: var(--text-muted);
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--accent);
}

::selection {
  background: var(--accent-dim);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
