:root {
  color-scheme: light;
  --blue: #79bced;
  --red: #c83f1f;
  --ink: #17233a;
  --cream: #fffaf2;
  --card: #ffffff;
  --line: #dfe7ef;
}

* { box-sizing: border-box; }

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

header {
  background: var(--blue);
  border-bottom: 5px solid var(--red);
  padding: 22px 24px;
}

nav, main, footer {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links { display: flex; gap: 18px; }
.nav-links a { color: var(--ink); font-weight: 650; }

main {
  margin-top: 44px;
  margin-bottom: 60px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 6vw, 54px);
  box-shadow: 0 16px 44px rgb(23 35 58 / 8%);
}

h1 { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.08; margin: 0 0 12px; }
h2 { margin-top: 34px; line-height: 1.25; }
p, li { font-size: 1rem; }
.lede { color: #435069; font-size: 1.12rem; }
.meta { color: #5d687d; font-size: .92rem; }
a { color: #8d2a16; text-underline-offset: 3px; }

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 11px 18px;
  background: var(--red);
  border-radius: 999px;
  color: white;
  font-weight: 750;
  text-decoration: none;
}

footer { padding-bottom: 36px; color: #5d687d; font-size: .9rem; }

@media (max-width: 520px) {
  header { padding-inline: 16px; }
  nav, main, footer { width: min(100% - 28px, 760px); }
  nav { align-items: flex-start; flex-direction: column; gap: 8px; }
  main { margin-top: 20px; border-radius: 16px; }
}
