
:root {
  --bg: #0e0e10;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --accent: #7aa2f7;
  --border: rgba(255, 255, 255, 0.15);
}

body.light {
  --bg: #faf9f7;
  --text: #16161a;
  --text-muted: rgba(22, 22, 26, 0.65);
  --accent: #2f5fd0;
  --border: rgba(22, 22, 26, 0.15);
}


body {
  background-color: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  line-height: 1.7;
  transition: background-color 0.25s ease, color 0.25s ease;
}


header {
  position: relative;
  z-index: 20;
}

.site-title {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.nav-item-custom {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  text-decoration: none;
}

.nav-item-custom:hover,
.nav-item-custom.current {
  color: var(--text);
}

.nav-item-custom.current {
  font-weight: 600;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
}

.theme-toggle:hover {
  border-color: var(--text);
  color: var(--text);
}

.page {
  margin: 0 auto;
  max-width: 680px;
  padding: 2rem 1.5rem 4rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2.5rem;
}

main p {
  color: var(--text-muted);
}

a {
  color: var(--accent);
}

hr {
  border-color: var(--border);
}


.entry-list {
  list-style: none;
  padding-left: 0;
}

.entry {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.entry-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
}


@media (max-width: 576px) {
  h1 {
    font-size: 1.4rem;
  }

  .page {
    padding: 1rem 1rem 3rem;
  }
}
