:root {
  --bg: #f7f5f1;
  --text: #2e2c29;
  --muted: #6f6a62;
  --accent: #4a5e78;
  --line: #e3ded4;
  --maxw: 40rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--accent);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  text-decoration: underline;
}

main section {
  margin-bottom: 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.375rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

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

.note:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.note-date {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.link-list {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.link-list li {
  margin-bottom: 0.35rem;
}

.link-list a,
#links p a {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 40em) {
  body {
    font-size: 1rem;
  }

  .site-header {
    padding: 1.25rem 0 1rem;
    margin-bottom: 2rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  main section {
    margin-bottom: 2.25rem;
  }
}

