/* 리셋·기본 요소 (글꼴 @font-face는 fonts.css) */

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

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

body {
  margin: 0;
  position: relative;
  background: #FFFFFF;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.is-menu-open {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--navy-hover);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: #FFFFFF;
  font-weight: 700;
}

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

/* 모바일 하단 고정 바만큼 본문 아래 여백 */
@media (max-width: 767px) {
  body {
    padding-bottom: var(--bottom-bar-h);
  }
}
