/* ============================================================
   base.css — 리셋 · 팔레트 변수 · 타이포 · 공통 유틸
   ============================================================ */

/* ── CSS 변수 (파스텔 라일락 + 데이지 노랑) ── */
:root {
  --lilac-50:  #F6F1FB;
  --lilac-100: #EFE7F7;
  --lilac-200: #E3D5F0;
  --lilac-300: #C3A9E8;
  --lilac-400: #A98BD8;
  --lilac-500: #8A6FC0;
  --purple-deep: #7E57C2;

  --daisy:    #FBC02D;
  --daisy-soft: #FFE7A3;

  --cream:    #FFFDF9;
  --paper:    #FFFFFF;

  --ink:      #4A4459;   /* 본문 */
  --ink-soft: #837C93;   /* 보조 텍스트 */
  --line:     #EAE3F2;

  --ok:   #6BBF8A;
  --warn: #E48AA0;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(126, 87, 194, 0.10);
  --shadow-sm: 0 4px 14px rgba(126, 87, 194, 0.08);

  --maxw: 460px;              /* 모바일 카드 최대 폭 */
  --font-serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --font-sans:  'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-script: 'Dancing Script', cursive;
}

/* ── 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--lilac-50);
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--ink); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 앱 컨테이너: 데스크톱에서도 모바일 폭 카드 ── */
.app {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--cream);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(126, 87, 194, 0.08);
  overflow: hidden;
  position: relative;
}

/* ── 섹션 공통 ── */
.section {
  padding: 64px 28px;
  position: relative;
}
.section--tight { padding: 44px 28px; }

/* ── 타이포 유틸 ── */
.eyebrow {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--lilac-400);
  text-align: center;
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--purple-deep);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 34px;
}
.text-center { text-align: center; }

/* ── 데이지 구분선 ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px auto;
  color: var(--lilac-200);
}
.divider::before, .divider::after {
  content: '';
  height: 1px;
  width: 54px;
  background: currentColor;
}
.divider img { width: 26px; height: 26px; opacity: 0.9; }

/* ── 버튼 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
  background: var(--lilac-100);
  color: var(--purple-deep);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--lilac-300); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:disabled { background: var(--line); color: var(--ink-soft); cursor: default; box-shadow: none; }
.btn--full { width: 100%; }
.btn--ghost { background: var(--paper); border: 1px solid var(--line); }

/* ── 카드 ── */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

/* ── 스크린리더 전용 ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── 스크롤 등장 애니메이션 ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
