/* ==========================================================
   sharpb [샵비] — 미니백 브랜드 공식 홈페이지
   ========================================================== */

:root {
  --bg: #F4F4F2;
  --ink: #18181B;
  --muted: #6B6B70;
  --line: #DDDDD8;
  --stone: #E8E7E3;
  --accent: #9E2236;   /* 체리: 사이즈 가이드의 휴대폰, 상태 표시 */

  --f-sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-latin: "Geist", var(--f-sans);
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a3a3f; border-color: #3a3a3f; }
.btn-line { background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: .875rem; }
.arrow { font-family: var(--f-mono); }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 244, 242, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }

.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; }
.logo-mark { font-family: var(--f-latin); font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.logo-ko { font-size: .75rem; font-weight: 500; color: var(--muted); }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 10px; font-size: .9375rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--muted); }

@media (max-width: 760px) {
  html { scroll-padding-top: 116px; }
  .header-inner { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 10px; }
  .nav { order: 3; width: calc(100% + 20px); margin: 2px -10px 0; overflow-x: auto; }
  .nav a { padding: 10px; font-size: .875rem; white-space: nowrap; }
}

/* ---------- 히어로 ---------- */
.hero-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end; gap: 24px 48px;
  padding-block: clamp(36px, 6vw, 88px) clamp(28px, 4vw, 48px);
}
.eyebrow { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.hero h1 {
  margin: 0;
  font-size: clamp(3.75rem, 9.5vw, 8.75rem); font-weight: 700;
  line-height: 1.02; letter-spacing: -.055em;
}
.hero-side p { margin: 0; max-width: 28em; color: var(--muted); font-size: 1.0625rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.hero-img { display: block; background: var(--stone); }
.hero-img img { width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; }
.cap { font-size: .8125rem; color: var(--muted); }
.hero-caption { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding-top: 12px; }
.hero-caption span:last-child { white-space: nowrap; }
.hero-caption .m { display: none; }

@media (max-width: 760px) {
  .hero-head { grid-template-columns: 1fr; }
  .hero-img img { aspect-ratio: 4 / 5; }
  .hero-caption .d { display: none; }
  .hero-caption .m { display: inline; }
}

/* ---------- 섹션 공통 ---------- */
.section { padding-top: clamp(80px, 11vw, 152px); }
.sec-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 14px; margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--ink);
}
.sec-head a { font-size: .875rem; font-weight: 600; text-decoration: none; }
.sec-head a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sec-title { margin: 0; font-size: clamp(1.875rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.04em; }
.sec-text { margin: 16px 0 0; max-width: 32em; color: var(--muted); font-size: 1.0625rem; }

/* ---------- 브랜드 문장 ---------- */
.statement { padding-top: clamp(80px, 11vw, 152px); }
.statement p {
  margin: 0; max-width: 21em;
  font-size: clamp(1.5rem, 3.2vw, 2.625rem); font-weight: 600;
  line-height: 1.45; letter-spacing: -.035em;
}
.statement p span { color: var(--muted); }

/* ---------- 컬렉션 ---------- */
.collection-top { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.collection-top .sec-text { margin: 0; }

.products {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(10px, 2vw, 24px);
  margin: 0; padding: 0; list-style: none;
}
.product { display: block; text-decoration: none; }
.p-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.p-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
  .product:hover   .product:hover .p-img img { transform: scale(1.025); }
}
.p-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding-top: 14px; }
.p-name { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.p-code { color: var(--muted); align-self: center; }
.p-mat { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .9375rem; }
.p-size { margin: 4px 0 0; font-family: var(--f-mono); font-size: .8125rem; color: var(--ink); }
.swatches { display: flex; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; align-self: center; }
.swatches li { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }

@media (max-width: 560px) {
  .p-name { font-size: .9375rem; }
  .p-mat { font-size: .8125rem; }
  .p-size { font-size: .6875rem; grid-column: 1 / -1; }
  .p-code { display: none; }
  .swatches { grid-column: 1 / -1; }
}

/* ---------- 사이즈 가이드 ---------- */
.sg {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "intro stage" "tabs stage" "fit stage";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(32px, 5vw, 72px); align-items: start;
}
.sg-intro { grid-area: intro; }
.sg-tabs { grid-area: tabs; }
.sg-stage { grid-area: stage; }
.fit { grid-area: fit; }
@media (max-width: 900px) {
  .sg { grid-template-columns: 1fr; grid-template-areas: "intro" "tabs" "stage" "fit"; grid-template-rows: auto; }
  .sg-stage { margin-top: 16px; }
}

.sg-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
.sg-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: transparent;
  text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.sg-tab strong { font-size: .9375rem; font-weight: 600; }
.sg-tab span { color: var(--muted); font-family: var(--f-mono); font-size: .75rem; }
.sg-tab:hover { border-color: var(--muted); }
.sg-tab[aria-pressed="true"] { border-color: var(--ink); background: #fff; }

.fit { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.fit li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.fit .mk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .75rem; font-weight: 700; flex: none; }
.fit .yes .mk { background: var(--ink); color: #fff; }
.fit .no { color: var(--muted); }
.fit .no .mk { box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.fit .dim { margin-left: auto; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }

.sg-stage { margin: 0; background: #fff; border-radius: 20px; padding: clamp(12px, 2vw, 24px); }
.sg-stage svg { width: 100%; height: auto; }
.sg-stage figcaption { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; padding: 12px 4px 0; }
.sg-grid-line { stroke: #ECECE8; stroke-width: .035; }
.sg-grid-major { stroke: #DCDCD7; stroke-width: .05; }
.sg-bag { stroke: var(--ink); stroke-width: .12; stroke-linejoin: round; }
.sg-handle { fill: none; stroke: var(--ink); stroke-width: .5; stroke-linecap: round; }
.sg-phone rect { fill: rgba(255, 255, 255, .9); stroke: var(--accent); stroke-width: .14; }
.sg-phone circle { fill: var(--accent); }
.sg-phone text { fill: var(--accent); font: 600 .8px var(--f-sans); letter-spacing: -.01em; }
.sg-dim line { stroke: var(--muted); stroke-width: .06; }
.sg-dim text { fill: var(--muted); font: 500 .8px var(--f-mono); }
.sg-phone { transition: transform .7s cubic-bezier(.2, .9, .25, 1.15), opacity .3s; }
.sg-phone.out { transform: translateY(-7px); opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .sg-phone, .sg-phone.out { transition: none; transform: none; } }
@media (max-width: 600px) {
  .sg-phone text { font-size: 1.15px; }
  .sg-dim text { font-size: 1.15px; }
}

/* ---------- 소재 ---------- */
.materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .materials { grid-template-columns: 1fr; } .mat-img { aspect-ratio: 16 / 10; } }
.mat-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--stone); border-radius: 4px; }
.mat-img img { width: 100%; height: 100%; object-fit: cover; }
.mat h3 { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; }
.mat h3 .mono { color: var(--muted); font-weight: 500; }
.mat p { margin: 8px 0 0; color: var(--muted); }
.mat .used { margin-top: 12px; font-size: .875rem; color: var(--ink); }

/* ---------- 브랜드 문의 ---------- */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact .links { margin-top: 0; }

.links { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.links a {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.links a:hover .lk-val { text-decoration: underline; text-underline-offset: 4px; }
.lk-name { font-weight: 600; }
.lk-val { color: var(--muted); overflow-wrap: anywhere; }
.lk-arrow { font-family: var(--f-mono); }

/* ---------- 푸터 ---------- */
.site-footer { margin-top: clamp(96px, 12vw, 168px); padding-block: 40px 56px; background: var(--ink); color: #A9A9AE; font-size: .8125rem; }
.site-footer .logo-mark { color: #fff; font-size: 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.footer-top a { color: #fff; text-decoration: none; }
.footer-brand { margin: 28px 0 0; }
.copy { margin: 24px 0 0; font-family: var(--f-mono); font-size: .75rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding-block: 64px; }
.notfound h1 { margin: 0; font-family: var(--f-latin); font-size: clamp(5rem, 16vw, 12rem); font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.notfound p { margin: 16px 0 0; max-width: 28em; color: var(--muted); font-size: 1.0625rem; }

@media (prefers-reduced-motion: reduce) { .p-img img { transition: none; } .product:hover .p-img img { transform: none; } }
