/* ============================================================
   ART WINDOW — 아트워크 완료 화면 리뉴얼 시안
   실제 art-window-client(Tailwind4/RoomNoteReport) 디자인 언어 재현
   토큰은 src/app.css 의 oklch 값을 sRGB로 변환해 그대로 사용
   ============================================================ */

:root {
  --background: #ffffff;
  --foreground: #020817;
  --primary: #166048;
  --primary-foreground: #f0faf6;
  --secondary: #f1f5f9;
  --secondary-foreground: #1e293b;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --room-bg-soft: #fafbfc;
  --room-border-soft: #eef2f6;
  --room-primary-light: #d8eee4;
  --room-ink-mute: #94a3b8;

  --font-sans: "Noto Sans KR", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", "Noto Serif KR", ui-serif, Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================== 헤더 ============================== */
.aw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  border-bottom: 1px solid #f3f4f6;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}
.aw-header-inner {
  height: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aw-brand {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000;
}
.aw-header-right {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
  color: var(--muted-foreground);
}
.aw-header-right a { transition: color 160ms; }
.aw-header-right a:hover { color: var(--foreground); }
.aw-header-cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
}
.aw-header-cta:hover { background: var(--secondary); }
@media (max-width: 600px) {
  .aw-header-right .hide-sm { display: none; }
}

/* ============================== 섹션 ============================== */
.section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 56px 16px;
}
.section.border {
  border-top: 1px solid var(--border);
}
.section.pad-lg { padding-top: 80px; padding-bottom: 80px; }
@media (min-width: 640px) {
  .section { padding-left: 24px; padding-right: 24px; }
}

/* ============================== eyebrow ============================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 17px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow .rule {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--primary);
}
.eyebrow.muted { color: var(--muted-foreground); }
.eyebrow.muted .rule { background: var(--muted-foreground); }
.eyebrow.sm { font-size: 11px; }
.eyebrow.sm .rule { width: 18px; }

/* ============================== 타이포 ============================== */
.h1 {
  margin: 14px 0 12px;
  font-size: clamp(31px, 5vw, 47px);
  line-height: 1.18;
  font-weight: 300;
  letter-spacing: -0.012em;
  color: var(--foreground);
}
.h2 {
  margin: 14px 0 10px;
  font-size: clamp(25px, 3.4vw, 35px);
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: -0.006em;
  color: var(--foreground);
  max-width: 26ch;
}
.h2.sm {
  font-size: clamp(21px, 2.8vw, 29px);
  line-height: 1.36;
  max-width: 30ch;
}
.lead {
  margin: 0 0 36px;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.74;
  color: var(--muted-foreground);
}
.lead.tight { margin-bottom: 22px; }

/* ============================== 카드 ============================== */
.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
}

/* 메타 pips (hero 아래) */
.meta-pips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  font-size: 13px;
  color: var(--muted-foreground);
}
.meta-pips .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--border);
  margin: 0 14px;
}
.meta-pips .lbl {
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--room-ink-mute);
  margin-right: 7px;
}
.meta-pips strong { font-weight: 500; color: var(--foreground); }

/* ============================== 작품 플레이트 ============================== */
.artwork-plate {
  margin: 0;
  max-width: 512px;
}
.artwork-plate.center { margin-left: auto; margin-right: auto; }
.artwork-plate .frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--secondary);
  box-shadow: 0 18px 44px rgba(2, 8, 23, 0.1), 0 4px 12px rgba(2, 8, 23, 0.05);
}
.artwork-plate .frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.artwork-figcap {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
}
.artwork-plate.center .artwork-figcap { justify-content: center; text-align: center; }
.artwork-figcap .name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.artwork-figcap .en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--primary);
}
.artwork-figcap .sub {
  font-size: 12.5px;
  color: var(--muted-foreground);
}

/* 작품 + 정보카드 2단 (s1-hero 패턴) */
.plate-split {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
}
.info-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
  padding: 26px;
}
.info-card .name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.info-card .name-row .name {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.info-card .name-row .en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--primary);
}
.spec-list { margin: 0; padding: 0; list-style: none; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  font-size: 14px;
  border-top: 1px solid var(--room-border-soft);
}
.spec-list li:first-child { border-top: 0; }
.spec-list dt, .spec-list .k {
  color: var(--muted-foreground);
  font-size: 13px;
}
.spec-list .v { color: var(--foreground); text-align: right; }
.info-card-foot {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--room-border-soft);
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--foreground);
}

