:root {
  --bg: #fdfdfb;
  --fg: #222;
  --muted: #777;
  --link: #2a5db0;
  --rule: #e4e4e0;
  --code-bg: #f3f3ef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --fg: #ddd;
    --muted: #888;
    --link: #8ab4f8;
    --rule: #2c2c2c;
    --code-bg: #222;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 22px;
}

body {
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  max-width: 40rem;
  background: var(--bg);
  color: var(--fg);
  font-family: "Linux Libertine", serif;
}

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

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.site-name {
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
}
nav a:hover {
  color: var(--fg);
}

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.25rem;
  font-family: "Linux Biolinum", sans-serif;
}
h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  font-family: "Linux Biolinum", sans-serif;
}
h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  font-family: "Linux Biolinum", sans-serif;
}

.meta,
time {
  color: var(--muted);
  font-size: 0.9rem;
}
.meta {
  margin: 0 0 1.5rem;
}

.notes {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notes li {
  display: flex;
  gap: 1rem;
  padding: 0.35rem 0;
}
.notes time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.projects {
  list-style: none;
  padding: 0;
  margin: 0;
}
.projects li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.projects li:last-child {
  border-bottom: 0;
}
.project-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.status {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: lowercase;
}
.summary {
  color: var(--muted);
}

code,
pre {
  font-family: "Inconsolata", monospace;
  font-size: 0.9em;
  background: var(--code-bg);
}
code {
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
pre {
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
}
pre code {
  padding: 0;
  background: none;
}

blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

img {
  max-width: 100%;
}
hr {
  border: 0;
  border-top: 1px solid var(--rule);
}

