/* ==========================================================
   SKILLCHAIN  |  Shared design system (load on every screen)
   Display: Bricolage Grotesque  |  Body: Manrope
   ========================================================== */

:root {
  /* Brand */
  --ink:        #0B0B0C;
  --ink-2:      #161618;
  --ink-3:      #242427;
  --brand:      #FF4D1C;
  --brand-deep: #E03A0C;
  --brand-tint: rgba(255, 77, 28, 0.12);

  /* Surfaces */
  --bone:       #F5F3EE;
  --white:      #FFFFFF;
  --line:       rgba(11, 11, 12, 0.1);
  --line-inv:   rgba(245, 243, 238, 0.14);

  /* Text */
  --text:       #0B0B0C;
  --text-2:     rgba(11, 11, 12, 0.62);
  --text-3:     rgba(11, 11, 12, 0.4);
  --text-inv:   #F5F3EE;
  --text-inv-2: rgba(245, 243, 238, 0.62);

  /* Status */
  --success:    #12A150;
  --danger:     #D92D20;

  /* Type */
  --f-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --f-body:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape and spacing */
  --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-xl: 32px;
  --gutter: 20px;

  /* Safe areas (notch and gesture bar) */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  height: 100%;
}

body {
  min-height: 100%;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea { -webkit-user-select: text; user-select: text; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 56px; padding: 0 24px;
  font-family: var(--f-body); font-size: 1rem; font-weight: 700; letter-spacing: 0.005em;
  border-radius: var(--r-m);
  transition: transform 0.18s var(--ease-out), background-color 0.18s ease, opacity 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:active { background: var(--brand-deep); }
.btn--dark    { background: var(--ink); color: var(--text-inv); }
.btn--ghost   { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
