:root {
  color-scheme: light;
  --bg: #fbfbf8;
  --text: #20201c;
  --muted: #66655f;
  --line: #dedbd2;
  --link: #155e75;
  --link-hover: #8a4b20;
  --code-bg: #f0eee7;
}

* {
  box-sizing: border-box;
}

html {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 2rem 1rem 4rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

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

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

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

.site-nav {
  display: flex;
  gap: 0.9rem;
  font-size: 0.9rem;
}

.intro {
  margin-bottom: 2.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

time {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.5rem;
}

.post-list {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.post-summary {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.post-summary:last-child {
  border-bottom: 0;
}

.post-summary h2,
.post-summary h3 {
  margin-bottom: 0.2rem;
}

.post-summary a {
  color: var(--text);
  text-decoration: none;
}

.post-summary a:hover {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.page-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.content > * + * {
  margin-top: 1rem;
}

.content h2,
.content h3 {
  margin-top: 2rem;
}

.content ul,
.content ol {
  padding-left: 1.4rem;
}

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

code {
  background: var(--code-bg);
  border-radius: 0.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12rem 0.25rem;
}

pre {
  background: var(--code-bg);
  overflow-x: auto;
  padding: 1rem;
}

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

@media (max-width: 36rem) {
  body {
    padding-top: 1.25rem;
  }

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