:root {
  color-scheme: dark;
  --background: #090909;
  --card-background: #121212;
  --primary: #229799;
  --accent: #22c55e;
  --text: #f9fafb;
  --muted: #d1d5db;
  --border: #1f2937;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: inherit;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
  background: rgba(9, 9, 9, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

header img {
  height: 48px;
  width: auto;
}

header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}

header nav a {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem) 6rem;
}

main h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
  color: var(--text);
}

main .document-meta {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  margin-bottom: 3rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--card-background);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.35);
}

section h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
  color: var(--text);
}

section h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text);
}

section p,
section li {
  color: var(--muted);
}

section ul,
section ol {
  padding-left: 1.25rem;
}

.highlight {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin-top: 1rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 4vw, 3rem) 3rem;
  text-align: center;
  background: rgba(9, 9, 9, 0.85);
  color: var(--muted);
}

footer .footer-links {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

footer .footer-links a {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  header nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  header img {
    height: 40px;
  }

  section {
    padding: 1.5rem;
  }
}
