/* Adapted from Inspire's Nav, Footer, and shared interaction components.
   Christmas colors and the handout stage retain their own design. */
:root {
  --sans: acumin-pro, 'Source Sans 3', Arial, sans-serif;
  --serif: p22-mackinac-pro, 'Libre Baskerville', Georgia, serif;
  --site-gutter: clamp(20px, 3.125vw, 48px);
  --header-height: 64px;
  --nav-ease: cubic-bezier(.9, 0, .1, 1);
  --link-ease: cubic-bezier(.7, 0, .3, 1);
  --character-ease: cubic-bezier(.625, .05, 0, 1);
}
html { scroll-padding-top: calc(var(--header-height) + 16px); }
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-height);
  background: transparent; border: 0;
}
.bar {
  display: flex; justify-content: space-between; gap: 16px;
  height: var(--header-height); padding: 14px var(--site-gutter);
  color: var(--ink); background: var(--bg);
  transition: transform .3s, background-color .3s, box-shadow .3s;
}
.bar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.bar.is-hidden { transform: translateY(-105%); pointer-events: none; }
.nav-group { display: flex; flex: 1; gap: clamp(24px, 3.75vw, 58px); }
.nav-group a { font-size: 14px; letter-spacing: 0; line-height: 1.2; }
.nav-end { flex: 1; gap: clamp(24px, 3.75vw, 58px); }
.nav-right { flex: none; }
.brand { flex: none; display: flex; align-items: center; width: 136px; height: 34px; color: inherit; }
.brand svg { width: 100%; height: auto; display: block; }
.plus {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 5px; border-radius: 0;
  transition: transform .3s;
}
.plus::before, .plus::after { content: none; }
.plus svg { display: block; width: 24px; height: 24px; transition: transform .3s; }
.plus:hover { color: inherit; transform: scale(1.1); }
.plus[aria-expanded="true"] svg { transform: rotate(45deg); }
.nav-chars { display: inline-block; overflow: hidden; vertical-align: top; }
.nav-char {
  display: inline-block; position: relative; white-space: pre;
  text-shadow: 0 1.3em currentColor;
  transform: translateY(0) rotate(.001deg);
  transition: transform .6s var(--character-ease);
  transition-delay: calc(var(--char-index) * .01s);
}
@media (hover: hover) and (pointer: fine) {
  .nav-group a:hover .nav-char { transform: translateY(-1.3em) rotate(.001deg); }
}
.nav-group a:focus-visible .nav-char { transform: translateY(-1.3em) rotate(.001deg); }
html.menu-open { overflow: hidden; }
.menu-open .site-header { position: sticky; background: transparent; }
.menu-open .bar { background: transparent; box-shadow: none; transform: none; pointer-events: auto; }
.menu-panel {
  position: fixed; inset: 0; z-index: 1; height: 100dvh;
  padding: calc(var(--header-height) + 32px) var(--site-gutter) 48px;
  display: flex; justify-content: center; align-items: center;
  background: var(--bg); color: var(--ink); overflow-y: auto;
  visibility: hidden; pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 1s var(--nav-ease), visibility 0s 1s;
}
.menu-open .menu-panel {
  visibility: visible; pointer-events: auto;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition-delay: 0s;
}
.menu-content { width: 100%; max-width: 1072px; margin: auto; }
.menu-primary { display: flex; flex-direction: column; align-items: flex-start; }
.menu-primary li { overflow: hidden; transition: opacity .5s var(--link-ease); }
.menu-primary a {
  display: block; padding: 0 .075em; font-family: var(--sans);
  font-size: calc(4vw + 4vh); line-height: 1.1; letter-spacing: -.04em;
  transform: translateY(100%) rotate(5deg);
  transition: transform .75s var(--link-ease), color .3s;
  transition-delay: calc((3 - var(--menu-index)) * .05s);
}
.menu-open .menu-primary a {
  transform: translateY(0) rotate(.001deg);
  transition-delay: calc(.3s + var(--menu-index) * .05s);
}
.menu-link-text {
  display: block; text-shadow: 0 1.1em currentColor;
  transition: transform .5s var(--link-ease);
}
@media (hover: hover) and (pointer: fine) {
  .menu-primary:has(a:hover) li { opacity: .15; }
  .menu-primary:has(a:hover) li:hover { opacity: 1; }
  .menu-primary a:hover .menu-link-text { transform: translateY(-100%) rotate(.001deg); }
}
.menu-secondary {
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  margin-top: 48px !important; padding-left: 12px !important;
}
.menu-secondary a { font-size: 32px; line-height: .9; letter-spacing: -.04em; }
.menu-primary a:focus-visible { outline-offset: -3px; }
.menu-secondary a { text-decoration: none; transition: color .3s; }

