/* Ground Control theme: Launchpad's fonts, rocket mark and void colours, with yellow as the launch colour. */
@font-face { font-family: "Red Hat Display"; src: url(/static/RedHatDisplay.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url(/static/RedHatText.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --display: "Red Hat Display", system-ui, sans-serif;
  --text: "Red Hat Text", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --launch: #ffd23f; --launch-deep: #ffb800; --on-launch: #14041f; --void: #14041f;
  --bg: #f6f3fb; --glow: rgba(255, 210, 63, .30); --card: #fff; --field: #f6f3fb;
  --ink: #1b0f2e; --muted: #6f6284; --line: rgba(27, 15, 46, .12); --line-strong: rgba(27, 15, 46, .22);
  --track: #ebe6f3; --bad: #b42318; --focus: #1b0f2e;
  --lift: 0 1px 2px rgba(27, 15, 46, .05), 0 14px 34px -18px rgba(27, 15, 46, .22);
}
/* Dark follows the device, unless the owner picked Light or Dark in Settings (data-theme on <html>).
   Dark is midnight blue; data-dark="purple" brings back Launchpad's void purple for anyone who wants it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #060c1b; --glow: rgba(255, 210, 63, .12); --card: #0e192f; --field: #060c1b;
    --ink: #eef3fc; --muted: #a2b2cf; --line: rgba(150, 182, 255, .16); --line-strong: rgba(150, 182, 255, .30);
    --track: #1a2846; --bad: #ff8b7b; --focus: #ffd23f;
    --lift: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 50px -28px rgba(0, 0, 0, .7);
  }
  :root[data-dark="purple"]:not([data-theme="light"]) {
    --bg: #14041f; --glow: rgba(255, 210, 63, .14); --card: #1d0a2e; --field: #14041f;
    --ink: #f6f3fb; --muted: #b3a6cc; --line: rgba(196, 181, 253, .16); --line-strong: rgba(196, 181, 253, .30);
    --track: #2e1846;
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060c1b; --glow: rgba(255, 210, 63, .12); --card: #0e192f; --field: #060c1b;
  --ink: #eef3fc; --muted: #a2b2cf; --line: rgba(150, 182, 255, .16); --line-strong: rgba(150, 182, 255, .30);
  --track: #1a2846; --bad: #ff8b7b; --focus: #ffd23f;
  --lift: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 50px -28px rgba(0, 0, 0, .7);
}
:root[data-theme="dark"][data-dark="purple"] {
  --bg: #14041f; --glow: rgba(255, 210, 63, .14); --card: #1d0a2e; --field: #14041f;
  --ink: #f6f3fb; --muted: #b3a6cc; --line: rgba(196, 181, 253, .16); --line-strong: rgba(196, 181, 253, .30);
  --track: #2e1846;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.5 var(--text);
  background: radial-gradient(900px 440px at 50% -180px, var(--glow), transparent 70%) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--launch); color: var(--on-launch); }

/* The rocket mark on its void tile, followed by the name */
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.2rem/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand span { color: var(--muted); font-weight: 600; }

.eyebrow { margin: 0 0 8px; font: 700 .72rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

input, select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--field);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; min-height: 48px; width: 100%;
}
input:focus-visible, select:focus-visible { outline-offset: 0; }

/* Launch button: yellow, fills deeper from the bottom on hover while the rocket lifts off */
.launch {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--display); letter-spacing: .01em; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 12px; cursor: pointer; overflow: hidden;
  color: var(--on-launch); background-color: var(--launch);
  background-image: linear-gradient(var(--launch-deep), var(--launch-deep)); background-repeat: no-repeat;
  background-position: 50% 100%; background-size: 100% 0%;
  box-shadow: 0 10px 26px -14px rgba(255, 184, 0, .85);
  transition: background-size .32s var(--ease-out), transform .18s var(--ease-out), box-shadow .25s ease;
}
.launch:hover:not(:disabled), .launch:focus-visible { background-size: 100% 100%; }
.launch:active:not(:disabled) { transform: translateY(1px); }
.launch:disabled { opacity: .45; cursor: default; box-shadow: none; }
.launch svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.launch:hover:not(:disabled) svg, .launch:focus-visible svg, .launch.lift svg { animation: liftoff .7s cubic-bezier(.5, 0, .2, 1) both; }
@keyframes liftoff {
  0% { transform: translateY(0); opacity: 1; }
  20% { transform: translateY(.14em); opacity: 1; }
  52% { transform: translateY(-1.9em); opacity: 0; }
  53% { transform: translateY(1.9em); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.ghost {
  font: 600 .95rem/1 var(--text); color: var(--muted); background: none; border: 1px solid transparent;
  border-radius: 10px; padding: 0 14px; min-height: 44px; cursor: pointer;
}
.ghost:hover { color: var(--ink); border-color: var(--line-strong); }

@media (prefers-reduced-motion: reduce) {
  .launch { transition: none; }
  .launch svg { animation: none !important; }
}
