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

* {
  line-height: calc(1em + 4px);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrap {
  min-width: 1388px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

label {
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  font-weight: 400;
}

em, i {
  font-style: normal;
}

strong, b {
  font-weight: 700;
}

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

:focus-visible {
  outline: 2px solid var(--color-brand-ring);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

html.using-mouse input:focus-visible,
html.using-mouse textarea:focus-visible {
  outline: none;
}

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

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

/* input[type="search"] 브라우저 기본 X(clear) 아이콘 제거 — 커스텀 .field-clear 만 사용 */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"] {
  -webkit-appearance: textfield;
  appearance: textfield;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 8px 12px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  top: 16px;
}

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
