/* =====================================================================
   Supercent 브랜드 오버레이 — AppFlowy 셀프호스팅 리브랜딩 (PoC)
   출처: SUPERCENT_v0.1.md / SUPERCENT_ASSETS_v0.1.md 디자인 시스템
   nginx sub_filter로 </head> 직전 주입. 앱 컨테이너는 무수정(완전 가역).
   ===================================================================== */

:root {
  /* --- Supercent 시멘틱 토큰 (SUPERCENT_v0.1.md §2) --- */
  --sc-background: #ffffff;
  --sc-background-inverse: #0b0b0b;
  --sc-foreground: #0b0b0b;
  --sc-foreground-inverse: #ffffff;
  --sc-foreground-weak: #737373;
  --sc-foreground-link: #1aafff;
  /* 시그니처 그라디언트 (섹션당 1회 원칙 — 여기선 로딩 스플래시·포인트 한정) */
  --sc-gradient-brand-h: linear-gradient(90deg, #1b9cff 0%, #6b1bff 42%, #ff19e0 100%);
}

/* --- 타이포: Pretendard 단일 (SUPERCENT_v0.1.md §3) ---
   아이콘 폰트가 자기 요소에 font-family를 직접 지정하므로 body 상속은 텍스트에만 적용됨. */
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
}

/* --- 로딩 스플래시: React가 #root를 채우기 전까지 Supercent 다크 브랜드 화면 ---
   :empty 이므로 앱이 렌더되면 자동 사라짐. */
#root:empty {
  position: fixed;
  inset: 0;
  background: var(--sc-background-inverse);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 9999;
}
#root:empty::before {
  content: "";
  width: 280px;
  height: 64px;
  background: url(/supercent-wordmark.svg) center / contain no-repeat;
}
#root:empty::after {
  content: "Loading workspace…";
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--sc-foreground-weak);
}

/* --- 텍스트 셀렉션 하이라이트를 브랜드 바이올렛으로 (은은한 포인트) --- */
::selection {
  background: rgba(107, 27, 255, 0.28);
}
