/* ══════════════════════════════════════════════════════════════
   아기랑 디자인 2안 '크림 노트' (2026-10-22 사장님 채택 — "2안이 마음에 든다 이제 2안으로 가자")
   style.css 다음에 불러서 겉모습만 바꾼다(페이지 동작 코드는 그대로). v2.css(10-08 에디토리얼·테라코타)를 대체.
   바탕 크림 #F6F1E8 · 종이 #FFFDF9 · 잉크 #2A2521 · 포인트 청록 #1C7C86 · 강조 버터 #FFD66B
   글꼴: 제목 Gowun Batang · 본문 Noto Sans KR · 모서리 8–14px · 1px 선 · 그림자 없음 · 점선 구분
   홈(index.html)·특별한 주말(curation.html)은 같은 값을 자기 <style> 에 가짐.
══════════════════════════════════════════════════════════════ */
/* 글꼴은 각 화면 <head> 의 <link> 한 벌로만(11-05: 여기 @import 와 화면 링크가 겹쳐 글꼴 CSS 두 벌 1MB — 상세 긴 작업의 절반) */

:root {
  --ground: #F6F1E8; --paper: #F6F1E8; --paper-2: #EFE8DC; --surface: #FFFDF9; --ph: #EAE2D6;
  --ink: #2A2521; --ink-2: #4A433C; --ink-3: #6E655C; --muted: #6E655C;
  --line: #E4DBCF; --line-2: #C9BFB1; --dash: #D6CCBE;
  --accent: #1C7C86; --accent-2: #145C64; --accent-soft: #D9EEF0;
  --teal: #1C7C86; --teal-ink: #145C64; --teal-tint: #D9EEF0;
  --butter: #FFD66B; --butter-tint: #FFF1C2; --butter-ink: #5C4700;
  --blue: #145C64; --blue-soft: #D9EEF0; --star: #B08900;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  /* 기존 변수 → 새 팔레트 (style.css 전체가 이 값을 따라감) */
  --color-primary: #1C7C86;
  --color-primary-light: #4FA3AC;
  --color-primary-dark: #145C64;
  --color-secondary: #145C64;
  --color-secondary-light: #7FB7BD;
  --color-bg: #F6F1E8;
  --color-card: #FFFDF9;
  --color-beige: #EFE8DC;
  --color-mint-light: #D9EEF0;
  --color-text: #2A2521;
  --color-text-muted: #6E655C;
  --color-border: #E4DBCF;
  --font-main: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', 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: 2px; }
a { color: var(--accent); }

/* ── 헤더: 크림 종이 위 가는 선 ── */
.nav-header {
  background: rgba(246, 241, 232, 0.94) !important;
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.nav-inner { max-width: 1180px; 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; font-weight: 700 !important; border-bottom-color: var(--accent); }
.nav-search-center input {
  background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-radius: 10px !important;
}
.nav-search-center input:focus { border-color: var(--accent) !important; }
#nav-auth-area .btn,
#nav-auth-area button[onclick="loginWithKakao()"] {
  background: none !important; color: var(--ink) !important; border: 1.5px solid var(--ink) !important;
  border-radius: 8px !important; padding: 7px 16px !important; font-weight: 700 !important; font-size: 14px !important;
}
#nav-auth-area button[onclick="loginWithKakao()"]:hover { background: var(--ink) !important; color: var(--surface) !important; }
#nav-auth-area a { color: var(--ink-2) !important; }
.mobile-menu-btn svg { stroke: var(--ink) !important; }
@media (max-width: 768px) {
  .nav-links.open { background: var(--surface) !important; box-shadow: none !important; border-bottom: 1px solid var(--line) !important; }
  .nav-links.open li { border-bottom-color: var(--line) !important; }
}

/* ── 제목: 바탕체 굵게 ── */
.section-title, .page-title, .hero-title, .detail-title, .ranking-hero-title, .page-hero h1, .user-nickname, #user-nickname {
  font-family: var(--serif);
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}
.hero-title em { color: var(--accent); font-style: normal; }
.section-label { font-weight: 700; letter-spacing: -0.01em; }

