:root {
  --blue: #002fa7;
  --ink: #101010;
  --paper: #f7f7f8;
  --white: #ffffff;
  --rule: #b9b8b2;
  --muted: #626267;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --site-gutter: clamp(12px, 3vw, 44px);
  --site-header-height: 56px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.site-header {
  height: var(--site-header-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 var(--site-gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.wordmark {
  width: fit-content;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav {
  height: 100%;
  display: flex;
  min-width: 0;
}

.site-header nav a {
  display: flex;
  align-items: center;
  padding: 0 1.2rem;
  border-left: 1px solid var(--rule);
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav a[aria-current="page"] {
  background: var(--blue);
  color: var(--white);
}

.site-header a:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--blue);
  outline-offset: -3px;
}

@media (max-width: 600px) {
  :root {
    --site-gutter: 12px;
    --site-header-height: 52px;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .site-header nav {
    justify-self: end;
  }

  .site-header nav a {
    padding: 0 0.45rem;
    font-size: 0.68rem;
  }
}

/* Shared workspace controls and keyboard navigation. */
:root { --rule: #bcbcc2; }
:where(button, input, textarea, select, a):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.site-header nav a { font-size: 0.875rem; }
.site-header nav a:hover:not([aria-current]) { background: var(--paper); }
.site-header nav a[aria-current]:focus-visible { outline-color: var(--white); }
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--blue);
  color: var(--white);
}
.skip-link:focus { top: 8px; }
@media (max-width: 600px) {
  .site-header nav a { padding-inline: 0.6rem; font-size: 0.75rem; }
}
