:root {
  color: #1e2729;
  background: #f6f7f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: #2f6f73; }
:focus-visible { outline: 3px solid #d7a336; outline-offset: 2px; }

.site-header,
.site-footer,
.document {
  width: min(100% - 32px, 980px);
  margin-inline: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.site-header nav,
.site-footer { display: flex; flex-wrap: wrap; gap: 14px; }
.site-header a,
.site-footer a { text-decoration: none; }
.brand { color: #1e2729; font-weight: 750; }

.document {
  max-width: 820px;
  margin-block: 28px 54px;
  padding: 28px;
  background: #fff;
  border: 1px solid #d9dfdc;
  border-radius: 8px;
}

h1, h2 { line-height: 1.15; letter-spacing: 0; }
h1 { margin: 0 0 18px; font-size: 36px; }
h2 { margin: 32px 0 10px; font-size: 22px; }
p, li { color: #657173; line-height: 1.7; }
.sources { border-top: 1px solid #d9dfdc; margin-top: 34px; padding-top: 8px; }
.site-footer { border-top: 1px solid #d9dfdc; color: #657173; font-size: 14px; }

@media (max-width: 520px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .document { padding: 20px; }
  h1 { font-size: 30px; }
}
