:root {
  color-scheme: dark;
  color: #fff6f0;
  background: #05060a;
  font-family: "Avenir Next", Avenir, "Century Gothic", system-ui, sans-serif;
  font-synthesis: none;
  --amber: #ffaf67;
  --line: #a95e35;
}

* { box-sizing: border-box; }
body { margin: 0; }
p, h1, h2 { margin: 0; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid #ffcd9d; outline-offset: 5px; }

.scene {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  background: #05060a url("assets/nox-horizon.webp") center / cover no-repeat;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: max(.8rem, env(safe-area-inset-top)) max(3.2vw, env(safe-area-inset-right)) .6rem max(4.25vw, env(safe-area-inset-left));
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .61em;
  color: #fff;
  font-size: clamp(4rem, 6.7vw, 6.5rem);
  font-weight: 200;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-small { font-size: clamp(1.5rem, 2.65vw, 2.2rem); gap: .48em; }

.eclipse {
  position: relative;
  flex: none;
  width: .91em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from -43deg, #ffb989, #fff9ed 13%, #ff9a48 39%, #c1773f 58%, transparent 73%, #494041 83%, #ffb989);
  box-shadow: .055em -.005em .13em -.047em #ff8e43;
}

.eclipse::after {
  position: absolute;
  inset: .024em .033em .022em .014em;
  border-radius: inherit;
  background: #07070c;
  content: "";
}

.site-nav { display: flex; align-items: center; gap: clamp(.65rem, 2.8vw, 2.35rem); }

.site-nav button {
  padding: .65rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .79rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav .sign-in {
  padding: .53rem clamp(.75rem, 1.85vw, 1.5rem);
  border: 1px solid #a66c36;
  border-radius: .55rem;
  color: #ffe1c5;
  box-shadow: inset 0 0 .55rem #66361652;
}

.site-nav button:hover { color: var(--amber); }

.landing {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  min-width: 0;
  padding: .25rem max(1rem, env(safe-area-inset-right)) max(4.05rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  text-align: center;
  text-transform: uppercase;
}

.introduction, .invitation { min-width: 0; }

.discovery-count { margin-top: .42rem; font-size: clamp(1.13rem, 2vw, 1.65rem); letter-spacing: .53em; text-indent: .53em; }

.tagline {
  margin: .5rem 0 1.15rem;
  font-size: clamp(.68rem, 1.05vw, .9rem);
  font-weight: 600;
  letter-spacing: .51em;
  line-height: 1.65;
  text-indent: .51em;
}

.countdown-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.45rem;
  margin-bottom: .9rem;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .48em;
  line-height: 1.3;
}

.countdown-heading::before, .countdown-heading::after {
  width: clamp(1rem, 8.2vw, 6.55rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffc398);
  box-shadow: 0 0 6px #de7e4b60;
  content: "";
}

.countdown-heading::after { transform: scaleX(-1); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.4rem, 1.13vw, .92rem);
  width: min(100%, 33.15rem);
  margin-inline: auto;
}

.countdown-card {
  display: grid;
  gap: .1rem;
  padding: .41rem .2rem .5rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #130b0bd9;
  box-shadow: inset 0 -.13rem .9rem #c263402d, 0 0 .65rem #d6673833;
}

.countdown-card span:first-child {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-shadow: 0 0 .5rem #ef9855a6;
}

.countdown-card span:last-child { font-size: clamp(.49rem, .85vw, .69rem); letter-spacing: .25em; }

.invitation { grid-row: 3; margin-top: clamp(5rem, 13vh, 10rem); text-shadow: 0 2px 10px #000; }
.motto { font-size: clamp(.8rem, 1.4vw, 1.12rem); font-weight: 600; letter-spacing: .45em; text-indent: .45em; }
.motto span { margin-inline: .36em; }

.actions { display: flex; justify-content: center; gap: clamp(.75rem, 2.35vw, 1.9rem); margin: 1.45rem 0 1.8rem; }

.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  min-height: 2.9rem;
  padding: .65rem clamp(.75rem, 2.1vw, 1.65rem);
  border: 1px solid #d5c9c5;
  border-radius: .77rem;
  background: #08080cd9;
  color: #fff6f0;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.action svg { flex: none; width: 1.2rem; height: 1.2rem; }
.action-primary { border-color: #ffad57; color: #ffe0bf; box-shadow: inset 0 0 1rem #ce681e55, 0 0 .8rem #ff972f74; }
.action-primary svg, .arrow { color: #ffc072; }
.arrow { font-size: 1.45rem; line-height: .8; margin-left: .25em; }
.action:hover { background: #28180f; }

.categories { font-size: clamp(.52rem, .82vw, .69rem); font-weight: 600; letter-spacing: .29em; line-height: 1.7; }
.categories span { margin-inline: .65em; color: #f2b28b; }

.information {
  width: min(27rem, calc(100% - 2rem));
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #100c10;
  color: inherit;
  text-align: center;
}

.information::backdrop { background: #05060ac9; }
.information p { margin: .8rem 0 1.4rem; line-height: 1.55; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .scene {
    background-image: url("assets/nox-horizon-mobile.webp");
    background-position: center center;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
    padding-bottom: 1.1rem;
  }

  .site-nav { justify-content: center; flex-wrap: wrap; width: 100%; gap: .25rem .9rem; }
  .site-nav button { min-height: 44px; font-size: .65rem; }
  .site-nav .sign-in { min-height: 36px; }
  .landing { padding-bottom: max(1.65rem, calc(env(safe-area-inset-bottom) + .7rem)); }
  .wordmark:not(.wordmark-small) { font-size: clamp(3.75rem, 15vw, 5rem); }
  .tagline { max-width: 23rem; letter-spacing: .28em; text-indent: .28em; }
  .countdown-heading { gap: .65rem; font-size: .72rem; letter-spacing: .33em; }
  .countdown-card { border-radius: .55rem; padding: .48rem .15rem; }
  .invitation { margin-top: clamp(5rem, 18svh, 9rem); }
  .motto { letter-spacing: .33em; }
  .actions { flex-wrap: wrap; gap: .7rem; margin: 1.1rem 0 1.2rem; }
  .action { font-size: .68rem; gap: .53rem; }
  .categories { max-width: 29rem; margin-inline: auto; letter-spacing: .22em; }
}

@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color 150ms ease, color 150ms ease; }
}
