:root {
  color-scheme: light dark;
  --background: #f7f8fa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5f6b7a;
  --border: #d8dee8;
  --accent: #580fbd;
  --accent-strong: #430a96;
  --accent-soft: #f0e8fb;
  --focus: #0067c0;
  --shadow: 0 18px 48px rgb(30 38 52 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -16rem, rgb(88 15 189 / 10%), transparent 32rem),
    var(--background);
  color: var(--text);
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.85rem;
  transform: translateY(-200%);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 700;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgb(247 248 250 / 88%);
}

.header-inner,
.footer-inner,
.page {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img,
.hero-icon {
  border-radius: 22%;
  box-shadow: 0 6px 18px rgb(17 24 39 / 14%);
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.site-header nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

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

.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.45em;
}

.page {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.hero {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.hero-icon {
  display: block;
  margin: 0 auto 1.5rem;
}

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

h1,
h2,
h3,
p,
ul {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

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

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 1.75rem 0 0.35rem;
  font-size: 1.08rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 3vw, 1.25rem);
}

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

.link-card {
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  padding: clamp(1.35rem, 5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--muted);
  text-decoration: none;
}

.link-card:hover {
  border-color: var(--accent);
  color: var(--muted);
}

.card-title {
  margin-bottom: 0.6rem;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 750;
}

.card-action {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.card-action span {
  display: inline-block;
  margin-left: 0.2rem;
}

.document-page {
  max-width: 44rem;
}

.document-page h1 {
  font-size: clamp(2.1rem, 7vw, 3.5rem);
}

.page-heading {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.page-heading .lede {
  margin-inline: 0;
}

.updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.document-page > section {
  padding-block: 2rem;
  border-bottom: 1px solid var(--border);
}

.document-page > section:last-child {
  border-bottom: 0;
}

.document-page ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.4rem;
}

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

.contact-panel {
  margin-top: 2rem;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
  border: 1px solid var(--border) !important;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

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

  .header-inner {
    padding-block: 0.8rem;
  }

  .site-header nav {
    width: 100%;
  }

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

  .footer-inner {
    padding-block: 1.5rem;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b0e14;
    --surface: #151a23;
    --text: #f5f7fa;
    --muted: #b7c0cf;
    --border: #3a4352;
    --accent: #b888ff;
    --accent-strong: #d2b5ff;
    --accent-soft: #251735;
    --focus: #72b8ff;
    --shadow: 0 18px 48px rgb(0 0 0 / 25%);
  }

  body {
    background:
      radial-gradient(circle at 50% -16rem, rgb(153 85 255 / 17%), transparent 32rem),
      var(--background);
  }

  .site-header {
    background: rgb(11 14 20 / 90%);
  }
}

@media (forced-colors: active) {
  .brand img,
  .hero-icon,
  .link-card,
  .contact-panel {
    box-shadow: none;
  }

  a:focus-visible {
    outline-color: Highlight;
  }
}
