:root{
  --brand-ink:   #04042c;
  --brand-rose:  #f471fd;
  --brand-sky:   #c5e3ff;
  --brand-ultra: #080fc2;
  --brand-navy:  #060975;
}

:root,
:root[data-theme="dark"]{
  --paper:      var(--brand-ink);
  --stage:      #000016;
  --surface:    #0a0a3a;
  --text:       #f0f2f5;
  --text-muted: #9aa2b8;
  --rule:       #29354d;
  --accent:     var(--brand-sky);
  --on-accent:  var(--brand-ink);
  --focus:      var(--brand-sky);

  --mark:       var(--brand-rose);
  --mark-quiet: #3a1350;
  --label:      var(--brand-rose);
  --on-mark:    var(--brand-ink);

  --disc-you:   var(--brand-rose);
  --disc-us:    var(--text);
  --disc-empty: #0d0d3d;

  --tape:       #f0f2f5;
  --tape-ink:   var(--brand-ink);
}

:root[data-theme="light"]{
  --paper:      #ffffff;
  --stage:      #f4f4f7;
  --surface:    #ececf2;
  --text:       var(--brand-ink);
  --text-muted: #484d69;
  --rule:       #dcdce5;
  --accent:     var(--brand-ultra);
  --on-accent:  #ffffff;
  --focus:      var(--brand-ultra);

  --mark:       var(--brand-rose);
  --mark-quiet: #fbd5fe;

  --disc-you:   #c026d3;
  --disc-us:    var(--brand-ultra);
  --disc-empty: #e2e2ec;

  --label:      #96108f;
  --on-mark:    var(--brand-ink);

  --tape:       var(--surface);
  --tape-ink:   var(--brand-ink);
}

:root{
  --font: "Stack", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.10vw, 0.84rem);
  --step-0:  clamp(0.94rem, 0.91rem + 0.15vw, 1.05rem);
  --step-1:  clamp(1.13rem, 1.06rem + 0.33vw, 1.38rem);
  --step-2:  clamp(1.35rem, 1.23rem + 0.60vw, 1.81rem);
  --step-3:  clamp(1.62rem, 1.41rem + 1.03vw, 2.38rem);
  --step-4:  clamp(1.94rem, 1.60rem + 1.68vw, 3.13rem);
  --step-5:  clamp(2.33rem, 1.80rem + 2.65vw, 4.11rem);
  --step-6:  clamp(2.80rem, 1.99rem + 4.05vw, 5.40rem);

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --leading-tight: 1.08;
  --leading-snug:  1.28;
  --leading-body:  1.6;

  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.08em;

  --measure: 68ch;
}

:root{
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.25rem;
  --space-xl:  3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 8rem;

  --gutter:  clamp(1.25rem, 0.85rem + 2vw, 3.5rem);
  --section: clamp(3.5rem, 2.2rem + 6.5vw, 8rem);
  --measure-wide: 82rem;
}

:root{
  --radius:      0;
  --radius-pill: 999px;
  --hairline:    1px;

  --handle:        0.5625rem;
  --handle-stroke: 1.5px;

  --hero-cell:     3.5rem;

  --mark-dim: var(--surface);

  --duration-fast: 120ms;
  --duration:      220ms;
  --duration-slow: 420ms;
  --duration-reveal: 700ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --focus-width:  2px;
  --focus-offset: 3px;

  --header-h: 6.5rem;
}

:root{
  --cell: 0.5rem;
  --dot:  calc(var(--cell) * 2);
  --line: calc(var(--cell) * 4);
  --mark-gap: var(--cell);
}

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