:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #b8b8b8;
  --border: #ececec;
  --nav-link: #b5b5b5;
  --code-bg: #f7f7f7;
  --accent-1: rgb(170, 51, 119);
  --accent-2: rgb(68, 119, 170);
  --accent-3: rgb(102, 204, 238);
  --accent-4: rgb(34, 136, 51);
  --accent-5: rgb(204, 187, 68);
}

body {
  font-family: Georgia, Times, serif;
  margin: 0 auto;
  line-height: 1.5;
  font-size: 18px;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.page-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

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

.site-title {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(1.45rem, 3.1vw, 2.2rem);
  line-height: 1;
  font-weight: 700;
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.site-nav a,
.footer-nav a {
  color: var(--nav-link);
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover,
.article-link:hover {
  opacity: 0.7;
}

.hero-block {
  margin-bottom: 2.25rem;
}

.archive-title,
.post h1,
.post-body h2,
.post-body h3 {
  font-family: Georgia, Times, serif;
  font-weight: 400;
  line-height: 1.05;
}

.archive-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.4vw, 2.6rem);
}

.hero-copy {
  margin: 0.5rem 0 0;
  color: #666;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.article-index {
  margin-top: 4rem;
}

.article-listing {
  margin: 0 0 1.1rem;
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
  font-weight: 400;
  line-height: 1.04;
  max-width: 24ch;
}

.article-link {
  text-decoration: none;
}

.article-color-0 {
  color: var(--accent-1);
}

.article-color-1 {
  color: var(--accent-2);
}

.article-color-2 {
  color: var(--accent-3);
}

.article-color-3 {
  color: var(--accent-4);
}

.article-color-4 {
  color: var(--accent-5);
}

.post-meta {
  color: #7d7d7d;
  margin: 0 0 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}

.post {
  max-width: 42rem;
}

.post h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  max-width: 14ch;
}

code {
  font-size: 0.8em;
  padding: 0.1em 0.3em;
  background-color: var(--code-bg);
}

pre {
  font: inherit;
  padding: 0.6em;
  background-color: var(--code-bg);
  overflow-x: auto;
}

.post-body {
  max-width: 38rem;
}

.post-body p,
.post-body ul,
.post-body pre,
.post-body blockquote {
  margin: 1rem 0;
}

.post-body a {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.1em;
  color: var(--accent-2);
}

.post-body ul {
  padding-left: 1.2rem;
}

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

blockquote {
  margin-left: 1.5em;
  color: #4b4b4b;
}

img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  margin: 1.5rem auto;
}

.post-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.empty-state,
.archive-header p {
  color: #666;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
    padding: 0 1rem;
  }

  .page-shell {
    padding-top: 1.25rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 3rem;
  }

  .site-title {
    font-size: 1.6rem;
  }

  .article-listing {
    margin-bottom: 0.85rem;
  }

  .post h1 {
    max-width: none;
  }
}
