:root {
  --bg: #fbfaf7;
  --fg: #23211d;
  --muted: #6f6a60;
  --rule: #e2ded5;
  --accent: #2f5d50;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 ui-serif, Georgia, "Times New Roman", serif;
}

header, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.brand {
  font: 600 1.05rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
  font: 0.9rem/1 ui-sans-serif, system-ui, sans-serif;
}

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

nav a:hover, .brand:hover { color: var(--accent); }

main { padding-top: 2.5rem; padding-bottom: 2rem; }

h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

p { margin: 0 0 1rem; }

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

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

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: 0.85rem/1.4 ui-sans-serif, system-ui, sans-serif;
}
