:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --text: #1a1a1a;
  --text-muted: #525252;
  --border: #e5e5e5;
  --link: #0f62fe;
  --link-hover: #0043ce;
  --surface: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --text: #f5f5f5;
    --text-muted: #a3a3a3;
    --border: #262626;
    --link: #78a9ff;
    --link-hover: #a6c8ff;
    --surface: #171717;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

.site-header,
.site-footer {
  border-color: var(--border);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}

.site-header__inner,
.site-footer__inner,
.page {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header__inner {
  padding-block: 1rem 0.875rem;
}

.site-footer__inner {
  padding-block: 1.25rem 1.5rem;
}

.site-logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--link);
}

.page {
  flex: 1;
  padding-block: 2rem 3rem;
}

.page--home {
  padding-block: 3rem 4rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

h2:first-of-type {
  margin-top: 1.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.meta {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.375rem;
}

li {
  margin-bottom: 0.375rem;
}

li:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

address {
  font-style: normal;
  margin: 0;
}

address p {
  margin: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.home-links {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.home-links li {
  margin-bottom: 0.75rem;
}

.home-links a {
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.home-links a:hover {
  text-decoration: underline;
}
