/* bitflip — design tokens
 * theme: custom "paper & probe" — 따뜻한 종이 위 점묘 오브젝트, 에디토리얼 세리프
 */
:root {
  /* ── colour ── */
  --color-paper:        oklch(96.5% 0.007 90);
  --color-paper-2:      oklch(93.5% 0.009 90);
  --color-paper-3:      oklch(90% 0.010 90);
  --color-rule:         oklch(85% 0.010 90);
  --color-rule-strong:  oklch(74% 0.012 90);
  --color-neutral:      oklch(48% 0.012 260);
  --color-muted:        oklch(36% 0.014 260);
  --color-ink:          oklch(23% 0.016 260);
  --color-accent:       oklch(66% 0.155 58);
  --color-accent-deep:  oklch(52% 0.135 50);
  --color-accent-ink:   oklch(97% 0.02 85);
  --color-focus:        oklch(52% 0.135 50);

  /* ── type ── */
  --font-display: "Fraunces", "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --font-body:    "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --text-xs:   0.6875rem;
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-md:   1.25rem;
  --text-lg:   1.5625rem;
  --text-xl:   1.9531rem;
  --text-2xl:  2.4414rem;
  --text-display-s: clamp(2rem, 3.5vw + 1rem, 3.4rem);
  --text-display:   clamp(3rem, 8.6vw + 0.5rem, 8.4rem); /* Marquee: 폴드를 채우는 타이포 */
  --text-mail:      clamp(1.4rem, 4.5vw, 3rem);

  /* ── space (4pt) ── */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  --page-gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 62ch;

  /* ── motion ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long:  420ms;

  /* ── depth ── */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 200;
  --z-nav: 300;
  --z-cursor: 700;

  --rule-hair: 1px;
  --radius-pill: 999px;
  --radius-sm: 6px;
  --radius-md: 12px;
}
