:root {
  --bg: #fafaf8;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e4e4e0;
  --max: 640px;
  --serif: "Iowan Old Style", "Palatino", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --text: #ececea;
    --muted: #9a9a96;
    --line: #2a2a28;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  padding: 0 24px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

header {
  padding: 48px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--text);
}

main {
  padding: 104px 0 72px;
}

h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 22px;
  max-width: 17ch;
}

h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 64px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
}

p {
  margin-bottom: 14px;
  max-width: 58ch;
}

p.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 50ch;
}

ul {
  margin: 0 0 14px 20px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted);
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--text);
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--muted);
}

.legal-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
}

@media (max-width: 480px) {
  main {
    padding: 72px 0 48px;
  }
  h1 {
    font-size: 30px;
  }
}
