/* 리셋 + 타이포 기반 */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  color: var(--c-text);
  background: var(--c-app-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
p { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent-text); }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol { padding: 0; margin: 0; list-style: none; }

/* 타이포 헬퍼 */
.text-h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.2; }
.text-h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.3; }
.text-h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
.text-body { font-size: var(--fs-body); line-height: 1.55; }
.text-small { font-size: var(--fs-small); line-height: 1.55; }
.text-bold { font-weight: 700; }
.text-muted { color: var(--c-text-muted); }
.text-secondary { color: var(--c-text-secondary); }
.text-accent { color: var(--c-accent-text); }
.text-success { color: var(--c-success); }
.text-warning { color: var(--c-warning); }
.text-danger { color: var(--c-danger-text); }
.text-mono { font-family: var(--f-mono); }

/* 스크롤바 (라이트) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #CBD5E1; border-radius: 5px; border: 2px solid var(--c-app-bg);
}
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* 포커스 링 */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* 유틸 */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.truncate {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
