:root {
  color-scheme: light;
  --paper: #f3f7fc;
  --surface: #ffffff;
  --ink: #1d2b3a;
  --muted: #607286;
  --line: #dce6f1;
  --blue: #245b91;
  --blue-soft: #e8f1fb;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 5; padding: .7rem 1rem; background: white; color: var(--ink); }
.skip-link:focus { top: 1rem; }
.hero { padding: 78px 0 48px; background: #e8f1fb; border-bottom: 1px solid #d6e3f2; }
.hero-inner { max-width: 1120px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: .73rem; font-weight: 750; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 7vw, 5.4rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
h1 span { color: var(--blue); }
.intro { margin-bottom: 10px; font-size: clamp(1.15rem, 2.4vw, 1.55rem); }
.hero-note { max-width: 670px; color: var(--muted); }
.quick-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.quick-links a { padding: 8px 13px; border: 1px solid #c7d8eb; border-radius: 999px; background: rgba(255,255,255,.62); color: #244f78; font-size: .88rem; text-decoration: none; }
.quick-links a:hover, .quick-links a:focus-visible { background: #fff; border-color: var(--blue); }
.filter-panel { margin-top: 8px; padding: 22px; border: 1px solid #d4e1ef; border-radius: 14px; background: rgba(255, 255, 255, .76); }
.filter-panel > .eyebrow { margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-button { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 13px; border: 1px solid #d0deed; border-radius: 999px; background: #fff; color: #40556b; font: inherit; font-size: .88rem; cursor: pointer; }
.filter-button span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #edf3fa; color: #526b84; font-size: .72rem; }
.filter-button:hover { border-color: var(--blue); }
.filter-button.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.filter-button.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.filter-status { margin: 11px 0 0; color: var(--muted); font-size: .82rem; }
[hidden] { display: none !important; }
.content { padding-top: 15px; padding-bottom: 50px; }
.project-section { padding: 50px 0 18px; scroll-margin-top: 15px; }
.section-heading { max-width: 660px; margin-bottom: 25px; }
.section-heading h2 { margin-bottom: 7px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.section-heading > p:last-child { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 26px rgba(35, 75, 115, .045); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.tag { display: inline-block; padding: 5px 9px; border-radius: 999px; background: var(--blue-soft); color: #28547e; font-size: .72rem; font-weight: 700; line-height: 1.4; }
.number { color: #8797a9; font-size: .76rem; font-variant-numeric: tabular-nums; }
.card h3 { margin-bottom: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.card > p { margin-bottom: 12px; }
.meta { color: #46596d; font-size: .92rem; }
.meta b { color: var(--ink); }
.caution { margin-top: 2px; padding: 10px 12px; border-left: 2px solid #5b87b4; background: #f0f5fb; color: #405872; font-size: .84rem; }
.project-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: auto; padding-top: 11px; color: var(--blue); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.project-link:hover { color: #173f68; }
.project-link:focus-visible, .filter-button:focus-visible { outline: 3px solid #76a9dc; outline-offset: 3px; }
.link-note { margin: 4px 0 0; color: #657a90; font-size: .77rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: auto; }
.link-row .project-link { margin-top: 0; }
.secondary-link { color: #526b84; }
.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer p { max-width: 530px; margin: 0; }
:focus-visible { outline: 3px solid #76a9dc; outline-offset: 3px; }
@media (max-width: 700px) {
  .wrap { width: min(100% - 30px, 560px); }
  .hero { padding-top: 55px; }
  .filter-panel { padding: 17px; }
  .filter-button { min-height: 40px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 21px; }
  .footer-inner { flex-direction: column; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
