*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:      #1a1d20;
  --bg2:     #20242a;
  --bg3:     #252a30;
  --border:  #2e343c;
  --dim:     #4a5260;
  --muted:   #7a8494;
  --text:    #b8c0cc;
  --bright:  #dde3ec;
  --accent:  #8ba4c0;
  --slate:   #6b7f96;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* header */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 54px;
  background: rgba(26, 29, 32, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--bright);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--slate); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--bright); }
.github-link {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted) !important;
  border: 1px solid var(--border) !important;
  padding: 5px 12px;
  border-radius: 5px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.github-link:hover {
  color: var(--bright) !important;
  border-color: var(--dim) !important;
  background: var(--bg2);
}
/* main */
main {
  flex: 1;
  margin-top: 54px;
  background: var(--bg);
}
/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 2.5rem;
  background: var(--bg);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
@media (max-width: 620px) {
  nav { padding: 0 1.2rem; }
}
