:root {
  color-scheme: light dark;
  --background: #f5f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #566176;
  --border: #d9dfeb;
  --accent: #315fd8;
  --accent-strong: #2047ac;
  --accent-soft: #e9efff;
  --focus: #b54708;
  --max-width: 72rem;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 18rem;
  margin: 0;
  color: var(--text);
  background: var(--background);
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  color: #ffffff;
  background: #172033;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 0.0625rem solid var(--border);
}

.brand {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--accent-strong);
  text-decoration: underline;
}

main {
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.hero {
  max-width: 48rem;
  padding-block: clamp(1rem, 5vw, 4rem) clamp(4rem, 9vw, 7rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-block: 0 0.7em;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 8vw, 5rem);
}

h2 {
  margin-top: 2.8rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  font-size: 1.12rem;
}

p,
li {
  max-width: 72ch;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.notice,
.link-panel {
  border: 0.0625rem solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.card {
  padding: 1.4rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.notice {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: var(--accent-soft);
}

.notice h2 {
  margin-top: 0;
}

.link-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.link-panel {
  display: grid;
  gap: 0.2rem;
  padding: 1.2rem 1.4rem;
  color: var(--text);
  text-decoration: none;
}

.link-panel span {
  color: var(--accent-strong);
  font-weight: 730;
}

.link-panel small {
  color: var(--muted);
}

.document {
  max-width: 52rem;
}

.document-header {
  padding-bottom: 1.8rem;
  border-bottom: 0.0625rem solid var(--border);
}

.document-header h1 {
  max-width: none;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.document section {
  scroll-margin-top: 1rem;
}

.document address {
  padding: 1rem 1.2rem;
  border-left: 0.25rem solid var(--accent);
  background: var(--surface);
  font-style: normal;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 0.0625rem solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

footer p {
  margin: 0;
}

.fine-print {
  white-space: nowrap;
}

@media (max-width: 44rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid,
  .link-panels {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 3rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e1421;
    --surface: #171f2f;
    --text: #edf2ff;
    --muted: #b4bfd4;
    --border: #354057;
    --accent: #83a4ff;
    --accent-strong: #a9beff;
    --accent-soft: #18264a;
    --focus: #ffb86b;
  }
}

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

@media print {
  :root {
    color-scheme: light;
  }

  .site-header,
  .skip-link,
  footer {
    display: none;
  }

  body,
  html {
    color: #000000;
    background: #ffffff;
  }

  main {
    width: 100%;
    padding: 0;
  }

  a {
    color: inherit;
  }
}
