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

:root {
  --bg: #0a0a0a;
  --text: #e0e0e0;
  --muted: #888;
  --accent: #4a9eff;
  --border: #222;
  --max-width: 720px;
}

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

nav a:hover { color: var(--accent); }

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  flex: 1;
}

/* Hero */
.hero {
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Content */
article, .content {
  margin-bottom: 2rem;
}

h1, h2, h3 {
  color: #fff;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }

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

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
  color: var(--text);
}

strong { color: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 600px) {
  nav { flex-direction: column; gap: 0.5rem; }
  nav ul { gap: 1rem; }
  main { padding: 2rem 1rem; }
  .hero h1 { font-size: 1.3rem; }
}