:root {
  color-scheme: light dark;
  --bg: #f7f5f1;
  --text: #1f2933;
  --muted: #5f6b76;
  --card: #ffffff;
  --border: #ded7cd;
  --accent: #6f4e37;
  --accent-strong: #4f3524;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151413;
    --text: #f1ece4;
    --muted: #c5bbaf;
    --card: #211f1d;
    --border: #3a342e;
    --accent: #d7b48a;
    --accent-strong: #f0d0a4;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.58;
}

a {
  color: var(--accent-strong);
}

.page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  padding: 36px 0 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1.02;
  font-weight: 700;
}

.document h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h2 {
  margin: 34px 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
}

p,
li {
  font-size: 1.04rem;
}

.lede,
.updated {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  display: block;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.link-card span {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.link-card small {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topnav {
  margin-bottom: 32px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 24px, 760px);
    padding: 32px 0;
  }

  .links {
    grid-template-columns: 1fr;
  }
}
