:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5d6861;
  --line: #d9dfdb;
  --paper: #fcfdfb;
  --accent: #285b43;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body { margin: 0; }

.site-header,
main,
footer {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav { display: flex; gap: 1rem; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

main { padding-block: 4rem 5rem; }

h1, h2 {
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 { margin: 0 0 2.5rem; font-size: clamp(2.25rem, 8vw, 4rem); }
h2 { margin: 3rem 0 0.75rem; font-size: 1.35rem; }
p, ul { margin: 0.8rem 0; }
li + li { margin-top: 0.35rem; }
strong { font-weight: 700; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 560px) {
  .site-header, footer { align-items: flex-start; flex-direction: column; }
  .site-header { justify-content: center; padding-block: 1rem; }
  main { padding-block: 3rem 4rem; }
}

@media print {
  .site-header nav, footer { display: none; }
  main { width: 100%; padding: 0; }
  a { color: inherit; }
}
