/* 꿀템발굴단 허브 — 크림/버터/허니/코코아 팔레트, 모바일 퍼스트 */
@font-face {
  font-family: "Jalnan";
  src: url("fonts/Jalnan.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #FFF7E8;
  --cream-d: #FAECD4;
  --panel: #FFFFFF;
  --butter: #FFE9BA;
  --honey: #FFC83D;
  --orange: #FF7A2F;
  --cocoa: #3A2416;
  --taupe: #8C6E58;
  --soft: #E7D4BA;
  --line: #F0DFC6;
  --rocket: #1F6FD0;
  --rocket-bg: #E8F1FE;
  --radius: 24px;
  --shadow: 0 10px 28px rgba(122, 85, 45, .09), 0 2px 6px rgba(122, 85, 45, .05);
  --maxw: 560px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--cocoa);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% -6%, rgba(255, 200, 61, .38), transparent 46%),
    radial-gradient(circle at 92% 4%, rgba(255, 122, 47, .14), transparent 40%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-d) 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Samsung One UI", "Noto Sans KR", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.2px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* dotted paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(206, 168, 120, .28) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .5;
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cocoa);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ── 헤더 ───────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(30px + env(safe-area-inset-top, 0px)) 20px 6px;
}

.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand { display: flex; flex-direction: column; align-items: center; }

.brand__logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 10px 22px rgba(122, 85, 45, .18);
  object-fit: cover;
  background: var(--butter);
}

.brand__name {
  margin: 14px 0 0;
  font-family: "Jalnan", -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 400;
  color: var(--cocoa);
}

.brand__tagline {
  margin: 7px 0 0;
  font-size: 14.5px;
  color: var(--taupe);
  font-weight: 500;
}

.sns {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.sns__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, .86);
  color: var(--cocoa);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.sns__btn svg { flex: none; }
.sns__btn--ig { color: #C13584; }
.sns__btn--tt { color: #111; }
.sns__btn:active { transform: scale(.97); }
.sns__btn:hover { background: #fff; border-color: var(--honey); }

/* ── 본문 ───────────────────────────────────────── */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 20px calc(28px + var(--safe-b));
}

.feed__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.feed__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: "Jalnan", -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.4px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 47, .16);
}

.feed__sort {
  font-size: 12px;
  color: var(--taupe);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
}

.feed__desc {
  margin: 8px 0 16px;
  font-size: 13.5px;
  color: var(--taupe);
}

