:root {
  color-scheme: dark;
  --charcoal: #111214;
  --paper: #e9e8e5;
  --muted: #aaa9a7;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--charcoal);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 280px; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--charcoal);
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid #e9e8e5;
  outline-offset: 8px;
}

::selection { color: #fff; background: #55565a; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 8%, #292a2c66 0, transparent 58%),
    linear-gradient(180deg, #17181a 0%, #111214 55%, #151618 100%);
}

.haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 47%, #94969d0c 0, transparent 44%),
    radial-gradient(ellipse at 76% 53%, #bec1cc07 0, transparent 42%);
  animation: haze-drift 24s ease-in-out infinite alternate;
}

.abyss {
  position: absolute;
  width: min(76vw, 820px);
  aspect-ratio: 1;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #050608 0%, #07080a 49%, #101113 63%, #33343744 69%, #797b801b 70%, #1e202300 73%);
  box-shadow: 0 -28px 100px -45px #c4c8d52e, 0 48px 140px -25px #0009;
  opacity: .92;
  animation: abyss-breathe 14s ease-in-out infinite alternate;
}

.abyss::before,
.abyss::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.abyss::before {
  inset: 7.5%;
  border: 1px solid #7779811c;
  box-shadow: inset 0 2px 8px #afb4c20c, 0 1px 20px #0009;
}

.abyss::after {
  inset: 11%;
  border: 1px solid #9197a00b;
  background: radial-gradient(circle at 50% 25%, transparent 10%, #05060870 70%);
}

.abyss-core {
  position: absolute;
  inset: 15%;
  border-radius: inherit;
  background: #060709;
  box-shadow: inset 0 0 72px 10px #0008;
  filter: blur(12px);
}

.horizon {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #111214 0%, #11121499 12%, transparent 48%),
    radial-gradient(ellipse at 50% 101%, #55575b18 0, transparent 52%);
}

.portal-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 38px 56px 28px;
}

.masthead,
.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  border-radius: 2px;
}

.nebula-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #c6c7ca5c;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #e0e2e608;
}

.nebula-mark span {
  width: 12px;
  height: 12px;
  border: 1px solid #dedfe68c;
  border-radius: 50%;
  box-shadow: 0 0 9px #c8d0ea0c;
}

.wordmark-type { display: grid; gap: 2px; }
.wordmark-type > span { color: #b8b8bb; font-size: 8px; font-weight: 500; letter-spacing: .39em; }
.wordmark-type > strong { font-size: 15px; line-height: 1; font-weight: 500; letter-spacing: .21em; }
.masthead-note { font-size: 11px; letter-spacing: .08em; color: var(--muted); }

.threshold {
  align-self: center;
  padding: 70px 0 64px;
  text-align: center;
  animation: arrive 1.3s ease-out both;
}

.eyebrow {
  margin: 0 0 27px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #b0b0b3;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.eyebrow > span { width: 4px; height: 4px; border-radius: 50%; background: #c7c8ce; box-shadow: 0 0 9px #f5f5ff36; }

h1 {
  margin: 0;
  color: #ecebe8;
  font-size: clamp(46px, 6.5vw, 89px);
  line-height: 1.065;
  font-weight: 350;
  letter-spacing: -.058em;
}

h1 > span { color: #b1b0ae; }
.invitation { margin: 27px 0 35px; color: #aaa9ad; font-size: 13px; line-height: 1.7; letter-spacing: .025em; }

.enter-link {
  display: inline-flex;
  margin-top: 35px;
  justify-content: center;
  align-items: center;
  gap: 33px;
  min-height: 52px;
  padding: 0 21px 0 24px;
  border: 1px solid #d1d0ce3d;
  border-radius: 3px;
  background: #292a2d66;
  color: #e8e7e4;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .015em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 #ffffff06, 0 4px 22px #0002;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.enter-link:hover {
  background: #3a3b3f88;
  border-color: #d1d0ce7a;
  box-shadow: inset 0 1px 0 #ffffff08, 0 4px 32px #0003;
}

.enter-arrow { font-size: 18px; color: #c1c1c4; transition: transform .25s ease; }
.enter-link:hover .enter-arrow { transform: translate(2px, -2px); }
.agent-caption { margin: 16px 0 0; color: #a3a3a8; font-size: 9px; letter-spacing: .07em; }
.agent-caption > span { margin: 0 7px; color: #717176; }

.colophon { color: #a0a0a5; font-size: 9px; letter-spacing: .08em; }
.developer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0 8px 12px;
  color: #aaa9ad;
  font-size: 11px;
  letter-spacing: .025em;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .25s ease;
}
.developer-link:hover { color: var(--paper); text-decoration: underline; }
.edition { display: flex; align-items: center; gap: 13px; }
.edition-rule { width: 24px; height: 1px; background: #77787d75; }

@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes abyss-breathe { from { opacity: .78; } to { opacity: 1; } }
@keyframes haze-drift { from { transform: translateX(-2%); opacity: .45; } to { transform: translateX(2%); opacity: .9; } }

@media (max-width: 650px) {
  .portal-shell { padding: 28px 25px 24px; }
  .masthead-note { font-size: 10px; letter-spacing: .02em; }
  .abyss { width: 123vw; top: 43%; }
  .threshold { padding: 80px 0; }
  .eyebrow { font-size: 9px; letter-spacing: .18em; margin-bottom: 25px; }
  h1 { font-size: clamp(39px, 9vw, 58px); letter-spacing: -.055em; }
  .invitation { font-size: 12px; margin: 25px 0 31px; }
  .enter-link { min-height: 52px; padding-left: 22px; gap: 25px; }
  .colophon { font-size: 8px; letter-spacing: .035em; }
  .edition { gap: 8px; }
  .edition-rule { width: 14px; }
}

@media (max-height: 650px) and (min-width: 651px) {
  .portal-shell { padding-top: 25px; padding-bottom: 20px; }
  .threshold { padding-top: 34px; padding-bottom: 34px; }
  h1 { font-size: clamp(46px, 6vw, 65px); }
  .eyebrow { margin-bottom: 18px; }
  .invitation { margin: 18px 0 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