/* ============================== 걸어둔 모습 (목업) ============================== */
.placed {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--secondary);
}
.placed img {
  width: 100%;
  aspect-ratio: 11 / 6;
  object-fit: cover;
}
.placed.tall img { aspect-ratio: 3 / 2; }
.pill {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--room-primary-light);
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--primary);
}
.placed-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted-foreground);
}
.mockup-note {
  margin: 14px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.mockup-note .tick {
  flex-shrink: 0;
  margin-top: 8px;
  width: 12px;
  height: 1px;
  background: var(--room-ink-mute);
}

/* ============================== 해설 (commentary) ============================== */
.mini-label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.commentary {
  max-width: 640px;
}
.commentary .lead-sentence {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.005em;
  color: var(--foreground);
}
.commentary p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.78;
  letter-spacing: -0.003em;
  color: var(--muted-foreground);
}
.commentary p:last-child { margin-bottom: 0; }
.commentary p strong {
  font-weight: 500;
  color: var(--primary);
}
.commentary-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
  padding: 28px;
}
.commentary-card .commentary { max-width: none; }

/* 색 스와치 */
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.swatch-row .sw {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted-foreground);
}
.swatch-row .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(2, 8, 23, 0.08);
}

/* 인용 강조 박스 */
.quote {
  margin: 0 0 30px;
  max-width: 60ch;
  border-left: 2px solid var(--primary);
  background: var(--room-bg-soft);
  padding: 14px 16px 14px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: -0.003em;
  color: var(--foreground);
}

/* 해설 옆 참고 이미지 */
.note-split {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  align-items: start;
}
.ref-figure { margin: 0; }
.ref-figure .ref-img {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--secondary);
}
.ref-figure .ref-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ref-figure figcaption {
  margin-top: 11px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ============================== 두 폭 (변주 B) ============================== */
.diptych {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr);
  align-items: start;
}
.diptych .panel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.diptych .panel-label .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--primary);
}
.diptych .panel-label .txt {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
}
.diptych .artwork-plate { max-width: none; }
.commentary-duo {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
}
.commentary-duo > div { padding: 0 32px; }
.commentary-duo > div:first-child { padding-left: 0; }
.commentary-duo > div:last-child {
  padding-right: 0;
  border-left: 1px solid var(--room-border-soft);
}

/* ============================== 주문 / CTA ============================== */
.order-spec {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.order-spec .item { display: inline-flex; align-items: baseline; gap: 6px; }
.order-spec .k {
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--room-ink-mute);
}
.order-spec .v { font-weight: 500; color: var(--foreground); }

.spec-pip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--room-primary-light);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
}

.price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.price-box .label { font-size: 13.5px; color: var(--muted-foreground); }
.price-box .label .note {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--room-ink-mute);
}
.price-box .value {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 30px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, color 160ms;
}
.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
}
.btn--primary:hover { background: #124f3b; }
.btn--secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--secondary);
}
.btn--secondary:hover { background: #e7edf3; }
.btn--outline {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn--outline:hover { background: var(--secondary); }
.btn.flex1 { flex: 1; min-width: 200px; }

.order-foot {
  margin: 18px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.order-foot .tick {
  flex-shrink: 0;
  margin-top: 8px;
  width: 12px; height: 1px;
  background: var(--room-ink-mute);
}

/* ============================== 푸터 ============================== */
.aw-footer {
  margin-top: 40px;
  border-top: 1px solid #f3f4f6;
  background: #fff;
  padding: 44px 16px;
}
.aw-footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}
.aw-footer .brand {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
}
.aw-footer .info {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.aw-footer .links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted-foreground);
}
.aw-footer .links a:hover { color: var(--foreground); }
.aw-footer .copy {
  max-width: 1024px;
  margin: 28px auto 0;
  font-size: 11.5px;
  color: var(--room-ink-mute);
}

/* ============================== 변주 선택 (index) ============================== */
.pick-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 44px;
}
.pick-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 26px 24px;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
.pick-card:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.08);
  transform: translateY(-2px);
}
.pick-card .tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 10px;
}
.pick-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pick-card p {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted-foreground);
  flex-grow: 1;
}
.pick-card .go {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
}

/* ============================== 반응형 ============================== */
@media (max-width: 860px) {
  .plate-split { grid-template-columns: 1fr; gap: 22px; }
  .note-split { grid-template-columns: 1fr; gap: 26px; }
  .diptych { grid-template-columns: 1fr; gap: 30px; }
  .commentary-duo { grid-template-columns: 1fr; gap: 0; }
  .commentary-duo > div { padding: 0; }
  .commentary-duo > div:last-child {
    margin-top: 36px;
    padding-top: 36px;
    border-left: 0;
    border-top: 1px solid var(--room-border-soft);
  }
  .pick-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 44px 18px; }
  .section.pad-lg { padding-top: 56px; padding-bottom: 56px; }
  .commentary .lead-sentence { font-size: 16px; }
  .price-box .value { font-size: 24px; }
  .cta-row .btn { width: 100%; }
  .order-spec { gap: 6px 14px; }
}
