/* CIPHER 베이스 — 리셋 + 전역 규칙. 색·크기는 tokens.css 변수만. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
img, svg, video, canvas { max-width: 100%; }

body {
  background: var(--bg-0);        /* 단색. 그라디언트 배경 금지. */
  color: var(--text-1);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--text-2); text-decoration: none; transition: color var(--dur-1) var(--ease); }
a:hover { color: var(--text-1); }

button { font-family: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: var(--lh-tight); text-wrap: balance; }
p { margin: 0; }

::selection { background: var(--accent-soft); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* 스크롤바 */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-full); }
*::-webkit-scrollbar-track { background: transparent; }

/* 유틸 */
.mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; }
.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;
}
