:root {
  --bg: #070d1a;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --green: #34d399;
  --text: #e6edf7;
  --muted: #8a9bb5;
  color-scheme: dark;
}

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

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Soft blue and green light drifting behind the text */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(40% 45% at 30% 35%, rgb(59 130 246 / 0.35), transparent 70%),
    radial-gradient(35% 40% at 70% 65%, rgb(52 211 153 / 0.28), transparent 70%),
    radial-gradient(30% 35% at 60% 25%, rgb(34 211 238 / 0.18), transparent 70%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
}

/* A faint grid that fades out towards the edges */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

main {
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  padding-bottom: 0.1em;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 50%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(3rem, 11vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

h1.small {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
}

.note {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgb(34 211 238 / 0.4);
}

.note a:hover,
.note a:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
}

@keyframes drift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora {
    animation: none;
  }
}

/* Windows high-contrast mode: show plain text instead of the gradient */
@media (forced-colors: active) {
  h1 {
    background: none;
    color: CanvasText;
  }
}
