@import url("https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&family=Hi+Melody&display=swap");

:root {
  --pink: #ff817d;
  --soft-pink: #ffaaa7;
  --lavender: #c5afe8;
  --caramel: #7a421f;
  --cream: #fff7f1;
  --black: #181818;
  --gray: #707070;
  --line: #ebebeb;
  --max: 1580px;
  --pad: 72px;
  --display: "Gaegu", "Hi Melody", "Segoe Print", "Comic Sans MS", "Malgun Gothic", sans-serif;
  --hand: "Gaegu", "Hi Melody", "Segoe Print", "Malgun Gothic", sans-serif;
  --sans: "Arial", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Bodoni 72", "Didot", "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body { margin: 0; background: #fff; color: var(--black); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.site-shell { min-height: 100vh; overflow: clip; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  padding: 0 var(--pad);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(235,235,235,.75);
}
.brand { display: inline-flex; align-items: center; gap: 8px; width: max-content; font-size: 28px; font-weight: 900; letter-spacing: -1px; }
.brand img, .footer-brand img { width: 30px; height: 25px; transition: transform 280ms ease; }
.brand:hover img { transform: rotate(4deg); }
.desktop-nav { display: flex; gap: 70px; font-size: 14px; font-weight: 800; }
.desktop-nav a { position: relative; padding: 8px 0; }
.desktop-nav a::after { position: absolute; left: 0; bottom: 3px; width: 0; height: 7px; content: ""; background: url("assets/doodles/underline.svg") center / 100% 100% no-repeat; transition: width 280ms ease; }
.desktop-nav a:hover::after { width: 100%; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 24px; }
.icon-button, .cart-link, .mobile-menu-button { border: 0; background: transparent; cursor: pointer; }
.icon-button, .cart-link { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; position: relative; }
.icon-button img, .cart-link img { width: 24px; height: 24px; transition: transform 180ms ease; }
.icon-button:hover img, .cart-link:hover img { transform: translateY(-1px); }
.cart-link { transition: transform 220ms ease; }
.cart-link:hover { transform: translateY(-2px); }
.cart-link b { position: absolute; right: -6px; top: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
.mobile-menu-button { display: none; font-weight: 800; }
.mobile-menu { position: sticky; top: 86px; z-index: 45; display: grid; gap: 18px; padding: 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); font-weight: 900; }

.hero {
  position: relative;
  min-height: 640px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px var(--pad) 0;
  display: grid;
  grid-template-columns: minmax(420px, .42fr) minmax(0, .58fr);
  align-items: center;
}
.hero-copy { position: relative; z-index: 5; padding-top: 10px; animation: fadeUp 780ms ease both; }
.soft-note { position: absolute; right: 124px; top: -14px; margin: 0; color: var(--pink); font-family: var(--display); font-size: 15px; transform: rotate(-9deg); }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(56px, 4.5vw, 78px); font-weight: 600; line-height: 1.26; letter-spacing: 0; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 em { color: var(--pink); font-style: normal; }
.hero-desc { margin: 26px 0 0; font-size: 16px; line-height: 1.72; }
.hero-buttons { display: flex; gap: 28px; margin-top: 30px; }
.btn, .small-pill { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 34px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.btn.primary { background: var(--pink); color: white; border: 1px solid var(--pink); }
.btn.outline, .small-pill { background: #fff; border: 1px solid var(--black); }
.hero-stage { position: relative; min-height: 590px; }
.hero-pudding { position: absolute; z-index: 3; width: min(720px, 52vw); right: 20px; top: -8px; filter: drop-shadow(0 24px 24px rgba(122,66,31,.13)); animation: puddingIn 1000ms 260ms ease both; }
.hero-paper { position: absolute; z-index: 4; width: 178px; right: -6px; top: 116px; transform: rotate(2deg); filter: drop-shadow(0 10px 14px rgba(24,24,24,.06)); }
.hero-note { position: absolute; z-index: 6; right: 26px; top: 166px; width: 122px; text-align: center; font-family: var(--display); font-size: 16px; line-height: 1.3; transform: rotate(2deg); }
.hero-note img { width: 54px; margin: 12px auto 0; }
.hero-tape { position: absolute; z-index: 7; width: 108px; right: 46px; top: 105px; transform: rotate(5deg); opacity: .9; }
.hero-sticker { position: absolute; z-index: 8; right: 242px; bottom: 120px; width: 132px; animation: stickerIn 850ms 640ms ease both, tinyFloat 5s 1.5s ease-in-out infinite; }
.hero-lines { position: absolute; z-index: 2; left: 88px; top: 178px; width: 72px; }
.hero-heart { position: absolute; z-index: 7; left: -10px; bottom: 90px; width: 56px; opacity: .78; }

.hero-transition { position: relative; max-width: var(--max); min-height: 104px; margin: -4px auto 0; padding: 0 var(--pad); }
.hero-transition img { width: min(1040px, 58vw); }
.hero-transition span { position: absolute; right: var(--pad); top: 0; writing-mode: vertical-rl; font-size: 12px; font-weight: 800; letter-spacing: .08em; }

.best-menu, .news { max-width: var(--max); margin: 0 auto; padding: 46px var(--pad) 110px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; }
.section-side h2 { margin: 0; font-family: var(--display); font-size: 38px; line-height: 1.28; }
.section-side p { margin: 30px 0 28px; color: var(--black); font-size: 15px; line-height: 1.75; }
.small-pill { height: 42px; padding: 0 24px; font-size: 12px; }
.best-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; align-items: start; }
.product-card { min-width: 0; transition: transform 450ms ease; }
.product-card:hover { transform: translateY(-8px) rotate(.6deg) scale(1.025); }
.product-image-link { position: relative; display: block; min-height: 260px; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(122,66,31,.1)); }
.product-offset-0 { margin-top: 12px; }
.product-offset-1 { margin-top: -5px; }
.product-offset-2 { margin-top: 8px; }
.product-offset-3 { margin-top: -12px; }
.badge { position: absolute; z-index: 2; left: 10px; top: 20px; padding: 8px 12px; border-radius: 999px; background: var(--soft-pink); color: #fff; font-size: 11px; font-weight: 900; transform: rotate(-7deg); }
.product-name { display: inline-block; margin-top: 14px; font-family: var(--hand); font-size: 22px; font-weight: 700; line-height: 1.15; }
.product-name:hover { color: var(--pink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.product-card p { min-height: 42px; margin: 8px 0 8px; color: var(--black); font-family: var(--hand); font-size: 18px; line-height: 1.35; }
.product-card strong { font-family: var(--hand); font-size: 18px; font-weight: 700; }

.signature { position: relative; max-width: var(--max); min-height: 900px; margin: 70px auto 120px; padding: 40px var(--pad); display: grid; grid-template-columns: .42fr .32fr .26fr; align-items: center; }
.signature-product { position: relative; z-index: 3; align-self: end; }
.signature-product img { width: 620px; filter: drop-shadow(0 24px 20px rgba(122,66,31,.12)); }
.signature h2 { position: relative; z-index: 2; margin: 0 0 0 -70px; color: var(--lavender); font-family: var(--serif); font-size: 118px; font-weight: 400; line-height: .88; letter-spacing: 0; }
.signature-copy { position: relative; z-index: 4; max-width: 430px; }
.signature-copy .dot::before { display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 50%; background: var(--lavender); content: ""; }
.signature-copy h3 { margin: 22px 0 18px; font-size: 34px; }
.signature-copy p { font-size: 16px; line-height: 1.75; }
.signature-copy a { display: inline-block; margin-top: 18px; padding-bottom: 9px; border-bottom: 2px solid var(--lavender); font-weight: 800; }
.signature-controls { display: flex; align-items: center; gap: 16px; margin-top: 58px; }
.signature-controls button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.sig-heart { position: absolute; right: 140px; top: 170px; width: 70px; }

.about-strip { max-width: var(--max); margin: 0 auto 140px; padding: 0 var(--pad); display: grid; grid-template-columns: 280px minmax(420px, 1fr) 410px; align-items: end; gap: 36px; }
.about-text h2 { margin: 0; font-family: var(--display); font-size: 34px; line-height: 1.28; }
.about-text h2 img { display: inline; width: 42px; vertical-align: middle; }
.about-text p { margin: 28px 0; font-size: 15px; line-height: 1.85; }
.about-text em { color: var(--pink); font-family: var(--display); font-size: 16px; font-style: normal; }
.package-collage { position: relative; min-height: 360px; }
.package-collage > img:first-child { width: 100%; height: 390px; object-fit: cover; }
.package-collage .tag { position: absolute; left: 8%; top: -54px; width: 125px; transform: rotate(-10deg); }
.package-collage .ribbon { position: absolute; left: -10%; bottom: -42px; width: 300px; opacity: .82; }
.promise-note { position: relative; min-height: 360px; margin-left: -70px; transform: rotate(1deg); }
.promise-note > img:first-child { width: 100%; height: 390px; object-fit: contain; }
.promise-note > div { position: absolute; left: 132px; top: 84px; z-index: 2; width: 250px; }
.promise-note h3 { margin: 0 0 28px; font-size: 16px; letter-spacing: .08em; }
.promise-note p { margin: 16px 0; font-size: 17px; }
.promise-note .spoon { position: absolute; right: 38px; bottom: 52px; width: 76px; }

.news { align-items: start; border-top: 1px solid var(--line); padding-top: 58px; }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.news-grid a { position: relative; display: block; overflow: hidden; background: var(--cream); }
.news-grid img { width: 100%; height: 260px; object-fit: cover; transition: transform 550ms ease; }
.news-grid a:nth-child(2n) img { height: 220px; }
.news-grid a:hover img { transform: scale(1.035); }
.news-grid span { position: absolute; right: 12px; bottom: 10px; opacity: 0; transition: opacity 220ms ease; font-size: 11px; font-weight: 900; }
.news-grid a:hover span { opacity: 1; }

.site-footer { max-width: var(--max); margin: 0 auto; padding: 42px var(--pad) 34px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 230px 1fr 260px; gap: 40px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 900; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 13px; }
.social { display: flex; align-items: center; gap: 12px; justify-self: end; }
.social span { margin-right: 16px; font-weight: 900; line-height: 1.2; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #f4f4f4; transition: background 180ms ease, transform 180ms ease; }
.social a:hover { background: var(--cream); transform: translateY(-2px); }
.social img { width: 22px; height: 22px; }
.site-footer small { grid-column: 1 / -1; color: var(--gray); text-align: right; }

.page-head { max-width: var(--max); margin: 0 auto; padding: 120px var(--pad) 70px; display: grid; grid-template-columns: .55fr .45fr; gap: 40px; align-items: end; }
.page-head h1 { margin: 0; font-family: var(--display); font-size: 86px; line-height: 1.05; }
.page-head p { max-width: 480px; margin: 0; font-size: 18px; line-height: 1.7; }
.filter-bar { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 40px; display: flex; gap: 18px; overflow-x: auto; }
.filter-bar button { height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 800; }
.menu-grid { max-width: var(--max); margin: 0 auto 140px; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 88px 70px; }

.detail { max-width: var(--max); margin: 0 auto 120px; padding: 110px var(--pad) 0; display: grid; grid-template-columns: .55fr .45fr; gap: 70px; align-items: center; }
.detail-image { position: relative; min-height: 640px; }
.detail-image > img:first-child { width: 100%; height: 640px; object-fit: contain; filter: drop-shadow(0 20px 20px rgba(122,66,31,.12)); }
.detail-heart { position: absolute; right: 12%; top: 14%; width: 70px; }
.detail-info > p:first-child { font-size: 14px; font-weight: 900; letter-spacing: .1em; }
.detail-info h1 { margin: 16px 0; font-size: 46px; }
.detail-info strong { display: block; margin-bottom: 28px; font-size: 20px; }
.detail-info p { font-size: 17px; line-height: 1.8; }
.quantity { display: inline-flex; align-items: center; gap: 18px; margin: 24px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.quantity button { border: 0; background: transparent; cursor: pointer; font-size: 20px; }
.add-bag, .checkout, .store-products button { display: block; width: 100%; max-width: 360px; height: 54px; border: 1px solid var(--pink); border-radius: 999px; background: var(--pink); color: white; cursor: pointer; font-weight: 900; }
.detail-info dl { margin-top: 42px; border-top: 1px solid var(--line); }
.detail-info dt { margin-top: 22px; font-weight: 900; }
.detail-info dd { margin: 8px 0 0; color: var(--gray); }
.detail-more .about-strip { margin-top: 40px; }

.story-rows, .notice-list, .store-layout { max-width: var(--max); margin: 0 auto 140px; padding: 0 var(--pad); }
.story-rows { display: grid; gap: 1px; }
.story-rows div, .notice-list a { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 34px 0; border-top: 1px solid var(--line); }
.story-rows h2 { margin: 0; font-family: var(--serif); color: var(--lavender); font-size: 52px; font-weight: 400; }
.story-rows p { margin: 0; max-width: 760px; font-size: 18px; line-height: 1.8; }
.notice-list { border-bottom: 1px solid var(--line); }
.notice-list a { grid-template-columns: 180px 1fr 40px; align-items: center; }
.notice-list span { color: var(--gray); }
.notice-list strong { font-size: 20px; }
.notice-list em { font-style: normal; text-align: right; }

.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 60px; align-items: start; }
.store-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 40px; }
.store-products article img { height: 280px; width: 100%; object-fit: contain; }
.store-products h3 { margin: 10px 0 8px; font-family: var(--hand); font-size: 24px; line-height: 1.15; }
.store-products p { font-family: var(--hand); font-size: 18px; }
.cart-panel { position: sticky; top: 110px; padding: 30px; border: 1px solid var(--line); background: white; }
.cart-row { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.cart-row div { display: flex; align-items: center; gap: 10px; }
.cart-row button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 7px 10px; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--black); }

.reveal { animation: fadeUp 800ms ease both; }
.reveal:nth-child(2) { animation-delay: 90ms; }
.reveal:nth-child(3) { animation-delay: 180ms; }
.reveal:nth-child(4) { animation-delay: 270ms; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes puddingIn { from { opacity: 0; transform: translateY(35px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes stickerIn { from { opacity: 0; transform: rotate(7deg) scale(.8); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
@keyframes tinyFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }

@media (max-width: 1280px) {
  :root { --pad: 48px; }
  .hero { min-height: 610px; grid-template-columns: minmax(390px, .43fr) minmax(0, .57fr); }
  .hero h1 { font-size: 58px; }
  .hero-pudding { width: 650px; right: -48px; top: 8px; }
  .hero-paper { right: -20px; top: 124px; width: 158px; }
  .hero-note { right: 10px; top: 166px; font-size: 14px; }
  .hero-tape { right: 32px; top: 114px; width: 96px; }
  .hero-sticker { right: 180px; width: 116px; bottom: 126px; }
  .signature h2 { font-size: 96px; }
  .about-strip { grid-template-columns: 250px minmax(360px, 1fr) 350px; }
}

@media (max-width: 1024px) {
  .desktop-nav { gap: 32px; }
  .hero { grid-template-columns: 1fr; padding-top: 62px; min-height: 0; }
  .hero h1 { font-size: clamp(48px, 8vw, 72px); }
  .hero-stage { min-height: 600px; margin-top: 18px; }
  .hero-pudding { right: -12px; top: -10px; width: min(720px, 92vw); }
  .hero-paper { right: 24px; top: 110px; }
  .hero-note { right: 56px; top: 160px; }
  .hero-tape { right: 72px; top: 102px; }
  .best-menu, .news { grid-template-columns: 1fr; }
  .best-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 32px; }
  .signature { grid-template-columns: 1fr 1fr; }
  .signature-copy { grid-column: 2; }
  .about-strip { grid-template-columns: 1fr; }
  .promise-note { margin-left: 0; max-width: 520px; }
  .site-footer, .store-layout, .detail, .page-head { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --pad: 22px; }
  .site-header { height: 74px; grid-template-columns: 1fr auto; padding: 0 20px; }
  .brand { font-size: 22px; }
  .desktop-nav, .header-actions .icon-button { display: none; }
  .mobile-menu-button { display: inline-block; }
  .hero { min-height: 0; padding-top: 52px; }
  .soft-note { right: 12px; top: -34px; }
  .hero h1 { font-size: clamp(38px, 10vw, 46px); line-height: 1.24; }
  .hero h1 span { white-space: normal; }
  .hero-buttons { flex-wrap: wrap; gap: 12px; }
  .btn { height: 48px; padding: 0 24px; }
  .hero-stage { min-height: 430px; margin-top: 22px; overflow: clip; }
  .hero-pudding { width: 430px; right: -78px; top: -8px; }
  .hero-paper, .hero-note, .hero-tape { display: none; }
  .hero-sticker { width: 105px; right: 8px; bottom: 72px; }
  .hero-lines { left: 20px; top: 110px; width: 58px; }
  .hero-transition { min-height: 86px; }
  .hero-transition img { width: 86vw; }
  .hero-transition span { display: none; }
  .best-menu { padding-top: 30px; }
  .best-products { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 18px; }
  .best-products .product-card { flex: 0 0 76%; scroll-snap-align: start; }
  .product-image-link { min-height: 230px; }
  .signature { display: flex; flex-direction: column; align-items: flex-start; min-height: 0; margin-top: 50px; }
  .signature h2 { order: 1; margin: 0; font-size: 72px; }
  .signature-product { order: 2; }
  .signature-product img { width: 440px; margin-left: -30px; }
  .signature-copy { order: 3; }
  .about-strip { margin-bottom: 90px; }
  .package-collage > img:first-child { height: 300px; }
  .promise-note > img:first-child { height: 320px; }
  .promise-note > div { left: 92px; top: 72px; width: 220px; }
  .promise-note .spoon { right: 46px; bottom: 48px; width: 64px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .news-grid img, .news-grid a:nth-child(2n) img { height: 210px; }
  .site-footer { display: flex; flex-direction: column; gap: 28px; }
  .site-footer nav { flex-direction: column; gap: 14px; }
  .social { justify-self: start; }
  .site-footer small { text-align: left; }
  .page-head { padding-top: 80px; }
  .page-head h1 { font-size: 58px; }
  .menu-grid, .store-products { grid-template-columns: 1fr; gap: 60px; }
  .detail { gap: 20px; padding-top: 60px; }
  .detail-image { min-height: 420px; }
  .detail-image > img:first-child { height: 420px; }
  .story-rows div, .notice-list a { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 40px; }
  .hero-pudding { width: 400px; right: -88px; }
  .hero-stage { min-height: 392px; }
  .signature h2 { font-size: 64px; }
  .section-side h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .parallax { transform: none !important; }
}
