/* 햄법사 키우기 랜딩. 색은 docs/store/marketing/brief.md 4절 기준 */
@font-face { font-family: "Jua"; src: url("/fonts/jua.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DoHyeon"; src: url("/fonts/dohyeon.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #3D2A22;
  --ink-soft: #6B5347;
  --purple: #7A3FB5;
  --orange: #FF8A1F;
  --orange-deep: #C7600A;
  --butter: #FFF4D2;
  --peach: #FFD9A0;
  --cream: #FFFAEC;
  --sky: #43AAFD;
  --head: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --label: "DoHyeon", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; color-scheme: light; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, blockquote, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, .shots:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; background: #fff; padding: 8px 14px; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }

.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.wrap.narrow { width: min(100% - 40px, 680px); }
section { padding: 64px 0; }

.eyebrow, .chip { display: inline-block; font-family: var(--label); font-size: 16px; line-height: 1; color: #fff; background: var(--purple); border: 2.5px solid var(--ink); border-radius: 999px; padding: 7px 14px 6px; }
h2 { font-family: var(--head); font-weight: 400; font-size: clamp(30px, 6.4vw, 44px); line-height: 1.25; margin: 14px 0 22px; }
h2 span { color: var(--purple); display: block; }
h3 { font-family: var(--head); font-weight: 400; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; }

/* 히어로 */
.hero { position: relative; background: var(--sky); overflow: hidden; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(28px + env(safe-area-inset-top, 0px)) 20px 0; }
.hero-logo { width: min(78vw, 360px); }
.hero-logo img { width: 100%; filter: drop-shadow(0 4px 0 rgba(61, 42, 34, .25)); }
.hero-tagline { font-family: var(--head); font-size: clamp(26px, 7.4vw, 36px); line-height: 1.2; color: #fff; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; margin-top: 8px; letter-spacing: .01em; }
.hero-sub { font-family: var(--label); font-size: clamp(17px, 4.7vw, 21px); line-height: 1.3; color: var(--ink); margin-top: 8px; }
.hero .chip { margin-top: 12px; }
.stores { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.store-btn { display: flex; align-items: center; gap: 9px; min-width: 158px; min-height: 54px; padding: 7px 16px 7px 13px; background: var(--ink); color: #fff; text-decoration: none; border: 2.5px solid #fff; border-radius: 16px; box-shadow: 0 4px 0 rgba(61, 42, 34, .45); transition: transform .12s; }
.store-btn:hover { transform: translateY(-2px); }
.store-btn:active { transform: translateY(2px); }
.store-btn span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store-btn small { font-size: 12px; opacity: .85; }
.store-btn b { font-family: var(--label); font-weight: 400; font-size: 20px; letter-spacing: .01em; }
.hero-art { margin-top: -6px; }
.hero-art img { width: 100%; aspect-ratio: 1024 / 1090; object-fit: cover; object-position: 50% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%); }
.hero { display: flex; flex-direction: column; }
.hero-copy { order: 0; }
.hero-art { order: 1; }

@media (min-width: 700px) {
  .hero-logo { width: 420px; }
  .hero-art img { aspect-ratio: 1536 / 900; object-position: 50% 100%; }
}
@media (min-width: 1024px) {
  .hero { display: block; height: clamp(540px, 62vw, 92vh); }
  .hero-art { position: absolute; inset: 0; margin: 0; }
  .hero-art img { width: 100%; height: 100%; aspect-ratio: auto; object-position: 100% 88%; -webkit-mask-image: none; mask-image: none; }
  .hero-copy { position: absolute; left: 3vw; top: 46%; transform: translateY(-50%); width: 31vw; padding: 0; }
  .hero-logo { width: 100%; }
  .hero-tagline { font-size: clamp(30px, 2.9vw, 46px); }
  .stores { flex-wrap: nowrap; }
  .hero .store-btn { min-width: 176px; min-height: 60px; padding: 9px 20px 9px 16px; }
  .hero .store-btn b { font-size: 22px; }
  .hero .chip { font-size: 18px; padding: 8px 16px 7px; }
}

/* 게임 소개 */
.intro { text-align: center; background: var(--cream); }
.intro p:not(.eyebrow) { font-size: 18px; }
.intro p + p { margin-top: 8px; }
.intro .intro-point { margin-top: 22px; display: inline-block; font-family: var(--label); font-size: 19px; line-height: 1.45; color: var(--ink); background: var(--butter); border: 2.5px solid var(--ink); border-radius: 18px; padding: 12px 18px; }

/* 핵심 기능 */
.features { background-color: var(--butter); background-image: radial-gradient(rgba(255, 190, 110, .38) 3px, transparent 3.5px), linear-gradient(var(--butter), var(--peach)); background-size: 34px 34px, 100% 100%; text-align: center; }
.feature-grid { display: grid; gap: 26px; text-align: left; }
.feature-art { border-bottom: 3px solid var(--ink); }
.feature-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.art-battle img { object-fit: cover; }
.art-offline { background: #E7DCFA; }
.art-skills { background: #D9EEFF; }
.art-weapons { background: #FFE1DA; }
.feature-body { padding: 18px 20px 22px; }
.feature h3 { font-size: 26px; line-height: 1.25; margin-bottom: 8px; }
.feature h3 span { display: block; color: var(--purple); }
.feature p { color: var(--ink-soft); }
.note { font-size: 14px; line-height: 1.55; margin-top: 10px; }
.note a { color: var(--purple); font-weight: 700; }
@media (min-width: 760px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .feature h3 { font-size: 23px; }
  .feature p { font-size: 15.5px; }
  .feature-body { padding: 16px 16px 20px; }
}

/* 캐릭터 */
.chars { text-align: center; background: var(--cream); }
.role { font-family: var(--label); font-size: 15px; color: var(--purple); line-height: 1.3; }
.chars h3 { font-size: 30px; line-height: 1.2; margin-bottom: 6px; }
.chars .card p:not(.role) { color: var(--ink-soft); }
blockquote { font-family: var(--head); font-size: 19px; line-height: 1.4; margin-top: 12px; padding: 10px 16px; border-radius: 16px; background: var(--butter); border: 2.5px solid var(--ink); display: inline-block; color: var(--ink); }
.mochi, .boss { display: grid; align-items: center; gap: 6px; text-align: center; padding: 18px 20px 24px; }
.mochi { background: linear-gradient(#CDEBFF, #EAF7FF); }
.mochi-art, .boss-art { width: min(60vw, 300px); margin-inline: auto; }
.boss { background: #4B2A6B; color: #fff; margin-top: 26px; }
.boss .role { color: #FFE066; }
.boss.card p:not(.role) { color: #EADDF7; }
.boss-art { order: -1; }
.hero-list { display: grid; gap: 16px; margin-top: 26px; text-align: left; }
.hero-card { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; box-shadow: 0 5px 0 var(--ink); }
.hero-card picture { border-radius: 18px; border: 2.5px solid var(--ink); background: var(--tint); }
.hero-card h3 { font-size: 24px; margin-bottom: 2px; }
.hero-card p:not(.role) { font-size: 15px; line-height: 1.5; }
.c-red { --tint: #FFD9D2; } .c-blue { --tint: #D5E6FF; } .c-pink { --tint: #FFE3EE; } .c-purple { --tint: #E8DBFA; } .c-green { --tint: #DDF2CF; }
@media (min-width: 760px) {
  .mochi, .boss { grid-template-columns: 300px 1fr; text-align: left; gap: 28px; padding: 20px 36px; }
  .boss { grid-template-columns: 1fr 300px; }
  .boss-art { order: 0; }
  .mochi-art, .boss-art { width: 300px; }
  .hero-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero-list { grid-template-columns: repeat(5, 1fr); }
  .hero-card { grid-template-columns: 1fr; text-align: center; padding: 12px 12px 18px; gap: 10px; }
}

/* 스크린샷 */
.gallery { background: linear-gradient(var(--peach), var(--butter)); text-align: center; }
.shots-frame { position: relative; max-width: 1240px; margin-inline: auto; }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(16px, calc((100% - 1080px) / 2)) 18px; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; -webkit-overflow-scrolling: touch; }
.shots li { flex: 0 0 auto; width: min(62vw, 270px); scroll-snap-align: center; }
.shots img { width: 100%; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); background: var(--butter); }
.shots-nav { display: none; }
@media (hover: hover) and (min-width: 900px) {
  .shots-nav { display: grid; place-items: center; position: absolute; top: 46%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
  .shots-nav.prev { left: 12px; } .shots-nav.next { right: 12px; }
  .shots-nav:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
}

/* 웹툰 */
.webtoon { background: var(--cream); }
.webtoon-card { display: grid; }
.webtoon-art { border-bottom: 3px solid var(--ink); }
.webtoon-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.webtoon-body { padding: 24px 22px 30px; }
.webtoon-body h2 { font-size: clamp(27px, 5.6vw, 36px); margin: 12px 0 12px; }
.webtoon-body p:not(.eyebrow) { color: var(--ink-soft); }
.btn-cta { display: inline-block; white-space: nowrap; margin-top: 20px; font-family: var(--head); font-size: 21px; line-height: 1; color: #fff; text-decoration: none; background: var(--orange); border: 3px solid var(--ink); border-radius: 999px; padding: 15px 28px 13px; box-shadow: inset 0 -5px 0 var(--orange-deep), 0 4px 0 var(--ink); text-shadow: 0 2px 0 var(--orange-deep); transition: transform .12s; }
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta:active { transform: translateY(2px); }
@media (min-width: 760px) {
  .webtoon-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .webtoon-art { border-bottom: 0; border-right: 3px solid var(--ink); height: 100%; }
  .webtoon-body { padding: 28px 30px; }
}

/* 하단 CTA */
.cta { background: var(--sky); background-image: linear-gradient(#43AAFD, #7CCBFD); text-align: center; padding: 56px 0 64px; }
.cta h2 { color: #fff; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; margin: 0; font-size: clamp(32px, 8vw, 46px); }

/* 푸터 */
.footer { background: var(--ink); color: #EBDCCB; font-size: 14px; line-height: 1.7; padding: 36px 0 calc(44px + env(safe-area-inset-bottom, 0px)); }
.policy { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.policy a { text-decoration: none; display: inline-block; padding: 6px 0; color: #fff; }
.policy a:hover, .biz a:hover { text-decoration: underline; }
.notice { margin-top: 14px; color: #D8C4B0; }
.biz { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.biz div { display: flex; gap: 6px; }
.biz dt { color: #BFA893; flex: none; }
.biz a { text-decoration: none; }
.copy { margin-top: 16px; color: #BFA893; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 24px; }
.notfound h1 { font-family: var(--head); font-weight: 400; font-size: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-btn, .btn-cta { transition: none; }
}
