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

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

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --text-muted: #555555;
  --accent: #ffffff;
  --border: #222222;
  --border-light: #333333;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 60px;
  --section-padding: 120px 0;
  --container-width: 1100px;
  --transition: 0.3s ease;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: #f0f0f0;
  --bg-card-hover: #e8e8e8;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #999999;
  --accent: #111111;
  --border: #dddddd;
  --border-light: #cccccc;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.mono {
  font-family: var(--font-mono);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.section-title::before {
  content: '// ';
  color: var(--text-muted);
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 28px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  opacity: 1;
}

.btn-filled {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-filled:hover {
  background: transparent;
  color: var(--text-primary);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-block;
  margin: 3px;
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  :root {
    --section-padding: 80px 0;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 1.75rem; }
  :root {
    --section-padding: 60px 0;
  }
}
