/* ===========================================================
   base.css — 토큰 · 리셋 · 타이포그래피
   LUCKY ROYAL CASINO CLUB
   =========================================================== */

:root {
  /* 배경 */
  --bg:          #07100C;
  --bg-2:        #0A1811;
  --surface:     #0E2A22;
  --surface-2:   #123A2D;
  --line:        rgba(201, 162, 39, .22);
  --line-soft:   rgba(243, 239, 228, .10);

  /* 브랜드 */
  --green:       #0B3A2E;
  --green-dk:    #06211A;
  --gold:        #C9A227;
  --gold-lt:     #E8C86A;
  --gold-dk:     #8C6B1F;
  --red:         #A41E22;

  /* 텍스트 */
  --ink:         #F3EFE4;
  --ink-soft:    #CFCBBE;
  --muted:       #9BA79E;

  /* 형태 */
  --radius:      14px;
  --radius-sm:   8px;
  --maxw:        1200px;
  --maxw-narrow: 820px;
  --gutter:      16px;
  --section-y:   56px;

  /* 폰트 */
  --font-kr: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", Pretendard,
             "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-en: "Playfair Display", "Times New Roman", Georgia, serif;

  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 80px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; --section-y: 96px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-kr);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img, video { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; vertical-align: -0.18em; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-lt); text-decoration: none; }
a:hover { color: var(--gold); }

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

/* ---------- 타이포 ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.85rem, 6.2vw, 3.4rem); line-height: 1.22; }
h2 { font-size: clamp(1.45rem, 4.4vw, 2.3rem); }
h3 { font-size: clamp(1.12rem, 3vw, 1.4rem); }
h4 { font-size: 1rem; }

/* 영문 전용 장식 서체 — 한글에는 쓰지 않는다 */
.en {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: .04em;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--font-en);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  line-height: 1.8;
}

.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.65; }
.xsmall { font-size: .8rem; line-height: 1.6; }
.gold { color: var(--gold-lt); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* ---------- 접근성 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 18px;
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 3px;
  border-radius: 4px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
