/* First-screen cosmos hero. Values match the preview; scoped so they do not restyle the rest of the page. */

#app {
  width: 100%;
  max-width: 100%;
}

#app > .home-nav {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(16px, 3vw, 32px);
  box-sizing: border-box;
  z-index: 20;
}

.cosmos-hero {
  --gold: #e9c887;
  --ivory: #f4f1e8;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--ivory);
  background: radial-gradient(ellipse at 50% 48%, #091327 0%, #040912 42%, #010309 75%);
}

.cosmos-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.cosmos-hero .veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 38% 22% at 50% 49%, rgba(65, 96, 154, 0.045) 0%, rgba(34, 58, 104, 0.022) 45%, transparent 76%),
    radial-gradient(ellipse at 50% 45%, transparent 0 38%, rgba(2, 5, 11, 0.06) 62%, rgba(2, 5, 11, 0.46) 100%);
}

.cosmos-hero .copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  transform: translateY(17vh);
  padding-inline: clamp(16px, 4vw, 32px);
  padding-block: 24px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.cosmos-hero .eyebrow,
.cosmos-hero .tagline,
.cosmos-hero h1 {
  max-width: 100%;
  margin-inline: auto;
}

.cosmos-hero .eyebrow {
  margin: 0 auto 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(233, 200, 135, 0.82);
}

.cosmos-hero h1 {
  margin: 0 auto;
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  letter-spacing: 0.11em;
  line-height: 1;
  color: #f1e7d3;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 -1px 0 rgba(116, 82, 30, 0.38),
    1px 0 0 rgba(218, 183, 116, 0.08),
    0 8px 36px rgba(0, 0, 0, 0.72);
  font-kerning: normal;
}

.cosmos-hero .line {
  width: clamp(84px, 12vw, 150px);
  height: 1px;
  margin: 22px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 12px rgba(233, 200, 135, 0.55);
}

.cosmos-hero .tagline {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.13em;
  color: rgba(244, 241, 232, 0.78);
}

@media (max-width: 640px) {
  #app > .home-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cosmos-hero {
    min-height: 540px;
  }

  .cosmos-hero .copy {
    transform: translateY(15vh);
  }

  .cosmos-hero h1 {
    letter-spacing: 0.065em;
  }

  .cosmos-hero .eyebrow {
    letter-spacing: 0.28em;
  }
}

html[lang="zh-Hant"] .cosmos-hero .eyebrow {
  letter-spacing: 0.16em;
  text-transform: none;
}

html[lang="zh-Hant"] .cosmos-hero .tagline {
  letter-spacing: 0.04em;
  line-height: 1.7;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
}

@media (max-width: 640px) {
  html[lang="zh-Hant"] .cosmos-hero .eyebrow {
    letter-spacing: 0.12em;
  }
}
