:root {
  color-scheme: light;
  --ink: #102039;
  --navy: #101e33;
  --paper: #f5f5f1;
  --muted: #526071;
  --blue: #214c75;
  --rule: #d2d7dc;
  --gutter: clamp(1.25rem, 5.1vw, 5.5rem);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #4a83b5; outline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), 94rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .7rem; color: var(--ink); background: white; }
.brand-row {
  min-height: 5.4rem;
  display: grid;
  grid-template-columns: 4rem 1fr 4rem;
  align-items: center;
}
.brand-mark { justify-self: start; display: block; }
.brand-mark img { width: 3.1rem; height: auto; }
.brand-name {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 650;
  font-size: clamp(.75rem, 1.8vw, 1.16rem);
  line-height: 1.45;
}
.nav {
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: center;
  gap: clamp(1.4rem, 6vw, 4.8rem);
}
.nav a {
  text-decoration: none;
  padding: .93rem .2rem;
  font-size: .94rem;
  font-weight: 650;
}
.nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .3rem; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.35rem; font-size: .875rem; }
.footer p { font-weight: 700; }
.footer span { font-weight: 400; margin-left: .45rem; color: var(--muted); }
.footer a { white-space: nowrap; text-underline-offset: .22rem; }
dialog { width: min(95vw, 74rem); max-height: 95vh; border: 1px solid #718197; color: white; background: #102039; padding: 1rem; }
dialog::backdrop { background: #080f1cda; }
.dialog-content { display: grid; justify-items: center; gap: .6rem; }
.dialog-content form { justify-self: end; }
.dialog-content img { max-height: 74vh; object-fit: contain; }
.dialog-content p { color: #e6eef5; text-align: center; }

html { scroll-padding-top: var(--header-height, 8.5rem); }
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  box-shadow: 0 1px 0 #152c4524;
}
.skip-link:focus { z-index: 15; }
.nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .35rem; }
.dialog-content form { width: 100%; display: flex; justify-content: end; gap: .45rem; }
.dialog-content button:disabled { opacity: .5; cursor: default; }
@media (max-width: 38rem), (max-height: 34rem) {
  .brand-row { grid-template-columns: 2.8rem 1fr 2.8rem; min-height: 3.7rem; }
  .brand-mark img { width: 2.3rem; }
  .nav a { padding-block: .62rem; }
}
@media (max-width: 38rem) {
  .brand-name span { display: block; }
  .nav { gap: clamp(.65rem, 5vw, 1.75rem); }
  .footer span { display: block; margin: .25rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

dialog button {
  background: transparent; color: inherit; border: 1px solid #8493a7;
  padding: .58rem .75rem; min-height: 2.65rem; border-radius: .2rem;
}
dialog button:hover:not(:disabled) { background: #344962; }
