:root {
  --bg: #0f1115;
  --bg-raised: #14171d;
  --ink: #e4e1d8;
  --ink-muted: #9a978c;
  --accent: #c9a227;
  --rule: #2a2d33;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover,
a:focus-visible {
  border-bottom-color: currentColor;
}

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

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

header.site .name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  border: none;
}

header.site nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

header.site nav a {
  color: var(--ink-muted);
}

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

.intro {
  margin-bottom: 3rem;
  color: var(--ink-muted);
  max-width: 34em;
}

.intro p {
  margin: 0;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}

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

.post-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-list li:first-child {
  padding-top: 0;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list h2 a {
  color: var(--ink);
  border: none;
}

.post-list h2 a:hover,
.post-list h2 a:focus-visible {
  color: var(--accent);
}

.meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.excerpt {
  margin: 0;
  color: var(--ink-muted);
}

article.post {
  margin-bottom: 2rem;
}

article.post .meta {
  margin-bottom: 1.25rem;
}

article.post p,
article.post ul,
article.post ol {
  margin: 0 0 1.15em;
  color: var(--ink);
  max-width: 34em;
}

article.post code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-raised);
  padding: 0.12em 0.4em;
  border-radius: 3px;
  color: var(--ink);
}

article.post pre {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  max-width: 100%;
}

article.post pre code {
  background: none;
  padding: 0;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--ink-muted);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--ink);
}

footer.site {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.not-found {
  padding: 5rem 0;
  text-align: left;
}

.not-found .meta {
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .wrap {
    padding: 2.25rem 1.25rem 3.5rem;
  }
  h1 {
    font-size: 1.6rem;
  }
}
