:root {
  color-scheme: light dark;
  --page: #f5f7ff;
  --surface: #ffffff;
  --surface-soft: #edf1ff;
  --ink: #121a35;
  --muted: #4b5675;
  --line: #cdd5ec;
  --accent: #263e9b;
  --accent-strong: #17296f;
  --focus: #a84200;
  --max-width: 72rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

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

a:focus-visible {
  border-radius: 0.2rem;
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

.skip-link {
  background: var(--surface);
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-250%);
  z-index: 10;
}

.skip-link:focus {
  transform: none;
}

.site-header,
.site-footer {
  background: var(--surface);
  border-color: var(--line);
  border-style: solid;
}

.site-header {
  border-width: 0 0 1px;
}

.site-footer {
  border-width: 1px 0 0;
  color: var(--muted);
  margin-top: 4rem;
}

.header-inner,
.footer-inner,
.page {
  margin: 0 auto;
  max-width: var(--max-width);
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

.header-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  min-height: 4.5rem;
  padding-bottom: 0.8rem;
  padding-top: 0.8rem;
}

.brand {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav ul,
.footer-nav,
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 0.15em;
}

.page {
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
}

.hero,
.document-header {
  max-width: 50rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 8vw, 4.8rem);
  letter-spacing: -0.045em;
  margin: 0;
}

.document-header h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin: 2.6rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.4rem;
}

p,
li {
  max-width: 46rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin: 1.25rem 0 0;
}

.meta {
  color: var(--muted);
  margin-top: 0.7rem;
}

.button {
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 0.65rem;
  color: #ffffff;
  display: inline-block;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin-top: 2.5rem;
}

.card,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.25rem;
}

.card h2,
.card h3,
.notice h2,
.notice h3 {
  margin-top: 0;
}

.document {
  max-width: 50rem;
}

.document section {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 0.1rem;
}

.document ul {
  padding-left: 1.3rem;
}

.document li + li {
  margin-top: 0.55rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.footer-inner p {
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d1224;
    --surface: #151c34;
    --surface-soft: #1c274d;
    --ink: #f2f4ff;
    --muted: #bac3df;
    --line: #344267;
    --accent: #aabaff;
    --accent-strong: #d0d8ff;
    --focus: #ffb076;
  }
}

@media (max-width: 36rem) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
