:root {
  --canvas: #fcf9f2;
  --surface: #f6f3ec;
  --ink: #151e2e;
  --muted: #636159;
  --persimmon: #e35d3b;
  --border: #ece8dc;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Lexend", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

nav a {
  color: var(--persimmon);
  font-weight: 600;
  text-decoration: none;
  margin-left: 1rem;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
}

p,
li {
  color: var(--ink);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

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

footer {
  color: var(--muted);
  font-size: 0.95rem;
}

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

  header {
    flex-direction: column;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}
