:root {
  --ink: #172334;
  --muted: #566579;
  --paper: #f8fafc;
  --soft: #eaf1f7;
  --blue: #2d628f;
  --blue-dark: #173f66;
  --gold: #d79a32;
  --line: #d3dee9;
  --white: #fff;
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img, svg { max-width: 100%; }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: .65rem 1rem; color: var(--white); background: var(--blue-dark); border-radius: .35rem; }
.skip-link:focus { top: 1rem; }
.container { width: min(76rem, calc(100% - 2rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(248, 250, 252, .97); }
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; flex-direction: column; color: var(--ink); text-decoration: none; line-height: 1.05; }
.brand strong { font-size: 1.55rem; letter-spacing: -.02em; }
.brand span { margin-top: .25rem; color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
nav a { display: block; padding: .45rem .65rem; border-radius: .35rem; color: var(--ink); font-weight: 650; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--blue-dark); background: var(--soft); }

main { min-height: 65vh; }
.hero { padding: clamp(3.7rem, 9vw, 7rem) 0; background: radial-gradient(circle at 85% 10%, #dbe8f4 0, transparent 35%), linear-gradient(145deg, var(--paper), #eef4f9); }
.eyebrow { margin: 0 0 .65rem; color: var(--blue); font-size: .82rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; }
h1 { max-width: 15ch; margin: 0; font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.035em; }
h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 4vw, 2.55rem); }
h3 { margin: 0 0 .45rem; font-size: 1.35rem; }
.lede { max-width: 45rem; margin: 1.25rem 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem 1rem; border: 2px solid var(--blue); border-radius: .45rem; color: var(--white); background: var(--blue); font-weight: 750; text-decoration: none; }
.button:hover { color: var(--white); background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary { color: var(--blue-dark); background: transparent; }
.button.secondary:hover { color: var(--white); background: var(--blue-dark); }

.section { padding: clamp(2.8rem, 7vw, 5rem) 0; }
.section.tint { background: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.card { padding: 1.4rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--white); box-shadow: 0 10px 28px rgba(22, 34, 29, .05); }
.card p { color: var(--muted); }
.card p:last-of-type { margin-bottom: 1rem; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover h3 { text-decoration: underline; }
.tag { display: inline-block; margin-bottom: .8rem; padding: .16rem .5rem; border: 1px solid #b8cce0; border-radius: 999px; color: var(--blue-dark); background: #edf4fa; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.prose { max-width: 50rem; }
.prose h1 { max-width: 18ch; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose li + li { margin-top: .4rem; }

.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); background: var(--white); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .9rem; }
.footer-inner p { margin: 0; }

@media (max-width: 40rem) {
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  nav a { padding-left: 0; margin-right: .65rem; }
  nav a:hover, nav a[aria-current="page"] { background: transparent; text-decoration: underline; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
}

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