:root {
  --bg-primary: #111;
  --bg-secondary: #181818;
  --text-primary: #e0e0e0;
  --text-heading: #ffffff;
  --text-muted: #aaaaaa;
  --link-color: #7ec8c8;
  --nav-link-color: #f5f5f5;
  --button-bg: #111827;
  --button-text: #ffffff;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f3f3f3;
  --text-primary: #1a1a1a;
  --text-heading: #000000;
  --text-muted: #666666;
  --link-color: #0f766e;
  --nav-link-color: #1a1a1a;
  --button-bg: #e5e7eb;
  --button-text: #111827;
}

html, body {
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  line-height: 1.5;
  background: var(--bg-primary);
  color: var(--text-primary);
}

header {
  background: var(--bg-secondary);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

a:visited {
  color: var(--link-color);
}

nav a {
  color: var(--nav-link-color);
  margin-right: 15px;
}

nav a:visited {
  color: var(--nav-link-color);
}

a:hover {
  text-decoration: underline;
}

nav a:hover {
  text-decoration: underline;
}

main {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

h1, h2 {
  color: var(--text-heading);
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer a, footer a:visited {
  color: var(--text-muted);
  text-decoration: underline;
}

.toggle-button {
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  cursor: pointer;
}
