:root {
  --bg: #fbfbf7;
  --fg: #1a1a17;
  --muted: #6f6b62;
  --rule: #d8d1c4;
  --link: #1a1a17;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-shell {
  width: min(42rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 4rem;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.site-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.site-title {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.site-main {
  padding-top: 1.5rem;
}

.home-intro,
.article-header {
  margin-bottom: 2rem;
}

.article-meta,
.post-item-meta,
.site-footer {
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
}

.post-list {
  display: grid;
  gap: 2rem;
}

.post-item-title,
.article-header h1 {
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.post-item-title {
  font-size: 1.35rem;
}

.post-item p,
.article-content > * {
  margin-top: 0;
}

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

.kg-width-wide,
.kg-width-full {
  width: 100%;
}

.kg-width-wide img,
.kg-width-full img {
  display: block;
  width: 100%;
}

.kg-width-full {
  margin-left: calc(50% - 50vw + 1rem);
  margin-right: calc(50% - 50vw + 1rem);
}

.article-image {
  margin: 0 0 1.5rem;
}

.article-image figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

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

.article-content pre {
  overflow-x: auto;
  padding: 1rem;
  background: #f1ede5;
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
