:root {
  --paper: #f7faf9;
  --ink: #3c1e28;
  --muted: #60404b;
  --graphic: #000;
  --reading-size: 1.1rem;
  --mist: #cbd8d3;
  --mist-dark: #aabbb4;
  --cyan: #2be6e6;
  --line: rgba(23, 26, 25, 0.14);
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Iowan Old Style", "Times New Roman", "Batang", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.68; word-break: keep-all; }
button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 8px; padding: 10px 14px; background: var(--graphic); color: white; }
.skip-link:focus, .skip-link:focus-visible { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding: max(22px, env(safe-area-inset-top)) 22px max(26px, env(safe-area-inset-bottom)); isolation: isolate; }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .94; transform: scale(1.06); animation: settle 2.1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-grid, .section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(57,72,67,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(57,72,67,.065) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 82%); }
.hero-top { display: flex; justify-content: space-between; gap: 16px; font-size: .68rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.hero-top p { margin: 0; max-width: 48%; }
.hero-top p:last-child { text-align: right; }
.hero-copy { margin-top: auto; padding-top: clamp(96px, 18svh, 180px); }
.eyebrow, .small-en, .section-number { text-transform: uppercase; letter-spacing: .09em; font-size: .67rem; font-weight: 700; }
.eyebrow { margin: 0 0 8px; }
.hero h1 { margin: 0; font-size: clamp(4rem, 24vw, 8.4rem); line-height: 1.1; letter-spacing: .3em; font-weight: 800; white-space: nowrap; }
.hero-en { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(1.8rem, 8vw, 2.8rem); line-height: 1.2; }
.hero-bottom { display: flex; flex-shrink: 0; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--cyan); font-family: var(--serif); font-size: .82rem; line-height: 1.4; }
.hero-bottom p { margin: 0; }
.hero-bottom p:last-child { max-width: 46%; text-align: right; }
.scroll-cue { display: flex; align-self: flex-end; align-items: center; gap: 10px; margin-top: 28px; min-height: 28px; text-decoration: none; font-size: .68rem; font-weight: 700; }
.scroll-line { width: 34px; height: 1px; background: var(--graphic); transform-origin: left; animation: pulse-line 1.8s ease-in-out infinite; }

.section { position: relative; padding: 76px 22px 88px; overflow: hidden; }
.section-number { padding-bottom: 14px; margin-bottom: 36px; border-bottom: 1px solid var(--cyan); }
.display-title { margin: 0 0 44px; font-family: var(--serif); font-size: clamp(3.1rem, 14vw, 5.5rem); line-height: .95; font-weight: 400; letter-spacing: -.06em; }
.invitation { background: #fff; }
.invitation-lead .small-en { color: var(--muted); margin: 0 0 12px; }
.invitation-lead h2, .closing h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.35rem, 10vw, 4rem); line-height: 1.12; font-weight: 400; letter-spacing: -.05em; }
.prose { margin-top: 52px; }
.prose p { margin: 0 0 24px; }
.prose p:first-child::first-letter { float: left; font-family: var(--serif); font-size: 4.2rem; line-height: .78; padding: 8px 8px 0 0; color: var(--mist-dark); }

.details { background: var(--mist); }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 78px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(23,26,25,.24); }
.detail-list > div:last-child { border-bottom: 1px solid rgba(23,26,25,.24); }
.details .display-title { font-size: var(--reading-size); line-height: 1.5; letter-spacing: normal; font-weight: 600; }
.details .section-number { font-size: var(--reading-size); }
.detail-list dt { font-size: var(--reading-size); font-weight: 700; }
.detail-list dd { margin: 0; font-family: var(--serif); font-size: var(--reading-size); line-height: 1.6; letter-spacing: -.03em; }

.artists { background: #fff; }
.artists-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.artists-heading .display-title { margin: 0; }
.artists-heading p { margin: 0; max-width: 80px; font-family: var(--serif); font-size: .86rem; line-height: 1.3; color: var(--muted); text-align: right; }
.artist-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--graphic); }
.artist-list li { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 10px; min-height: 58px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.artist-list span { font-family: var(--serif); font-size: .72rem; color: var(--muted); }
.artist-list strong { font-size: var(--reading-size); font-weight: 600; }
.artist-list small { font-family: var(--serif); font-size: .82rem; color: var(--muted); }

.poster-section { background: var(--graphic); color: white; }
.poster-frame { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: white; text-align: left; cursor: zoom-in; }
.poster-frame img { width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.36); }
.poster-frame span { display: inline-block; margin-top: 14px; font-size: .72rem; letter-spacing: .05em; border-bottom: 1px solid rgba(255,255,255,.65); }

