/* ==========================================================================
   홍익안료 · hikcolor.com — Design System v2
   한지 바탕 · 먹색 글씨 · 색은 안료에게만 · 여백의 미
   Motion: 감쇠 스프링(linear() 근사) · 모든 이동은 아래 → 위 한 방향
   ========================================================================== */

@font-face { font-family: 'KoPub Batang'; src: url('/fonts/kopub-batang-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'KoPub Batang'; src: url('/fonts/kopub-batang-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'KoPub Batang'; src: url('/fonts/kopub-batang-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'KoPub Dotum'; src: url('/fonts/kopub-dotum-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'KoPub Dotum'; src: url('/fonts/kopub-dotum-500.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'KoPub Dotum'; src: url('/fonts/kopub-dotum-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #F7F5F0;
  --bg-deep: #EFECE4;
  --surface: #FFFFFF;
  --ink: #161514;
  --ink-2: #4F4C47;
  --ink-3: #8A867E;
  --line: #E2DED4;
  --line-strong: #C8C2B5;
  --accent: #8C2F2C;
  --accent-deep: #6E2321;
  --cheong: #2B4C7E;
  --hwang: #C8A24A;
  --muk: #1F1E1C;
  --danger: #9B2C2C;

  --serif: 'KoPub Batang', 'Nanum Myeongjo', 'Batang', serif;
  --sans: 'KoPub Dotum', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --max: 1440px;
  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --sec: clamp(88px, 11vw, 168px);
  --radius: 2px;
  --hd-h: 72px;

  /* 감쇠 스프링 (ζ≈0.72, 약 3.8% 오버슈트) — 콘텐츠 등장 */
  --spring: linear(0, 0.0402, 0.1381, 0.2657, 0.4029, 0.536, 0.6565, 0.7599, 0.8445, 0.9106, 0.9599, 0.9946, 1.0174, 1.0308, 1.0371, 1.0384, 1.0363, 1.0323, 1.0272, 1.022, 1.0169, 1.0124, 1.0086, 1.0055, 1.003, 1.0013, 1, 0.9992, 0.9988, 0.9986, 0.9985, 0.9986, 0.9988, 0.999, 0.9992, 0.9994, 1);
  /* 단단한 스프링 (ζ≈0.86) — 버튼·헤더·호버 */
  --spring-snap: linear(0, 0.1076, 0.3162, 0.5258, 0.6967, 0.8205, 0.9027, 0.9533, 0.9819, 0.9965, 1.0029, 1.0049, 1.0048, 1.0038, 1.0027, 1.0018, 1.0011, 1.0006, 1.0003, 1.0001, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --rise: 36px;
}

@media (max-width: 767px) {
  :root { --hd-h: 60px; --rise: 24px; }
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--hd-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* 한지 결 — 아주 옅은 종이 질감 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { flex: 1; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

: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;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 14px; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* -------------------------------------------------------------------------- */
/* Typography                                                                 */
/* -------------------------------------------------------------------------- */
.t-serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; line-height: 1.22; color: var(--muk); }
.t-64 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.12; }
.t-48 { font-size: clamp(32px, 4vw, 54px); line-height: 1.16; }
.t-36 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.24; }
.t-28 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.32; }
.t-22 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; }
.t-18 { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.t-16 { font-size: 16px; }
.t-14 { font-size: 14px; }
.t-12 { font-size: 12.5px; }
.t-mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.01em; }
.t-muted { color: var(--ink-2); }
.t-faint { color: var(--ink-3); }
.t-measure { max-width: 62ch; }
.num { font-family: var(--sans); font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* -------------------------------------------------------------------------- */
/* Layout                                                                     */
/* -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section + .section { padding-top: 0; }
.section--paper { background: var(--surface); }
.section--deep { background: var(--bg-deep); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }

@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .grid-4.grid-mobile-2, .grid-5.grid-mobile-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
}

/* 섹션 머리 — 번호 · 제목 · 바로가기, 위쪽 실선이 왼쪽에서 그려짐 */
.sec-head {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: end;
  gap: 16px;
  padding-top: 20px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--line-s, 1));
}
html.js .sec-head[data-reveal]::before { --line-s: 0; transition: transform 1400ms var(--ease-out); }
html.js .sec-head[data-reveal].is-in::before { --line-s: 1; }
.sec-no { font-family: var(--sans); font-weight: 300; font-size: 13px; color: var(--ink-3); letter-spacing: 0.06em; align-self: start; padding-top: 2px; }
.sec-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 42px); letter-spacing: -0.035em; line-height: 1.2; color: var(--muk); }
.sec-sub { display: block; margin-top: 10px; font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 767px) {
  .sec-head { grid-template-columns: 1fr auto; }
  .sec-no { grid-column: 1 / -1; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: background-size 600ms var(--ease-out);
  white-space: nowrap;
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { transition: transform 600ms var(--spring-snap); }
.link-arrow:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------------------- */
/* Motion — 등장(아래 → 위), 이미지 커튼, 제목 줄 마스크                         */
/* -------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--rise), 0);
  transition:
    opacity 800ms var(--ease-out) calc(var(--i, 0) * 80ms),
    transform 1200ms var(--spring) calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js .sec-head[data-reveal] { transform: none; opacity: 1; }
html.js .sec-head[data-reveal] > * { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 700ms var(--ease-out) 120ms, transform 1100ms var(--spring) 120ms; }
html.js .sec-head[data-reveal].is-in > * { opacity: 1; transform: none; }

html.js [data-reveal-img] { clip-path: inset(100% 0 0 0); transition: clip-path 1400ms var(--ease-out) calc(var(--i, 0) * 80ms); }
html.js [data-reveal-img] img { transform: scale(1.14) translate3d(0, 6%, 0); transition: transform 1700ms var(--spring) calc(var(--i, 0) * 80ms); }
html.js [data-reveal-img].is-in { clip-path: inset(0 0 0 0); }
html.js [data-reveal-img].is-in img { transform: none; }

.mask-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask-line > span { display: inline-block; }
html.js .mask-line > span { transform: translate3d(0, 110%, 0); transition: transform 1400ms var(--spring) calc(var(--i, 0) * 110ms + 120ms); }
html.js.is-loaded .mask-line > span { transform: none; }

/* 상단 스크롤 진행 실선 (scroll-driven, 지원 브라우저만) */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; transform-origin: left; transform: scaleX(0); background: var(--accent); }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress-grow linear both; animation-timeline: scroll(root block); }
  @keyframes progress-grow { to { transform: scaleX(1); } }
}

