@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #22402c;
  --cream: #f4f0e4;
  --soft-black: #1b1b18;
  --terracotta: #e1613a;
  --surface: var(--cream);
  --on-surface: var(--soft-black);
  --accent: var(--forest);
  --muted: #565650;
  --rule: #dcd8cc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: var(--soft-black);
    --on-surface: var(--cream);
    --accent: #a7d6b3;
    --muted: #b3b0a6;
    --rule: #3a3a35;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--surface);
  color: var(--on-surface);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main,
header,
footer {
  max-width: 42rem;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

header svg {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  color: var(--accent);
}

header span {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
}

p,
li {
  max-width: 38rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.lead {
  font-size: 1.1875rem;
  color: var(--on-surface);
}

.muted {
  color: var(--muted);
}

.note {
  border-left: 3px solid var(--terracotta);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 2rem 0;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

footer a {
  margin-right: 1.25rem;
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

dl {
  margin: 0.5rem 0 1.5rem;
}

dt {
  font-weight: 700;
  margin-top: 0.9rem;
}

dd {
  margin: 0.2rem 0 0;
}
