@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: "Outfit", sans-serif;
  background: #070912;
  color-scheme: dark;
}

* { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
main {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 24px 64px;
  background:
    radial-gradient(ellipse at 28% 30%, #46235a80 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, #134c5280 0%, transparent 55%),
    radial-gradient(ellipse at 50% 45%, #1b2039 0%, #070912 80%);
}
.tagline {
  margin: 0;
  max-width: 28ch;
  color: #e3e5ef;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}
.tagline-since {
  display: block;
  margin-top: 10px;
  font-size: .55em;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
facet-head {
  display: block;
  flex-shrink: 0;
  width: min(280px, 85vw, max(0px, calc((100vh - 180px) * 11 / 15)));
  width: min(280px, 85vw, max(0px, calc((100dvh - 180px) * 11 / 15)));
  aspect-ratio: 11 / 15;
}

.legal-link {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  color: #bbc0d2;
  font-size: .8rem;
  padding: 8px 0;
  text-underline-offset: 4px;
}
.legal-link:hover { color: #fff; }
dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  color: #27282e;
  color-scheme: light;
  background: #f7f6f2;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #03050b99; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  flex-shrink: 0;
}
.modal-header h1 { margin: 0; font-size: clamp(1rem, 4vw, 1.3rem); }
.close-modal {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #27282e;
  font-size: 1.8rem;
  cursor: pointer;
}
.close-modal:hover { background: #e9e8e3; }
.legal-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 24px 24px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.legal-content h2 { font-size: 1.4rem; margin: 24px 0 12px; }
.legal-content h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal-content p { margin: 0 0 16px; }
.legal-content a { color: #51426c; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #c5b9ff; outline-offset: 3px; }
dialog :focus-visible { outline-color: #51426c; outline-offset: -2px; }