.visit { background: var(--paper); }
.address { font-family: var(--serif); font-size: var(--reading-size); line-height: 1.65; font-style: normal; }
.route { margin-top: 54px; }
.route h3 { margin: 0 0 22px; font-size: var(--reading-size); letter-spacing: .04em; }
.route ol { list-style: none; padding: 0; margin: 0; }
.route li { display: grid; grid-template-columns: 35px 1fr; gap: 15px; padding: 18px 0; border-top: 1px solid var(--line); }
.route li:last-child { border-bottom: 1px solid var(--line); }
.route li > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--graphic); border-radius: 50%; font-family: var(--serif); font-size: var(--reading-size); }
.route li p { margin: 0; font-size: var(--reading-size); }
.route-note { margin: 14px 0 0; color: var(--muted); font-size: var(--reading-size); line-height: 1.65; }
.visit .section-number, .visit .button { font-size: var(--reading-size); }
.visit-actions, .share-actions { display: grid; gap: 10px; margin-top: 34px; }
.button { display: flex; min-height: 54px; align-items: center; justify-content: center; padding: 14px 18px; border: 1px solid var(--graphic); border-radius: 0; background: transparent; color: var(--ink); text-decoration: none; font-weight: 650; cursor: pointer; }
.button-dark { background: var(--graphic); color: white; }

.closing { min-height: max(120svh, calc(100lvh + 64px)); display: flex; flex-direction: column; justify-content: flex-end; background: var(--mist); }
.closing-mark { position: absolute; top: 0; right: -9vw; font-family: var(--serif); font-size: 85vw; line-height: .75; color: rgba(247,250,249,.42); filter: blur(12px); user-select: none; }
.closing-copy, .share-actions { position: relative; }
.closing-copy .small-en { margin: 0 0 12px; }
.closing-copy > p:last-child { margin: 28px 0 0; font-family: var(--serif); font-size: 1.35rem; }
.instagram { display: block; padding: 18px 0 0; text-align: center; font-family: var(--serif); font-size: .92rem; }

.poster-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 56px 12px 24px; border: 0; background: rgba(12,14,13,.95); overflow: auto; }
.poster-dialog::backdrop { background: rgba(12,14,13,.82); }
.poster-dialog img { width: min(100%, 720px); margin: 0 auto; }
.dialog-close { position: fixed; z-index: 2; top: 12px; right: 14px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.5); color: white; cursor: pointer; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 40px); padding: 12px 18px; background: var(--graphic); color: white; font-size: .8rem; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.visible, .motion-ready .reveal:focus-within { opacity: 1; transform: none; }

@keyframes settle { from { transform: scale(1.12); filter: blur(8px); } to { transform: scale(1.02); filter: blur(0); } }
@keyframes pulse-line { 0%,100% { transform: scaleX(.35); opacity: .45; } 50% { transform: scaleX(1); opacity: 1; } }

.in-kakao { scroll-behavior: auto; }
.in-kakao .hero { min-height: var(--stable-viewport-height, 100svh); }
.in-kakao .hero-copy { padding-top: clamp(96px, calc(var(--stable-viewport-height, 100svh) * .18), 180px); }
.in-kakao .closing { min-height: max(calc(var(--stable-viewport-height, 100svh) * 1.2), calc(100lvh + 64px)); }
.in-kakao .hero-image, .in-kakao .scroll-line { animation: none; transform: none; filter: none; }
.in-kakao .closing-mark { filter: none; opacity: .45; }

@media (max-width: 759px) {
  html { scroll-behavior: auto; }
  .hero-image { animation: none; transform: none; }
  .scroll-line { animation: none; }
  .closing-mark { filter: none; opacity: .45; }
}

@media (min-width: 760px) {
  body { font-size: 18px; }
  .hero { max-width: 760px; margin: 0 auto; min-height: 940px; border-inline: 1px solid var(--line); }
  main { max-width: 760px; margin: 0 auto; box-shadow: 0 0 100px rgba(38,54,48,.12); }
  .section { padding: 104px 74px 120px; }
  .prose { margin-left: 30%; }
  .visit-actions, .share-actions { grid-template-columns: 1fr 1fr; }
  .instagram { grid-column: 1 / -1; }
  .closing-mark { right: -70px; font-size: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .motion-ready .reveal { opacity: 1; transform: none; }
}