/* 페이지 전환 — 같은 방향(위로)으로 사라지고 아래에서 올라옴 */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 260ms cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 900ms var(--spring) both; }
::view-transition-group(site-header) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: translate3d(0, -14px, 0); } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 28px, 0); } }

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */
.hd {
  position: sticky; top: 0; z-index: 60;
  height: var(--hd-h);
  view-transition-name: site-header;
  background: rgba(247, 245, 240, 0);
  transition: transform 700ms var(--spring-snap), background 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.hd.is-scrolled { background: rgba(247, 245, 240, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.hd.is-hidden { transform: translate3d(0, -100%, 0); }

.hd__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.hd__logo { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: -0.04em; justify-self: start; }
.hd__nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.hd__nav a {
  position: relative; font-size: 15px; font-weight: 500; padding-block: 6px; color: var(--ink-2);
  transition: color 300ms var(--ease-out);
}
.hd__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); }
.hd__nav a:hover, .hd__nav a.is-active { color: var(--ink); }
.hd__nav a:hover::after, .hd__nav a.is-active::after { transform: scaleX(1); }

.hd__utils { justify-self: end; display: flex; align-items: center; gap: clamp(6px, 1vw, 14px); }
.hd-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 10px;
  background: none; border: 0; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: background 300ms var(--ease-out);
}
.hd-btn:hover { background: rgba(22, 21, 20, 0.05); }
.cart-count, .cart-badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: transform 500ms var(--spring-snap);
}
.cart-count.is-bump { transform: scale(1.25); }

