@charset "utf-8";

/* ================================================================
   베이스 — 리셋, 본문 기본값, section/.inner 레이아웃
   sticky(헤더, 기사 aside)가 동작하도록 html·body·section·.inner 에는
   overflow: hidden/auto, transform, filter, contain 을 쓰지 않는다.
   가로 넘침을 막아야 할 때는 overflow: clip 을 쓴다.
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--white);
  color: var(--gray-a2);
  font-family: var(--font-base);
  font-size: var(--fs-title3);
  line-height: 1.6;
  font-feature-settings: "case" on;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.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;
}

/* ---------- 레이아웃 ---------- */
/* 내용이 짧은 페이지(검색 등)에서도 푸터가 화면 아래에 붙도록 본문이 남는 높이를 채운다 */
body > main {
  flex: 1 0 auto;
  width: 100%;
}

.sec {
  padding-inline: var(--gutter);
}

.inner {
  width: 100%;
  max-width: var(--inner-max);
  margin-inline: auto;
}

.page {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-top: var(--page-top);
}

/* 아이콘(인라인 SVG, 색은 currentColor) */
.icon {
  flex: none;
  fill: currentColor;
}
