:root {
  --background: #fbfaf7;
  --text: #191816;
  --muted: #6f6a61;
  --rule: #ded8ce;
  --link: #7b2d20;
  --link-hover: #3f1510;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.55;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

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

nav {
  display: flex;
  gap: 1rem;
}

nav a,
a {
  color: var(--link);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

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

.intro {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 3rem;
}

.post-list article {
  border-top: 1px solid var(--rule);
  padding: 1.35rem 0;
}

.post-list h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0.15rem 0 0.35rem;
}

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

time {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0.25rem 0 0;
}

p,
ul,
ol,
blockquote {
  margin: 1rem 0;
}

blockquote {
  border-left: 3px solid var(--rule);
  color: #34312c;
  padding-left: 1rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

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

  body {
    padding-top: 1.2rem;
  }
}
