:root {
  color-scheme: dark;
  --bg: #0a0f1e;
  --bg-raised: #101830;
  --fg: #c8d3e8;
  --muted: #7d8eb5;
  --accent: #5b9dff;
  --border: #1c2740;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.6;
}

header, main, footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  padding-top: 2rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}

footer {
  color: var(--muted);
  padding-top: 2rem;
  padding-bottom: 3rem;
}

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

.about-link {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.9em;
}

.about-link:hover {
  color: var(--accent);
}

#search {
  width: 100%;
  max-width: 220px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: inherit;
  font-size: inherit;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

#search:focus {
  outline: none;
  border-color: var(--accent);
}

ul#entries {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.date-heading {
  color: var(--muted);
  font-size: 0.85em;
  padding: 0.6rem 0 0.2rem;
}

.date-heading:first-child {
  padding-top: 0;
}

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

.entry-date {
  color: var(--muted);
  white-space: nowrap;
}

.entry.hidden,
.date-heading.hidden {
  display: none;
}

.entry-page .entry-date {
  display: block;
  margin-bottom: 1rem;
}

.entry-page h1 {
  margin-top: 0;
}

pre {
  background: var(--bg-raised);
  padding: 0.75rem;
  overflow-x: auto;
  border-radius: 4px;
}

code {
  font-family: inherit;
}
