/* 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-numeral:      oklch(63.5% 0.012 90); /* 카드 번호 — 큰 글자 3:1 */
  --color-neutral:      oklch(48% 0.012 260);
  --color-muted:        oklch(36% 0.014 260);
  --color-ink:          oklch(23% 0.016 260);
  /* 차이(difference) 블렌드 커서 전용 — 순백이어야 아래 색이 정확히 뒤집힌다. 면(surface)에는 쓰지 않는다 */
  --color-invert:       oklch(100% 0 0);
  --color-accent:       oklch(65% 0.155 58);   /* 65%: 종이 위 3:1 (큰 글자·그래픽) 확보 */
  --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.75rem;
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-md:   1.25rem;
  --text-lg:   1.5625rem;
  --text-xl:   1.9531rem;
  --text-2xl:  2.4414rem;
  /* 51–90자 헤드라인용 한 단계 아래 — 두 구절 대구(對句)가 포스터 무게를 유지하도록 */
  --text-display-s: clamp(2.1rem, 4.2vw + 0.6rem, 5rem);
  --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;
}
