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

:root {
  --bg: #0e0e0c;
  --bg2: #141410;
  --fg: #e8e4dc;
  --muted: #8f8f86;
  --accent: #e8e4dc;
  --border: #222220;
  --tag-bg: #1a1a16;
  --tag-active: #e8e4dc;
  --tag-active-fg: #0e0e0c;
}

body {
  font-family: "EB Garamond", Georgia, serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Navigation ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 56px;
}

.site-nav-title {
  font-family: "EB Garamond", serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav-links {
  display: flex;
  gap: 32px;
}

.site-nav-links a {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav-links a:hover { color: var(--fg); }
.site-nav-links a.active { color: var(--fg); }

/* ---- Footer ---- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
  padding: 20px 48px;
  background: var(--bg);
  z-index: 90;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer span,
.site-footer-links {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer a:hover { color: var(--fg); }

.site-footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 700px) {
  .site-nav { padding: 0 20px; }
  .site-footer { padding: 20px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
