/* 허쉬누리 공통 스타일 — 파스텔 + 남색 + 로즈골드 */
:root {
  --navy: #252e4d;
  --navy-2: #323c62;
  --rose: #d49a84;          /* 로즈골드 (장식) */
  --rose-light: #ecc3b2;
  --rose-deep: #b9796a;
  --accent: #9a5c4f;        /* 로즈골드 글자색 (읽기 쉬운 진한 톤) */
  --rosegold: linear-gradient(135deg, #ecc3b2, #d49a84 50%, #b9796a);
  --pastel: linear-gradient(135deg, #fbe4e8 0%, #ece4f7 55%, #e1ecf8 100%);
  --cream: #fbf7f2;
  --paper: #ffffff;
  --ink: #252e4d;
  --muted: #6d6878;
  --line: #ece4dc;
  --card: #ffffff;
  --head-bg: rgba(251, 247, 242, .82);
  --shadow: 0 1px 2px rgba(37, 46, 77, .04), 0 10px 28px rgba(90, 71, 102, .08);
  --radius: 20px;
  --display: "Cinzel", "Times New Roman", serif;
  --serif: "Nanum Myeongjo", "Noto Serif KR", serif;
  --sans: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --rose: #e0ac97;
    --accent: #eab8a5;
    --pastel: linear-gradient(135deg, #3a2a3c 0%, #2c2943 55%, #22304a 100%);
    --cream: #15182a;
    --paper: #1b1f35;
    --ink: #f1ebe4;
    --muted: #aaa5b6;
    --line: #2c3150;
    --card: #1c2038;
    --head-bg: rgba(21, 24, 42, .84);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.75 var(--sans); letter-spacing: -.01em;
}
img { max-width: 100%; }
a { color: var(--accent); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* 머리말 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--head-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; display: block; }
.brand .txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand .en { font-family: var(--display); font-weight: 500; font-size: 1.05rem; letter-spacing: .24em; }
.brand .ko { font-family: var(--serif); font-size: .68rem; letter-spacing: .5em; color: var(--muted); margin-top: 3px; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 560px) {
  .brand img { width: 34px; height: 34px; }
  .brand .en { font-size: .9rem; letter-spacing: .18em; }
  .brand .ko { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: .88rem; }
}

/* 파스텔 머리 배경 */
.sky {
  position: relative; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(50% 70% at 8% 90%, rgba(255, 255, 255, .35), transparent 70%),
    var(--pastel);
}
.sky::before {
  /* 은은한 로즈골드 별 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background:
    radial-gradient(2px 2px at 14% 26%, var(--rose), transparent 70%),
    radial-gradient(1.5px 1.5px at 30% 70%, var(--rose), transparent 70%),
    radial-gradient(2px 2px at 72% 22%, var(--rose), transparent 70%),
    radial-gradient(1.5px 1.5px at 88% 62%, var(--rose), transparent 70%),
    radial-gradient(1.5px 1.5px at 56% 84%, var(--rose), transparent 70%);
}
.sky::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 56px;
  background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.sky > .wrap { position: relative; z-index: 1; }
@media (prefers-color-scheme: dark) { .sky { background: var(--pastel); } }

/* 첫 화면 */
.hero { text-align: center; padding-top: 76px; padding-bottom: 116px; }
.hero .mark { width: 136px; height: 136px; display: block; margin: 0 auto; filter: drop-shadow(0 12px 28px rgba(90, 71, 102, .16)); }
.hero h1 {
  font-family: var(--display); font-weight: 500; font-size: clamp(2.1rem, 7vw, 3.4rem);
  letter-spacing: .28em; margin: 26px -.28em 0 0; line-height: 1.1;
}
.hero .rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 30px; }
.hero .rule i { display: block; width: 44px; height: 1px; background: var(--rosegold); }
.hero .rule span { font-family: var(--serif); font-size: .9rem; letter-spacing: .6em; margin-right: -.6em; color: var(--muted); }
.hero .lead { font-family: var(--serif); font-size: clamp(1.1rem, 2.6vw, 1.35rem); margin: 0 0 6px; }
.hero .desc { color: var(--muted); margin: 0; }

/* 페이지 머리 */
.page-head { padding-top: 56px; padding-bottom: 84px; }
.page-head .eyebrow { font-family: var(--display); font-size: .78rem; letter-spacing: .3em; color: var(--accent); margin: 0 0 8px; }
.page-head h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 4.5vw, 2.3rem); margin: 0 0 10px; line-height: 1.35; }
.page-head p { color: var(--muted); margin: 0; max-width: 640px; }

/* 구역 */
.section { padding: 16px 0 56px; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 22px; }
.section-title h2 { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; margin: 0; }
.section-title .count, .section-title .en { font-family: var(--display); color: var(--rose-deep); font-size: .76rem; letter-spacing: .22em; }

/* 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(37,46,77,.05), 0 18px 40px rgba(90,71,102,.14); }
.card .visual { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.card .visual img { width: 56%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(236,195,178,.55), 0 12px 30px rgba(0,0,0,.35); }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .links { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; }
.card .links a, .card .more { text-decoration: none; font-weight: 600; color: var(--accent); }

.v-baby { background: linear-gradient(160deg, #fde8dc 0%, #f4dfee 50%, #dfe4fb 100%); }
.v-watch { background: radial-gradient(90% 120% at 50% 0%, var(--navy-2), var(--navy) 55%, #171d33 100%); }
@media (prefers-color-scheme: dark) {
  .v-baby { background: linear-gradient(160deg, #4a3346 0%, #3a3456 50%, #283058 100%); }
}

/* 작은 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .78rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--paper); }
.chip.accent { border-color: rgba(212,154,132,.55); color: var(--accent); background: rgba(236,195,178,.18); }

/* 문의 */
.contact {
  text-align: center; padding: 44px 24px; border-radius: var(--radius);
  background: var(--pastel); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact .eyebrow { font-family: var(--display); font-size: .76rem; letter-spacing: .3em; color: var(--rose-deep); margin: 0 0 4px; }
.contact h2 { font-family: var(--serif); font-weight: 700; margin: 0 0 6px; font-size: 1.35rem; }
.contact p { margin: 0 0 18px; color: var(--muted); }
.button {
  display: inline-block; padding: 11px 24px; border-radius: 999px; text-decoration: none; font-weight: 600;
  background: var(--navy); color: #fbf7f2 !important; border: 1px solid var(--rose);
  box-shadow: 0 6px 18px rgba(37,46,77,.18); transition: background .2s;
}
.button:hover { background: var(--navy-2); }

/* 문서(개인정보처리방침) */
.doc {
  max-width: 760px; margin: -48px auto 0; position: relative; z-index: 1;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px clamp(20px, 5vw, 48px) 44px;
}
.doc h2 { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; margin: 34px 0 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h2:first-of-type { margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .94rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px; border: 1px solid var(--line); }
.doc th { width: 32%; color: var(--muted); font-weight: 600; background: rgba(236,195,178,.12); }
.doc ul { padding-left: 1.3em; }

/* 꼬리말 */
.site-footer { margin-top: 64px; padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.site-footer .brand-s { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 500; letter-spacing: .22em; }
.site-footer .brand-s img { width: 28px; height: 28px; display: block; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* 로고 이미지 비율 유지 */
.brand img, .hero .mark, .site-footer .brand-s img { object-fit: contain; }
@media (prefers-color-scheme: dark) {
  /* 어두운 배경에서 남색 리본이 묻히지 않도록 은은한 빛 테두리 */
  .brand img, .hero .mark, .site-footer .brand-s img { filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 0 12px rgba(255,240,230,.22)); }
}


/* 워치페이스 모자이크 (홈 카드) */
.v-mosaic {
  position: relative; overflow: hidden; display: grid; grid-template-rows: minmax(0,1fr) auto minmax(0,1fr); grid-template-columns: minmax(0,1fr); gap: 8px;
  padding: 0; background: linear-gradient(180deg, #f3eff4, #eef0f6);
}
.v-mosaic .row { justify-self: start; display: flex; gap: 8px; min-height: 0; height: 100%; width: max-content; transition: transform .6s ease; }
.v-mosaic .row:first-child { transform: translateX(-34px); }
.v-mosaic .row:last-child  { transform: translateX(-78px); }
.card .v-mosaic .row img {
  height: 100%; width: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 4px 12px rgba(37,46,77,.22);
}
a.card:hover .v-mosaic .row:first-child { transform: translateX(-60px); }
a.card:hover .v-mosaic .row:last-child  { transform: translateX(-52px); }
.v-mosaic .mid { display: grid; place-items: center; padding: 2px 0; }
.v-mosaic .pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 10px;
  border: 1.5px solid var(--rose); border-radius: 999px; background: rgba(251,247,242,.92); color: var(--navy);
}
.card .v-mosaic .pill img { width: 30px; height: 30px; object-fit: contain; box-shadow: none; border-radius: 0; aspect-ratio: auto; }
.v-mosaic .pill b { font-family: var(--display); font-weight: 600; letter-spacing: .22em; font-size: 1rem; }
.v-mosaic .pill i { font-style: normal; font-family: var(--display); font-size: .62rem; letter-spacing: .24em; color: var(--rose-deep); }
@media (prefers-color-scheme: dark) {
  .v-mosaic { background: linear-gradient(180deg, #23263c, #1c2035); }
  .v-mosaic .pill { background: rgba(21,24,42,.9); color: var(--ink); }
}
@media (max-width: 400px) { .v-mosaic .pill i { display: none; } }
