/* The base stylesheet supplies the layout, breakpoints and animations. */
:root {
  --qc-ink: #16142c;
  --qc-violet: #5940bb;
  --qc-bright: #a397ff;
  --qc-paper: #f5f4ff;
  --qc-cyan: #94eeff;
}
body { background-color: #22204f; color: var(--qc-ink); }
::selection { background-color: #5741bc !important; color: white !important; }
a:focus-visible, button:focus-visible { outline: 3px solid #27c9eb !important; outline-offset: 4px; }
.header__body, .menu__body { background-color: #f5f5ff; }
.header__button, .hero__button, .join__body-button, .how__item-header,
.tokenomics__item--1 .tokenomics__item-value,
.tokenomics__item--2 .tokenomics__item-value,
.tokenomics__item--3 .tokenomics__item-value,
.icon-menu { background-color: var(--qc-violet); }
.header__button:hover, .menu__link:hover { color: #5132ad; }
.icon-menu span, .icon-menu::before, .icon-menu::after { background-color: white; }
.hero__button::before, .hero__button::after { background-image: url("../assets/img/quantum/template/sparkle.webp"); }
.header__social-item, .hero__social-item, .about__social-item, .join__body-social-item { color: white; }
.join__body-social-item:nth-child(2)::before, .join__body-social-item:nth-child(2)::after {
  background-image: url("../assets/img/quantum/template/sparkle.webp");
}
.about__text p { color: #151632; }
.about__text p:first-child { font-weight: 700; }
.about__text p:last-child { font-weight: 650; }
.how__item-body, .tokenomics__item-header, .tokenomics__ca-value, .tokenomics__ca-button { background-color: var(--qc-paper); }
.how__item-body a { color: #4231a2; text-decoration: underline; text-underline-offset: .12em; }
.how__item-body p span, .tokenomics__item-header { color: #4934a6; }
.how__item-header h3, .tokenomics__item .tokenomics__item-value h3 { color: #e8e6ff; }
.how__item-header h3 span { color: var(--qc-cyan); }
.tokenomics__item--3 .tokenomics__item-value img { width: 24%; max-width: 3.5rem; left: .25rem; top: 50%; }
.tokenomics__item--3 .tokenomics__item-value h3 { font-size: clamp(1.2rem, 3.45vw, 2.65rem); }
.tokenomics__ca-value {
  text-transform: none;
  font-size: clamp(.68rem, 1.45vw, .95rem);
  letter-spacing: 0;
  overflow-x: auto;
  text-overflow: clip;
  user-select: all;
}
.tokenomics__ca-value::before { content: "CA"; margin-right: .55em; font-size: .8em; color: #55457b; }
.tokenomics__ca-button { color: #16142c; cursor: pointer; }
.tokenomics__ca-button:disabled { cursor: default; }

/* The observatory terrace opens onto the cavern behind the gallery and token. */
.page__how-tokenomics-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  aspect-ratio: auto;
}
.page__how-tokenomics-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, #343779 24%, #1b2054 40%, #131c4e 85%, transparent);
}
.page__how-tokenomics-box-bg {
  grid-area: 2 / 1 / 4 / 2;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 13%, black calc(100% - 11vw), transparent);
}
.page__how-tokenomics-box-bg img { top: auto; bottom: 0; height: 170%; object-position: center bottom; }
.page__how-tokenomics-box > .how {
  grid-area: 1 / 1;
  padding-bottom: clamp(2rem, 4vw, 4rem);
  scroll-margin-top: max(0px, calc(7.5rem - 9vw));
}
.page__how-tokenomics-box > .tokenomics { grid-area: 3 / 1; margin-top: 48vw; }
.how__stage {
  --footing: 4%;
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: min(44vw, 55rem);
}
.how__stage::before {
  content: "";
  position: absolute;
  inset: -6vw 0 -5vw;
  z-index: -1;
  background: url("../assets/img/quantum/template/how/observatory-terrace.webp") center / cover no-repeat;
  mask-image: linear-gradient(to bottom, transparent, black 24%, black 85%, transparent);
}
.how__stage .how__title {
  width: min(65%, 78rem);
  margin: 0 auto;
}
.how__stage .how__title img { display: block; aspect-ratio: 6 / 1; object-fit: cover; }
.how__stage .how__images {
  position: absolute;
  left: 50%;
  bottom: var(--footing);
  transform: translateX(-50%);
  width: min(26%, 32.5rem);
  aspect-ratio: auto;
  margin: 0;
}
.how__stage .how__images::before {
  content: "";
  position: absolute;
  inset: auto 3% 0;
  height: 9%;
  z-index: -1;
  background: radial-gradient(ellipse, #18143cbf, transparent 70%);
}
.how__stage .how__images img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  animation: none;
  will-change: auto;
}
.how__pillar {
  position: absolute;
  bottom: calc(var(--footing) + 1.1vw);
  height: 74%;
  width: auto;
  pointer-events: none;
}
.how__pillar--left { left: 7%; }
.how__pillar--right { right: 7%; transform: scaleX(-1); }
.meme-gallery {
  grid-area: 2 / 1;
  position: relative;
  z-index: 3;
  padding: clamp(2.5rem, 5vw, 5rem) 5%;
  scroll-margin-top: 5rem;
}
.meme-gallery h2 {
  margin: 0 0 clamp(1.25rem, 2.7vw, 2.75rem);
  text-align: center;
  font: 900 clamp(2.4rem, 5.3vw, 5.75rem)/1 Georgia, serif;
  color: var(--qc-paper);
  -webkit-text-stroke: .065em #44338f;
  paint-order: stroke fill;
  text-shadow: 0 .065em #53429e;
}
.meme-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.6rem, 1.35vw, 1.35rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.meme-gallery__grid li:first-child { grid-area: span 2 / span 2; }
.meme-gallery__grid a {
  display: block;
  border: 2px solid #aca1f3;
  box-shadow: 0 4px 0 #0a0820;
  border-radius: .65rem;
  overflow: hidden;
}
.meme-gallery__grid a:hover { border-color: var(--qc-cyan); }
.meme-gallery__grid img { display: block; width: 100%; height: auto; }
@media (max-width: 47.99875em) {
  .page__how-tokenomics-box > .how { scroll-margin-top: 0; }
  .how__stage { height: 89vw; --footing: 5%; }
  .how__stage::before { inset: -14vw 0 -9vw; }
  .how__stage .how__title { width: 97%; }
  .how__stage .how__images { width: 51%; }
  .how__pillar { height: 54%; }
  .how__pillar--left { left: 1%; }
  .how__pillar--right { right: 1%; }
  .page__how-tokenomics-box > .tokenomics { margin-top: 70vw; }
  /* The phone artwork has a transparent strip along its lower edge. */
  .page__how-tokenomics-box-bg {
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 95%, transparent 98%);
  }
  .join__bg { top: -24%; height: 124%; }
}
@media (max-width: 36em) {
  .meme-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meme-gallery__grid li:first-child { grid-area: auto / span 2; }
}
.footer { background: #101024; }
.menu-open-bg { background: #070c255e; }
.snowflake { color: #e0dcff; filter: drop-shadow(0 0 3px #705bcb); }
@media (max-width: 420px) {
  .footer__container { flex-wrap: wrap; justify-content: space-around; gap: .4rem .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  #snow { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