/* The current site's four-column footer, with its original vector wordmark. */
.site-footer { padding: 0; overflow: hidden; position: relative; }
.footer-inner {
  position: relative; padding: 42px var(--site-gutter) 0;
  letter-spacing: -.02em; font-weight: 600;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.site-footer h3 { margin: 0 0 40px; font-size: 16px; line-height: 1.5; font-weight: 600; color: #a49e94; }
.site-footer ul { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.site-footer li a { display: inline-block; font-size: 32px; font-weight: 400; line-height: 1; transition: color .3s; }
.footer-legal { grid-column: auto; padding-top: 64px; column-gap: 12px; font-size: 16px; color: #a49e94; }
.footer-legal svg { width: 34px; height: 34px; margin-top: 0; }
.footer-legal .copy { margin-top: 32px; }
.footer-mark { margin-top: 160px; overflow: hidden; aspect-ratio: auto; color: var(--ink); }
.footer-mark svg { display: block; width: 100%; height: auto; margin-bottom: -10%; }
.footer-shade { position: absolute; inset: 0; pointer-events: none; background: #201d1d; opacity: 0; }
.site-footer:focus-within .footer-inner { transform: none !important; }
.site-footer:focus-within .footer-shade { opacity: 0 !important; }
.reader { z-index: 60; }
.toast { z-index: 70; }
.hero { height: calc(100svh - var(--header-height) - env(safe-area-inset-top, 0px)); }
.reveal-pending [data-site-animate] { opacity: 0; transform: translateY(2rem); }

@media (max-width: 991px) {
  .nav-left > li:not(:last-child), .nav-right { display: none; }
  .nav-left { display: flex; }
  .nav-end { display: flex; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer-legal { padding-top: 0; max-width: 480px; }
  .footer-mark { margin-top: 96px; }
}
@media (max-width: 479px) {
  .brand { width: 128px; }
  .nav-group a { font-size: 12px; }
  .nav-left, .nav-end { flex: none; width: 20%; }
  .bar { gap: 8px; }
  .menu-primary a { font-size: min(calc(4vw + 4vh), 11.5vw); }
  .menu-secondary { flex-direction: column; gap: 20px; margin-top: 32px !important; padding-left: 2px !important; }
  .menu-secondary a { font-size: 30px; }
}
@media (max-height: 580px) {
  .menu-content { margin-top: 0; }
  .menu-primary a { font-size: clamp(32px, 6vh, 64px); }
  .menu-secondary { flex-direction: row; gap: 16px 24px; margin-top: 20px !important; }
  .menu-secondary a { font-size: 24px; }
}
.motion-off .bar, .motion-off .plus, .motion-off .plus svg,
.motion-off .menu-panel, .motion-off .menu-primary a,
.motion-off .menu-link-text, .motion-off .nav-char { transition: none !important; }
.motion-off .nav-char, .motion-off .menu-link-text { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .bar, .plus, .plus svg, .menu-panel, .menu-primary a, .menu-link-text, .nav-char { transition: none !important; }
  .nav-char, .menu-link-text { transform: none !important; }
  .reveal-pending [data-site-animate] { opacity: 1; transform: none; }
  .footer-inner { transform: none !important; }
  .footer-shade { opacity: 0 !important; }
}
