:root {
  color-scheme: light;
  background: #c4cff4;
  color: #2c2441;
  font-family: Inter, "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.filter-definitions {
  position: absolute;
  pointer-events: none;
}

.launch {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .launch {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: radial-gradient(circle at 52% 42%, #fffae7, #c5cdfb 50%, #a4b7f4);
    animation: reveal-home .92s ease-out both;
  }

  .launch-bubble {
    position: relative;
    display: grid;
    width: 9.25rem;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #fff9;
    border-radius: 50%;
    background: linear-gradient(141deg, #fff9, #ffffff16 58%, #eaeeffc7);
    box-shadow: inset 0 4px 10px #fff, inset 0 -6px 14px #ffdfafbb, 0 14px 45px #7869c333;
    animation: float-bubble .92s cubic-bezier(.2, .8, .25, 1) both;
  }

  .launch-bubble img {
    display: block;
    border-radius: 50%;
    box-shadow: 0 4px 18px #83672d33;
  }

  .launch-bubble::after {
    position: absolute;
    top: 13%;
    left: 19%;
    width: 21%;
    height: 7%;
    border-radius: 50%;
    background: #fffffff0;
    filter: blur(1px);
    transform: rotate(-35deg);
    content: "";
  }

  @keyframes reveal-home {
    0%, 54% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
  }

  @keyframes float-bubble {
    0% { transform: translateY(1.25rem) scale(.62); opacity: 0; }
    37% { opacity: 1; }
    55% { transform: translateY(0) scale(1.08); }
    100% { transform: translateY(-1.4rem) scale(1.2); opacity: 0; }
  }
}

.scene {
  --gutter: max(clamp(1rem, 6vw, 7rem), calc((100vw - 87rem) / 2));
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  padding-inline: var(--gutter);
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(#aab8f7, #d8dcf8 48%, #f3f3d9);
}

.scene-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  padding-block: clamp(1.1rem, 3vh, 2rem);
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffffffb8;
  border-radius: 100vmax;
  color: #34294a;
  background: linear-gradient(156deg, #ffffffbd, #f5f3ffa3);
  box-shadow: 0 7px 20px #4d3c8b19, inset 0 1px 1px #fff, inset 0 -1px 1px #fff8;
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
}

.brand {
  justify-content: flex-start;
  gap: .5rem;
  padding: .28rem .9rem .28rem .3rem;
  font-size: .9375rem;
  font-weight: 750;
  white-space: nowrap;
}

.brand img {
  display: block;
  flex: none;
  border: 1px solid #fffa;
  border-radius: 50%;
}

.domain {
  min-height: 2.65rem;
  padding-inline: .9rem;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}

.hero {
  display: flex;
  align-items: center;
  padding-block: clamp(1.25rem, 5vh, 4rem) clamp(3rem, 11vh, 7rem);
}

.glass-panel {
  --radius: clamp(1.85rem, 4vw, 3.15rem);
  position: relative;
  width: min(100%, 32rem, 43vw);
  padding: clamp(1.35rem, 3.9vw, 3.3rem);
  border-radius: var(--radius);
  border: 1px solid #ffffffe0;
  box-shadow:
    0 24px 65px #39326e2e,
    0 6px 16px #43348619,
    0 0 0 1px #7f78b02b,
    inset 0 -2px 4px #fff9;
}

.glass-surface {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at var(--shine-x, 8%) var(--shine-y, -20%), #ffffffad, #ffffff19 41%, transparent 68%),
    linear-gradient(141deg, #ffffff86, #f4eeff46 52%, #fff9e582);
  box-shadow:
    inset 0 2px 3px #ffffffe0,
    inset 2px 0 6px #fff9,
    inset -2px -3px 6px #fff8,
    inset 0 -19px 36px #fff5e755;
  -webkit-backdrop-filter: blur(11px) saturate(1.32);
  backdrop-filter: blur(11px) saturate(1.32);
  pointer-events: none;
}

@supports (backdrop-filter: url("#glass-warp")) {
  .glass-surface {
    backdrop-filter: url("#glass-warp") blur(11px) saturate(1.32);
  }
}

.glass-surface::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(148deg, #fff 6%, transparent 29%, #d6dcff75 48%, transparent 63%, #fffdf0ec);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  content: "";
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.05vw, 4.55rem);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 2px #fff6;
}

h1 span {
  color: #925014;
}

.hero p {
  margin: .85rem 0 0;
  color: #443657;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .8rem;
  margin-top: clamp(1.3rem, 4vh, 2rem);
}

.links a {
  min-height: 3.15rem;
  justify-content: center;
  text-decoration: none;
  font-size: .9375rem;
}

.channel {
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .75rem;
  padding: .7rem 1.2rem;
  border: 1px solid #fff6d4;
  border-radius: 100vmax;
  color: #402606;
  background: linear-gradient(#fff4c3, #ffe08a 48%, #ffcf65);
  box-shadow: inset 0 2px 1px #fff9da, inset 0 -2px 3px #eeb7518c, 0 7px 18px #89601635;
}

.channel span {
  color: #603c19;
  font-size: .8125rem;
  white-space: nowrap;
}

.channel:hover {
  background: linear-gradient(#fff8d8, #ffe7a2 50%, #ffd879);
}

.community {
  padding-inline: 1rem;
  font-weight: 650;
}

.community:hover {
  background: #fff9;
}

.links a:focus-visible {
  outline: 2px solid #6e4596;
  outline-offset: 3px;
}

@media (max-width: 47rem) {
  .scene {
    --gutter: clamp(.85rem, 4vw, 1.6rem);
    --art-height: clamp(19rem, 104vw, 29rem);
  }

  .scene-art {
    height: var(--art-height);
    object-position: right center;
    -webkit-mask-image: linear-gradient(#000 83%, transparent);
    mask-image: linear-gradient(#000 83%, transparent);
  }

  .domain {
    display: none;
  }

  .hero {
    align-items: flex-start;
    justify-content: center;
    padding-block: max(.75rem, calc(var(--art-height) - 7.75rem)) 1.6rem;
  }

  .glass-panel {
    width: min(100%, 29rem);
    padding: clamp(1.25rem, 6vw, 2.25rem);
  }

  h1 {
    font-size: clamp(2.3rem, 10.8vw, 3.6rem);
  }
}

@media (max-width: 26rem) {
  .channel {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-surface, .glass-pill {
    background: #f4f0fd;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