.sound-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: background 400ms var(--ease-out), color 400ms var(--ease-out), border-color 400ms var(--ease-out);
}
.sound-btn:hover { border-color: var(--ink); }
.sound-btn.is-playing { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sound-btn__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-btn__bars i { display: block; width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height 600ms var(--spring-snap); }
.sound-btn.is-playing .sound-btn__bars i:nth-child(1) { height: 7px; }
.sound-btn.is-playing .sound-btn__bars i:nth-child(2) { height: 12px; }
.sound-btn.is-playing .sound-btn__bars i:nth-child(3) { height: 5px; }
.sound-btn.is-playing .sound-btn__bars i:nth-child(4) { height: 9px; }

.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; place-items: center; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

@media (max-width: 1000px) {
  .hd__inner { grid-template-columns: 1fr auto; }
  .hd__nav { display: none; }
  .menu-btn { display: inline-grid; }
  .hide-tablet { display: none !important; }
}
@media (max-width: 540px) {
  .sound-btn__label, .hd-btn__label { display: none; }
  .sound-btn { padding: 0 11px; }
}

/* 모바일 전체 메뉴 */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  padding: 0 var(--pad) 40px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity 400ms var(--ease-out), visibility 0s linear 400ms;
}
.drawer.is-open { visibility: visible; opacity: 1; transition: opacity 400ms var(--ease-out), visibility 0s; }
.drawer__top { height: var(--hd-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.drawer__group { padding: 20px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 500ms var(--ease-out), transform 900ms var(--spring); transition-delay: calc(var(--i, 0) * 60ms + 80ms); }
.drawer.is-open .drawer__group { opacity: 1; transform: none; }
.drawer__title { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 10px; }
.drawer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--ink-2); }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: color 500ms var(--ease-out), border-color 500ms var(--ease-out), background 500ms var(--ease-out), transform 500ms var(--spring-snap);
}
/* 호버 시 아래에서 위로 차오르는 면 */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill, var(--ink));
  transform: translate3d(0, 101%, 0);
  transition: transform 700ms var(--spring-snap);
}
.btn:hover:not(:disabled)::before { transform: none; }
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn svg { transition: transform 600ms var(--spring-snap); }
.btn:hover:not(:disabled) svg { transform: translateX(4px); }

.btn--primary { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-bd: var(--ink); --btn-fill: var(--accent); }
.btn--primary:hover:not(:disabled) { border-color: var(--accent); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent); --btn-fill: var(--accent-deep); }
.btn--secondary, .btn--line { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); --btn-fill: var(--ink); }
.btn--secondary:hover:not(:disabled), .btn--line:hover:not(:disabled) { color: var(--bg); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); --btn-fill: var(--bg-deep); }
.btn--ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn--text {
  min-height: auto; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: inherit; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13px; gap: 8px; }
.btn--full, .btn--block { width: 100%; }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }

