:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f7f5ef;
  color: #20201d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 36px;
  color: #625a50;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  border-bottom: 1px solid #d8d1c3;
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #6f675b;
  font-size: 0.875rem;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-item {
  border-bottom: 1px solid #ded8cd;
  padding: 18px 0 22px;
}

.post-item a {
  display: block;
  text-decoration: none;
}

.post-item h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.post-item p,
.summary,
.empty {
  color: #5b554d;
}

.post-item p {
  margin: 0 0 12px;
  line-height: 1.7;
}

time {
  color: #7a7268;
  font-size: 0.9rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tags li {
  border: 1px solid #d0c8bb;
  border-radius: 999px;
  color: #5f584d;
  font-size: 0.82rem;
}

.tags a {
  display: inline-block;
  padding: 2px 8px;
  text-decoration: none;
}

.tag-index {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-index a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ded8cd;
  padding: 14px 0;
  text-decoration: none;
}

.tag-index strong {
  color: #766f65;
  font-weight: 500;
}

.back-nav {
  margin-bottom: 32px;
}

.back-nav a {
  color: #635d53;
  text-decoration: none;
}

.article {
  line-height: 1.8;
}

.article header {
  border-bottom: 1px solid #d8d1c3;
  margin-bottom: 32px;
  padding-bottom: 24px;
}

.article-tags {
  margin-top: 16px;
}

.archive-list {
  display: grid;
  gap: 32px;
}

.archive-year h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.archive-year ol {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.archive-year li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #ded8cd;
  padding: 10px 0;
}

.archive-year li > a {
  text-decoration: none;
}

.compact-tags {
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .archive-year li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .compact-tags {
    justify-content: flex-start;
  }
}

.article h1 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 7vw, 4rem);
}

.article h2 {
  margin-top: 2em;
}

.article pre {
  overflow-x: auto;
  border-radius: 8px;
  padding: 16px;
  background: #272822;
  color: #f8f8f2;
}

.article code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
