:root {
  color-scheme: light dark;
  --canvas: #f4f5f2;
  --surface: #fafbf8;
  --ink: #171918;
  --secondary: #5d625e;
  --divider: #d9ddd7;
  --blue: #2864dc;
  --blue-soft: #dce7ff;
  --focus: #134fbf;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--blue-soft);
  color: var(--ink);
}

.site-header,
footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px clamp(20px, 5vw, 56px);
}

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

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 650;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  display: block;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--blue);
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 56px);
}

.landing {
  display: grid;
  gap: clamp(64px, 10vw, 128px);
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.25rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.375rem, 3.6vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
  margin-top: 56px;
}

h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 8px;
  margin-top: 36px;
}

p {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 70ch;
}

.lede {
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.375rem);
  line-height: 1.55;
  max-width: 58ch;
}

.link-list {
  border-top: 1px solid var(--divider);
  margin-top: 48px;
}

.link-list > a {
  align-items: center;
  border-bottom: 1px solid var(--divider);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  min-height: 88px;
  padding: 16px 4px;
  text-decoration: none;
}

.link-list > a:hover {
  color: var(--blue);
}

.link-list span:first-child {
  display: grid;
  gap: 6px;
}

.link-list small {
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 400;
}

.document {
  display: grid;
  gap: clamp(72px, 10vw, 140px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.document article > h2:first-child {
  margin-top: 0;
}

.effective {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

footer {
  border-top: 1px solid var(--divider);
  color: var(--secondary);
  font-size: 0.875rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    gap: 20px;
  }

  .brand img {
    height: 40px;
    width: 40px;
  }

  nav {
    gap: 16px;
  }

  .landing,
  .document {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 15ch;
  }

  .document article + article {
    border-top: 1px solid var(--divider);
    padding-top: 56px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #121412;
    --surface: #1a1d1a;
    --ink: #f2f4f0;
    --secondary: #b8bdb7;
    --divider: #373c37;
    --blue: #8db2ff;
    --blue-soft: #243654;
    --focus: #a9c4ff;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
