/* Global Styles - Shared across all pages */

:root {
  --font-family: system-ui, sans-serif;
  --max-width: 800px;
  --text-color: #111;
  --bg-color: #fff;
  --link-color: #0077cc;
  --link-hover: #005fa3;
  --muted-text: #666;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #eee;
    --bg-color: #111;
    --link-color: #66b3ff;
    --link-hover: #88ccff;
    --muted-text: #aaa;
  }
}

body {
  margin: 0;
  padding: 1rem;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

main {
  max-width: var(--max-width);
  margin: 2rem auto;
}

header, footer {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 1rem 0;
  text-align: center;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
}

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

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

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

code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 90%;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2rem 0;
}

footer {
  font-size: 0.9rem;
  color: var(--muted-text);
}

.site-footer {
  text-align: center;
  color: gray;
  font-size: 0.9rem;
  margin-top: 3rem;
  padding: 1rem;
  line-height: 1.4;
}
.site-footer a {
  color: inherit;
  text-decoration: underline;
}

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

  main, header, footer {
    margin: 1rem auto;
  }
}

