:root {
  --paper: #e6e2dc;
  --ink: #1b1a18;
  --muted: #77726b;
  --line: rgba(27, 26, 24, .16);
  --accent: #e5628c;
  --display: 'Anton', 'Pretendard Variable', sans-serif;
  --brush: 'Permanent Marker', 'Nanum Pen Script', cursive;
  --hand: 'Caveat', 'Nanum Pen Script', cursive;
  --body: 'Pretendard Variable', Pretendard, system-ui, -apple-system, 'Malgun Gothic', sans-serif;
  --top: 60px;
  --bar: 52px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
a, button, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body {
  margin: 0;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
/* 줄바꿈: 마지막 줄에 한두 글자만 남지 않게 */
h1, h2, h3, legend { text-wrap: balance; }
p, li, dd, dt { text-wrap: pretty; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.label { font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.caps { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }

/* 헤더 */
.top { display: flex; align-items: center; justify-content: space-between; height: var(--top); padding-inline: 16px; }
/* 로고: 상어 그림 + 둥근 글씨 상호 */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: 'Gaegu', var(--body); font-size: 28px; font-weight: 700; letter-spacing: -.01em; line-height: 1; text-decoration: none; }
.logo img { display: block; width: auto; height: 40px; }
.logo > span:last-child { padding-top: .04em; }
/* 상어: 누르면 입(오른쪽 아래의 검은 점)이 뻐끔뻐끔 커졌다 작아지고 물방울이 올라간다 */
.shark { position: relative; display: block; }
.shark::after { content: ''; position: absolute; left: 80.5%; top: 61%; width: 11%; aspect-ratio: 1; border-radius: 50%; background: #111; transform: scale(0); }
.shark.gulp { animation: shark-bob 1.4s ease-in-out; }
.shark.gulp::after { animation: shark-mouth 1.4s ease-in-out; }
.bubble { position: absolute; left: 92%; top: 48%; width: 5px; height: 5px; border: 1.5px solid var(--accent); border-radius: 50%; opacity: 0; animation: shark-bubble 1s ease-out forwards; }
.bubble--2 { width: 7px; height: 7px; animation-delay: .35s; }
.bubble--3 { animation-delay: .7s; }
@keyframes shark-mouth { 0%, 100% { transform: scale(0); } 12%, 45%, 78% { transform: scale(1.7); } 28%, 62%, 92% { transform: scale(.9); } }
@keyframes shark-bob { 0%, 100% { transform: none; } 12%, 45%, 78% { transform: translateY(-1px) rotate(-3deg); } 28%, 62% { transform: translateY(1px) rotate(2deg); } }
@keyframes shark-bubble { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(9px, -22px) scale(1.2); } }
.logo--small { font-size: 23px; }
.logo--small img { height: 32px; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a { text-decoration: none; }
@media (hover: hover) { .top nav a:hover { color: var(--accent); } }
.social { display: flex; }
@media (hover: hover) { .social:hover { opacity: .6; } }

/* 판매 중: 슬라이드 하나가 목업 한 장 — 큰 단어, 브러시 문구, 찢어진 종이 속 상품, 손글씨, 버튼 */
.track { display: flex; overscroll-behavior-x: contain; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 6px 16px 0;
  text-align: center;
  overflow: hidden;
}
.kicker { text-wrap: balance; font-size: 18px; font-weight: 800; letter-spacing: .02em; line-height: 1.25; text-transform: uppercase; }

/* 비율은 목업(미피 꿈나라 베딩 드롭) 실측: 큰 단어 폭 = 화면의 76%, 구멍 폭 ≈ 단어 폭, 손글씨와 도장은 단어 폭 바깥 여백에 걸친다 */
.hero {
  container-type: inline-size;
  position: relative;
  /* --k = 큰 단어 높이까지 넣은 (포스터 높이 ÷ 폭). 큰 단어가 짧을수록 글자가 커져 포스터가 길어지므로,
     그만큼 폭을 줄여서 자세히 보기 버튼까지 첫 화면에 들어오게 한다 */
  width: min(76%, 620px, max(220px, calc((100svh - 410px) / var(--k, 1.3))));
  margin-top: 14px;
}
.headline {
  --fs: min(calc(185cqw / var(--len, 5)), 44cqw);
  margin-bottom: calc(var(--fs) * .2);
  font-family: var(--display);
  font-size: var(--fs);
  line-height: .95;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
  transform: scaleY(1.22);
  transform-origin: top;
  position: relative;
  /* 인쇄물처럼 군데군데 벗겨진 질감 */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -4 0 0 0 3.55'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -4 0 0 0 3.55'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
}
.script {
  position: relative;
  z-index: 3;
  margin-top: -15cqw;
  font-family: var(--brush);
  font-size: 9.5cqw;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-4deg);
}
/* 상품 컷: 배경 종이가 투명한 이미지 한 장. 큰 글자 위에 얹혀서 찢어진 종이 끝이 글자를 또렷하게 덮는다 */
.cut {
  position: relative;
  z-index: 1;
  left: 50%;
  display: block;
  /* 상품 컷은 서버가 여백을 같은 비율로 맞춰 준다 */
  width: 114cqw;
  aspect-ratio: 5 / 4;
  margin: -9cqw 0 -3cqw;
  object-fit: contain;
  transform: translateX(-50%);
  cursor: pointer;
}
/* 나이키 샘플처럼: 왼쪽은 짧은 막대 + 굵은 대문자, 오른쪽은 밑줄 그은 브러시 문구 */
/* 문구는 상품을 가리지 않게 구멍 아래 종이 여백에 놓는다 */
.hero:has(.note) { margin-bottom: 8cqw; }
.note { position: absolute; z-index: 3; bottom: -7cqw; text-align: left; text-transform: uppercase; text-wrap: balance; }
.note--l { left: -5cqw; max-width: 30cqw; font-size: 3.3cqw; font-weight: 800; line-height: 1.25; letter-spacing: .02em; }
.note--l::before { content: ''; display: block; width: .7cqw; height: 3.6cqw; margin-bottom: 1.6cqw; background: var(--accent); }
.note--r {
  right: -5cqw;
  max-width: 34cqw;
  padding-bottom: .8cqw;
  border-bottom: .5cqw solid var(--accent);
  color: var(--accent);
  font-family: var(--brush);
  font-size: 5cqw;
  line-height: 1.08;
  transform: rotate(-7deg);
}
.note--r.note--long { max-width: 38cqw; font-size: 3.7cqw; }
.hero--bare { padding-bottom: 8cqw; }
.hero--bare .script { margin-top: -15cqw; }

.slide .tagline { position: relative; z-index: 2; margin-top: 14px; color: var(--muted); font-size: 16px; }
.price { margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 8px; }
/* 메인 슬라이드의 가격은 큰 숫자로 */
.slide .price { margin-top: 6px; font-family: var(--display); font-size: 52px; font-weight: 400; letter-spacing: .01em; line-height: 1; }
.stock { margin-top: 8px; padding: 3px 10px 2px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
/* 자세히 보기(채운 버튼)와 바로 구매(테두리 버튼)를 나란히 */
.slide-acts { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; width: min(100%, 400px); margin-top: 14px; }
.slide-acts .btn { width: 100%; padding: 0 12px; }
.btn.btn--line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.btn--line::after { content: none; }
@media (hover: hover) { .btn.btn--line:hover { background: var(--ink); color: #fff; filter: none; } }
.more { margin-top: 6px; padding: 8px 12px; border: 0; background: none; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .more:hover { color: var(--accent); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 28px;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 0;
  font-size: 14px; font-weight: 700; letter-spacing: .22em; text-decoration: none;
  transition: filter .12s;
}
.btn::after { content: '→'; letter-spacing: 0; font-size: 17px; }
@media (hover: hover) { .btn:hover { filter: brightness(.93); } }
.btn[disabled] { opacity: .5; cursor: default; }

/* 배너 가운데 양옆: 옅은 화살표. 아래 조작 줄(--bar)을 뺀 높이의 한가운데에 둔다 */
.carousel { position: relative; }
.side { position: absolute; z-index: 3; top: calc((100% - var(--bar)) / 2); width: 48px; height: 72px; margin-top: -36px; border: 0; background: none; color: var(--ink); opacity: .22; transition: opacity .12s; }
.side[hidden] { display: none; }
/* 넓은 화면에서는 화면 끝이 아니라 상품 사진 옆에 붙인다 */
.side--prev { left: max(0px, calc(50% - 460px)); }
.side--next { right: max(0px, calc(50% - 460px)); }
.side::before { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translate(-30%, -50%) rotate(45deg); }
.side--next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.side:focus-visible { opacity: 1; }
@media (hover: hover) { .side:hover { opacity: 1; } }
.controls { display: flex; align-items: center; justify-content: center; gap: 18px; height: var(--bar); }
.controls button { width: 44px; height: 44px; border: 0; background: none; font-size: 18px; }
@media (hover: hover) { .controls button:hover { color: var(--accent); } }
#counter { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }

.empty { min-height: 60svh; align-content: center; }
.empty b { font-family: var(--display); font-weight: 400; font-size: min(30vw, 200px); line-height: 1; color: var(--accent); }
.empty p { margin-block: 14px 8px; color: var(--muted); font-size: 14px; }

/* 작은 포스터: 종료 카드 · 주문 창 · 상세에서 같이 쓴다 */
.mini {
  container-type: inline-size;
  display: grid; align-content: center; justify-items: center;
  width: 100%; height: 100%;
  overflow: hidden;
}
.mini-head { font-family: var(--display); font-size: min(calc(190cqw / var(--len, 5)), 60cqw); line-height: 1; color: var(--accent); text-transform: uppercase; }
.mini img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 종료: 그림자 카드 */
#now, #ended, #shop, .d-others { padding: 48px 16px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
#now .sec-head h2 { padding: 0; margin: 0; border: 0; }
.sec-more, .sec-count { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.sec-more { padding: 6px 0 6px 12px; margin: -6px 0; }
@media (hover: hover) { .sec-more:hover { color: var(--accent); } }
.d-others { padding-top: 8px; }
#now h2, #ended h2, .others-head { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.ended-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
.ended-art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; filter: grayscale(1); }
.ended-art::after { content: ''; position: absolute; inset: 0; background: rgba(27, 26, 24, .6); }
.stamp {
  position: absolute; z-index: 1; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  padding: 4px 14px;
  border: 2px solid #fff;
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .2em; white-space: nowrap;
}
/* 넘김 버튼은 상품 줄의 좌우에 둔다 */
.others-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.others-nav { width: 40px; height: 44px; margin-bottom: 52px; border: 0; background: none; font-size: 18px; }
@media (hover: hover) { .others-nav:hover:not([disabled]) { color: var(--accent); } }
.others-nav[disabled] { opacity: .25; cursor: default; }
/* 한 화면에 휴대폰 2칸 · 넓은 화면 4칸, 나머지는 옆으로 넘긴다 */
.others-row { --per: 2; --gap: 14px; display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.others-row::-webkit-scrollbar { display: none; }
.others-row > li { flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per)); scroll-snap-align: start; }
.now-card { display: block; text-decoration: none; }
.now-art { aspect-ratio: 4 / 5; overflow: hidden; background: #f6f4f0; transition: background .15s; }
@media (hover: hover) { .now-card:hover .now-art { background: #fff; } }
/* 상품 컷은 주변이 투명해서, 칸을 채우도록 조금 키운다 */
.now-art .mini img { object-fit: contain; transform: scale(.96); transition: transform .2s; }
@media (hover: hover) { .now-card:hover .now-art .mini img { transform: scale(1); } }
.now-title { margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.35; }
.now-meta { margin-top: 2px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.now-meta span { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.ended-title { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* 푸터: 한 줄 소개 · 이용 안내 링크 · SNS */
/* 상품을 불러오기 전에도 본문이 화면을 채워서, 푸터가 위로 올라왔다 내려가지 않게 한다 */
main { min-height: 100vh; min-height: 100svh; }
.foot { margin: 72px 16px 0; padding-top: 24px; border-top: 1px solid var(--ink); }
.foot-main { display: grid; gap: 20px; }
.foot-brand p { margin-top: 10px; color: var(--muted); font-size: 14px; letter-spacing: -.01em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.foot-links a { white-space: nowrap; }
.foot-links a { text-decoration: none; }
@media (hover: hover) { .foot-links a:hover { color: var(--accent); } }
.foot-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-block: 16px 28px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-social { display: flex; gap: 16px; }

/* 읽는 페이지: About · 이용 안내 */
.page { max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; font-size: 16px; line-height: 1.8; }
.page section { display: block; margin-top: 56px; padding-top: 4px; scroll-margin-top: 20px; }
.page section + section { margin-top: 64px; }
.page h2 { margin-bottom: 14px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.page .sub { margin: -8px 0 12px; color: var(--muted); font-size: 14px; }
.page h3 { margin-bottom: 8px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.page p + p, .page ul + p, .page p + ul { margin-top: 12px; }
.page ul { display: grid; gap: 8px; }
.page ul li { position: relative; padding-left: 16px; }
.page ul li::before { content: ''; position: absolute; left: 0; top: .8em; width: 6px; height: 2px; background: var(--accent); }
.page section a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.page-hero { container-type: inline-size; padding-top: 12px; }
.page-hero .caps { color: var(--accent); }
.page-hero h1 { margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.page-big { font-family: var(--display); font-size: min(27cqw, 200px) !important; font-weight: 400 !important; letter-spacing: 0 !important; line-height: .95 !important; color: var(--accent); }
.page-big span { display: block; }
.page-script { position: relative; margin: -.5em 0 0 4px; white-space: nowrap; font-family: var(--brush); font-size: min(6.6cqw, 52px); line-height: 1.1; text-transform: uppercase; transform: rotate(-4deg); transform-origin: left center; }
.page-lead { text-wrap: balance; margin-top: 20px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.6; }
.page-hero--plain .page-lead { margin-top: 10px; color: var(--muted); font-size: 16px; font-weight: 400; }

.story p { font-size: 17px; }
.page .pillars { display: grid; gap: 36px; padding-block: 32px; border-block: 1px solid var(--ink); }
.pillars b { font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; color: var(--accent); }
.pillars h3 { margin-top: 8px; }
.pillars p { color: var(--muted); font-size: 15px; line-height: 1.7; }
/* 배송비 최저 요금: 숫자를 크게, 두 칸으로 */
.rates { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 0; border-block: 1px solid var(--ink); }
.rates > div { padding: 20px 0 18px; }
.rates > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.rates dt { font-size: 14px; font-weight: 700; }
.rates dd { margin: 6px 0 0; color: var(--accent); font-family: var(--display); font-size: clamp(44px, 13vw, 76px); line-height: 1; white-space: nowrap; }
.ship-note { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.promise-script { margin-bottom: 2px; color: var(--accent); font-family: var(--brush); font-size: 22px; line-height: 1.1; text-transform: uppercase; transform: rotate(-4deg); transform-origin: left center; }
.promise dl { display: grid; gap: 24px; margin: 20px 0 0; }
.promise dt { padding-left: 14px; border-left: 4px solid var(--accent); font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.promise dd { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.page-cta { display: grid; gap: 6px; justify-items: center; margin-top: 56px; text-align: center; }
.page-cta .btn { width: min(100%, 340px); }
.page-cta p { color: var(--muted); }

.req-steps { margin-top: 32px; }
/* 요청 양식: 상자 대신 밑줄만 있는 칸, 질문 세 덩어리 */
.req-form { display: grid; gap: 44px; margin-top: 48px; }
.req-form fieldset { gap: 20px; }
.req-form legend { margin-bottom: 18px; padding: 0; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.req-form .field > span { margin-bottom: 2px; font-size: 12px; }
.req-form .field input { height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: none; font-size: 17px; }
.req-form .field input::placeholder { color: rgba(27, 26, 24, .3); }
.req-form .field input:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.req-form .field input[aria-invalid='true'] { border-bottom-color: #c8324b; }
.req-pair { display: grid; grid-template-columns: 1fr 90px; gap: 20px; align-items: start; }
.req-pair--even { grid-template-columns: 1fr; }
.req-form .co-choice span { padding: 14px 16px; background: none; text-align: center; }
.req-form .co-choice b { font-size: 16px; }
.req-form .btn { width: 100%; }
.req-form .fine { margin-top: -30px; text-align: center; }
#request-done h2 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips a { padding: 6px 12px; border: 1px solid var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
@media (hover: hover) { .chips a:hover { background: var(--ink); color: #fff; } }
.steps { display: grid; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--accent); }
.steps b { font-size: 17px; letter-spacing: -.02em; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.duo { display: grid; gap: 14px; }
.duo > div { padding: 20px; border: 1px solid var(--line); background: #f6f4f0; font-size: 15px; }
.page-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
#returns li b { display: block; }
.page details { border-bottom: 1px solid var(--line); }
.page details:first-of-type { border-top: 1px solid var(--ink); }
.page summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.page summary::-webkit-details-marker { display: none; }
.page summary::after { content: '+'; flex: none; font-size: 20px; font-weight: 400; line-height: 1.3; color: var(--accent); }
.page details[open] summary::after { content: '−'; }
.page details p { padding-bottom: 18px; color: var(--muted); font-size: 15px; }

/* 자세히 보기: 왼쪽 종이 면(큰 제목 · 손글씨 · 메인 사진), 오른쪽 색 면(디테일 컷), 아래 상품 정보 */
.back { display: inline-block; margin-bottom: 18px; font-size: 13px; font-weight: 600; text-decoration: none; }
@media (hover: hover) { .back:hover { color: var(--accent); } }
.d-over { font-size: 14px; font-weight: 700; color: var(--muted); }
#item figure { position: relative; margin: 0; }
#item figure img { display: block; width: 100%; object-fit: cover; }
#item figcaption { position: absolute; top: 12px; left: 14px; max-width: 9em; font-size: 10px; line-height: 1.9; text-align: left; }
.d-lead { container-type: inline-size; padding: 10px 16px 24px; }
.d-kicker { color: var(--muted); font-size: 13px; }
.who { display: inline-block; margin-right: 8px; padding: 1px 7px; border: 1px solid var(--ink); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.5; vertical-align: 1px; }
.d-title { margin-top: 6px; font-family: var(--display); font-size: min(calc(178cqw / var(--len, 6)), 22cqw, 112px); line-height: 1; color: var(--accent); text-transform: uppercase; }
.d-title span { display: block; white-space: nowrap; }
.d-script { margin: 10px 0 16px 2px; font-family: var(--hand); font-size: clamp(24px, 6cqw, 36px); line-height: 1.05; transform: rotate(-4deg); transform-origin: left center; }
/* 메인 사진은 잘라내지 않고 원래 비율 그대로 */
#item .d-main img { width: auto; max-width: 100%; max-height: min(70svh, 520px); }
/* 사진은 흰 배경 판별이 끝난 뒤에 나타난다 */
#item figure img { opacity: 0; transition: opacity .18s; }
#item figure img.ready { opacity: 1; }
/* 흰 배경은 종이에 녹이되, 곱하기로 탁해지는 만큼 미리 밝혀 둔다 */
#item .d-main img.on-white { mix-blend-mode: multiply; filter: brightness(1.1); }
.d-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 16px; }
/* 상세의 가격도 메인처럼 큰 숫자로 */
.d-buy .price { margin: 0; font-family: var(--display); font-size: 48px; font-weight: 400; letter-spacing: .01em; line-height: 1; }
.d-buy .btn { flex: 1 1 200px; min-height: 48px; }
/* 옵션 고르기 */
.opts { display: grid; gap: 10px; margin-top: 18px; }
.opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.opt-name { min-width: 44px; color: var(--muted); font-size: 12px; font-weight: 600; }
.opt { min-height: 40px; padding: 0 16px; border: 0; border-radius: 0; background: none; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.opt[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--ink); }
.opt[disabled] { color: var(--muted); opacity: .45; cursor: default; text-decoration: line-through; }
.co-opt { font-size: 13px; font-weight: 600; }
.co-optpick select { background: #f6f4f0; }
.d-side { display: grid; gap: 10px; padding: 16px; background: var(--tint); }
.d-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.d-pager { display: flex; align-items: center; justify-content: center; gap: 18px; }
.d-pager button { width: 44px; height: 44px; border: 0; background: none; font-size: 18px; }
@media (hover: hover) { .d-pager button:hover { color: var(--accent); } }
.d-pager span { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* 사진 크게 보기 */
.viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(27, 26, 24, .94); color: #fff; }
.viewer[open] { display: grid; grid-template: 'prev stage next' 1fr 'foot foot foot' auto / auto 1fr auto; align-items: center; }
.viewer::backdrop { background: none; }
.v-stage { grid-area: stage; display: grid; place-items: center; min-width: 0; height: 100%; padding: 56px 8px 8px; overflow: hidden; }
.v-stage img { max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; background: #f6f4f0; }
.v-nav, .v-close { width: 48px; height: 48px; border: 0; border-radius: 0; background: none; color: #fff; font-size: 22px; }
@media (hover: hover) { .v-nav:hover, .v-close:hover { background: rgba(255, 255, 255, .14); } }
.v-prev { grid-area: prev; margin-left: 8px; }
.v-next { grid-area: next; margin-right: 8px; }
.v-close { position: absolute; top: 8px; right: 8px; z-index: 1; font-size: 17px; }
.v-foot { grid-area: foot; display: flex; justify-content: space-between; gap: 16px; min-height: 48px; padding: 0 20px calc(16px + env(safe-area-inset-bottom)); align-items: center; }
.v-count { margin-left: auto; }
.d-side--empty { display: none; }
.d-shot img { aspect-ratio: 1; }
.d-info { display: grid; gap: 28px; max-width: 680px; margin: 0 auto; padding: 36px 16px 56px; }
.d-intro h1 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.d-intro .tagline { margin-top: 4px; color: var(--muted); font-size: 13px; }
.detail-desc { margin-top: 12px; font-size: 14px; line-height: 1.75; white-space: pre-line; }
.d-block h3 { padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.d-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-facts { display: grid; grid-template-columns: minmax(84px, auto) 1fr; margin: 0; font-size: 14px; }
.detail-facts dt, .detail-facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.detail-facts dt { padding-right: 24px; color: var(--muted); }
.d-buy--end { margin-top: 0; }
/* DM 보내기: 구매하기와 같은 높이 · 같은 각진 모양, 색만 비운 짝꿍 버튼 */
.ask { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; box-shadow: inset 0 0 0 1px var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-decoration: none; transition: background .12s, color .12s; }
.ask img { display: block; width: 18px; height: 18px; }
@media (hover: hover) { .ask:hover { background: var(--ink); color: #fff; } }
@media (hover: hover) { .ask:hover img { filter: invert(1); } }
.d-buy .ask { flex: none; }
.buybar { display: none; }

/* 주문 페이지: 왼쪽은 받는 나라와 그에 맞는 입력 칸, 오른쪽은 주문 요약 */
.co { display: grid; }
.co-sum { display: grid; gap: 16px; align-content: start; padding: 20px 16px; border-bottom: 1px solid var(--line); background: rgba(27, 26, 24, .04); }
.co-form { order: 2; padding: 20px 16px 48px; }
.co-group { display: grid; gap: 12px; margin-top: 28px; }
.co-form > .co-group { margin-top: 8px; }
.co-group h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.co-country { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-choice input { position: absolute; opacity: 0; pointer-events: none; }
.co-choice span { display: block; padding: 14px 16px; border: 1px solid var(--line); background: #f6f4f0; cursor: pointer; }
.co-choice b { display: block; font-size: 17px; }
.co-choice small { color: var(--muted); font-size: 12px; }
.co-choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.co-choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.co-fields { display: grid; }
.co-pay { display: grid; gap: 10px; }
.co-note { padding: 14px 16px; border: 1px solid var(--line); background: #f6f4f0; font-size: 13px; color: var(--muted); }
.co-rest > .btn { width: 100%; min-height: 58px; margin-top: 16px; }
.co-agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.co-agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.co-agree a, .fine a { white-space: nowrap; text-underline-offset: 3px; }
.co-rest > .form-error { margin-top: 16px; font-size: 13px; }
.co-line { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.co-thumb { position: relative; width: 64px; height: 64px; border: 1px solid var(--line); background: #f6f4f0; }
.co-badge { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.co-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.co-price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.co-count { min-width: 32px; text-align: center; font-weight: 700; }
.co-rows { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.co-rows dd { margin: 0; text-align: right; }
.co-rows .co-total, .co-rows .co-total + dd { padding-top: 8px; font-size: 19px; font-weight: 800; }
.co-done .co-rows { width: 100%; text-align: left; }
.co-done .btn { width: 100%; }
.co-done .ask { width: 100%; }
.o-how dd { font-weight: 700; user-select: all; }
.co-done { display: grid; gap: 14px; justify-items: center; max-width: 480px; margin: 0 auto; padding: 56px 16px 72px; text-align: center; }
.co-done h1 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.co-done > p:not(.done-id):not(.fine) { font-size: 14px; color: var(--muted); }
.field select { width: 100%; height: 46px; padding: 0 8px; border: 1px solid var(--line); border-radius: 0; background: #f6f4f0; font: inherit; font-size: 16px; color: inherit; }


.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label, .field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.field > span { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.field i { font-style: normal; font-weight: 400; }
.field a { color: var(--accent); }

.stepper { display: flex; align-items: center; border: 1px solid var(--ink); }
.stepper button { width: 40px; height: 38px; border: 0; background: none; font-size: 18px; }
.stepper button[disabled] { opacity: .3; cursor: default; }
.stepper input { width: 36px; border: 0; background: none; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { display: none; }

.segment { display: flex; border: 1px solid var(--ink); }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span { display: block; padding: 8px 24px; font-size: 14px; font-weight: 600; cursor: pointer; }
.segment input:checked + span { background: var(--ink); color: #fff; }
.segment input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

fieldset { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field { display: block; min-width: 0; }
.field input {
  width: 100%; height: 46px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 0;
  background: #f6f4f0; font-size: 16px;
}
.field input:focus { outline: 0; border-color: var(--ink); }
.field input[aria-invalid='true'] { border-color: #c8324b; }
.field .err, .form-error { margin-top: 4px; font-size: 12px; color: #c8324b; }
.pair { display: grid; gap: 10px; }
.pair--zip { grid-template-columns: 110px auto; justify-content: start; align-items: end; }
.zip-find { height: 46px; padding: 0 16px; border: 0; border-radius: 0; background: none; box-shadow: inset 0 0 0 1px var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.zip-find[disabled] { opacity: .5; }
@media (hover: hover) { .zip-find:hover { background: var(--ink); color: #fff; } }
.zip-layer { height: 420px; border: 1px solid var(--ink); }
.pair--us { grid-template-columns: 1fr 72px 104px; }

.fine { font-size: 12px; color: var(--muted); }

.done-id { font-family: ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 700; padding: 8px 16px; border: 1px solid var(--ink); user-select: all; }

@media (min-width: 900px) {
  .top { padding-inline: 32px; }
  #now, #ended, #shop, .d-others { max-width: 1080px; margin-inline: auto; padding-inline: 32px; }
  .others-row { --per: 4; --gap: 16px; }
  .others-wrap { gap: 14px; }
  .foot { margin-inline: 32px; }
  .foot-main { grid-template-columns: 1fr auto; align-items: end; }
  .page { padding-top: 28px; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .req-pair--even { grid-template-columns: 1fr 1fr; }
  .req-form .btn { width: 340px; justify-self: center; }
  .duo { grid-template-columns: 1fr 1fr; }
  .promise dl { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .ended-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  /* 색 면은 화면 오른쪽 끝까지 이어진다 */
  .d-wrap { background: linear-gradient(to right, transparent calc(50% + 1040px / 6), var(--tint) 0); }
  .d-hero { max-width: 1040px; margin: 0 auto; }
  .co { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); max-width: 1040px; min-height: calc(100svh - var(--top)); margin: 0 auto; }
  .co-form { order: 0; padding: 28px 48px 72px 32px; }
  .co-sum { position: sticky; top: 0; align-self: start; min-height: calc(100svh - var(--top)); padding: 36px 32px; border-bottom: 0; border-left: 1px solid var(--line); }
  .d-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .d-lead { padding: 20px 40px 44px 32px; }
  .d-side, .d-side--empty { display: grid; align-content: center; gap: 16px; padding: 56px 32px 44px; background: none; }
  .d-shots { grid-template-columns: 1fr; gap: 16px; }
  .d-buy { justify-content: flex-start; gap: 12px; }
  .d-buy .price { margin-right: 16px; }
  .d-buy--top .btn, .d-buy--end .btn { flex: 0 1 280px; }
  .d-info { padding-block: 44px 64px; }
}

/* 휴대폰 (인스타그램에서 넘어오는 화면) */
@media (max-width: 640px) {
  :root { --top: 54px; }
  .top { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .top .logo { font-size: 25px; gap: 6px; }
  .top .logo img { height: 34px; }
  .top nav { gap: 12px; }
  .top nav .caps { font-size: 10px; letter-spacing: .14em; }
  .top nav { gap: 14px; }
  .nav-archive { display: none; }
  .page section, .page-cta { margin-top: 44px; }
  .page section + section { margin-top: 52px; }
  .page-lead { font-size: 18px; }
  .foot-links { gap: 10px 16px; }
  .steps li { grid-template-columns: 46px 1fr; }
  .slide { padding-top: 0; }
  .hero { width: min(80%, max(200px, calc((100svh - 318px) / var(--k, 1.3)))); margin-top: 10px; }
  .cut { width: 110cqw; }
  .note--l { left: -9cqw; max-width: 34cqw; font-size: 3.7cqw; }
  .note--r { right: -9cqw; font-size: 5.4cqw; }
  .note--r.note--long { font-size: 4cqw; }
  .slide-acts { width: 100%; }
  .slide .price { font-size: 44px; }
  .more { padding: 12px 16px; }
  .controls { height: 48px; }
  #now, #ended { padding-top: 36px; }
  #shop { padding-top: 24px; }
  #now .ended-grid, #shop .ended-grid { grid-template-columns: 1fr 1fr; }
  .d-others { padding-inline: 8px; }
  .d-others .others-head { margin-inline: 8px; }
  .others-wrap { gap: 4px; }
  .others-nav { width: 32px; height: 40px; border: 0; background: none; }
  #item .d-main img { width: 100%; max-height: none; }
  /* 상세: 구매 버튼은 화면 아래에 하나만 */
  #item { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .opts { margin-top: 14px; }
  .d-buy--top, .d-buy--end { display: none; }
  .buybar {
    position: fixed; z-index: 5; left: 0; right: 0; bottom: 0;
    display: flex; flex-wrap: nowrap; margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  /* 크게 보기: 휴대폰에서는 사진이 화면 폭을 다 쓰고, 넘김 버튼은 사진 위에 얹는다 */
  .viewer[open] { grid-template: 'stage' 1fr 'foot' auto / 1fr; }
  .v-stage { padding-inline: 0; }
  .v-nav { position: absolute; top: 50%; z-index: 1; margin: -24px 0 0; background: rgba(27, 26, 24, .45); }
  .v-prev { left: 0; }
  .v-next { right: 0; }
  .buybar { gap: 10px; }
  .buybar .price { font-size: 30px; white-space: nowrap; }
  .buybar .price small { display: none; }
  .buybar .btn { flex: 1 1 auto; min-height: 50px; padding: 0 10px; gap: 8px; letter-spacing: .12em; }
  /* 아이콘만 있으면 무슨 버튼인지 헷갈려서 글씨를 같이 둔다 */
  .buybar .ask { order: 1; flex: 0 0 auto; gap: 6px; padding: 0 11px; min-height: 50px; font-size: 13px; white-space: nowrap; }
  .buybar .ask img { width: 18px; height: 18px; }
  .buybar .btn { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 아주 좁은 화면: 로고와 메뉴가 닿지 않게 */
@media (max-width: 370px) {
  .top .logo { font-size: 22px; }
  .top .logo img { height: 30px; }
  .top nav { gap: 9px; }
}