/* -------------------------------------------------------------------------- */
/* Badges · Chips                                                             */
/* -------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.badge--soldout { background: rgba(22, 21, 20, 0.78); color: #fff; }
.badge--low { background: var(--hwang); color: var(--ink); }
.badge--new { background: var(--cheong); color: #fff; }
.badge--draft { background: var(--danger); color: #fff; }
.badge--outline { border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--surface); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: background 400ms var(--ease-out), color 400ms var(--ease-out), border-color 400ms var(--ease-out);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .count { font-weight: 300; opacity: 0.7; font-variant-numeric: tabular-nums; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(22, 21, 20, 0.15); flex-shrink: 0; }

/* -------------------------------------------------------------------------- */
/* Forms                                                                      */
/* -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field__req { color: var(--accent); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font-family: var(--sans); font-size: 15px;
  transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23161514' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 21, 20, 0.08); }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--danger); }
.field__error { font-size: 13px; color: var(--danger); }
.field__help { font-size: 13px; color: var(--ink-2); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }

/* -------------------------------------------------------------------------- */
/* Cards · Tables · Callouts                                                  */
/* -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }

.data-table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--ink); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; text-align: left; }
.data-table th, .data-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.data-table thead th { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.data-table tbody th { width: 160px; color: var(--ink-2); font-weight: 500; }

.callout { padding: 18px 20px; border-left: 2px solid var(--ink); background: var(--surface); font-size: 14.5px; line-height: 1.7; }
.callout--accent { border-left-color: var(--accent); }
.callout--hwang { border-left-color: var(--hwang); }

.crumbs, .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 28px; }
.crumbs a:hover, .breadcrumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden], .breadcrumbs span[aria-hidden] { opacity: 0.6; }

/* -------------------------------------------------------------------------- */
/* Hero (홈)                                                                   */
/* -------------------------------------------------------------------------- */
.hero { padding-top: clamp(48px, 8vw, 120px); }
.hero__eyebrow { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-2); margin: 0 0 clamp(24px, 3vw, 40px); }
.hero__eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ink-2); }
.hero__title {
  margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 10.4vw, 168px);
  line-height: 1.04; letter-spacing: -0.055em;
  color: var(--muk);
}
.hero__title .em { font-weight: 700; letter-spacing: -0.06em; }
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  margin-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px);
}
.hero__lead { margin: 0; max-width: 34em; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.8; color: var(--ink-2); }
.hero__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-deep); }
.hero__media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.hero__caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; font-size: 13px; color: var(--ink-3); }
@supports (animation-timeline: view()) {
  .hero__media .parallax { animation: hero-par linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  @keyframes hero-par { to { transform: translate3d(0, 8%, 0) scale(1.04); } }
}
@media (max-width: 767px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__media img { aspect-ratio: 4 / 3.2; }
}

/* -------------------------------------------------------------------------- */
/* Product card                                                               */
/* -------------------------------------------------------------------------- */
.pcard { display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.pcard__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: var(--bg-deep); }
.pcard__media img, .pcard__swatch { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--spring-snap), filter 600ms var(--ease-out); }
.pcard:hover .pcard__media img, .pcard:hover .pcard__swatch { transform: scale(1.045); }
.pcard__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.pcard__tone {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  transform: translate3d(0, 100%, 0); transition: transform 600ms var(--spring-snap);
}
.pcard:hover .pcard__tone { transform: none; }
.pcard__body { display: flex; flex-direction: column; gap: 4px; }
.pcard__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pcard__name { margin: 0; display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -0.03em; }
.pcard__hanja { font-family: var(--serif); font-weight: 300; font-size: 14px; color: var(--ink-3); }
.pcard__meta { margin: 0; font-size: 13px; color: var(--ink-2); }
.pcard__price { margin: 6px 0 0; display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcard__price small { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.pcard.is-soldout .pcard__media img { filter: grayscale(0.6) brightness(0.85); }

/* 가로 스크롤 레일 (모바일) */
@media (max-width: 767px) {
  .rail { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
}

/* -------------------------------------------------------------------------- */
/* 분류 목록 (홈)                                                               */
/* -------------------------------------------------------------------------- */
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat-row { border-bottom: 1px solid var(--line); }
.cat-row a {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 24px;
  padding: clamp(24px, 3vw, 40px) 0;
  transition: padding 700ms var(--spring-snap);
}
.cat-row a::before { content: ''; position: absolute; inset: 0; background: var(--surface); transform: scaleY(0); transform-origin: bottom; transition: transform 700ms var(--spring-snap); z-index: -1; }
.cat-row a:hover { padding-left: 20px; padding-right: 20px; }
.cat-row a:hover::before { transform: none; }
.cat-row__no { font-weight: 300; font-size: 13px; color: var(--ink-3); letter-spacing: 0.06em; }
.cat-row__name { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 54px); letter-spacing: -0.045em; line-height: 1.1; }
.cat-row__name small { font-weight: 300; font-size: 0.42em; color: var(--ink-3); margin-left: 10px; letter-spacing: 0; }
.cat-row__desc { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.cat-row__meta { display: flex; align-items: center; gap: 18px; }
.cat-row__dots { display: flex; }
.cat-row__dots .dot { width: 14px; height: 14px; margin-left: -4px; box-shadow: 0 0 0 2px var(--bg); }
.cat-row a:hover .cat-row__dots .dot { box-shadow: 0 0 0 2px var(--surface); }
.cat-row__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background 500ms var(--ease-out), color 500ms var(--ease-out), border-color 500ms var(--ease-out); }
.cat-row a:hover .cat-row__arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-row__arrow svg { transition: transform 600ms var(--spring-snap); }
.cat-row a:hover .cat-row__arrow svg { transform: translateX(3px); }
@media (max-width: 860px) {
  .cat-row a { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .cat-row__no { display: none; }
  .cat-row__desc { grid-column: 1 / -1; grid-row: 2; }
  .cat-row__meta { grid-row: 1; grid-column: 2; }
  .cat-row__dots { display: none; }
}

/* -------------------------------------------------------------------------- */
/* Split feature (이미지 + 글)                                                 */
/* -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split__media { overflow: hidden; border-radius: var(--radius); background: var(--bg-deep); }
.split__media img { width: 100%; aspect-ratio: 5 / 3.4; object-fit: cover; }
.split__body { display: flex; flex-direction: column; gap: 22px; }
.split__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.22; letter-spacing: -0.04em; }
.split__text { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.85; }
.split__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.split__list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.split__list li span:last-child { color: var(--ink-2); }
@media (max-width: 900px) { .split, .split--rev { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* 색칩 그리드 (홈 · 색 확인)                                                   */
/* -------------------------------------------------------------------------- */
.chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.chips a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / 1.08; padding: 14px; background: var(--chip); color: var(--chip-ink, var(--ink)); overflow: hidden; }
.chips a::after { content: ''; position: absolute; inset: 0; background: var(--surface); transform: translate3d(0, 100%, 0); transition: transform 700ms var(--spring-snap); }
.chips a > * { position: relative; z-index: 1; transition: color 400ms var(--ease-out); }
.chips a:hover::after { transform: translate3d(0, 62%, 0); }
.chips a:hover > * { color: var(--ink); }
.chips__name { font-family: var(--serif); font-weight: 500; font-size: 16px; letter-spacing: -0.03em; }
.chips__code { font-size: 11.5px; opacity: 0.8; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 540px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* -------------------------------------------------------------------------- */
/* 도움 링크 타일                                                              */
/* -------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 28px 24px 24px 0; border-bottom: 1px solid var(--line); }
.tile + .tile { padding-left: 24px; border-left: 1px solid var(--line); }
.tile__no { font-weight: 300; font-size: 13px; color: var(--ink-3); }
.tile__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.03em; }
.tile__text { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.tile__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.tile__go svg { transition: transform 600ms var(--spring-snap); }
.tile:hover .tile__go svg { transform: translateX(5px); }
.tile:hover .tile__title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 540px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile + .tile { padding-left: 0; border-left: 0; min-height: auto; padding-block: 24px; }
}

/* -------------------------------------------------------------------------- */
/* 하위 페이지 머리                                                             */
/* -------------------------------------------------------------------------- */
.page-head { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(32px, 4vw, 56px); }
.page-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.4vw, 80px); line-height: 1.08; letter-spacing: -0.05em; color: var(--muk); }
.page-title small { font-weight: 300; font-size: 0.4em; color: var(--ink-3); margin-left: 14px; letter-spacing: 0; }
.page-lead { margin: 22px 0 0; max-width: 46em; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.85; color: var(--ink-2); }
.page-meta { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

/* 목록 필터 */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; margin-bottom: clamp(28px, 3vw, 44px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.toolbar__filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .select { min-height: 42px; width: auto; min-width: 128px; font-size: 14px; padding: 8px 38px 8px 14px; background-color: transparent; border-color: var(--line-strong); }
.toolbar__count { font-size: 14px; color: var(--ink-2); }
html.js .no-js-only { display: none; }

.empty { padding: clamp(56px, 8vw, 120px) 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: clamp(48px, 6vw, 80px); }

/* -------------------------------------------------------------------------- */
/* 상품 상세                                                                   */
/* -------------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.pdp__media { position: sticky; top: calc(var(--hd-h) + 20px); }
.pdp-photo-stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: var(--bg-deep); }
.pdp-photo-stage img { width: 100%; height: 100%; object-fit: cover; }
.pdp-swatch-stage { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.pdp-tone { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pdp-tone__chip { width: 40px; height: 40px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(22, 21, 20, 0.12); flex-shrink: 0; }
.pdp__info { display: flex; flex-direction: column; gap: 28px; padding-top: 4px; }
.pdp__code { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.pdp__name { margin: 8px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.06; letter-spacing: -0.05em; }
.pdp__name small { display: inline-block; font-weight: 300; font-size: 0.38em; color: var(--ink-3); margin-left: 12px; letter-spacing: 0; vertical-align: middle; }
.pdp__summary { margin: 14px 0 0; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.pdp__price { display: flex; align-items: baseline; gap: 12px; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pdp__price strong { font-size: clamp(26px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pdp__ship { font-size: 13.5px; color: var(--ink-2); margin-top: -14px; }
.pdp__specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pdp__specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pdp__specs dt { font-size: 12.5px; color: var(--ink-3); }
.pdp__specs dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; }
.pdp__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp__feedback { min-height: 24px; font-size: 14px; }
@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__media { position: static; }
  .pdp__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.variant-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.variant-pill {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; cursor: pointer;
  transition: border-color 400ms var(--ease-out), background 400ms var(--ease-out), color 400ms var(--ease-out), transform 500ms var(--spring-snap);
}
.variant-pill:hover { border-color: var(--ink); }
.variant-pill:active { transform: scale(0.97); }
.variant-pill strong { font-size: 15px; font-weight: 600; }
.variant-pill span { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.variant-pill.is-selected { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.variant-pill.is-selected span { color: rgba(247, 245, 240, 0.75); }
.variant-pill.is-soldout { opacity: 0.5; }
.variant-pill.is-soldout strong { text-decoration: line-through; }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stepper { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.stepper button { width: 46px; height: 100%; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); transition: background 300ms var(--ease-out); }
.stepper button:hover { background: var(--bg-deep); }
.stepper input { width: 52px; height: 100%; border: 0; border-inline: 1px solid var(--line); background: transparent; text-align: center; font-family: var(--sans); font-size: 15px; font-variant-numeric: tabular-nums; }

/* 탭 */
.tabs-nav { display: flex; gap: clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-btn { position: relative; padding: 18px 0; background: none; border: 0; font-size: 15px; font-weight: 500; color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: color 300ms var(--ease-out); }
.tab-btn::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--spring-snap); }
.tab-btn.is-active { color: var(--ink); }
.tab-btn.is-active::after { transform: scaleX(1); }
.tab-panel { display: none; padding-top: clamp(28px, 3vw, 44px); }
.tab-panel.is-active { display: block; animation: panel-in 800ms var(--spring) both; }
@keyframes panel-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }

.prose p { margin: 0 0 1.2em; line-height: 1.9; color: var(--ink-2); }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 12px; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.4em; color: var(--ink-2); line-height: 1.9; }

