/* ds/tokens.css — Connective Corporate System v2 · DataSketchers
   단일 재사용 디자인 토큰 (Light). apps/site·apps/fe·apps/be 전부가 이 토큰을 참조.
   ====================================================================== */
:root {
  /* Brand — Yellow (signature) */
  --ds-brand: #FFD21D;
  --ds-brand-hover: #E8BC00;
  --ds-brand-deep: #B88700;
  --ds-brand-soft: #FFF1A8;
  --ds-brand-bg: #FFFBE8;
  --ds-brand-glow: rgba(255, 210, 29, 0.4);
  --ds-brand-ink: #0a0a0a;

  /* Highlight — 'em' background */
  --ds-highlight: #FFD21D;
  --ds-highlight-soft: #FFF1A8;

  /* Surface — pure white */
  --ds-bg:           #ffffff;
  --ds-bg-subtle:    #f7f7f5;
  --ds-bg-card:      #ffffff;
  --ds-bg-strong:    #0a0a0a;
  --ds-overlay:      rgba(10, 10, 10, 0.55);

  /* Text */
  --ds-text:         #19191a;
  --ds-text-2:       #4d4d4f;
  --ds-text-3:       #7c7c7e;
  --ds-text-on-brand:#0a0a0a;
  --ds-text-on-dark: #fafafa;

  /* Lines — neutral */
  --ds-line:         #e7e5e0;
  --ds-line-strong:  #d4d2cd;
  --ds-line-soft:    #efedea;

  /* Feedback */
  --ds-success: #15a05c;
  --ds-warning: #d97706;
  --ds-error:   #dc2626;

  /* Radius — 카카오 스타일 둥근 */
  --r-xs:    8px;
  --r-sm:    12px;
  --r-md:    20px;
  --r-lg:    28px;
  --r-xl:    36px;
  --r-2xl:   48px;
  --r-pill:  999px;

  /* Shadow — 따뜻한 그림자 */
  --sh-card:       0 2px 8px rgba(20,15,5,.05), 0 1px 2px rgba(20,15,5,.04);
  --sh-card-hover: 0 18px 44px rgba(20,15,5,.09), 0 4px 12px rgba(20,15,5,.05);
  --sh-overlay:    0 28px 80px rgba(20,15,5,.18);
  --sh-brand:      0 14px 32px rgba(217, 179, 28, 0.32);
  --sh-focus:      0 0 0 3px rgba(217, 179, 28, 0.28);

  /* Motion */
  --t-fast:  140ms;
  --t-base:  220ms;
  --t-slow:  380ms;
  --t-page:  640ms;
  --ease-std: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Type */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --font-head: 'Pretendard Variable', Pretendard, -apple-system, system-ui, sans-serif;
  --font-serif: 'Fraunces', 'Instrument Serif', Georgia, serif;

  /* Container */
  --w-article: 760px;
  --w-content: 1080px;
  --w-wide:    1280px;
  --w-full:    1440px;

  /* Header */
  --header-h: 76px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ds-bg); color-scheme: light; }
body { margin: 0; background: var(--ds-bg); color: var(--ds-text); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ds-brand-soft); color: var(--ds-brand-deep); }
:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-xs); }

/* Typography scale */
.ds-display-1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(48px, 7vw, 92px); line-height: 1.04; letter-spacing: -0.03em; }
.ds-display-2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(40px, 5.5vw, 68px); line-height: 1.08; letter-spacing: -0.025em; }
.ds-h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1.15; letter-spacing: -0.02em; }
.ds-h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.015em; }
.ds-h3 { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.ds-h4 { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.35; }
.ds-body-1 { font-size: 18px; line-height: 1.7; }
.ds-body-2 { font-size: 16px; line-height: 1.65; }
.ds-body-3 { font-size: 14px; line-height: 1.6; }
.ds-caption { font-size: 13px; line-height: 1.45; color: var(--ds-text-3); }
.ds-label   { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.ds-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ds-text-2); margin-bottom: 24px; }
.ds-text-soft { color: var(--ds-text-2); }
.ds-text-dim  { color: var(--ds-text-3); }
em.em, .em, h1 em, h2 em, h3 em, .ds-h1 em, .ds-h2 em, .ds-h3 em { font-style: normal; font-weight: inherit; font-family: inherit; color: var(--ds-brand); background: transparent; padding: 0; border-radius: 0; }

/* Markdown rendering (문서 콘텐츠) */
.ds-doc { max-width: var(--w-article); margin: 0 auto; color: var(--ds-text); font-size: 16px; line-height: 1.7; }
.ds-doc h1, .ds-doc h2, .ds-doc h3, .ds-doc h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.015em; color: var(--ds-text); }
.ds-doc h1 { font-size: 34px; border-bottom: 1px solid var(--ds-line); padding-bottom: 12px; }
.ds-doc h2 { font-size: 26px; margin: 40px 0 16px; }
.ds-doc h3 { font-size: 20px; margin: 28px 0 12px; }
.ds-doc p { margin: 16px 0; }
.ds-doc a { color: var(--ds-brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.ds-doc a:hover { color: var(--ds-brand-hover); }
.ds-doc code { background: var(--ds-bg-subtle); color: var(--ds-text); padding: 2px 6px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.9em; }
.ds-doc pre { background: var(--ds-bg-strong); color: var(--ds-text-on-dark); padding: 18px 20px; border-radius: var(--r-sm); overflow: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.ds-doc pre code { background: transparent; color: inherit; padding: 0; }
.ds-doc blockquote { border-left: 4px solid var(--ds-brand); margin: 20px 0; padding: 4px 20px; color: var(--ds-text-2); font-size: 0.96em; }
.ds-doc table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 14px; }
.ds-doc th, .ds-doc td { border: 1px solid var(--ds-line-strong); padding: 10px 14px; text-align: left; }
.ds-doc th { background: var(--ds-bg-subtle); font-weight: 600; }
.ds-doc ul, .ds-doc ol { padding-left: 24px; margin: 16px 0; }
.ds-doc li { margin: 6px 0; }
.ds-doc hr { border: none; border-top: 1px solid var(--ds-line); margin: 40px 0; }
.ds-admonition { border-left: 4px solid var(--ds-brand); background: var(--ds-bg-subtle); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 16px; margin: 20px 0; }

/* Layout helpers */
.ds-container { max-width: var(--w-wide); margin: 0 auto; padding: 0 32px; position: relative; }
.ds-article { max-width: var(--w-article); margin: 0 auto; }
@media (max-width: 768px) { .ds-container { padding: 0 20px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
