/* ============================================
   base.css — 브라우저 기본값 정리·전역 타이포
   ============================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--color-bg-frame);
}

body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

/* 버튼·링크 등 (텍스트 인풋은 border 포커스 — components.css) */
:focus-visible:not(input):not(textarea):not(select) {
  outline: var(--focus-outline-width) solid var(--color-accent);
  outline-offset: var(--focus-outline-offset);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  outline-offset: 0;
}

.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;
}
