:root {
  --margin: 0.8em;
  --code-bg: #f6f8fa;
}

body {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
  padding: 50px 20px;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  overflow-wrap: break-word;
  font-size: 15px;
}

h1, h2, h3, h4 { margin: 0 0 var(--margin); }
h2, h3, h4 { margin-top: 1.5em; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

header h1 {
  margin: 0;
  padding: 0;
}

pre, code, time {
  font-family: monospace;
  font-size: 12px;
}

pre {
  background-color: var(--code-bg);
  padding: 14px;
  border-radius: 4px;
  overflow-x: auto;
}

code {
  background-color: var(--code-bg);
  padding: 4px;
  border-radius: 4px;
}

pre code {
  background-color: transparent;
  padding: 0;
}

nav {
  display: flex;
  gap: 16px;
}

a, a:visited {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

article {
  margin-bottom: var(--margin);
}

article a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

time {
  color: rgb(0 0 0 / 0.55);
}

.plain-list {
  list-style: none;
  padding: 0;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.book-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgb(0 0 0 / 0.08);
}

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

@media (max-width: 640px) {
  body {
    padding: 16px 20px;
  }
}