.feed__disclosure {
  margin: -8px 0 16px;
  font-size: 12px;
  line-height: 1.55;
  color: #8C6E58;
  background: rgba(255, 233, 186, .5);
  border: 1px solid #F3DFB9;
  border-radius: 12px;
  padding: 8px 12px;
}
.feed__disclosure strong { color: #6B4A2E; }

.cards {
  display: grid;
  gap: 16px;
}

/* ── 카드 ───────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: card-in .5s cubic-bezier(.22, .8, .3, 1) forwards;
}

@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}

.card__media {
  position: relative;
  display: block;
  margin: 10px 10px 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, #FFFDF7 0%, var(--butter) 62%, #FFDCA8 100%);
  overflow: hidden;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  padding: 7% 6%;
  filter: drop-shadow(0 16px 12px rgba(122, 85, 45, .16));
  transition: transform .45s ease;
}

.card__media:active .card__img { transform: scale(.985); }

.badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -.2px;
  background: rgba(255, 255, 255, .94);
  color: var(--taupe);
  box-shadow: 0 2px 6px rgba(122, 85, 45, .1);
}

.badge--rocket {
  background: var(--rocket-bg);
  color: var(--rocket);
}

.badge--hot {
  background: var(--orange);
  color: #fff;
}

.card__body { padding: 14px 16px 16px; }

.card__cat {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--taupe);
}

.card__cat span + span::before {
  content: "·";
  margin-right: 6px;
  color: var(--soft);
}

.card__name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -.4px;
  color: var(--cocoa);
}

.card__summary {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--taupe);
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  font-size: 11.5px;
  font-weight: 600;
  color: #7A5C44;
  background: #FFF3DC;
  border: 1px solid #F6E3C2;
  padding: 4px 9px;
  border-radius: 8px;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.price__rate {
  font-size: 20px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -.6px;
}

.price__now {
  font-family: "Jalnan", -apple-system, sans-serif;
  font-size: 24px;
  line-height: 1.1;
  color: var(--cocoa);
}

.price__was {
  font-size: 13px;
  color: #AB9784;
  text-decoration: line-through;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--taupe);
}

.meta__star { color: var(--honey); font-weight: 800; }
.meta__sep { color: var(--soft); }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--honey) 0%, #FFB13A 55%, var(--orange) 100%);
  color: #3A2416;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.3px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(255, 122, 47, .28);
  transition: transform .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta:active { transform: scale(.975); box-shadow: 0 4px 12px rgba(255, 122, 47, .24); }

.cta__arrow { transition: transform .16s ease; }
.cta:hover .cta__arrow { transform: translateX(3px); }

.card__note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: #A8968A;
  line-height: 1.45;
}

/* 스켈레톤 */
.sk {
  background: linear-gradient(90deg, #F6EBDB 25%, #FBF4E9 37%, #F6EBDB 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
  border-radius: 12px;
}
.sk--img { aspect-ratio: 16 / 11; border-radius: 18px; }
.sk--line { height: 14px; margin-top: 12px; }
.sk--short { width: 55%; }
.card--skeleton { padding: 10px 10px 18px; }
.card--skeleton .sk--line { margin-left: 6px; margin-right: 6px; }

@keyframes sk {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.empty {
  margin: 18px 0 0;
  padding: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--taupe);
  background: rgba(255, 255, 255, .7);
  border: 1px dashed var(--soft);
  border-radius: 16px;
}

/* ── 고지 ───────────────────────────────────────── */
.notice {
  margin-top: 26px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.notice__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--cocoa);
  letter-spacing: -.2px;
}

.notice__list {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.65;
  color: #7E6650;
}

.notice__list li + li { margin-top: 6px; }
.notice__list strong { color: #5E4430; }

/* ── 푸터 ───────────────────────────────────────── */
.foot {
  margin-top: 28px;
  text-align: center;
  color: var(--taupe);
}

.foot__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin: 0 auto 8px;
  opacity: .9;
}

.foot__brand {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #7A6049;
}

.foot__links {
  margin: 8px 0 0;
  font-size: 12.5px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--soft);
}

.foot__links a {
  color: var(--taupe);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot__links a:hover { border-bottom-color: var(--soft); }

.foot__copy {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #A8968A;
}

/* ── 개인정보 페이지 ────────────────────────────── */
.doc {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px calc(40px + var(--safe-b));
}
.doc h1 {
  font-family: "Jalnan", -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: -.5px;
}
.doc .doc__lead { margin: 0 0 22px; color: var(--taupe); font-size: 13.5px; }
.doc h2 { font-size: 15.5px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 13.5px; color: #5E4430; line-height: 1.75; }
.doc ul { padding-left: 18px; margin: 8px 0; }
.doc a { color: var(--orange); }
.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--taupe);
  text-decoration: none;
}

/* ── 넓은 화면 ──────────────────────────────────── */
@media (min-width: 720px) {
  :root { --maxw: 900px; }
  .brand__logo { width: 108px; height: 108px; }
  .brand__name { font-size: 34px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  /* 상품이 하나뿐이면 본문 폭을 좁히고 한 열로 가운데 정렬 */
  .wrap:not(:has(.cards > article:nth-child(2))) {
    max-width: 580px;
  }
  .wrap:not(:has(.cards > article:nth-child(2))) .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed { margin-top: 8px; }
  .feed__head, .feed__desc { max-width: none; }
  .wrap { padding-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .card { opacity: 1; transform: none; }
}