/* ── 버튼: 으뜸은 청록 채움, 버금은 잉크 1.5px 선 ── */
.btn { border-radius: 10px; font-weight: 700; letter-spacing: -0.01em; transition: background 0.15s, border-color 0.15s; }
.btn-orange, .btn-primary { background: var(--accent) !important; color: #FFFFFF !important; border: 0 !important; }
.btn-orange:hover, .btn-primary:hover { background: var(--accent-2) !important; transform: none; }
.btn-mint { background: var(--accent-2) !important; color: #FFFFFF !important; }
.btn-mint:hover { background: var(--ink) !important; transform: none; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink) !important; }
.btn-outline:hover { background: var(--paper-2); border-color: var(--ink) !important; }
.btn-ghost { background: var(--paper-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-lg { border-radius: 12px; }

/* ── 카드: 종이 + 1px 선, 그림자 없음 ── */
.card {
  border-radius: 12px; border: 1px solid var(--line); box-shadow: none; background: var(--surface);
}
.card:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card-img { border-radius: 12px 12px 0 0; }
.card-title { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.card-subtitle { color: var(--ink-3); }
.stars, .review-stars { color: var(--star) !important; }
.rating-num { color: var(--ink-2); }
.reason-badge {
  background: transparent !important; color: var(--ink-2) !important; border: 1px solid var(--line-2) !important;
  border-radius: 6px !important; font-weight: 500 !important;
}
.reason-badge.mint { background: var(--teal-tint) !important; color: var(--teal-ink) !important; border-color: transparent !important; }

/* ── 칩·태그·배지: 테두리 칩, 고른 것은 청록 ── */
.filter-chip, .filter-chip-sm {
  border: 1px solid var(--line-2) !important; background: var(--surface); color: var(--ink-2); border-radius: 8px;
}
.filter-chip:hover, .filter-chip-sm:hover { border-color: var(--ink-3) !important; }
.filter-chip.active, .filter-chip-sm.active {
  background: var(--teal-tint) !important; color: var(--teal-ink) !important; border: 1.5px solid var(--accent) !important; font-weight: 700;
}
.tag { border-radius: 6px; font-weight: 500; }
.tag-orange { background: var(--butter-tint); color: var(--butter-ink); }
.tag-mint { background: var(--teal-tint); color: var(--teal-ink); }
.tag-gray { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.badge-free, .tag-green { background: var(--teal-tint); color: var(--teal-ink); }
.tag-red { background: var(--butter-tint); color: var(--butter-ink); }
.badge { border-radius: 6px; }
.badge-new { background: var(--accent); color: #FFFFFF; }
.badge-premium { background: var(--butter); color: var(--butter-ink); }
.badge-ad { background: var(--paper-2); color: var(--ink-3); }

/* ── 모달·토스트 ── */
.modal-box { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.toast { background: var(--ink) !important; color: var(--surface) !important; border-radius: 10px; }

/* ── 푸터: 같은 크림, 위에 가는 선 ── */
.footer { background: var(--paper-2) !important; color: var(--ink-2); border-top: 1px solid var(--line); }
.footer-logo { color: var(--ink); }
.footer-logo img { height: 30px; width: auto; display: block; }
.footer-desc { color: var(--ink-2); }
.footer-links a { color: var(--ink-2) !important; }
.footer-links a:hover { color: var(--ink) !important; text-decoration: underline; }
.footer-copy { color: var(--ink-3); border-top-color: var(--line-2) !important; }
.footer-copy a { color: var(--ink-2) !important; }

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

/* ── 페이지별 상단 띠 → 크림 바탕 + 바탕체 제목 ── */
.user-card { background: var(--accent-2) !important; border-radius: 14px !important; color: #FFFFFF; }
.user-card::before, .user-card::after { display: none !important; }
#user-nickname { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.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: 700 !important; letter-spacing: -0.01em; 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; }

/* ── 상세: 핵심 정보 칸·쿠폰·행사 줄 ── */
.info-item { border-color: var(--line) !important; }
.coupon-row { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 10px !important; box-shadow: none !important; }
.coupon-tag { background: var(--butter-tint) !important; color: var(--butter-ink) !important; border-radius: 6px !important; }
.coupon-go { color: var(--accent) !important; }

/* ── 구분선은 점선 ── */
hr, .divider-line { border: 0; border-top: 1px dashed var(--dash); }
