:root {
  --bg: #0f1117;
  --surface: #171a23;
  --border: #262b38;
  --text: #e6e8ef;
  --muted: #9aa3b2;
  --accent: #7c5cff;
  --accent-hover: #967dff;
  --max-width: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

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

a:hover {
  text-decoration: underline;
}

header {
  border-bottom: 1px solid var(--border);
  background-color: rgba(15, 17, 23, 0.92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent-hover);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.92rem;
}

nav a {
  color: var(--muted);
}

nav a:hover,
nav a.active {
  color: var(--text);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-hover);
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}

.button {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.button:hover {
  background-color: var(--accent-hover);
  text-decoration: none;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }
  main {
    padding: 1.75rem 1rem 2.5rem;
  }
}
