:root {
  --bg: #0d0d0f;
  --surface: #151518;
  --surface-raised: #1c1c22;
  --border: #222226;
  --text: #e4e4e7;
  --text-muted: #88889a;
  --text-dim: #5c5c6e;
  --accent: #f59e0b;
  --accent-dim: #b45309;
  --blue: #60a5fa;
  --green: #4ade80;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", monospace;
  --max-width: 700px;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  padding: 2rem 1.5rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1.15rem; }

ul, ol {
  margin-bottom: 1.15rem;
  padding-left: 1.5rem;
}
li { margin-bottom: 0.35rem; }

strong { font-weight: 600; color: #fff; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  color: #d4d4d8;
  font-size: 1.05rem;
}

code {
  font-family: var(--font-mono);
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.navbar a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.navbar a:hover { color: #fbbf24; }
.navbar .slug {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}
.callout strong:first-child { color: var(--accent); }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.example-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.example-box .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.practice {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid #2a2a4e;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.practice h3 {
  color: var(--accent);
  margin-top: 0;
  font-size: 1.15rem;
}
.practice p { color: #b0b0c8; }
.practice strong { color: #fff; }
.practice ul { color: #b0b0c8; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
th {
  text-align: left;
  padding: 0.6rem 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border-bottom: 2px solid var(--border);
}
td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface); }

.nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.nav a { color: var(--accent); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav em { color: var(--text-muted); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  body { padding: 1.25rem 1rem 3rem; }
  h1 { font-size: 1.6rem; }
}

.technique {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.technique h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1.1rem;
}
.technique .number {
  color: var(--accent-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.technique .move {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.925rem;
  color: var(--green);
}
.technique .move strong { color: var(--green); }
