/* tokens.css — the Starforge visual layer (the "skin").
 *
 * THE SWAPPABLE LAYER: a future reframe edits THIS file (and component CSS that
 * references these variables) — not the structure or logic. Grounded in the
 * Session-4 Prime-reframe language (mockups/starforge-core-session4/forge.css):
 * cosmic / stellar / strategic-industrial. NEVER medieval, NEVER nautical.
 *
 * Anything visual a component needs should resolve to a var() declared here, so
 * the whole product can be reskinned by replacing this token set.
 */

:root {
  /* ── palette ─────────────────────────────────────────────── */
  --bg: #04050c;
  --bg2: #070a18;
  --violet: #8b8bff;
  --violet-dim: rgba(139, 139, 255, .16);
  --violet-line: rgba(139, 139, 255, .22);
  --cyan: #36d6e0;
  --heat: #ffb24d;
  --heat2: #ff7a3c;
  --kernel: #ffd27a;

  --ink: #e8eaff;
  --ink2: #aeb4d8;
  --ink3: #6b7099;

  --built: #5fd0a0;
  --planned: #454b6e;

  --panel: rgba(140, 150, 210, .045);
  --panel-line: rgba(150, 160, 220, .14);
  --panel-solid: rgba(10, 14, 30, .4);

  /* ── geometry ────────────────────────────────────────────── */
  --r: 14px;
  --r2: 10px;

  /* ── chrome bands (Director 2026-07-09) — the STANDARD reserved header/footer dimensions. Surface
     Studio reserves exactly these; the real surface headers/footers conform → authoring == render. */
  --chrome-header-h: 50px;
  --chrome-footer-h: 34px;

  /* ── type ────────────────────────────────────────────────── */
  --mono: "Geist Mono", ui-monospace, monospace;
  --sans: "Geist", system-ui, sans-serif;
}

/* ── base ──────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(139, 139, 255, .16), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(54, 214, 224, .10), transparent 55%),
    radial-gradient(700px 500px at 50% 50%, rgba(255, 178, 77, .05), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* faint starfield */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 60%, #cdd, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff, transparent),
    radial-gradient(1px 1px at 85% 22%, #bcd, transparent),
    radial-gradient(1px 1px at 12% 68%, #fff, transparent);
  background-size: 520px 520px, 400px 400px, 600px 600px, 300px 300px, 480px 480px;
}

/* ── shared primitives (the reusable vocabulary) ───────────── */
.mono { font-family: var(--mono); }

.cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink3);
}

.sf-panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--r);
  backdrop-filter: blur(4px);
}

.sf-brand {
  font-family: var(--mono);
  letter-spacing: .34em;
  font-size: 13px;
  color: var(--ink);
  text-transform: uppercase;
}
.sf-brand i { color: var(--heat); font-style: normal; }

/* the Kernel — the glowing forged mote, Starforge's signature glyph */
.kernel {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff, var(--kernel) 38%, var(--heat2) 78%);
  box-shadow: 0 0 14px var(--kernel), 0 0 30px rgba(255, 140, 60, .5);
  display: inline-block;
  vertical-align: middle;
}
.kernel--sm { width: 13px; height: 13px; }
.kernel--lg { width: 40px; height: 40px; box-shadow: 0 0 26px var(--kernel), 0 0 60px rgba(255, 140, 60, .55); }

/* primary action */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--heat);
  color: #1a1206;
  background: linear-gradient(180deg, var(--kernel), var(--heat));
  font-family: var(--sans);
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
}
.cta:hover { filter: brightness(1.06); }
.cta:active { transform: translateY(1px); }
.cta:disabled { opacity: .55; cursor: default; filter: none; transform: none; }

/* text field */
.field {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r2);
  border: 1px solid var(--panel-line);
  background: var(--panel-solid);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field::placeholder { color: var(--ink3); }
.field:focus {
  border-color: var(--violet-line);
  box-shadow: 0 0 0 3px var(--violet-dim);
}

/* ── scrollbars (global · clean, aligned to the visuals) ──────
 * The app-wide default: thin, track-less, a soft violet thumb that brightens on
 * hover. Applied uniformly so no surface needs to restyle its own scrollbars. */
* { scrollbar-width: thin; scrollbar-color: rgba(139, 139, 255, .3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(139, 139, 255, .24);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(139, 139, 255, .42); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
