:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #4d5968;
  --line: #d7dee6;
  --paper: #f6f8f7;
  --card: #ffffff;
  --accent: #1f6b4a;
  --note: #f3efe2;
  --note-ink: #3f3826;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

header, main, footer {
  width: min(42rem, calc(100% - 2rem));
  margin-inline: auto;
}

header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: 0.75rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

nav a { text-decoration: none; }

main { padding: 1.75rem 0 3rem; }

h1 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h2 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  margin: 1.75rem 0 0.4rem;
}

p, li { font-size: 1.05rem; }

.card, .note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.note {
  background: var(--note);
  color: var(--note-ink);
}

ul { padding-left: 1.2rem; }

footer {
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
}
