/* base.css — 리셋 · 변수 · 기본 요소(h1~h4, a, table, form). 클래스 없이 태그만 다룬다. */
@font-face { font-family: 'Pretendard'; src: url('../fonts/pretendard-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('../fonts/pretendard-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('../fonts/pretendard-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Myeongjo'; src: url('../fonts/nanum-myeongjo-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url('../fonts/playfair-display-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b1c15;
  --bg-deep: #07120d;
  --bg-lift: #0f2a1f;
  --baize: #14503b;
  --baize-hi: #1d6a4d;
  --wood: #3a2216;
  --wood-mid: #5b3a22;
  --brass: #c9a24a;
  --brass-hi: #e5c877;
  --brass-lo: #8d6b27;
  --paper: #f3ead6;
  --paper-dim: #e6dbc1;
  --ink: #17120d;
  --ink-soft: #4a4034;
  --text: #efe7d4;
  --muted: #a8b4a6;
  --line: rgba(201, 162, 74, .28);
  --win: #2f8f5b;
  --loss: #a9473a;
  --ball-white: #f4efe2;
  --ball-yellow: #e8c23a;
  --ball-red: #b8322a;
  --font-body: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-head: 'Myeongjo', 'Nanum Myeongjo', 'Batang', serif;
  --font-latin: 'Playfair', Georgia, serif;
  --radius: 10px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brass-hi); }
b, strong { font-weight: 700; }
small { font-size: .82em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { width: 100%; border-collapse: collapse; }
th { font-weight: 700; text-align: left; }
caption { text-align: left; }
details > summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
input, select { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px; }
input::placeholder { color: var(--muted); }
::selection { background: var(--brass); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
[hidden] { display: none !important; }
