:root {
  --max-width: 700px;
  --text: #2a2a26;
  --muted: #7a7a70;
  --link: #000965;
  --border: #e0e0d8;
  --bg: #F0F0F0;
  --font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ui: -apple-system, "Segoe UI", helvetica, arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(15px, 1rem + 0.1vw, 17px);
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0 1rem;
  text-align: center;
}
.site-header .logo {
  max-width: 100%;
  height: auto;
}

main.archive {
  max-width: var(--max-width);
  margin: 0 auto;
}

.intro {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
}

.chapter .note {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.chapter {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.chapter:last-child {
  border-bottom: none;
}

.chapter h2 {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.15rem;
}

.dates {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
}
.post-list.numbered {
  list-style: decimal inside;
  display: block;
}
.post-list.numbered li {
  margin-bottom: 0.3rem;
}

.post-list:not(.numbered) li {
  font-size: 1.1rem;
}
.post-list:not(.numbered) li::after {
  content: "\00a0\00a0\2022\00a0\00a0";
  color: var(--border);
}
.post-list:not(.numbered) li:last-child::after {
  content: "";
}

.smallcaps {
  font-variant: small-caps;
  letter-spacing: 0.03em;
}

@media (max-width: 480px) {
  .post-list:not(.numbered) {
    display: block;
  }
  .post-list:not(.numbered) li {
    display: block;
    margin-bottom: 0.35rem;
  }
  .post-list:not(.numbered) li::after {
    content: "";
  }
}