/* Direction: Ascent — night-flight cockpit, instrument red on deep navy, technical display type */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #070a12;
  --surface: #0f1522;
  --surface-2: #172030;
  --border: #243044;
  --border-strong: #515459;
  --ink: #eef2f8;
  --muted: #94a3bb;
  --accent: #ff4d58;
  --accent-hover: #ff6871;
  --accent-ink: #070a12;
  --accent-text: #ff8b92;
  --accent-strong: #ffb0b4;
  --accent-soft: #2c1119;
  --accent-border: #772832;
  --success: #35e08f;
  --success-ink: #ffffff;
  --success-soft: #11392e;
  --success-strong: #35e08f;
  --warning: #ffc44d;
  --warning-ink: #ffffff;
  --warning-soft: #3e331f;
  --warning-strong: #ffc44d;
  --danger: #ff4d58;
  --danger-ink: #ffffff;
  --danger-soft: #3e1921;
  --danger-strong: #ff4d58;
  --chart-1: #ff4d58;
  --chart-2: #e3a719;
  --chart-3: #1d9b0b;
  --chart-4: #2ac2cc;
  --chart-5: #3076fd;
  --chart-6: #eb79fe;

  --font-display: "Chakra Petch", "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 700;
  --display-tracking: -0.015em;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --card-pad: 1.25rem;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dcddde;
  --border-strong: #b5b6b8;
  --ink: #070a12;
  --muted: #6a6c71;
  --accent: #ff4d58;
  --accent-hover: #d9414b;
  --accent-ink: #070a12;
  --accent-text: #c73c45;
  --accent-strong: #b7373f;
  --accent-soft: #ffe6e8;
  --accent-border: #ffafb4;
  --success: #35e08f;
  --success-ink: #070a12;
  --success-soft: #e7fbf2;
  --success-strong: #1d7d4f;
  --warning: #ffc44d;
  --warning-ink: #070a12;
  --warning-soft: #fff8ea;
  --warning-strong: #846528;
  --danger: #ff4d58;
  --danger-ink: #070a12;
  --danger-soft: #ffeaeb;
  --danger-strong: #b7373f;
  --chart-1: #ff4d58;
  --chart-2: #ba891a;
  --chart-3: #1a9906;
  --chart-4: #249ea6;
  --chart-5: #2b71f7;
  --chart-6: #d261e5;
}

/* Ascent's own screen: the flight stage, the curve and the plane. */

.x-stage {
  background-color: var(--surface);
  background-image:
    radial-gradient(circle at 15% 85%, var(--accent-soft), transparent 55%),
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to top, var(--border) 1px, transparent 1px);
  background-size:
    100% 100%,
    48px 48px,
    48px 48px;
}

.x-plane {
  transform: translate(-50%, -50%);
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgb(0 0 0 / 0.55));
}

.x-stage[data-flight] .x-plane {
  animation: x-hover 1.1s ease-in-out infinite;
}

html.reduced-motion .x-stage[data-flight] .x-plane {
  animation: none;
}

@keyframes x-hover {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 3px));
  }
}
