/* ══════════════════════════════════════════════════════════════
   아기랑 디자인 v2 — "에디토리얼" (2026-10-08, 사장님 시안1 채택)
   기존 style.css 다음에 불러서 겉모습만 바꾼다(페이지 동작 코드는 그대로).
   색: 종이 #F6F3EE · 잉크 #1C1B18 · 테라코타 #B4532A · 정보 블루 #2D5B88 (적녹 대비 없음)
   글꼴: 본문 Pretendard · 제목 Noto Serif KR
══════════════════════════════════════════════════════════════ */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@500;600;700&display=swap');

:root {
  /* 새 토큰 */
  --paper: #F6F3EE; --paper-2: #EFEAE2; --surface: #FFFFFF;
  --ink: #1C1B18; --ink-2: #55514A; --ink-3: #8B867C;
  --line: #E3DDD2; --line-2: #ECE7DF;
  --accent: #B4532A; --accent-2: #933F1C; --accent-soft: #F4E7DE;
  --blue: #2D5B88; --blue-soft: #E8EEF5;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  /* 기존 변수 → 새 팔레트 (style.css 전체가 이 값을 따라감) */
  --color-primary: #B4532A;
  --color-primary-light: #D98B66;
  --color-primary-dark: #933F1C;
  --color-secondary: #2D5B88;
  --color-secondary-light: #7FA0BF;
  --color-bg: #F6F3EE;
  --color-card: #FFFFFF;
  --color-beige: #EFEAE2;
  --color-mint-light: #E8EEF5;
  --color-text: #1C1B18;
  --color-text-muted: #8B867C;
  --color-border: #E3DDD2;
  --font-main: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── 헤더 ── */
.nav-header {
  background: rgba(246, 243, 238, 0.92) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.nav-inner { max-width: 1200px; height: 66px; }
.logo img { height: 34px !important; width: auto !important; display: block; }
.nav-links a {
  color: var(--ink-2) !important; font-weight: 500 !important; font-size: 15px;
  background: none !important; border-radius: 0; padding: 6px 2px; margin: 0 10px;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover { color: var(--ink) !important; }
.nav-links a.is-active, .nav-links a[aria-current="page"] { color: var(--ink) !important; border-bottom-color: var(--accent); }
.nav-search-center input {
  background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 999px !important;
}
.nav-search-center input:focus { border-color: var(--ink-3) !important; }
#nav-auth-area .btn,
#nav-auth-area button[onclick="loginWithKakao()"] {
  background: none !important; color: var(--ink) !important; border: 1px solid var(--ink) !important;
  border-radius: 999px !important; padding: 7px 16px !important; font-weight: 600 !important; font-size: 14px !important;
}
#nav-auth-area button[onclick="loginWithKakao()"]:hover { background: var(--ink) !important; color: var(--paper) !important; }
#nav-auth-area a { color: var(--ink-2) !important; }

/* ── 제목 ── */
.section-title, .page-title, .hero-title, .detail-title {
  font-family: var(--serif);
  font-weight: 600 !important;
  letter-spacing: -0.025em;
}
.hero-title em { color: var(--accent); }
.section-label { font-weight: 700; letter-spacing: -0.01em; }

/* ── 버튼 ── */
.btn { border-radius: 12px; font-weight: 600; letter-spacing: -0.01em; }
.btn-orange, .btn-primary { background: var(--ink) !important; color: var(--paper) !important; border: 0 !important; }
.btn-orange:hover, .btn-primary:hover { background: #000 !important; transform: none; }
.btn-mint { background: var(--blue) !important; color: #fff !important; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink-3) !important; }
.btn-outline:hover { background: var(--surface); border-color: var(--ink) !important; }
.btn-ghost { background: var(--paper-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line-2); }

/* ── 카드 ── */
.card {
  border-radius: 14px; border: 1px solid var(--line-2); box-shadow: none; background: var(--surface);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(28, 27, 24, 0.35); }
.card-img { border-radius: 14px 14px 0 0; }
.card-title { font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.card-subtitle { color: var(--ink-3); }
.stars, .review-stars { color: var(--accent) !important; }
.rating-num { color: var(--ink-2); }
.reason-badge {
  background: var(--paper-2) !important; color: var(--ink-2) !important; border: 0 !important;
  border-radius: 999px !important; font-weight: 500 !important;
}

/* ── 칩·태그·배지 ── */
.filter-chip, .filter-chip-sm {
  border: 1px solid var(--line) !important; background: var(--surface); color: var(--ink-2); border-radius: 999px;
}
.filter-chip:hover, .filter-chip-sm:hover { border-color: var(--ink-3) !important; }
.filter-chip.active, .filter-chip-sm.active {
  background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important; font-weight: 600;
}
.tag { border-radius: 999px; font-weight: 500; }
.tag-orange { background: var(--accent-soft); color: var(--accent-2); }
.tag-mint { background: var(--blue-soft); color: var(--blue); }
.tag-gray { background: var(--paper-2); color: var(--ink-2); }
.badge-free, .tag-green { background: var(--blue-soft); color: var(--blue); }
.badge-new { background: var(--accent); }

/* ── 모달·토스트 ── */
.modal-box { border-radius: 18px; background: var(--surface); }
.toast { background: var(--ink) !important; color: var(--paper) !important; border-radius: 12px; }

/* ── 푸터 ── */
.footer { background: var(--ink) !important; color: #B9B2A5; }
.footer-logo img { height: 30px; width: auto; display: block; }
.footer-desc { color: #B9B2A5; }
.footer-links a { color: #E6E0D6 !important; }
.footer-links a:hover { color: #fff !important; }
.footer-copy { color: #8E8779; border-top-color: #34322D !important; }
.footer-copy a { color: #E6E0D6 !important; }

/* ── 이모지 대신 쓰던 장식 줄이기 ── */
.hero-box::before, .hero-box::after { display: none !important; }
.empty-tab-icon, .empty-icon, .coupon-icon { display: none !important; }   /* 빈 상태의 큰 이모지(👶·🤍·🛍️…) */

/* ── 페이지별 상단 띠 → 시안1처럼 바탕색 + 명조 제목 ── */
.user-card { background: var(--ink) !important; border-radius: 20px !important; }
.user-card::before, .user-card::after { display: none !important; }
#user-nickname { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }
.policy-banner, .terms-hero {
  background: transparent !important; color: var(--ink) !important;
  border-bottom: 1px solid var(--line); padding: 44px 16px 26px !important;
}
.policy-banner h1, .terms-hero h1 { font-family: var(--serif); font-weight: 600 !important; letter-spacing: -0.03em; color: var(--ink); }
.policy-banner p, .terms-hero p { color: var(--ink-3) !important; opacity: 1 !important; }
.policy-banner .update-date { background: var(--paper-2) !important; color: var(--ink-2) !important; opacity: 1 !important; }
