/* DIGITHRONEX · The Cut · design tokens
   Source of truth: design/01-creative-direction-the-cut.md.
   Brand colors and the angle are measured from the logo (design/02-logo-check.md). */

:root {
  /* Brand: exact logo values. Instruments only: lines, small solids, never glows or large fills. */
  --brand-azure: #0180FF;
  --brand-cobalt: #0158CF;

  /* The brand angle: the logo's cut. Pending DIGITHRONEX's confirmation (the direction doc still says 42°). */
  --angle: 45deg;
  --angle-tan: 1; /* tan(--angle); keep in step with --angle */

  /* Screening room: for looking. Graphite, not black. */
  --d-ground: #0B0C0E;
  --d-surface: #121418;
  --d-raised: #1A1D22;
  --d-line: #2A2E35;
  --d-text: #F1F2F4;
  --d-text2: #A3A9B2;
  --d-text3: #7A808A;
  --d-signal: #3D96FF; /* small signal text on graphite, 6.5:1 */
  --d-select: #0A2344;

  /* Studio: for thinking. A cool calibrated white, not cream. */
  --s-ground: #F1F2F4;
  --s-surface: #FFFFFF;
  --s-raised: #E7E9EC;
  --s-line: #D5D8DD;
  --s-text: #0B0C0E;
  --s-text2: #474C54;
  --s-text3: #666C75;
  --s-signal: #0158CF; /* the logo's cobalt, 5.7:1 on the studio ground */
  --s-select: #E3ECFB;

  /* Type: Mona Sans (width is the voice), Martian Mono for data, Pinyon Script for rare accents */
  --font-sans: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --font-accent: "Pinyon Script", "Snell Roundhand", cursive;

  /* Time: 24 frames a second. Durations are written as frames: calc(12 * var(--f)). */
  --f: 41.667ms;
  --ease-ramp: cubic-bezier(.72, 0, .18, 1);
  --ease-snap: cubic-bezier(.2, .8, .2, 1);
  --ease-focus: cubic-bezier(.3, .6, .1, 1);
  --ease-spring: cubic-bezier(.3, 1.35, .6, 1); /* liquid objects only */

  /* Layout */
  --margin: clamp(20px, 4.5vw, 80px);
  --maxw: 1680px;
  --gutter: 24px;
  --radius-control: 3px;
  --radius-chip: 2px;
  --cut-s: 10px;
  --cut-m: 16px;
  --cut-l: 24px;

  /* Glass that behaves like glass: lit bevel, dispersion, body, shadow, sheen, clarity, etch */
  --glass-rim: inset 1px 1px 0 rgba(255, 255, 255, .55), inset -1px -1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .10);
  --glass-disp: inset 2px 0 1px -1px rgba(255, 96, 120, .24), inset -2px 0 1px -1px rgba(64, 168, 255, .28);
  --glass-body: inset 0 -12px 20px -14px rgba(0, 0, 0, .5), inset 0 0 24px rgba(1, 128, 255, .09);
  --glass-drop: 0 22px 44px -24px rgba(0, 0, 0, .8), 0 2px 6px -2px rgba(0, 0, 0, .35);
  --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .03) 34%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .05) 100%);
  --glass-clear: blur(1.5px) saturate(1.35) brightness(1.06) contrast(1.06);
  --glass-etch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

@media (max-width: 1024px) { :root { --gutter: 16px; } }
@media (max-width: 640px) { :root { --gutter: 12px; } }