/* -------------------------------------------------------------------------- */
/* 장바구니 · 주문                                                             */
/* -------------------------------------------------------------------------- */
.commerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.summary { position: sticky; top: calc(var(--hd-h) + 20px); display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.summary__row { display: flex; justify-content: space-between; font-size: 14.5px; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 16px; font-weight: 600; }
.summary__total strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line__thumb { width: 96px; height: 96px; overflow: hidden; border-radius: var(--radius); background: var(--bg-deep); }
.cart-line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.step-card { padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px; }
.step-card__title { margin: 0; display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.03em; }
.step-card__title span { font-family: var(--sans); font-weight: 300; font-size: 13px; color: var(--ink-3); }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-size: 14.5px; font-weight: 500; transition: border-color 300ms var(--ease-out), background 300ms var(--ease-out); }
.pay-option:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.pay-option input { accent-color: var(--ink); }
@media (max-width: 960px) {
  .commerce { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 540px) {
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line__thumb { width: 72px; height: 72px; }
  .cart-line__total { grid-column: 2; }
}

/* 들어가기(로그인) */
.auth { max-width: 440px; margin: 0 auto; padding: clamp(48px, 8vw, 112px) 0; }
.auth__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 52px); letter-spacing: -0.05em; line-height: 1.1; }
.auth__lead { margin: 16px 0 36px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.oauth-stack { display: flex; flex-direction: column; gap: 10px; }
.oauth-btn { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; min-height: 54px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform 500ms var(--spring-snap), filter 300ms var(--ease-out); }
.oauth-btn:hover { filter: brightness(0.96); }
.oauth-btn:active { transform: scale(0.985); }
.oauth-btn span { text-align: center; }
.btn-naver { background: #03C75A; color: #fff; }
.btn-kakao { background: #FEE500; color: rgba(0, 0, 0, 0.85); }
.btn-google { background: #fff; color: #1F1F1F; border-color: #DADCE0; }
.auth__note { margin: 20px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.auth__alt { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

/* 모달 */
.modal-backdrop { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(22, 21, 20, 0.5); visibility: hidden; opacity: 0; transition: opacity 400ms var(--ease-out), visibility 0s linear 400ms; }
.modal-backdrop.is-open { visibility: visible; opacity: 1; transition: opacity 400ms var(--ease-out), visibility 0s; }
.modal-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; transform: translate3d(0, 40px, 0); transition: transform 900ms var(--spring); }
.modal-backdrop.is-open .modal-card { transform: none; }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 96; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 20px; background: var(--ink); color: var(--bg); border-radius: 999px; font-size: 14px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45); transform: translate3d(-50%, calc(100% + 48px), 0); visibility: hidden; transition: transform 900ms var(--spring), visibility 0s linear 900ms; }
.toast.is-show { transform: translate3d(-50%, 0, 0); visibility: visible; transition: transform 900ms var(--spring), visibility 0s; }
.toast a { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* 접이식 문답 · 알림 */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -0.03em; line-height: 1.45; transition: color 300ms var(--ease-out); }
.faq summary:hover .faq__q { color: var(--accent); }
.faq__icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 1.4px; background: var(--ink); transition: transform 600ms var(--spring-snap); }
.faq__icon::after { transform: rotate(90deg); }
.faq[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { margin: 0; padding: 0 0 28px; max-width: 54em; color: var(--ink-2); line-height: 1.9; }
.faq[open] .faq__a { animation: panel-in 800ms var(--spring) both; }

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.ft { margin-top: auto; padding: clamp(72px, 9vw, 128px) 0 36px; background: var(--muk); color: rgba(247, 245, 240, 0.82); }
.ft a { transition: color 300ms var(--ease-out); }
.ft a:hover { color: #fff; }
.ft__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: clamp(48px, 6vw, 88px); }
.ft__brand { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.18; letter-spacing: -0.05em; color: #fff; margin: 0; }
.ft__brand b { font-weight: 700; }
.ft__h { font-size: 13px; color: rgba(247, 245, 240, 0.5); margin: 0 0 14px; font-weight: 500; }
.ft__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.ft__contact { margin-top: 24px; font-size: 14px; line-height: 1.8; }
.ft__legal { padding-top: 28px; border-top: 1px solid rgba(247, 245, 240, 0.14); display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: rgba(247, 245, 240, 0.5); line-height: 1.7; }
.ft__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 900px) { .ft__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ft__top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ft__top { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* Legacy helpers (관리자 · 정보 페이지 공용)                                    */
/* -------------------------------------------------------------------------- */
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 14px; transition: border-color 400ms var(--ease-out), transform 700ms var(--spring-snap); }
a.cat-card:hover { border-color: var(--ink); transform: translate3d(0, -4px, 0); }
.cat-card__top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; }

.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: #F2F0EA; }
.admin-sidebar { background: var(--muk); color: var(--bg); padding: 28px 18px; display: flex; flex-direction: column; gap: 24px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { padding: 11px 12px; border-radius: var(--radius); font-size: 14px; color: rgba(247, 245, 240, 0.72); transition: background 300ms var(--ease-out), color 300ms var(--ease-out); }
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(247, 245, 240, 0.1); color: #fff; }
.admin-main { padding: 36px; max-width: 1320px; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } .admin-main { padding: 20px; } }

/* -------------------------------------------------------------------------- */
/* Reduced motion                                                             */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal], html.js [data-reveal-img], html.js [data-reveal-img] img, html.js .mask-line > span, html.js .sec-head[data-reveal] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  @view-transition { navigation: none; }
}

/* ==========================================================================
   A4 인쇄용 색견본 (§4.4) — A4 세로 · 여백 12mm · 30×30mm 색칩 · 8pt 라벨
   ========================================================================== */
.swatch-toolbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 0; }
.swatch-preview-wrap { padding: 40px 16px 72px; display: flex; justify-content: center; overflow-x: auto; }
.a4-sheet { width: 210mm; min-height: 297mm; padding: 12mm; background: #fff; box-shadow: 0 30px 60px -30px rgba(22, 21, 20, 0.35); display: flex; flex-direction: column; justify-content: space-between; color: #1A1A1A; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.a4-header { border-bottom: 0.4mm solid #1A1A1A; padding-bottom: 4mm; margin-bottom: 6mm; display: flex; justify-content: space-between; align-items: flex-end; gap: 8mm; }
.a4-notice-top { font-size: 8.5pt; color: #444; margin: 2mm 0 0; }
.a4-grid { display: grid; grid-template-columns: repeat(5, 30mm); justify-content: space-between; row-gap: 7mm; margin-block: 4mm auto; }
.a4-chip { width: 30mm; display: flex; flex-direction: column; break-inside: avoid; }
.a4-chip__box { width: 30mm; height: 30mm; border: 0.25mm solid #CFCBC2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.a4-chip__box.is-target { outline: 0.6mm solid #1A1A1A; outline-offset: 0.6mm; }
.a4-chip__label { margin-top: 1.8mm; font-size: 8pt; line-height: 1.35; }
.a4-chip__cmyk { font-family: var(--mono); font-size: 7pt; color: #555; }
.a4-footer { border-top: 0.3mm solid #C9C4B8; padding-top: 3.5mm; margin-top: 6mm; font-size: 8pt; color: #444; display: flex; justify-content: space-between; gap: 6mm; }

@page { size: A4 portrait; margin: 12mm; }
@media print {
  html, body { background: #fff !important; }
  body::before, .no-print, .hd, .ft, .progress, .swatch-toolbar, .drawer, .toast { display: none !important; }
  .swatch-preview-wrap { padding: 0 !important; overflow: visible !important; }
  .a4-sheet { width: auto !important; min-height: 273mm !important; padding: 0 !important; box-shadow: none !important; margin: 0 !important; }
}
