:root {
  --ink: #1c1917;
  --muted: #57534e;
  --paper: #f7f5f2;
  --line: #e6e1d8;
  --code: #efece6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2.5rem;
}

.site-title {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

h1.site-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1.site-title a {
  color: inherit;
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
.site-title:hover { color: var(--ink); }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.content h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.content p,
.content ul,
.content ol,
.content pre,
.content blockquote { margin: 0 0 1rem; }

.content ul,
.content ol { padding-left: 1.25rem; }

.content .listing {
  margin: 0;
  padding: 0;
}

.content a { color: inherit; }

.recent .listing a { color: revert; }

.content blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.recent {
  margin-top: 2.5rem;
}

.recent h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.recent h2 a {
  color: inherit;
  text-decoration: none;
}

.listing {
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.listing time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

article time {
  display: block;
  margin: -0.4rem 0 1.25rem;
  color: var(--muted);
}

code, pre {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

code {
  padding: 0.1em 0.3em;
  background: var(--code);
}

pre {
  padding: 0.85rem 1rem;
  overflow-x: auto;
  background: var(--code);
}

pre code {
  padding: 0;
  background: none;
}

img { max-width: 100%; height: auto; }

.site-footer {
  margin-top: 3.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }

@media (max-width: 36rem) {
  .wrap { padding-top: 1.75rem; }
  h1,
  h1.site-title { font-size: 1.7rem; }
  .listing li { flex-direction: column; gap: 0.15rem; }
}
