/* Local presentation and interactions for the static Elysium snapshot. */
:root { color-scheme: light; }
:root.dark { color-scheme: dark; }

[hidden] { display: none !important; }
main section[id] { scroll-margin-top: 4.5rem; }
#top { scroll-margin-top: 0; }

.skip-link {
  position: fixed;
  z-index: 70;
  top: .75rem;
  left: .75rem;
  translate: 0 -180%;
  padding: .65rem 1rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: .5rem;
}
.skip-link:focus { translate: none; }

.hero-star-mask {
  mask-image: linear-gradient(#000 30%, #000 36%, transparent 49%);
}

.hero h1 { animation: heading-in 720ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes heading-in {
  from { opacity: .35; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#demo-label {
  margin-top: .8rem;
  border: 1px solid rgb(255 255 255 / .2);
  padding: .28rem .66rem;
  border-radius: 2rem;
  color: #ebf7f7;
  background: rgb(3 13 20 / .66);
  font-size: .72rem;
  letter-spacing: .045em;
}

main a.inline-flex { transition: color .2s, background-color .2s, translate .2s, box-shadow .2s; }
@media (hover: hover) {
  main a.inline-flex:hover { translate: 0 -2px; }
  .hero a.inline-flex:hover { box-shadow: 0 6px 24px rgb(56 237 219 / .19); }
}

#faq [data-slot="accordion-content"] { animation: none; }
.faq-answer { padding: 0 0 1rem; color: var(--muted); line-height: 1.6; }
#faq button[aria-expanded="true"] > svg { rotate: 180deg; }

.site-dialog {
  inset: 0;
  margin: auto;
  width: min(31rem, calc(100% - 2rem));
  max-height: 78dvh;
  padding: 1.2rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 16px 80px rgb(0 0 0 / .35);
}
.site-dialog::backdrop { background: rgb(1 9 13 / .65); backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.dialog-header h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.dialog-close { width: 2rem; height: 2rem; border-radius: .5rem; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.dialog-note, .search-label { display: block; color: var(--muted); font-size: .88rem; }
.dialog-note { margin-block: .25rem .75rem; }
.dialog-links { margin-top: .5rem; }
.dialog-links :is(a, button), .setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: .65rem .55rem;
  border-radius: .55rem;
  text-align: start;
}
.dialog-links span { color: var(--muted); }
.dialog-links :is(a, button), .setting-row select, .setting-row input { cursor: pointer; }
.dialog-links :is(a, button):hover, .dialog-close:hover { background: color-mix(in srgb, var(--foreground) 8%, transparent); }
.site-dialog :focus-visible { outline: 2px solid var(--focus, #36bcb1); outline-offset: 2px; }
#site-search, .setting-row select {
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--background);
  color: var(--foreground);
}
#site-search { display: block; width: 100%; margin-top: .5rem; }
.setting-row + .setting-row { border-top: 1px solid var(--border); border-radius: 0; }

@media (max-width: 1279px) {
  .desktop-navigation { display: none; }
  [data-header-bar] > div:last-child { grid-column: 3; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2.9rem, 13vw, 3.5rem); }
  .hero #hero-scene { min-height: 560px; }
}

@media (max-width: 350px) {
  [data-header-bar] img { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; }
  .hero [style*="--pointer-"] { transform: none !important; }
  main a.inline-flex { transition: none; }
  main a.inline-flex:hover { translate: none; }
}
[data-reduce-motion] .hero h1 { animation: none; }
[data-reduce-motion] .hero [style*="--pointer-"] { transform: none !important; }
[data-reduce-motion] main a.inline-flex { transition: none; }
[data-reduce-motion] main a.inline-flex:hover { translate: none; }
