/* ==========================================================================
   Dedicated, LLC — Design Tokens
   The single source of truth for color, type, space, and motion.
   Nothing in the site should hardcode a value that belongs here.

   DECIDED
     Wordmark   Plain — no flourish. The diagonal lives in the layout instead;
                see --seam below.
     Typeface   Instrument Sans
     Accent     Signal Orange #FF4D17
     Direction  "Signal" — scale and restraint. See proto/b.php.
   ========================================================================== */

:root {

  /* ---- Ink scale -------------------------------------------------------
     Near-black with a slight cool cast. Pure #000 reads cheap and crushes
     shadow detail; these keep depth while still feeling genuinely dark.   */

  --ink-1000: #050608;   /* deepest — hero wells, overlays                 */
  --ink-900:  #0A0B0D;   /* page background                                */
  --ink-800:  #101216;   /* raised surface — cards                         */
  --ink-700:  #171A1F;   /* raised surface — hover                         */
  --ink-600:  #22262D;   /* borders, dividers                              */
  --ink-500:  #333941;   /* strong border, disabled text                   */
  --ink-400:  #565E6B;   /* muted text on dark                             */
  --ink-300:  #7C8593;   /* secondary text                                 */
  --ink-200:  #A8B0BC;   /* body text on dark                              */
  --ink-100:  #D4D9E0;   /* emphasis text                                  */

  --paper:    #F4F5F7;   /* light surfaces, inverted sections              */
  --paper-2:  #E4E6EA;

  /* ---- Accent -----------------------------------------------------------
     Signal Orange. Industrial and warm — machinery, safety markings,
     precision equipment. One accent, used sparingly enough that it still
     means something when it appears.
     Runners-up kept only as a record: Acid #C6F24E, Arc Blue #4DA3FF.      */

  --accent: #FF4D17;
  --accent-ink: var(--ink-1000);   /* text color when sitting ON the accent */

  /* ---- Semantic --------------------------------------------------------- */

  --bg:          var(--ink-900);
  --bg-raised:   var(--ink-800);
  --text:        var(--ink-200);
  --text-strong: var(--paper);
  --text-muted:  var(--ink-400);
  --border:      var(--ink-600);

  /* ---- Type ------------------------------------------------------------
     One family, three weights. Discipline here is most of what separates a
     designed site from an assembled one.                                   */

  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --w-regular: 400;
  --w-medium:  500;
  --w-tight:   600;

  /* Fluid display sizes — min at 380px viewport, max at 1600px */
  --t-display: clamp(3.25rem, 1.2rem + 8.6vw, 8.5rem);
  --t-h1:      clamp(2.5rem,  1.3rem + 5.0vw, 5.5rem);
  --t-h2:      clamp(1.875rem, 1.2rem + 2.8vw, 3.25rem);
  --t-h3:      clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  --t-lead:    clamp(1.125rem, 1.0rem + 0.6vw, 1.4375rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-micro:   0.75rem;    /* eyebrows, labels — always uppercase + tracked */

  --lh-display: 0.92;
  --lh-heading: 1.05;
  --lh-body:    1.6;

  --track-display: -0.035em;
  --track-heading: -0.02em;
  --track-body:     0;
  --track-micro:    0.14em;

  /* ---- Space — 4px base, roughly 1.5x steps ---------------------------- */

  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;
  --s-11: 12rem;

  /* Vertical rhythm between major page sections */
  --section-y: clamp(5rem, 3rem + 8vw, 11rem);

  /* ---- Layout ----------------------------------------------------------- */

  --measure: 68ch;                 /* max width for reading text */
  --container: 1440px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 4rem);

  /* ---- Motion ----------------------------------------------------------
     Slow and eased. Fast/bouncy motion is the fastest way to read amateur. */

  /* ---- The seam ---------------------------------------------------------
     The wordmark is plain, so the diagonal cut migrates into the layout and
     becomes the signature device: one angle, used everywhere, never varied.
     Rules, section transitions, image masks, hover reveals.                */

  --seam: -34deg;
  --seam-clip: 2.5vw;   /* vertical travel of an angled section edge */

  /* ---- Motion ----------------------------------------------------------- */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur:      420ms;
  --dur-slow: 900ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 1ms; --dur: 1ms; --dur-slow: 1ms; }
}
