:root {
  --bg: #f5f2ec;
  --ink: #1c1b19;
  --muted: #6b665e;
  --line: #d8d2c6;
  --accent: #a94f2e;
  --code-bg: #ebe6dc;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

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

header.site .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 18px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

main {
  padding: 64px 0 80px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lede {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

hr.rule {
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.post-list li:first-child {
  border-top: 1px solid var(--line);
}

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

.post-list h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
}

.post-list a:hover h2 {
  color: var(--accent);
}

.post-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

article .meta {
  margin-bottom: 8px;
}

article p {
  margin: 0 0 1.2em;
}

article h2 {
  margin: 2em 0 0.6em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
}

article ul,
article ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

article li {
  margin-bottom: 0.45em;
}

article code {
  padding: 0.12em 0.35em;
  border-radius: 3px;
  background: var(--code-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

article pre {
  margin: 0 0 1.4em;
  padding: 16px;
  overflow-x: auto;
  border-left: 2px solid var(--accent);
  background: var(--code-bg);
}

article pre code {
  padding: 0;
  background: none;
}

blockquote {
  margin: 1.5em 0;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

a {
  color: var(--accent);
}

footer.site {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

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

footer.site a:hover {
  color: var(--ink);
}

@media (max-width: 560px) {
  html {
    font-size: 16px;
  }

  main {
    padding: 44px 0 60px;
  }

  header.site .wrap {
    align-items: center;
  }

  nav {
    gap: 14px;
  }
}
