:root {
  --ink: #122238;
  --muted: #60738b;
  --paper: #f2f7fc;
  --white: #fbfdff;
  --line: #d5e2ef;
  --lime: #a9efff;
  --cyan: #a9efff;
  --mint: #d9f3ff;
  --deep: #122d50;
  --orange: #ff9a72;
  --coral: #ff9a72;
  --focus: #075c73;
  --mono:
    MDIO, ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 18px;
  top: 18px;
  padding: 10px 13px;
  color: var(--paper);
  background: var(--deep);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.mono {
  font-family: var(--mono);
}

.site-header,
body > header {
  padding: 25px 0;
  background: var(--paper);
  border-bottom: 1px solid rgba(18, 45, 80, 0.14);
}

.site-nav,
body > header > nav,
.nav-links {
  display: flex;
  align-items: center;
}

.site-nav,
body > header > nav {
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.065em;
}

.brand-name {
  display: inline-block;
  transform: translateY(-1px);
}

.nav-links {
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 11px 16px;
  color: var(--paper);
  background: var(--deep);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a.nav-cta {
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 15px 19px;
  color: var(--paper);
  background: var(--deep);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.footer,
body > footer {
  width: 100%;
  padding: 26px 0;
  color: #b1c4d8;
  background: var(--deep);
  font: 11px var(--mono);
}

.footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.footer-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 0.45em;
  text-align: right;
}

.footer-services a {
  color: var(--cyan);
}

.footer-services a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 34px, 600px);
  }

  .site-header,
  body > header {
    padding: 18px 0 14px;
  }

  .site-nav,
  body > header > nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px 0;
  }

  .brand {
    grid-column: 1 / 4;
    grid-row: 1;
  }

  .nav-cta {
    grid-column: 4 / 7;
    grid-row: 1;
    justify-self: end;
    padding: 9px 11px;
    font-size: 11px;
  }

  .nav-links {
    display: contents;
  }

  .nav-links > a:not(.nav-cta) {
    grid-row: 2;
    padding: 15px 4px 3px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    text-align: center;
  }

  .nav-links > a:nth-child(1) {
    grid-column: 1 / 3;
  }

  .nav-links > a:nth-child(2) {
    grid-column: 3 / 5;
  }

  .nav-links > a:nth-child(3) {
    grid-column: 5 / 7;
  }

  .footer-row {
    display: block;
  }

  .footer-services {
    justify-content: flex-start;
    margin-top: 10px;
    text-align: left;
  }

  nav.footer-services {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 6px 18px;
  }

  nav.footer-services > span[aria-hidden="true"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
