:root {
  color-scheme:light;
  --ink:#272822;
  --muted:#5f6059;
  --rule:#d4d5cf;
  --serif:"AppleMyungjo","Nanum Myeongjo","Batang",serif;
  --latin:"Baskerville","Times New Roman",serif;
  --edge:clamp(20px,5.7vw,88px);
  font-family:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans CJK KR",sans-serif;
  color:var(--ink);
  background:#fff;
}
* { box-sizing:border-box }
body, figure, h1, h2, h3, p { margin:0 }
body { font-size:1rem; line-height:1.65; word-break:keep-all; overflow-wrap:break-word }
a { color:inherit; text-decoration:none }
a:focus-visible { outline:2px solid #495641; outline-offset:4px }
button:focus-visible { outline:2px solid #495641; outline-offset:4px }
html { scrollbar-gutter:stable }
img { display:block; width:100%; height:100%; object-fit:cover }
.frame { width:min(calc(100% - var(--edge) * 2), 1240px); margin-inline:auto }
.skip { position:fixed; top:-80px; left:12px; z-index:5; padding:8px 12px; background:white }
.skip:focus { top:8px }
.site-header { background:#fff }
.header-inner, nav, .brand, figcaption, .site-footer, .catalogue-head, .leaf h3 { display:flex; align-items:baseline; justify-content:space-between }
.header-inner { gap:16px; padding-block:21px 15px; border-bottom:1px solid var(--rule) }
.brand { gap:10px; justify-content:start; white-space:nowrap }
.brand span { font:italic 2.35rem/.95 var(--latin); letter-spacing:-.075em }
.brand small { font:1rem var(--latin); letter-spacing:-.03em }
nav { gap:clamp(12px,2.5vw,40px) }
nav a,.site-footer a { display:inline-flex; align-items:center; min-height:44px; font-size:.9375rem }
nav a:hover,.site-footer a:hover { text-decoration:underline; text-underline-offset:5px }
.title-block { text-align:center; padding:clamp(50px,6.6vw,104px) 0 clamp(26px,2.8vw,44px) }
h1,h2 { font-family:var(--serif); font-weight:400; line-height:1.2; letter-spacing:-.065em }
h1 { font-size:clamp(2.65rem,6.9vw,6.8rem) }
.title-block p { margin-top:18px; letter-spacing:-.035em; color:var(--muted); font-size:clamp(1rem,1.42vw,1.25rem) }
.image-frame { overflow:hidden; background:#eeeee8 }
.panorama .image-frame { display:block; aspect-ratio:3 / 1 }
.panorama figcaption { align-items:baseline }
.panorama figcaption small { text-align:right }
figcaption { gap:12px; margin-top:10px; line-height:1.5 }
figcaption span { font-size:1rem; color:var(--ink) }
figcaption small { font-size:.8125rem; color:var(--muted) }
.chapter { padding-block:clamp(36px,5.7vw,86px); border-top:1px solid var(--rule); scroll-margin-top:20px }
.chapter h2 { font-size:clamp(2.05rem,4.3vw,4.25rem) }
.chapter p { font-size:clamp(1rem,1.2vw,1.125rem); line-height:1.8; color:var(--muted); letter-spacing:-.03em }
.walk { margin-top:clamp(42px,5vw,75px) }
.walk-stage { display:grid; align-items:start; grid-template-columns:minmax(0,.86fr) minmax(0,1.6fr); gap:var(--edge) }
.walk-intro p { margin-top:23px }
.walk-gallery { display:grid; gap:clamp(26px,4.3vw,65px) }
.walk-gallery .image-frame { aspect-ratio:2 / 1 }
.entrance img { object-position:center 57% }
.catalogue-head { gap:24px; margin-bottom:clamp(30px,4vw,58px) }
.catalogue-head p { margin-left:auto }
.spread { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:clamp(24px,4vw,60px); position:relative }
.spread + .spread { margin-top:clamp(36px,5vw,72px) }
.spread::before { content:""; position:absolute; width:1px; background:var(--rule); inset:0 auto 0 50% }
.leaf { min-width:0 }
.leaf + .leaf { padding-top:clamp(20px,3vw,48px) }
.leaf h3 { flex-wrap:wrap; gap:4px 12px; padding:10px 0 14px; border-top:1px solid var(--ink); font-weight:400 }
.leaf h3 i { font:italic clamp(2.6rem,5vw,4.9rem)/1.05 var(--latin); letter-spacing:-.06em }
.leaf h3 span { font-size:1rem }
.leaf .image-frame { aspect-ratio:3 / 2 }
.leaf figcaption { display:block; margin-top:12px; color:var(--muted); font-size:.9375rem; line-height:1.6; letter-spacing:-.025em }
.enlargement { position:relative; display:block; cursor:zoom-in }
.enlargement::after { content:""; position:absolute; right:12px; bottom:12px; width:30px; height:30px; border-radius:50%; background:linear-gradient(var(--ink),var(--ink)) center / 10px 1px no-repeat,linear-gradient(var(--ink),var(--ink)) center / 1px 10px no-repeat,#fffffff0 }
.enlargement:hover::after,.enlargement:focus-visible::after { background-color:#fff; outline:1px solid var(--ink) }
html:has(.viewer[open]) { overflow:hidden }
.viewer { width:min(92vw,1100px); max-width:none; max-height:calc(100dvh - 24px); padding:clamp(14px,2vw,28px); margin:auto; border:0; color:var(--ink); background:#fff }
.viewer[open] { display:flex; flex-direction:column }
.viewer::backdrop { background:rgb(27 28 24 / 80%) }
.viewer-head { display:flex; flex:none; align-items:center; justify-content:space-between; gap:18px; margin-bottom:12px; border-bottom:1px solid var(--rule) }
.viewer-head h2 { font-size:clamp(1.5rem,3vw,2.5rem) }
.viewer button { color:var(--ink); background:transparent; border:0; font:inherit; cursor:pointer }
.viewer-head button,.viewer-tools button { min-height:44px; min-width:44px; padding:4px 8px }
.viewer-head button:hover,.viewer-tools button:hover { text-decoration:underline; text-underline-offset:4px }
.viewer figure { display:flex; flex-direction:column; min-height:0 }
.viewer-photo { min-height:0; max-height:calc(100dvh - 210px); overflow:hidden }
.viewer .viewer-image { display:block; width:100%; margin:0 auto; padding:0; cursor:zoom-in; touch-action:pan-y pinch-zoom; user-select:none }
.viewer-image:focus-visible { outline-offset:-3px }
.viewer-image img { width:auto; height:auto; max-width:100%; max-height:calc(100dvh - 210px); margin:auto }
.viewer.is-zoomed .viewer-photo { overflow:auto; overscroll-behavior:contain }
.viewer.is-zoomed .viewer-image { width:max-content; cursor:zoom-out; touch-action:auto }
.viewer.is-zoomed .viewer-image img { max-width:none; max-height:none }
.viewer figcaption { flex:none; color:var(--muted); font-size:.9375rem }
.viewer-tools,.viewer-paging { display:flex; align-items:center; gap:6px }
.viewer-tools { flex:none; justify-content:space-between; border-top:1px solid var(--rule); margin-top:12px; font-size:.9375rem }
.viewer-count { min-width:4ch; text-align:center; color:var(--muted); font-variant-numeric:tabular-nums }
.visit { display:grid; align-items:start; grid-template-columns:minmax(0,.86fr) minmax(0,1.6fr); gap:var(--edge) }
.map-slot { min-height:clamp(148px,17vw,232px); background:repeating-linear-gradient(135deg,#f7f7f4 0 13px,#eeeee9 13px 14px); display:grid; place-content:center; justify-items:center; gap:10px; color:var(--muted); font-size:.9375rem }
.pin { display:block; width:16px; height:16px; border:1.5px solid currentColor; border-radius:50% 50% 50% 0; transform:rotate(-45deg); position:relative }
.pin::after { content:""; position:absolute; inset:4px; border:1px solid currentColor; border-radius:50% }
.site-footer { border-top:1px solid var(--rule); padding:11px 0 20px; font-size:.875rem; color:var(--muted) }
@media (prefers-reduced-motion:no-preference) {
  html { scroll-behavior:smooth }
  .scroll-scenes .panorama .image-frame { transform:scale(var(--frame-scale,.86)); transform-origin:center bottom }
  .scroll-scenes .panorama figcaption { margin-inline:var(--frame-inset,7%) }
  .scroll-scenes .panorama img { transform:scale(var(--hero-scale,1.035)) }
  .scroll-scenes .walk-track::after { content:""; display:block; height:clamp(360px,83svh,850px) }
  .scroll-scenes .walk-stage { position:sticky; top:min(clamp(12px,12svh,110px),calc(100svh - var(--stage-height,0px) - 12px)) }
  .scroll-scenes .walk-gallery { gap:0; overflow:hidden }
  .scroll-scenes .walk-gallery .image-frame { width:100%; aspect-ratio:1.6; max-height:60svh }
  .scroll-scenes .walk-gallery figure { grid-area:1 / 1 }
  .scroll-scenes .walk-gallery figure + figure .image-frame { clip-path:inset(0 var(--room-cover,100%) 0 0) }
  .scroll-scenes .walk-gallery figure + figure figcaption { background:#fff; opacity:var(--room-label,0) }
  .scroll-scenes .walk-gallery figure:first-child img { transform:scale(var(--entry-scale,1)) }
  .scroll-scenes .walk-gallery::after { content:""; margin-top:11px; height:2px; background:linear-gradient(to right,var(--ink) var(--walk-line,0%),var(--rule) var(--walk-line,0%)) }
  .scroll-scenes .spread { perspective:1200px }
  .scroll-scenes .leaf { transform-origin:right center; transform:rotateY(var(--art-angle,0deg)) }
  .scroll-scenes .leaf + .leaf { transform-origin:left center; transform:rotateY(var(--wardrobe-angle,0deg)) }
}
@media (min-width:691px) and (max-width:900px) {
  .walk-stage { grid-template-columns:1fr; gap:26px }
  .walk-intro { display:grid; align-items:start; grid-template-columns:1fr 1.4fr; gap:20px }
  .walk-intro p { margin:0 }
  .walk-intro .wide-only { display:none }
}
@media (max-width:690px) {
  .header-inner { padding-block:10px 7px; align-items:center }
  .brand { flex-direction:column; gap:0 }
  .brand span { font-size:1.9rem }
  .brand small { font-size:.8125rem }
  nav a { font-size:.875rem }
  .title-block p { margin-top:13px }
  .walk-stage,.visit { grid-template-columns:1fr; gap:25px }
  .walk-intro p { margin-top:12px }
  .wide-only { display:none }
  .catalogue-head { display:block }
  .catalogue-head p { margin-top:12px }
  .spread { column-gap:18px }
  .leaf h3 { align-items:start; flex-direction:column }
  .leaf h3 i { font-size:clamp(1.85rem,7.7vw,3rem) }
  .leaf h3 span { font-size:.875rem }
  .leaf .image-frame { aspect-ratio:1.14 }
  .leaf figcaption { font-size:.875rem; line-height:1.55; margin-top:8px }
  .enlargement::after { width:24px; height:24px; bottom:7px; right:7px }
  .panorama figcaption { flex-wrap:wrap; gap:2px 12px }
}
@media (max-width:690px), (pointer:coarse) and (max-width:950px) and (max-height:500px) {
  .panorama .image-frame { aspect-ratio:3 / 2 }
  .scroll-scenes .walk-track::after { height:clamp(400px,54svh,500px) }
}
@media (max-width:360px) {
  :root { --edge:16px }
  nav { gap:9px }
  h1 { font-size:2.35rem }
}
