/* Lin Ching Wan — "Night Gallery" design */
:root {
  --bg: #0E0F0E;
  --bg-deep: #000;
  --surface: #151715;
  --ink: #EDE8DE;
  --ink-2: #BDB7AB;
  --ink-3: #A39E93;
  --ink-4: #8A857C;
  --line: #2A2C29;
  --line-2: #4A4C48;
  --gold: #C8AE7E;
  --serif: 'Cormorant Garamond', 'Noto Serif TC', 'Songti TC', serif;
  --sans: 'Jost', 'Noto Sans TC', 'PingFang TC', system-ui, sans-serif;
  --zh: 'Noto Serif TC', 'Songti TC', serif;
  --gutter: clamp(20px, 4vw, 56px);
  --wide: clamp(20px, 6vw, 96px);
  --bar-h: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; padding-bottom: var(--bar-h); }
:lang(zh-Hant-TW) body, body:lang(zh-Hant-TW) { letter-spacing: 0.02em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* type */
.eyebrow { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
:lang(zh-Hant-TW) .eyebrow { letter-spacing: 0.3em; font-size: 13px; }
.display { font-family: var(--serif); font-weight: 300; line-height: 1.05; letter-spacing: -0.005em; }
.h1 { font-size: clamp(40px, 6vw, 88px); line-height: 1.02; }
.h2 { font-size: clamp(34px, 4vw, 56px); }
.zh-sub { font-family: var(--zh); font-size: 14px; letter-spacing: 0.3em; color: var(--ink-3); }
.lead { font-size: 16px; line-height: 1.8; color: var(--ink-2); max-width: 560px; }
.muted { color: var(--ink-3); }
.link { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); padding: 10px 0 6px; display: inline-block; }
:lang(zh-Hant-TW) .link { font-size: 14px; letter-spacing: 0.12em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--ink); background: transparent; cursor: pointer; font-family: var(--sans); }
:lang(zh-Hant-TW) .btn { font-size: 14px; letter-spacing: 0.12em; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.btn--gold { border-color: var(--gold); color: var(--gold); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14,15,14,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px var(--gutter); min-height: 72px; }
.primary-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
:lang(zh-Hant-TW) .primary-nav { font-size: 14px; letter-spacing: 0.12em; }
.primary-nav a[aria-current="page"] { color: var(--gold); }
.logo { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.logo-en { font-family: var(--serif); font-size: 24px; letter-spacing: 0.34em; padding-left: 0.34em; line-height: 1.1; white-space: nowrap; }
.logo-zh { font-family: var(--zh); font-size: 11px; letter-spacing: 0.5em; padding-left: 0.5em; color: var(--ink-3); white-space: nowrap; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.lang { font-size: 13px; letter-spacing: 0.08em; color: var(--ink-3); min-height: 44px; display: inline-flex; align-items: center; }
.header-book { min-height: 42px; padding: 0 18px; }
.menu { display: none; }
@media (max-width: 1023px) {
  .header-inner { grid-template-columns: 48px minmax(0, 1fr) 48px; padding: 6px 4px; min-height: 60px; gap: 4px; }
  .primary-nav, .header-book { display: none; }
  .header-tools { gap: 0; justify-content: center; }
  .logo-en { font-size: 18px; letter-spacing: 0.28em; padding-left: 0.28em; }
  .logo-zh { font-size: 9px; }
  .menu { display: block; position: static; }
  .menu > summary { list-style: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 28px; display: flex; flex-direction: column; }
  .menu-panel a { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 26px; }
  .menu-panel .btn { margin-top: 20px; font-family: var(--sans); font-size: 12px; padding: 0 20px; border-bottom: 1px solid var(--gold); }
  .menu[open] .icon-open, .menu:not([open]) .icon-close { display: none; }
}

/* sections */
.section { padding: clamp(72px, 10vw, 140px) var(--wide); }
.section--tight { padding: clamp(56px, 8vw, 120px) var(--gutter); }
.rule-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule-t { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 44px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 26px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* hero */
.hero { display: flex; flex-wrap: wrap; min-height: min(820px, 92vh); border-bottom: 1px solid var(--line); }
.hero-copy { flex: 1 1 440px; display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 72px var(--wide); position: relative; }
.hero-vert { position: absolute; right: 24px; top: 72px; writing-mode: vertical-rl; font-family: var(--zh); font-size: 14px; letter-spacing: 0.8em; color: #6E6A62; }
.hero-media { flex: 1 1 520px; position: relative; min-height: 560px; background: var(--bg-deep); overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-caption { position: absolute; left: 24px; bottom: 22px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 700px) {
  .hero { flex-direction: column-reverse; }
  .hero-media { flex: none; min-height: 0; height: 62vh; max-height: 560px; }
  .hero-copy { padding: 40px 24px 56px; gap: 22px; }
  .hero-vert { display: none; }
}

.quote { text-align: center; }
.quote p { margin: 0 auto; max-width: 920px; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.32; }
:lang(zh-Hant-TW) .quote p { font-family: var(--zh); font-weight: 400; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.7; letter-spacing: 0.08em; }
.quote p.zh-sub { margin-top: 30px; font-family: var(--zh); font-weight: 400; font-size: 15px; line-height: 1.6; letter-spacing: 0.4em; }
:lang(zh-Hant-TW) .quote p.zh-sub { font-family: var(--serif); font-size: 18px; letter-spacing: 0.12em; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 28px; }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; } }
.card { display: flex; flex-direction: column; gap: 10px; }
.card-media { aspect-ratio: 3 / 4; background: var(--bg-deep); overflow: hidden; margin-bottom: 6px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-name { font-family: var(--serif); font-size: 23px; line-height: 1.2; }
:lang(zh-Hant-TW) .card-name { font-family: var(--zh); font-size: 18px; letter-spacing: 0.06em; }
.card-meta { font-size: 13px; color: var(--ink-3); }
.card-price { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
:lang(zh-Hant-TW) .card-price { font-size: 13px; letter-spacing: 0.1em; }
@media (max-width: 600px) { .card-name { font-size: 19px; } .card-meta { font-size: 12px; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); background: none; color: var(--ink-2); font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

/* feature split */
.split { display: flex; flex-wrap: wrap; background: var(--bg-deep); border-top: 1px solid var(--line); }
.split-media { flex: 1 1 560px; min-height: 560px; position: relative; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-copy { flex: 1 1 420px; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: clamp(56px, 8vw, 96px) var(--wide); }
.thumbs { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.thumbs img { width: 112px; height: 112px; object-fit: cover; }
@media (max-width: 700px) { .split-media { flex: none; width: 100%; min-height: 0; aspect-ratio: 1 / 1; } }

.master-block { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.master-media { flex: 1 1 340px; max-width: 480px; aspect-ratio: 4 / 5; background: var(--bg-deep); overflow: hidden; }
.master-media img { width: 100%; height: 100%; object-fit: cover; }
.master-copy { flex: 1 1 420px; }

.assure { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.assure > * { padding: 44px 36px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.assure > *:last-child { border-right: 0; }
.assure strong { font-family: var(--serif); font-weight: 400; font-size: 25px; }
:lang(zh-Hant-TW) .assure strong { font-family: var(--zh); font-size: 19px; font-weight: 600; letter-spacing: 0.06em; }
.assure span { font-size: 14px; line-height: 1.7; color: var(--ink-3); }
@media (max-width: 600px) { .assure > * { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 24px; } .assure > *:last-child { border-bottom: 0; } }

.visit-block { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.visit-block > .stack-lg { flex: 1 1 420px; }
.visit-block > img { flex: 1 1 460px; min-width: 0; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* piece page */
.piece { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: 40px var(--gutter) 96px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery figure { background: var(--bg-deep); }
.gallery img { width: 100%; }
.piece-info { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 18px; }
.piece-title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; }
:lang(zh-Hant-TW) .piece-title { font-family: var(--zh); font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.35; letter-spacing: 0.06em; }
.alt-name { font-family: var(--zh); font-size: 14px; letter-spacing: 0.24em; color: var(--ink-3); }
:lang(zh-Hant-TW) .alt-name { font-family: var(--serif); font-style: italic; font-size: 19px; letter-spacing: 0.01em; }
.piece-no { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-4); }
.piece-intro { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
:lang(zh-Hant-TW) .piece-intro { line-height: 2; }
.specs { border-top: 1px solid var(--line); margin-top: 8px; }
.specs > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--ink-3); }
.inquire { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
.inquire .row .btn { flex: 1 1 180px; }
.panel { padding: 26px 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.panel-title { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
:lang(zh-Hant-TW) .panel-title { font-family: var(--zh); font-size: 20px; font-weight: 600; letter-spacing: 0.06em; }
.crumbs { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding: 24px var(--gutter) 0; }
:lang(zh-Hant-TW) .crumbs { font-size: 13px; letter-spacing: 0.08em; }
@media (max-width: 900px) {
  .piece { grid-template-columns: minmax(0, 1fr); padding: 0 0 56px; gap: 28px; }
  .piece-info { position: static; padding: 0 24px; }
  .gallery { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
  .gallery img { width: 100%; height: min(125vw, 600px); object-fit: cover; }
  .gallery figcaption { position: absolute; right: 14px; bottom: 14px; font-size: 12px; letter-spacing: 0.12em; color: var(--ink-2); background: rgba(14,15,14,.7); padding: 4px 10px; }
  .crumbs { display: none; }
  .inquire--desktop { display: none; }
}
@media (min-width: 901px) { .gallery figcaption { display: none; } }

/* sticky inquiry bar (mobile) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(14,15,14,.97); border-top: 1px solid var(--line); padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.bar p { text-align: center; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
:lang(zh-Hant-TW) .bar p { font-size: 12px; letter-spacing: 0.12em; }
.bar .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bar .btn { padding: 0 8px; }
body.has-bar { --bar-h: 108px; }
@media (min-width: 901px) { .bar { display: none; } }
@media (min-width: 901px) { body.has-bar { --bar-h: 0px; } }

/* masterwork detail */
.mw { display: flex; flex-wrap: wrap; background: var(--bg-deep); }
.mw-media { flex: 1 1 560px; }
.mw-media img { width: 100%; height: auto; }
.mw-copy { flex: 1 1 420px; padding: clamp(40px, 7vw, 96px) var(--wide); display: flex; flex-direction: column; justify-content: center; gap: 22px; }

/* prose pages */
.page-head { padding: clamp(56px, 8vw, 112px) var(--wide) clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; border-bottom: 1px solid var(--line); }
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 24px; font-size: 17px; line-height: 1.9; color: var(--ink-2); }
:lang(zh-Hant-TW) .prose { line-height: 2.05; }
.pull { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1.3; color: var(--ink); }
:lang(zh-Hant-TW) .pull { font-family: var(--zh); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.7; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 56px; }
.item-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--ink); }
:lang(zh-Hant-TW) .item-title { font-family: var(--zh); font-size: 20px; font-weight: 600; letter-spacing: 0.06em; }
.num { font-family: var(--serif); font-size: 15px; color: var(--gold); }
.info-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.info-list dt { margin-bottom: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; font-size: 13px; color: var(--ink-4); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-logo { font-family: var(--serif); font-size: 18px; letter-spacing: 0.3em; color: var(--ink); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card-media img { transition: none; } }
