/* base.css — SMACSS 의 Base: 폰트·변수·리셋·요소 기본값. 클래스 선택자는 접근성 보조(.sr .skip)뿐. */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("../fonts/pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap; src: url("../fonts/pretendard-Medium.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("../fonts/pretendard-Bold.woff2") format("woff2"); }
@font-face { font-family: "Gowun Dodum"; font-weight: 400; font-display: swap; src: url("../fonts/gowun-dodum-400.woff2") format("woff2"); }

:root {
  --paper: #f4ecd6;  --paper-2: #ebdfbd;  --card: #fffaf0;
  --ink: #35271a;    --ink-2: #6a5640;    --line: #d8c7a0;
  --soil: #5b3d27;   --soil-2: #3d2918;   --soil-3: #7a5636;
  --leaf: #4c8a3c;   --leaf-d: #2f5d2a;   --leaf-l: #a9d97f;
  --yolk: #f0b429;   --yolk-d: #c98a0a;   --tomato: #d9482b;  --sky: #3b8fc4;
  --head: "Gowun Dodum", "Pretendard", system-ui, sans-serif;
  --body: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --r: 16px;
  --shadow: 3px 4px 0 var(--soil);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--body); word-break: keep-all; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.3; margin: 0 0 .5em; color: var(--soil-2); }
h1 { font-size: clamp(30px, 6vw, 46px); }
h2 { font-size: clamp(22px, 3.4vw, 28px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--leaf-d); text-underline-offset: 3px; }
a:hover { color: var(--soil); }
small { font-size: .84em; color: var(--ink-2); }
b, strong { font-weight: 700; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: var(--paper-2); padding: 2px 8px; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
dl, dd { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--soil-2); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
