@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: Lexa;
  src: url("/fonts/lexa-font.otf") format("opentype");
  font-display: swap;
}

:root {
  --font-space-grotesk: "Space Grotesk";
  --font-lexa: Lexa;
}

/* Keep the viewport as the scroll container for the landing page's sticky sections. */
body:has([data-archive-landing]) {
  overflow: visible;
}

.archive-home-links { display: none; }
body:has([data-archive-landing]) .archive-header {
  background: linear-gradient(to bottom, #1b1d28, #222328);
}

body:has([data-archive-landing]) .archive-logo { filter: brightness(0) invert(1); }

@media (min-width: 1024px) {
  body:has([data-archive-landing]) .archive-home-links { display: flex; }
}

#contact-dialog {
  margin: auto;
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 1.5rem;
  border: 1px solid #343741;
  border-radius: .75rem;
  background: #22242b;
  color: #f4f5f8;
}
#contact-dialog::backdrop { background: #090a10c9; }
#contact-dialog h2 { margin: 0; padding-right: 2rem; font-size: 1.5rem; font-weight: 600; }
#contact-dialog p { color: #bdc2cc; margin: .55rem 0 1rem; }
.contact-close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: #f4f5f8;
  font-size: 1.4rem;
  cursor: pointer;
}
.contact-close:hover { background: #323744; }
#contact-dialog form { display: grid; gap: .85rem; }
#contact-dialog form button { justify-self: start; }
#contact-dialog label { font-size: .94rem; font-weight: 550; }
#contact-dialog :is(input, textarea) {
  display: block;
  width: 100%;
  margin-top: .25rem;
  border: 1px solid #596071;
  border-radius: .4rem;
  padding: .55rem .65rem;
  background: #181a21;
  color: #f4f5f8;
}
#contact-dialog textarea { resize: vertical; }
.contact-extra { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); }
[data-contact-status]:empty { display: none; }
[data-contact-status] { margin-bottom: 0; }
