:root {
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-link: #1a5fb4;
  --color-border: #e0e0e0;
  --color-code-bg: #f5f5f5;
  --max-width: 42rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background: #fff;
}

.site-header,
main,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.site-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav a {
  margin-left: 1rem;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:first-child {
  margin-left: 0;
}

.site-nav a:hover {
  color: var(--color-link);
}

main {
  padding: 2rem 0 3rem;
}

.site-footer {
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.5rem;
}

p, ul, ol {
  margin: 0 0 1.25rem;
}

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

.post-meta {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.tag {
  color: var(--color-muted);
  text-decoration: underline;
}

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

.post-list-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

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

.post-list-item h2 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
}

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

.tag-list li {
  display: inline-block;
  margin: 0 0.75rem 0.75rem 0;
}

pre, code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
}

code {
  background: var(--color-code-bg);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

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

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

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

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

@media (max-width: 30rem) {
  body {
    font-size: 1.05rem;
  }

  h1 {
    font-size: 1.6rem;
  }
}
