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

/* ── Design tokens ─────────────────────────────────────── */

:root {
  --bg:           #FAFAFA;
  --surface:      #FFFFFF;
  --surface-2:    #F5F5F5;
  --text:         #1A1A2E;
  --muted:        #6E7681;
  --faint:        #B8BEC6;
  --border:       #E6E6E6;
  --border-strong:#D0D5DC;
  --accent:       #7A5AE0;
  --accent-soft:  rgba(122, 90, 224, 0.12);
  --shadow:       0 1px 3px rgba(0,0,0,0.06), 0 1px 0 rgba(0,0,0,0.02);
  --radius:       12px;
  --radius-sm:    8px;
}

[data-theme="dark"] {
  --bg:           #0D1117;
  --surface:      #161B22;
  --surface-2:    #1C2129;
  --text:         #E6EDF3;
  --muted:        #8B949E;
  --faint:        #484F58;
  --border:       #30363D;
  --border-strong:#3D444D;
  --accent:       #7A5AE0;
  --accent-soft:  rgba(122, 90, 224, 0.18);
  --shadow:       0 1px 3px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.02);
}

/* ── Reset ─────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-feature-settings: "calt" 1, "liga" 1;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}

h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── Layout ────────────────────────────────────────────── */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 56px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 64px 0 32px;
  border-bottom: 1px dashed var(--border);
}

.section:last-of-type { border-bottom: none; }

/* ── Utilities ─────────────────────────────────────────── */

.muted  { color: var(--muted); }
.accent { color: var(--accent); }
.faint  { color: var(--faint); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-sm      { gap: 8px; }
.gap-md      { gap: 16px; }
.gap-lg      { gap: 24px; }

.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-2xs{ font-size: 10px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}