:root {
  color-scheme: dark light;
  --novamx-nova-blue: #0a1a2f;
  --novamx-midnight-navy: #08121f;
  --novamx-arctic-white: #f5f7fa;
  --novamx-eu-gold: #c9a86a;
  --novamx-steel-grey: #2e3a45;
  --novamx-bg: #08121f;
  --novamx-surface: #0c1a2b;
  --novamx-text: #eaf0f6;
  --novamx-text-muted: #b9c6d4;
  --novamx-border: #223a52;
  --novamx-accent: var(--novamx-eu-gold);
  --novamx-font-sans: Inter, "Segoe UI", sans-serif;
  --site-bg-dark: image-set(
    url("novamx-welcome/site-background-dark.webp") type("image/webp"),
    url("novamx-welcome/site-background-dark.jpg") type("image/jpeg")
  );
  --site-bg-light: image-set(
    url("novamx-welcome/site-background-light.webp") type("image/webp"),
    url("novamx-welcome/site-background-light.jpg") type("image/jpeg")
  );
  --site-bg-image: var(--site-bg-dark);
  --site-bg-scrim: rgba(8, 18, 31, 0.72);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --novamx-bg: #f5f7fa;
    --novamx-surface: #ffffff;
    --novamx-text: #0a1a2f;
    --novamx-text-muted: #2e3a45;
    --novamx-border: #d7dee6;
    --site-bg-image: var(--site-bg-light);
    --site-bg-scrim: rgba(245, 247, 250, 0.16);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--novamx-font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--novamx-text);
  background-color: var(--novamx-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--novamx-bg);
  background-image:
    linear-gradient(var(--site-bg-scrim), var(--site-bg-scrim)),
    var(--site-bg-image);
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  padding: 0.45rem 0.7rem;
  background: var(--novamx-surface);
  color: var(--novamx-text);
  border-radius: 0.4rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.nx-wrap {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.nx-brand {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.75rem;
}

.nx-logo {
  width: min(156px, 42vw);
  height: auto;
  max-height: 85px;
  object-fit: contain;
}

.nx-logo-light {
  display: none;
}

@media (prefers-color-scheme: light) {
  .nx-logo-dark { display: none; }
  .nx-logo-light { display: block; }
}

.nx-hero,
.nx-next {
  background: var(--novamx-surface);
  border: 1px solid var(--novamx-border);
  border-radius: 0.85rem;
  padding: 1.5rem 1.35rem 1.35rem;
}

.nx-kicker {
  margin: 0 0 0.4rem;
  color: var(--novamx-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.nx-lede, .nx-host, p {
  margin: 0 0 0.85rem;
}

.nx-host {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  word-break: break-all;
  color: var(--novamx-accent);
}

.nx-next {
  margin-top: 1.25rem;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

ol {
  margin: 0;
  padding-left: 1.15rem;
}

li { margin: 0 0 0.45rem; }

a {
  color: inherit;
  text-decoration-color: var(--novamx-accent);
  text-underline-offset: 0.18em;
}

a:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--novamx-accent);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.nx-foot {
  margin-top: 1.5rem;
  color: var(--novamx-text-muted);
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
