:root {
  color-scheme: light;
  --navy: #07162f;
  --blue: #145da0;
  --bright: #0b73ce;
  --ink: #132238;
  --muted: #526173;
  --line: #d6dee8;
  --surface: #f5f8fb;
  --white: #ffffff;
  --warning: #7a4500;
  --warning-bg: #fff4d6;
  --success: #12613a;
  --focus: #ffbf47;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.65;
}

a { color: #075ea8; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, .button:focus-visible {
  outline: .22rem solid var(--focus);
  outline-offset: .2rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: .7rem 1rem;
  color: var(--navy);
  background: var(--white);
  border-radius: .4rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  color: var(--white);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.header-inner, main, .footer-inner {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}
.brand {
  color: var(--white);
  font-weight: 760;
  letter-spacing: .02em;
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .82;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav a { color: var(--white); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy), #0a3567 72%, var(--bright));
}
.hero::before, .hero::after {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 6rem;
  bottom: -3.2rem;
  content: "";
  border-radius: 50% 50% 0 0;
  background: rgba(255,255,255,.12);
  transform: rotate(-2deg);
}
.hero::after {
  bottom: -4.3rem;
  background: rgba(255,255,255,.2);
  transform: rotate(2deg);
}
.hero-inner { width: min(70rem, calc(100% - 2rem)); margin-inline: auto; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 .5rem; font-size: .8rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 16ch; margin: 0; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -.035em; }
.hero .lead { max-width: 48rem; margin: 1.5rem 0 0; font-size: clamp(1.08rem, 2vw, 1.35rem); }

main { padding-block: 3rem 5rem; }
main.narrow { max-width: 52rem; }
h2 { margin-top: 2.8rem; font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1.2; }
h3 { margin-top: 2rem; line-height: 1.3; }
p, li { max-width: 75ch; }
.lede { font-size: 1.2rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-block: 2rem; }
.card { padding: 1.4rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.card h2, .card h3 { margin-top: 0; }
.status {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  color: var(--warning);
  background: var(--warning-bg);
  border: 2px solid #d89320;
  border-radius: .7rem;
}
.status strong { display: block; }
.button {
  display: inline-block;
  padding: .72rem 1.05rem;
  border-radius: .5rem;
  font-weight: 720;
  text-decoration: none;
}
.button.secondary { color: var(--navy); background: var(--white); border: 2px solid var(--navy); }
.button[aria-disabled="true"] { color: #5f6873; background: #e2e6eb; border: 2px solid #a7b0ba; cursor: not-allowed; }
.meta { color: var(--muted); font-size: .92rem; }
code { padding: .12rem .28rem; background: #edf1f5; border-radius: .22rem; font-size: .92em; }
pre { overflow-x: auto; padding: 1rem; background: #edf1f5; border-radius: .5rem; }
pre code { padding: 0; }
table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; }
th, td { padding: .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--surface); }

.site-footer { padding-block: 2.5rem; color: var(--white); background: var(--navy); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0; }

@media (max-width: 46rem) {
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  .grid { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}

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

@media (prefers-contrast: more) {
  :root { --line: #586675; --muted: #344253; }
  a { text-decoration-thickness: .14em; }
}

@media print {
  .skip-link, nav, .hero::before, .hero::after { display: none; }
  .site-header, .hero, .site-footer { color: #000; background: #fff; }
  .brand, nav a, .site-footer a { color: #000; }
}
