:root {
  color-scheme: light;
  --bg: #fff;
  --text: #111;
  --muted: #777;
  --line: #ddd;
}

* { box-sizing: border-box; }

body {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: var(--text); }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

.site-header {
  padding: 24px 0 58px;
}

.site-header a {
  font-family: Georgia, serif;
  font-size: clamp(38px, 7vw, 54px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.posts { padding-bottom: 16px; }

.post-preview {
  margin-bottom: 58px;
}

.post-preview h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.post-preview h2 a { text-decoration: none; }

.post-preview > p:not(.meta) {
  margin: 22px 0 8px;
  font-size: 18px;
}

.meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 13px;
}

.read-more {
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
}

article { padding-top: 0; }

.back {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 13px;
}

article h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(38px, 8vw, 54px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.description {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.content {
  margin-top: 38px;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.72;
}

.content h2 {
  margin: 42px 0 12px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.content code { font-size: 0.9em; }

footer {
  margin-top: 26px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 560px) {
  body { padding-inline: 20px; }
  .site-header { padding-bottom: 46px; }
  .post-preview { margin-bottom: 48px; }
}
