:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1d1d1b;
  --muted: #6b6a65;
  --rule: #dedbd3;
  --accent: #2f6b4f;
  --max: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161715;
    --fg: #e8e6df;
    --muted: #a3a19a;
    --rule: #33352f;
    --accent: #8cc4a3;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header,
main,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.mark {
  color: var(--fg);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.86rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

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

main {
  padding: 3.25rem 0 4rem;
}

.eyebrow,
.date {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1rem;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h2 {
  margin: 0 0 0.4rem;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

h2 a {
  color: var(--fg);
  text-decoration: none;
}

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

.lede {
  margin: 0 0 3rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.entries {
  display: grid;
  gap: 2rem;
}

.entry {
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.entry p:last-child,
.note p:last-child {
  margin-bottom: 0;
}

.note {
  padding: 1.6rem 0 1.8rem;
  border-top: 1px solid var(--rule);
}

.note h2 {
  font-size: 1.45rem;
}

.note p {
  max-width: 38rem;
}

.site-footer {
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 30rem) {
  html {
    font-size: 17px;
  }

  main {
    padding-top: 2.25rem;
  }
}
