/* 스케치북 웹 — 디자인 원본: docs/design/claude-design-85f4d5fb 턴 8 (8a~8e), 토큰은 1a.
   데스크톱 1200px 시안을 기준으로, 좁은 화면에서는 열 수를 줄인다. */

:root {
  --ff: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --bg: #FFFFFF; --surface: #F7F7F5; --t1: #111111; --t2: #6B6B6B; --line: #E6E6E3;
  --accent: #C44320; --on-accent: #FFFFFF; --success: #2E8B57; --warning: #C78A00;
  --ph-a: #ECEAE4; --ph-b: #E1DFD8; --ph-t: #7A776F;
  --wrap: 1200px; --pad: 48px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212; --surface: #1E1E1E; --t1: #F2F2F2; --t2: #A0A0A0; --line: #2C2C2C;
    --accent: #E8653F; --on-accent: #121212; --success: #4CAF7D; --warning: #E0A52A;
    --ph-a: #1E1E1E; --ph-b: #252525; --ph-t: #8A8A8A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--t1); font-family: var(--ff); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--t2); }
.accent { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.env-banner { background: var(--warning); color: #111; font: 600 12px/1 var(--ff); text-align: center; padding: 6px; }

/* ---------- 헤더 · 푸터 ---------- */
.topbar { border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--ff); letter-spacing: -.01em; }
.logo:hover { color: var(--t1); }
.topnav { display: flex; gap: 28px; font: 500 14px/1 var(--ff); color: var(--t2); }
.topnav a[aria-current="page"] { color: var(--t1); }
.topbar__right { display: flex; gap: 10px; align-items: center; }
.topbar__download { font: 500 14px/1 var(--ff); }

.footer { border-top: 1px solid var(--line); margin-top: 72px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 20px;
  padding-bottom: 20px; font: 400 12px/1.5 var(--ff); color: var(--t2); }
.footer__links { display: flex; gap: 18px; flex: none; }

/* ---------- 버튼 · 칩 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  font: 600 14px/1 var(--ff); padding: 10px 18px; border: 1px solid transparent; white-space: nowrap; }
.btn:hover { color: inherit; opacity: .88; }
.btn--solid { background: var(--t1); color: var(--bg); }
.btn--solid:hover { color: var(--bg); }
.btn--line { border-color: var(--t1); }
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--block { display: flex; width: 100%; height: 52px; border-radius: 12px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { color: var(--on-accent); }
.btn--outline-block { display: flex; width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--t1); font-size: 14px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font: 500 13px/1 var(--ff); }
.chip[aria-current="page"] { background: var(--t1); color: var(--bg); border-color: var(--t1); font-weight: 600; }
.chip--muted { color: var(--t2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 999px; font: 500 12px/1 var(--ff); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 999px; font: 500 12px/1 var(--ff); }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); font: 500 15px/1 var(--ff); color: var(--t2);
  overflow-x: auto; }
.tabs a { padding-bottom: 14px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--t1); border-bottom: 2px solid var(--t1); }

/* ---------- 상태 표시 (모바일과 같은 아이콘) ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--ff); white-space: nowrap; }
.st i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; flex: none; }
.st--draft i { border-style: dashed; }
.st--in_progress i { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.st--on_sale i::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.st--ready i, .st--sold i, .st--completed i { border: 0; border-radius: 0; }
.st--ready i::after, .st--sold i::after, .st--completed i::after { content: ""; position: absolute; left: 2px; top: 1px;
  width: 4px; height: 7px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.st--sm i { width: 10px; height: 10px; }

/* ---------- 자리표시 이미지 ---------- */
.ph { background: repeating-linear-gradient(135deg, var(--ph-a) 0 10px, var(--ph-b) 10px 20px); display: flex;
  align-items: center; justify-content: center; text-align: center; color: var(--ph-t);
  font: 500 10px/1.3 ui-monospace, Menlo, monospace; letter-spacing: .02em; overflow: hidden; }
.img { width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.frame { position: relative; overflow: hidden; background: var(--surface); }
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r4 { border-radius: 4px; } .r8 { border-radius: 8px; }
.avatar { border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-weight: 600; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.skeleton { background: var(--surface); animation: pulse 1.4s infinite; border-radius: 4px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 작품 카드 ---------- */
.grid { display: grid; gap: 40px 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card:hover { color: inherit; }
.card:hover .card__title { color: var(--accent); }
.card__title { font: 600 16px/1.3 var(--ff); }
.grid--3 .card__title { font-size: 17px; }
.card__meta { display: flex; justify-content: space-between; gap: 8px; font: 500 13px/1 var(--ff); color: var(--t2); }
.card__price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card__price .p { font: 700 18px/1 var(--ff); }
.card__price .p--soon { font: 600 15px/1 var(--ff); color: var(--t2); }
.card__price .t { font: 500 13px/1 var(--ff); }
.card--dim { opacity: .6; }

/* ---------- 페이지 머리 ---------- */
.page-head { padding-top: 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head h1 { font: 600 36px/1.2 var(--ff); letter-spacing: -.01em; }
.page-head p { font: 400 15px/1.5 var(--ff); color: var(--t2); margin-top: 8px; }
.sort { display: flex; gap: 8px; }
.sort a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font: 500 13px/1 var(--ff); }
.sort a[aria-current="page"] { border-color: var(--t1); }
.more { display: flex; justify-content: center; padding-top: 48px; }

/* ---------- 8a 랜딩 ---------- */
.hero { padding-top: 72px; padding-bottom: 24px; text-align: center; }
.hero h1 { font: 600 48px/1.2 var(--ff); letter-spacing: -.02em; }
.hero p { font: 400 16px/1.6 var(--ff); color: var(--t2); margin-top: 18px; }
.hero__cta { display: flex; gap: 10px; margin-top: 28px; justify-content: center; flex-wrap: wrap; }
.strip { padding-top: 48px; }
.strip__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: end; }
.strip__item { display: flex; flex-direction: column; gap: 10px; }
.strip__item .frame { aspect-ratio: 4 / 5; }
.strip__cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.strip__cap b { font: 600 17px/1.3 var(--ff); }
.strip__cap span { font: 400 14px/1 var(--ff); color: var(--t2); }
.section { padding-top: 72px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section__head h2 { font: 600 20px/1.3 var(--ff); }
.section__head span, .section__head a { font: 500 13px/1 var(--ff); color: var(--t2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.rank { display: flex; flex-direction: column; }
.rank__row { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.rank__row:last-child { border-bottom: 1px solid var(--line); }
.rank__row:hover { color: inherit; }
.rank__no { font: 600 14px/1 var(--ff); color: var(--t2); width: 18px; flex: none; }
.rank__thumb { width: 64px; aspect-ratio: 1 / 1; border-radius: 4px; flex: none; }
.rank__main { flex: 1; min-width: 0; }
.rank__main b { display: block; font: 600 15px/1.2 var(--ff); }
.rank__main b + span { display: block; font: 400 13px/1.4 var(--ff); color: var(--t2); margin-top: 3px; }
.rank__end { text-align: right; flex: none; }
.rank__end .p { font: 700 17px/1 var(--ff); color: var(--accent); }
.rank__end .t { font: 500 12px/1 var(--ff); color: var(--t2); margin-top: 6px; }
.rank__minis { display: flex; gap: 4px; flex: none; }
.rank__minis .frame, .rank__minis .ph { width: 40px; aspect-ratio: 1 / 1; border-radius: 4px; }
.newbie { padding: 18px; background: var(--surface); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; }
.newbie__who { display: flex; align-items: center; gap: 10px; }
.newbie__who .avatar { width: 36px; height: 36px; background: var(--bg); font-size: 14px; }
.newbie__who b { display: block; font: 600 14px/1.2 var(--ff); }
.newbie__who b + span { display: block; font: 400 12px/1.3 var(--ff); color: var(--t2); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 72px; }
.values b { display: block; font: 600 17px/1.3 var(--ff); }
.values p { font: 400 14px/1.6 var(--ff); color: var(--t2); margin-top: 8px; }

/* ---------- 8c 작품 상세 ---------- */
.crumb { padding-top: 40px; font: 500 13px/1 var(--ff); color: var(--t2); }
.detail { display: grid; grid-template-columns: 1fr 380px; gap: 56px; padding-top: 20px; align-items: start; }
.detail__main { min-width: 0; }
.detail__cover { width: 100%; }
.detail__cover img { width: 100%; height: auto; border-radius: 4px; }
.detail__cover--working { max-width: 560px; }
.logs__head { display: flex; align-items: center; gap: 12px; font: 500 13px/1 var(--ff); color: var(--t2); margin-top: 48px; }
.logs__head .rule { flex: 1; height: 1px; background: var(--line); }
.logs { margin-top: 24px; display: flex; flex-direction: column; gap: 28px; }
.log { display: grid; grid-template-columns: 120px 1fr; gap: 24px; }
.log__at { font: 500 13px/1.5 var(--ff); color: var(--t2); }
.log__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.log__photos a { aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden; background: var(--surface); }
.log__photos img { width: 100%; height: 100%; object-fit: cover; }
.log__note { font: 400 15px/1.6 var(--ff); margin-top: 12px; white-space: pre-line; }
.log--locked { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px dashed var(--line);
  border-radius: 10px; font: 400 13px/1.4 var(--ff); color: var(--t2); }
.logs__foot { font: 400 13px/1.5 var(--ff); color: var(--t2); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.side__title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.side__title h1 { font: 600 28px/1.25 var(--ff); }
.side__title .st { margin-top: 8px; }
.side__spec { font: 400 15px/1.6 var(--ff); color: var(--t2); margin-top: 6px; }
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.byline:hover { color: inherit; }
.byline .avatar { width: 40px; height: 40px; font-size: 16px; }
.byline b { display: block; font: 600 15px/1.2 var(--ff); }
.byline small { display: block; font: 400 12px/1.4 var(--ff); color: var(--t2); margin-top: 2px; }
.byline em { margin-left: auto; font: 500 13px/1 var(--ff); font-style: normal; color: var(--t2); }
.panel { background: var(--surface); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.panel__label { font: 500 13px/1 var(--ff); color: var(--t2); margin-bottom: 8px; }
.panel__big { font: 700 32px/1 var(--ff); }
.panel__row { display: flex; justify-content: space-between; gap: 12px; font: 400 13px/1 var(--ff); color: var(--t2); }
.panel__row b { color: var(--t1); font-weight: 600; }
.panel__note { font: 400 12px/1.5 var(--ff); color: var(--t2); text-align: center; }
.panel__side { text-align: right; font: 400 13px/1.5 var(--ff); color: var(--t2); }
.bids__head { font: 500 12px/1 var(--ff); color: var(--t2); padding-bottom: 10px; }
.bids__row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line);
  font: 400 13px/1 var(--ff); color: var(--t2); }
.bids__row:first-of-type { color: var(--t1); }
.bids__row:first-of-type .num { font-weight: 600; }
.cheers { display: flex; flex-wrap: wrap; gap: 6px; font: 500 12px/1 var(--ff); }
.cheers span { padding: 6px 10px; background: var(--bg); border-radius: 999px; }

/* ---------- 8d 작가 ---------- */
.artist-head { padding-top: 64px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.artist-head .avatar { width: 120px; height: 120px; font-size: 44px; }
.artist-head__name { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.artist-head__name h1 { font: 600 36px/1.2 var(--ff); letter-spacing: -.01em; }
.artist-head__bio { font: 400 15px/1.6 var(--ff); margin-top: 12px; max-width: 560px; white-space: pre-line; }
.artist-head__stats { display: flex; gap: 24px; margin-top: 14px; font: 400 14px/1 var(--ff); color: var(--t2); flex-wrap: wrap; }
.artist-head__stats b { color: var(--t1); font-weight: 600; }
.artist-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.artist-head__sign { max-width: 200px; max-height: 64px; object-fit: contain; }
@media (prefers-color-scheme: dark) { .artist-head__sign { filter: invert(1); } }
.artist-tabs { margin-top: 40px; }
.notify-card { padding: 28px; border: 1px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column;
  justify-content: center; gap: 8px; }
.notify-card b { font: 600 15px/1.3 var(--ff); }
.notify-card p { font: 400 13px/1.5 var(--ff); color: var(--t2); }
.artist-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 16px; }
.artist-card:hover { color: inherit; border-color: var(--t2); }
.artist-card__who { display: flex; align-items: center; gap: 14px; }
.artist-card__who .avatar { width: 56px; height: 56px; font-size: 22px; }
.artist-card__who b { display: block; font: 600 17px/1.2 var(--ff); }
.artist-card__who b + span { display: block; font: 400 13px/1.4 var(--ff); color: var(--t2); margin-top: 4px; }
.artist-card__minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.artist-card__minis > * { aspect-ratio: 1 / 1; border-radius: 4px; }
.artist-card p { font: 400 13px/1.5 var(--ff); color: var(--t2); }

/* ---------- 8e 공통 상태 · 앱 이동 ---------- */
.state { padding: 48px 32px; border: 1px dashed var(--line); border-radius: 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 10px; }
.state b { font: 600 17px/1.3 var(--ff); }
.state p { font: 400 14px/1.5 var(--ff); color: var(--t2); }
.state .btn { margin-top: 6px; }
.notfound { padding: 96px 0 24px; max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.notfound .code { font: 600 13px/1 var(--ff); color: var(--t2); letter-spacing: .06em; }
.notfound h1 { font: 600 28px/1.3 var(--ff); }
.notfound p { font: 400 15px/1.6 var(--ff); color: var(--t2); }
.notfound .row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.appdlg { border: 0; padding: 0; border-radius: 20px; background: var(--surface); color: var(--t1); max-width: 560px;
  width: calc(100% - 32px); }
.appdlg::backdrop { background: rgba(0, 0, 0, .45); }
.appdlg__body { padding: 32px; display: flex; gap: 28px; align-items: center; }
.appdlg__qr { width: 140px; flex: none; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.appdlg__qr svg { display: block; width: 100%; height: auto; }
.appdlg h2 { font: 600 22px/1.3 var(--ff); }
.appdlg p { font: 400 14px/1.6 var(--ff); color: var(--t2); margin-top: 8px; }
.appdlg__stores { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.appdlg__close { position: absolute; top: 14px; right: 16px; font-size: 22px; line-height: 1; color: var(--t2); }
.appdlg__open { display: none; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 1fr 340px; gap: 40px; }
}
@media (max-width: 860px) {
  :root { --pad: 20px; }
  body { font-size: 14px; }
  .topbar__inner { height: auto; padding-top: 14px; padding-bottom: 12px; flex-wrap: wrap; row-gap: 12px; }
  .topnav { order: 3; width: 100%; gap: 22px; }
  .topbar__download { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 30px; }
  .strip__row { grid-template-columns: repeat(3, 1fr); }
  .strip__row > :nth-child(n+4) { display: none; }
  .two, .values { grid-template-columns: 1fr; gap: 40px; }
  .section, .values { padding-top: 56px; }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .page-head h1 { font-size: 28px; }
  .detail { grid-template-columns: 1fr; gap: 32px; }
  .detail { gap: 0; }
  .detail__main { display: contents; }  /* 휴대폰: 사진 → 가격·버튼 → 제작 로그 */
  .detail__media { order: 1; }
  .detail__side { order: 2; margin-top: 24px; }
  .detail__main > :not(.detail__media) { order: 3; }
  .side { position: static; }
  .log { grid-template-columns: 1fr; gap: 8px; }
  .artist-head { grid-template-columns: auto 1fr; padding-top: 40px; }
  .artist-head .avatar { width: 80px; height: 80px; font-size: 30px; }
  .artist-head__name h1 { font-size: 28px; }
  .artist-head__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .appdlg__body { flex-direction: column; text-align: center; }
  .appdlg__qr { display: none; }
  .appdlg__open { display: flex; }
  .appdlg__stores { justify-content: center; }
}
@media (max-width: 480px) {
  .grid--4, .grid--3 { grid-template-columns: 1fr 1fr; }
  .card__price .p { font-size: 16px; }
  .rank__minis { display: none; }
}

/* ---------- 공지사항 ---------- */
.notice-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.notice-bar a { display: flex; align-items: center; gap: 12px; height: 44px; font: 500 13px/1 var(--ff); }
.notice-bar__kind { padding: 4px 8px; border-radius: 999px; background: var(--t1); color: var(--bg); font: 600 11px/1 var(--ff); }
.notice-bar__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list { margin-top: 32px; border-top: 1px solid var(--line); }
.notice-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.notice-row:hover { color: inherit; }
.notice-row:hover .notice-row__title { color: var(--accent); }
.notice-row__kind { padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); font: 500 11px/1 var(--ff); color: var(--t2); flex: none; }
.notice-row__kind--system { border-color: var(--t1); color: var(--t1); }
.notice-row__title { flex: 1; min-width: 0; font: 500 15px/1.4 var(--ff); }
.notice-row__title b { color: var(--accent); font-weight: 600; margin-right: 4px; }
.notice-row__date { font: 400 13px/1 var(--ff); color: var(--t2); flex: none; }
.notice { max-width: 720px; padding-top: 24px; }
.notice h1 { font: 600 28px/1.3 var(--ff); }
.notice__meta { font: 400 13px/1 var(--ff); color: var(--t2); margin-top: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.notice__body { font: 400 15px/1.8 var(--ff); margin-top: 24px; white-space: pre-line; word-break: keep-all; }
