:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1d1b18;
  --muted: #6b665e;
  --accent: #b4532a;
  --rule: #e6e1d8;
  --measure: 42rem;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --fg: #ece8e1;
    --muted: #a39d93;
    --accent: #e08a5f;
    --rule: #33302b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

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

h1,
h2 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 0.5rem;
}

.lede,
.meta {
  color: var(--muted);
}

.recipes {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.recipes li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.recipes a {
  font-size: 1.25rem;
  text-decoration: none;
}

.recipes p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

nav {
  margin-bottom: 2rem;
}
