/* ==========================================================================
   Oscilla — base tokens & primitives
   Palette is derived from studio hardware: ink-violet chassis, phosphor
   green trace, magenta peak indicator, amber overload warning.
   ========================================================================== */

:root {
  /* Surface ramp — darkest chassis to lit panel */
  --ink:        #0A0912;
  --ink-2:      #0F0D1A;
  --panel:      #15121F;
  --panel-2:    #1C1829;
  --line:       #2A2340;
  --line-soft:  #201B30;

  /* Signal colours */
  --phosphor:   #4CF2C8;  /* the trace. used with restraint. */
  --hot:        #FF4D8D;  /* peak / primary action */
  --amber:      #FFC46B;  /* overload / warning */
  --violet:     #8B6BFF;

  /* Type colours */
  --chalk:      #EDE9F5;
  --chalk-dim:  #A29CB8;
  --chalk-mute: #676080;

  /* Type stacks */
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --body:    'Inter Tight', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Rhythm */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out-hard: cubic-bezier(.16, 1, .3, 1);
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display face uses Archivo's variable width axis — set wide, not just bold.
   The width is what makes it read as chassis silkscreen rather than a default. */
h1, h2, h3, .display {
  font-family: var(--display);
  font-variation-settings: 'wdth' 118, 'wght' 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.94;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* --- Eyebrow / meta labels: always mono, always measured ------------------ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chalk-mute);
  margin: 0;
}
.eyebrow .tick { color: var(--phosphor); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--chalk);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              transform .18s var(--ease-out-hard), color .18s var(--ease);
}
.btn:hover { background: #241E36; border-color: #3A3157; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--hot);
  border-color: var(--hot);
  color: #17020C;
  font-weight: 700;
}
.btn--primary:hover {
  background: #FF6C9F;
  border-color: #FF6C9F;
  box-shadow: 0 0 0 1px rgba(255,77,141,.35), 0 10px 40px -12px rgba(255,77,141,.7);
}
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.04); }

.btn[disabled] { opacity: .38; pointer-events: none; }

/* Keyboard focus must stay visible everywhere. */
:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Scrollbars, tuned to the chassis ------------------------------------ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2A2340; border-radius: 10px; border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: #3B3159; }

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

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