/* All the Tokens We Have Left
   Shared shell for the redesigned pages: type and color tokens, masthead, menu, footer.
   The homepage carries its own masthead and footer in home.css. */

:root {
  --night: #030718;
  --shell: #090d18;
  --white: #f4f4ff;
  --serif: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Letter-spacing. Baskerville is spaced generously, so large sizes close up a little and no more. */
  --track-display: -.02em;
  --track-heading: -.015em;
  --track-quiet: -.01em;
}

body { margin: 0; }

.site-head,
.site-foot {
  position: relative;
  z-index: 12;
  color: #eef2fd;
  background: var(--shell);
  font-family: var(--sans);
}
.site-head *,
.site-foot * { box-sizing: border-box; }

.at-nav,
.at-footer {
  max-width: 1680px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 88px);
}

/* Masthead */
.at-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3.2vw, 54px);
  min-height: 64px;
}
.at-nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #aab9dc2e;
}
.at-nav a,
.at-nav button,
.at-footer a,
.at-pop a {
  color: inherit;
  text-decoration: none;
}
.at-nav button {
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
}
.at-nav .at-mark {
  font: 600 13px/1.1 var(--sans);
  letter-spacing: .22em;
  padding: 12px 0;
}
.at-nav .at-rule {
  flex: 1;
  height: 1px;
  background: #abb9d030;
}
.at-nav .at-link,
.at-nav .at-menu-button {
  font: 500 10px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  padding: 12px 0;
}
.at-nav .at-link[aria-current="page"] { color: #bfd3ff; }
.at-menu-button span {
  display: inline-block;
  margin-left: 6px;
}

/* Menu. Without JavaScript the links stay visible as a plain row. */
.at-pop {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 6px clamp(20px, 5vw, 88px) 14px;
}
.at-pop a {
  padding: 8px 0;
  color: #f0f2f9;
  font: 15px/1.35 var(--serif);
}
.at-pop a[aria-current="page"] { color: #bfd3ff; }
html:not(.js) .at-menu-button { display: none; }
.js .at-pop {
  display: none;
  position: absolute;
  right: clamp(13px, 4vw, 80px);
  top: calc(100% - 1px);
  width: min(290px, 95vw);
  margin: 0;
  padding: 12px 22px;
  background: #101725;
  border: 1px solid #707d995e;
  box-shadow: 0 20px 55px #0006;
}
.js .at-pop.is-open { display: block; }
.js .at-pop a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #707d993e;
  font-size: 16px;
}
.js .at-pop a:last-child { border: 0; }

.at-nav a:hover,
.at-nav button:hover,
.at-footer a:hover,
.at-pop a:hover {
  color: #bfd3ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */
.at-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-block: 32px;
  min-height: 92px;
}
.at-footer .at-foot-name {
  font: normal 21px/1.1 var(--serif);
  letter-spacing: var(--track-quiet);
}
.at-footer nav {
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.at-footer nav a {
  font-size: 12px;
  line-height: 1.5;
}
.at-footer nav a[aria-current="page"] { color: #bfd3ff; }
.at-foot-note {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 88px) 26px;
  font: 11px/1.5 var(--sans);
  letter-spacing: .04em;
  color: #aab4c8;
}

/* Text for screen readers only */
.at-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip link and focus */
.at-skip {
  position: absolute;
  top: -150px;
  left: 10px;
  font: 14px/1.3 var(--sans);
}
.at-skip:focus {
  top: 8px;
  padding: 10px;
  background: #fff;
  color: #121725;
  z-index: 25;
}
.site-head :focus-visible,
.site-foot :focus-visible {
  outline: 2px solid #b1d2fc;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .at-nav { min-height: 52px; gap: 17px; }
  .at-nav .at-link-secondary { display: none; }
  .at-footer { padding-block: 28px; }
  .at-footer nav { gap: 10px 16px; }
}
