:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0a1925;
  --muted: #55616b;
  --accent: #066e96;
  --accent-soft: #e7f4f9;
  --line: #d4dce2;
  --warning: #a94700;
  --max: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1017;
    --surface: #131b24;
    --text: #f7fafc;
    --muted: #b8c2cc;
    --accent: #73d4ef;
    --accent-soft: #163542;
    --line: #30404d;
    --warning: #ffb86b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

nav {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

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

main { padding-block: clamp(2rem, 7vw, 6rem); }

.hero {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
}

.eyebrow {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2 { line-height: 1.12; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(2.4rem, 8vw, 5.4rem); }
h2 { margin-top: 2.5rem; font-size: clamp(1.5rem, 4vw, 2.3rem); }
p, li { max-width: 72ch; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }

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

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

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

footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 38rem) {
  nav { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
}
