:root {
  --bg: #f3f0e8;
  --surface: #fffcf6;
  --fg: #1b2a3a;
  --muted: #5a6a78;
  --primary: #1e4d6b;
  --primary-fg: #f3f0e8;
  --border: #d5cfc3;
  --hero: #152433;
  --hero-fg: #f3f0e8;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; text-wrap: balance; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 50;
  background: var(--primary); color: var(--primary-fg);
  padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 600;
}
.header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.header-inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--fg); min-height: 2.75rem; }
.brand img { width: 2.75rem; height: 2.75rem; object-fit: contain; border-radius: 999px; background: var(--surface); }
.brand strong { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 1.125rem; }
.brand span { display: block; font-size: 0.875rem; color: var(--muted); }
.nav { display: none; flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem 1rem; }
.nav a { min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem;
  border: 1px solid var(--border); background: var(--surface); border-radius: 0.5rem;
  font-size: 1.5rem;
}
.mobile-nav { display: none; border-top: 1px solid var(--border); padding: 0.5rem 1rem 1rem; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 3rem;
  border-bottom: 1px solid var(--border); font-size: 1.125rem; font-weight: 600; text-decoration: none;
}
@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none !important; }
}
.wrap { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.5rem; }
.narrow { max-width: 48rem; }
.narrow > img { display: block; width: 100%; height: auto; margin: 0 0 1.25rem; border-radius: 0.875rem; background: var(--border); }
.hero {
  position: relative; min-height: 20rem; color: var(--hero-fg); overflow: hidden; background: var(--hero);
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: rgba(21, 36, 51, 0.7); }
.hero .content { position: relative; max-width: 72rem; margin: 0 auto; padding: 4rem 1.5rem; }
.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); margin: 0.5rem 0 1rem; line-height: 1.15; }
.lead { font-size: 1.25rem; line-height: 1.65; max-width: 40rem; }
.muted { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.25rem; border-radius: 0.5rem;
  font-size: 1.125rem; font-weight: 600; text-decoration: none;
}
.btn-light { background: var(--primary-fg); color: var(--primary); }
.btn-navy { background: var(--primary); color: var(--primary-fg); }
.btn-ghost { border: 1px solid rgba(243,240,232,0.4); color: var(--hero-fg); }
.btn-outline { border: 1px solid var(--border); color: var(--fg); }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.tiles { display: grid; gap: 1.5rem; max-width: 72rem; margin: 0 auto; padding: 3rem 1.5rem; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tiles { grid-template-columns: 1fr 1fr 1fr; } }
.tile, .card, .panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem;
}
.tile { padding: 1.25rem; text-decoration: none; color: var(--fg); }
.tile h2 { margin: 0; font-size: 1.5rem; }
.tile p { margin: 0.5rem 0 0; color: var(--muted); }
.panel { padding: 1.5rem; margin: 0 1.5rem 2rem; max-width: 72rem; margin-left: auto; margin-right: auto; }
.panel h2 { margin: 0; font-size: 1.875rem; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.post-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--fg); }
.post-card img { width: 100%; height: 12rem; object-fit: cover; }
.post-card .pad { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.post-card h3 { margin: 0; font-size: 1.25rem; }
.search {
  min-height: 3rem; width: 100%; max-width: 28rem;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 0.5rem; padding: 0 1rem; font-size: 1.125rem; color: var(--fg);
}
.doc-list { margin-top: 2rem; }
.doc-list h2 { font-size: 1.5rem; margin: 0 0 0.75rem; }
.doc a {
  display: flex; align-items: center; min-height: 3rem;
  font-weight: 600; color: var(--primary); text-underline-offset: 3px;
}
.doc p { margin: 0.15rem 0 0.75rem; color: var(--muted); }
.prose { font-size: 1.25rem; line-height: 1.65; }
.prose p { margin: 0 0 1rem; }
.prose img { display: block; width: 100%; height: auto; margin: 0 0 1.25rem; border-radius: 0.875rem; background: var(--border); }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.prose a { color: var(--primary); }
.footer { margin-top: auto; background: var(--hero); color: var(--hero-fg); padding: 2.5rem 1.5rem; }
.footer-inner { max-width: 72rem; margin: 0 auto; }
.footer a { color: var(--hero-fg); }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
