*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1a2e;
  --surface: #16213e;
  --text: #e0e0e0;
  --text-muted: #a0a0b0;
  --accent: #0f9b8e;
  --link: #4fc3f7;
  --border: #2a2a4a;
  --max-width: 900px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.wrapper { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; width: 100%; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.site-title { color: var(--accent); font-size: 1.4rem; font-weight: 700; }
.site-title:hover { text-decoration: none; color: var(--link); }
.site-nav { float: right; line-height: 3rem; }
.nav-items { display: flex; gap: 1.5rem; }
.nav-items a { color: var(--text-muted); font-size: 0.95rem; }
.nav-items a:hover { color: var(--text); }
.nav-trigger { display: none; }
.menu-icon { display: none; }

.page-content {
  flex: 1;
  padding: 2rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 { color: var(--text); margin: 1.5rem 0 0.75rem; line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; }
code { background: var(--surface); padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.9em; }
pre { background: var(--surface); padding: 1rem; border-radius: 6px; overflow-x: auto; margin-bottom: 1rem; }
pre code { background: none; padding: 0; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
th, td { border: 1px solid var(--border); padding: 0.5rem; text-align: left; }
th { background: var(--surface); }
blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--text-muted); margin: 0 0 1rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
}
.footer-col-wrapper { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-col { flex: 1; min-width: 200px; }
#searchQuery {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}
.footer-col button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}
.social-media-list { margin-top: 1rem; }
.social-media-list a { color: var(--text-muted); }
.social-media-list a:hover { color: var(--link); }

@media (max-width: 600px) {
  .nav-items { flex-direction: column; gap: 0.5rem; }
  .footer-col-wrapper { flex-direction: column; }
  .page-content { padding: 1rem 0.5rem; }
}
