/* TRACE ARKA — Base reset + typography + utilities */

/* ---- Modern reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;   /* 본문 확대 (16→17, 가독성 피드백) */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: clip;   /* 초광폭 셸 100vw 확장 시 세로 스크롤바로 생기는 미세 가로 오버플로 차단 (clip=스크롤 컨테이너 미생성 → sticky 레일 안전) */
}
img, picture, svg, video, canvas { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
a { color: var(--arka-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

/* ---- Heading scale ---- */
h1, .arka-h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }   /* 관리자 .t-h1(1.5rem) 기준 (was 34px) */
h2, .arka-h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); }    /* 관리자 .t-h2(1.25rem) 기준 (was 21px) */
h3, .arka-h3 { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ink); }                            /* 관리자 .t-h3(1.125rem) 기준 (was 13px) */
.arka-card-title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.arka-label { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-4); text-transform: uppercase; }
.arka-micro { font-size: 9px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-5); }
small, .arka-small { font-size: 12px; color: var(--text-3); }

/* ---- Wordmark ---- */
.arka-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
  line-height: 1;
}

/* ---- Scrollbar ---- */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-5); background-clip: content-box; }

/* ---- Utilities ---- */
.muted { color: var(--text-4); }
.muted-2 { color: var(--text-5); }
.accent { color: var(--arka-accent); }
.row { display: flex; flex-direction: row; align-items: center; }
.col { display: flex; flex-direction: column; }
.row-between { display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.spacer { flex: 1 1 auto; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.text-c { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.divider { height: 1px; background: var(--line); border: 0; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* App font enforcement (Korean sub) */
body, input, button, textarea, select { font-family: var(--font-body); }
