:root {
  --font-body: Arial, Helvetica, sans-serif;
  --document-text-size: 0.8125rem;
  --document-heading-size: 0.875rem;
  --color-emphasis: #a6a6a6;
  --color-text: #909090;
  --color-muted: #777777;
  --overlay-fade-duration: 170ms;
  --overlay-slide-duration: 190ms;
  --overlay-slide-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --overlay-slide-distance: 0.5rem;
  --control-duration: 160ms;
}

html,
body {
  margin: 0;
}

body {
  background: #000;
  color: #fff;
  font-family: var(--font-body);
}

.home-page,
.home-page body {
  height: 100%;
}

.document-page {
  color-scheme: dark;
}

footer {
  padding-block: 1rem;
  font-size: clamp(0.7rem, 1.6vw, 0.875rem);
  line-height: 1.45;
  color: var(--color-muted);
}

.footer-nav {
  display: inline-flex;
  gap: 0.45em;
  white-space: nowrap;
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
}

.footer-nav a[aria-busy="true"] {
  cursor: progress;
}

.home-page .footer-nav a {
  transition: color var(--control-duration) ease;
}

.home-page .footer-nav a:hover,
.home-page .footer-nav a:focus-visible {
  color: #fff;
  text-underline-offset: 0.25em;
}

.home-page body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-page .main,
.home-page footer {
  width: 100%;
  max-width: 56rem;
  box-sizing: border-box;
  padding-inline: 1rem;
}

.home-page .main {
  margin: auto 0;
}

.home-page .main > h1 {
  margin: 0;
  line-height: 0;
  animation: hero-copy-in 1250ms cubic-bezier(0.22, 1, 0.36, 1) 250ms both;
}

.wordmark,
.subtitle img,
.brand-mark {
  display: block;
  width: 100%;
  height: auto;
}

@media (forced-colors: active) and (prefers-color-scheme: light) {
  .wordmark,
  .subtitle img,
  .brand-mark {
    filter: brightness(0);
  }
}

.subtitle {
  width: min(100%, 35.625rem);
  margin: 2rem auto 0;
  line-height: 0;
  animation: hero-copy-in 1150ms cubic-bezier(0.22, 1, 0.36, 1) 700ms both;
}

.home-page footer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45em;
}

.home-page footer > * {
  animation: quiet-in 1150ms ease 700ms backwards;
}

@media (max-width: 48rem) {
  .wordmark {
    width: min(100%, 20rem);
    margin-inline: auto;
  }

  .subtitle {
    width: min(100%, 17.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .main > h1,
  .subtitle,
  .home-page footer > * {
    animation: none;
  }
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes quiet-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.document-content {
  color: var(--color-text);
  font-size: var(--document-text-size);
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.document-content h1,
.document-content h2,
.document-content p,
.document-content address {
  margin: 0;
}

.document-content h1,
.document-content h2 {
  font-size: var(--document-heading-size);
  font-weight: 700;
  line-height: 1.4;
}

.document-content h1 {
  color: var(--color-emphasis);
}

.document-content h2 {
  margin-bottom: 0.25rem;
}

.document-content address {
  font-style: normal;
}

.document-content .details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

:where(.document-page) a {
  color: inherit;
  text-decoration-color: var(--color-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

:where(.document-page) a:hover,
:where(.document-page) a:focus-visible {
  color: var(--color-emphasis);
  text-decoration-color: currentColor;
}

.panel-layout {
  --panel-width: 40rem;
  --panel-height: min(36rem, calc(100dvh - 3rem - env(safe-area-inset-bottom)));
  --panel-padding: 1.2rem 1.35rem 1.35rem;
  width: min(var(--panel-width), calc(100vw - 1.5rem));
  transition:
    opacity var(--overlay-fade-duration) ease,
    transform var(--overlay-slide-duration) var(--overlay-slide-easing);
}

.panel-layout,
.panel {
  box-sizing: border-box;
  max-height: var(--panel-height);
}

.panel {
  padding: var(--panel-padding);
  border-radius: 0.5rem;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgb(5 5 5 / 82%);
  box-shadow: 0 -0.75rem 2rem rgb(0 0 0 / 20%);
  scrollbar-color: #303030 transparent;
  scrollbar-width: thin;
}

.panel::-webkit-scrollbar {
  width: 0.2rem;
}

.panel::-webkit-scrollbar-thumb {
  background: #303030;
}

@media (prefers-reduced-motion: reduce) {
  .panel-layout {
    transition: none;
  }
}

.document-page,
.document-page * {
  box-sizing: border-box;
}

.document-page body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  color: var(--color-text);
}

.document-page body > header {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

.brand {
  display: block;
  width: min(calc(100% - 2rem), 56rem);
  opacity: 0.52;
}

.document-page body > main {
  position: relative;
  z-index: 1;
  min-height: 0;
  align-self: center;
  margin-top: auto;
}

html.document-page.overlay-active body > main {
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--overlay-slide-distance));
}

.page-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

@media (max-width: 48rem) {
  .brand {
    width: min(calc(100% - 2rem), 20rem);
  }
}

html.overlay-active {
  overflow: hidden;
}

body > footer {
  transition: opacity 300ms ease;
}

html.overlay-active body > footer {
  opacity: 0 !important;
  pointer-events: none;
  transition-duration: var(--overlay-fade-duration);
}

.overlay {
  --overlay-close-size: 2.25rem;
  --overlay-close-inset: 0.95rem;
  position: fixed;
  top: auto;
  right: 0;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  left: 0;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  font-family: inherit;
  opacity: 0;
  transform: translateY(var(--overlay-slide-distance));
}

.overlay .panel {
  padding-right: calc(var(--overlay-close-size) + var(--overlay-close-inset) + 0.25rem + 1px);
}

.overlay::backdrop {
  background: rgb(0 0 0 / 0%);
  transition: background var(--overlay-fade-duration) ease;
}

.overlay.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.overlay.is-visible::backdrop {
  background: rgb(0 0 0 / 48%);
}

.overlay:focus,
.overlay h1:focus {
  outline: none;
}

.overlay-close {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  right: var(--overlay-close-inset);
  display: grid;
  width: var(--overlay-close-size);
  height: var(--overlay-close-size);
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color var(--control-duration) ease;
}

.overlay-close:hover,
.overlay-close:focus-visible {
  color: var(--color-emphasis);
}

.overlay-close:focus-visible {
  outline: 1px solid var(--color-muted);
  outline-offset: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .overlay::backdrop,
  body > footer {
    transition: none;
  }
}

.print-content {
  display: none;
}

@media print {
  :root {
    --color-emphasis: #000;
    --color-text: #000;
    color-scheme: light;
  }

  html,
  html.overlay-active,
  body,
  .home-page,
  .home-page body,
  .document-page body {
    display: block;
    height: auto;
    overflow: visible;
    background: #fff;
  }

  .document-page body > header,
  body > footer,
  .home-page footer,
  .page-footer,
  .print-content ~ main,
  .overlay,
  .overlay::backdrop {
    display: none;
  }

  .panel {
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    outline: none;
    transition: none;
  }

  .print-content {
    display: block;
    text-align: left;
  }

  .wordmark,
  .subtitle img {
    filter: brightness(0);
  }

  .home-page .main > h1,
  .subtitle {
    animation: none;
  }
}
