/* 붙임(moim) — 디자인 시스템 정본.
 * 이름은 Tailwind 4 @theme 이름공간 그대로다 — 승급 때 이 블록을 globals.css 의 @theme 으로 옮긴다.
 * style.css 는 여기 있는 var() 만 쓴다. 대비 실측은 `node build.mjs --contrast moim` · _design/DESIGN.md 대비표.
 * 원칙: 칸은 직각(radius 0) + 3px 먹선 · 스티커·아바타·버튼만 둥글다 · 진달래는 "붙는 순간" 에만.
 */
:root {
  /* ── 색 ─────────────────────────────────────────────── */
  /* 바탕 — 연두. 종이색(C ≤ 0.06 · h 40–120°) 밖이고 기존 바탕과 ΔE ≥ 0.081 */
  --color-bg: #dcf5b8;
  /* 게시판 칸 — 순백은 칸에만, 바탕으로 쓰지 않는다 */
  --color-surface: #ffffff;
  /* 연분홍 — 내가 참가한 행·선택된 칸의 면(글자는 먹) */
  --color-surface-tint: #fcdced;

  /* 글자 */
  --color-ink: #131a12;
  --color-ink-soft: #44523f;
  /* 진달래 — 참가·좋아요·마감 임박·포커스에만. 넓은 면 금지(한 화면 ≤ 10%) */
  --color-accent: #c2127a;
  /* 진달래·먹 면 위 글자 */
  --color-on-accent: #ffffff;
  --color-on-ink: #dcf5b8;

  /* 스티커 면(plate) — 모임의 얼굴. 글자·버튼 색으로 쓰지 않는다 */
  --color-plate-berry: #c2127a;
  --color-plate-butter: #ffd84a;
  --color-plate-sky: #9ed4ff;
  --color-plate-white: #ffffff;
  --color-plate-ink: #131a12;

  /* 선 */
  --color-line: #131a12;
  /* 스티커 시트 칼선·점선 — 장식. 글자·필수 경계에 쓰지 않는다 */
  --color-cutline: #9cc473;
  --color-focus: #c2127a;

  /* ── 서체 (서가: /_shared/fonts/jua/font.css · /_shared/pretendard.css) ── */
  --font-display: "Jua", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;

  /* ── 글자 크기 — Jua 는 --text-xl(22px) 이상에서만 ── */
  --text-xs: 0.8125rem;
  --text-xs--line-height: 1.4;
  --text-sm: 0.875rem;
  --text-sm--line-height: 1.5;
  --text-base: 1rem;
  --text-base--line-height: 1.65;
  --text-lg: 1.125rem;
  --text-lg--line-height: 1.5;
  --text-xl: 1.375rem;
  --text-xl--line-height: 1.3;
  --text-2xl: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
  --text-2xl--line-height: 1.2;
  --text-time: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  --text-time--line-height: 1;
  --text-3xl: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  --text-3xl--line-height: 1.15;
  --text-display: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  --text-display--line-height: 1.12;

  /* ── 간격 — 4px 척도 + 이름 붙은 길이 ── */
  --spacing: 0.25rem;
  --spacing-line: 2px;
  --spacing-line-bold: 3px;
  --spacing-kiss: 4px;
  --spacing-cell: 1.25rem;
  --spacing-cell-lg: 1.75rem;
  --spacing-gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --spacing-section: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --spacing-rail: 18rem;
  --spacing-content: 68rem;
  --spacing-tap: 2.75rem;
  --spacing-sticker-sm: 2.75rem;
  --spacing-sticker-md: 4.5rem;
  --spacing-sticker-lg: 6.5rem;
  --spacing-sticker-xl: 10rem;

  /* ── 모서리 — 칸은 none, 둥근 것은 스티커 가족뿐 ── */
  --radius-none: 0;
  --radius-pill: 999px;
  --radius-round: 50%;
  --radius-squircle: 28%;

  /* ── 그림자 — 0-blur 오프셋만. 스티커·참가 버튼에만(칸에는 없음) ── */
  --shadow-none: none;
  --shadow-sticker: 3px 3px 0 0 var(--color-ink);
  --shadow-lift: 5px 5px 0 0 var(--color-ink);
  --shadow-press: 0 0 0 0 var(--color-ink);
  /* 아바타의 칼선 테두리: 흰 여백 4px + 먹 2px */
  --shadow-kiss: 0 0 0 var(--spacing-kiss) var(--color-plate-white), 0 0 0 calc(var(--spacing-kiss) + var(--spacing-line)) var(--color-ink);

  /* ── 이징 — 길이는 DESIGN.md 모션 규칙(120 · 180 · 240 · 320ms) ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* impeccable-disable-next-line bounce-easing: DESIGN.md 모션 규칙의 Pop in — 스티커가 참가자 판·출석판에 '살짝 넘치며 붙는' 한 번의 넘침(Follow-through). 반복하지 않고, 붙는 순간(참가·좋아요·첫 로드 무더기)에만 쓴다 */
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-press: cubic-bezier(0.2, 0, 0, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
