/* Reset en basis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light mode kleuren */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --accent: #69a042;
  --accent-hover: #5a8a38;
  --border: #e5e7eb;
  --code-bg: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode kleuren */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --accent: #69a042;
    --accent-hover: #7db84f;
    --border: #374151;
    --code-bg: #374151;
  }
}

/* Body en container */
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  padding: 2rem 1rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Content container - alle content elementen gecentreerd met max breedte */
body > h1,
body > h2,
body > h3,
body > p,
body > ul,
body > ol,
body > hr,
body > blockquote,
body > header,
body > pre,
body > .manifest {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Typografie */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Lijsten */
ul,
ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

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

/* Strong en emphasis */
strong {
  font-weight: 600;
  color: var(--text-primary);
}

em {
  font-style: italic;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 1rem 1.5rem;
  border-radius: 4px;
}

/* Code */
code {
  background-color: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.9em;
  color: var(--text-primary);
}

pre {
  background-color: var(--code-bg);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background: none;
  padding: 0;
}

/* Horizontale lijn */
hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 3rem 0;
}

/* Speciale sectie styling */
.manifest {
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 5px solid var(--accent);
  margin: 2rem 0;
}

/* Header styling voor subtitel */
body > p:first-of-type {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Print styling */
@media print {
  body {
    background: white;
    color: black;
    padding: 0;
  }

  h2 {
    page-break-before: always;
  }

  h2:first-of-type {
    page-break-before: avoid;
  }
}
