/* Jetspace Institute — noir theme */

:root {
  --jet-void: #050403;
  --jet-ink: #ffffff;
  --jet-ink-dim: #f0ebe3;
  --jet-link: #c4b0ef;
  --jet-accent: #D4895A;
  --page-pad: clamp(1.5rem, 6vw, 4rem);
  --font-serif: "TeX Gyre Pagella", "Palatino Linotype", Palatino, "Book Antiqua",
    "Iowan Old Style", Baskerville, Georgia, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  position: relative;
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
  background: var(--jet-void);
  color: var(--jet-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.is-panning {
  cursor: grabbing;
  user-select: none;
}

#cosmos {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.page {
  position: relative;
  z-index: 2;
  width: min(36rem, 100%);
  padding: var(--page-pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vh, 2rem);
}

.identity {
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 3.2vw, 3.25rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 1px 18px rgba(5, 4, 3, 0.85);
}

.identity a {
  color: inherit;
  text-decoration: none;
}

.line {
  max-width: 28rem;
  color: #ffffff;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  line-height: 1.7;
  font-style: italic;
  opacity: 0.92;
  text-shadow: 0 1px 14px rgba(5, 4, 3, 0.9);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.links a {
  color: var(--jet-link);
  text-decoration: none;
  padding: 0.55rem 0.35rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity 0.35s ease, color 0.35s ease;
}

.links a:hover,
.links a:focus-visible {
  opacity: 1;
  color: #ddd0f7;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.links a:focus-visible {
  outline: 1px solid var(--jet-link);
  outline-offset: 3px;
}

.sep {
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
  pointer-events: none;
}

.coming-link {
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coming-link a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.35s ease;
}

.coming-link a:hover,
.coming-link a:focus-visible {
  color: rgba(255, 255, 255, 0.85);
}

/* Under-construction */
.coming-soon {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: var(--page-pad);
  text-align: center;
  position: relative;
  z-index: 2;
}

.coming-soon h1 {
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  color: #ffffff;
  letter-spacing: 0.02em;
}

.coming-soon p {
  color: #ffffff;
  opacity: 0.8;
  font-style: italic;
  max-width: 26rem;
}

.coming-soon .status {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.coming-soon .back {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.coming-soon .back a {
  color: var(--jet-link);
  text-decoration: none;
}

.coming-soon .back a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 480px) {
  .links {
    flex-direction: column;
    gap: 0;
  }

  .sep {
    display: none;
  }

  .links a {
    min-height: 2.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cosmos,
  #field {
    display: none;
  }
}
