*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: 640px;
  padding: 2rem 1rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.site-title {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  font-size: 1.5rem;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

nav a img {
  width: 1.1rem;
  height: 1.1rem;
}

nav a:hover {
  color: #1a1a1a;
}

main a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-color: #bbb;
}

main a:hover {
  text-decoration-color: #1a1a1a;
}

.site-nav {
  position: relative;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.site-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: #e0e0e0;
}

.site-nav a {
  font-size: 1.2rem;
}

.home .site-nav a[href="/"],
.posts .site-nav a[href="/posts"] {
  font-weight: bold;
  color: #1a1a1a;
}

.page-title {
  font-size: 1.4rem;
  font-weight: bold;
}

.post-header {
  color: #aaa;
  font-size: 0.7rem;
}

.prose {
  line-height: 1.7;
}

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

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin: 2rem 0 0.5rem;
  line-height: 1.3;
  color: #555;
}

.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.1rem; }
.prose h4 { font-size: 1rem; }

.prose ul,
.prose ol {
  padding-left: 1.5rem;
}

.prose li + li {
  margin-top: 0.25rem;
}

.prose blockquote {
  border-left: 3px solid #e0e0e0;
  padding-left: 1rem;
  color: #555;
  font-style: italic;
}

.prose code {
  font-family: monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.prose pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 3px;
}

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

.prose table {
  border-collapse: collapse;
  width: 100%;
}

.prose th,
.prose td {
  border: 1px solid #e0e0e0;
  padding: 0.4rem 0.75rem;
  text-align: left;
}

.prose th {
  background: #f5f5f5;
}

.prose hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

.prose img {
  max-width: 100%;
}
