:root {
  color-scheme: light;
  --paper: #f7f5ec;
  --white: #fffdf7;
  --ink: #202e26;
  --muted: #4d5a50;
  --pine: #18392f;
  --pine-dark: #142f27;
  --gold: #f3b866;
  --line: #d9d9cb;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif CJK KR", "Noto Serif KR", "Noto Serif CJK TC", "Noto Serif TC", "Batang", "Songti TC", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans CJK KR", "Noto Sans CJK TC", "Malgun Gothic", sans-serif;
}

:lang(zh-Hans) {
  --serif: "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  --sans: system-ui, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
button, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a45022; outline-offset: 4px; }
.header :focus-visible, .hero :focus-visible, .footer :focus-visible, .compare-tray :focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--white); z-index: 20; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1240px, calc(100% - clamp(2rem, 8.3vw, 8rem))); margin-inline: auto; }
.section { scroll-margin-top: 1rem; }

.header { background: var(--paper); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: clamp(.85rem, 2.5vw, 2.5rem); min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .62rem; text-decoration: none; justify-self: start; min-width: 0; }
.brand-mark { position: relative; overflow: hidden; display: block; flex: 0 0 42px; width: 42px; height: 42px; }
.brand-mark img { position: absolute; max-width: none; width: 409.6%; height: auto; left: -144.4%; top: -119.2%; }
.brand-text { display: grid; gap: .26rem; min-width: 0; line-height: 1.2; }
.brand-text strong { font-size: 1.06rem; letter-spacing: -.035em; }
.brand-text small { font-size: .82rem; font-weight: 700; }
.header .brand-mark { mix-blend-mode: multiply; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 3.2vw, 3rem); }
.primary-nav a { white-space: nowrap; font-weight: 680; font-size: .93rem; text-decoration: none; padding: .55rem 0; }
.primary-nav a:hover, .footer a.text-button:hover { text-decoration: underline; text-underline-offset: .3em; }
.language-control { justify-self: end; position: relative; }
.language-control::after { content: ""; pointer-events: none; position: absolute; width: 7px; height: 7px; border: solid var(--pine); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); right: 14px; top: 43%; }
.language-control select { color: var(--ink); appearance: none; background: transparent; border: 1px solid #b9c1b6; min-height: 44px; padding: .35rem 2rem .35rem .8rem; border-radius: 4px; font-size: .875rem; font-weight: 700; cursor: pointer; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); background: var(--pine); color: var(--paper); }
.hero-copy { align-self: center; padding: clamp(3rem, 6.3vw, 7rem) clamp(1.8rem, 4vw, 5rem) clamp(3rem, 6.3vw, 7rem) max(4.15vw, calc((100vw - 1240px) / 2)); }
.hero-kicker { color: #fad29b; font-size: .8rem; font-weight: 760; letter-spacing: .19em; margin-bottom: 1.1rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4.05vw, 4.4rem); line-height: 1.2; font-weight: 650; letter-spacing: -.055em; text-wrap: balance; }
html[lang="ko"] .hero h1 { white-space: nowrap; }
.hero-intro { max-width: 36ch; margin-top: 1.35rem; color: #e1e9de; font-size: clamp(1rem, 1.22vw, 1.13rem); line-height: 1.75; word-break: keep-all; }
.hero-copy:lang(ko) { container-type: inline-size; }
.hero-intro:lang(ko) { max-width: min(100%, 24em); }
.hero-intro-lead { display: block; letter-spacing: -.025em; font-size: clamp(.9rem, 5.15cqi, 1em); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 4px; min-height: 46px; padding: .62rem 1.02rem; line-height: 1.3; text-align: center; font-size: .92rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: background-color .17s ease, border-color .17s ease; }
.button-gold { color: #272b21; background: var(--gold); }
.button-gold:hover:not(:disabled) { background: #ffd08f; }
.button-lightline { color: var(--paper); border-color: #91a79b; }
.button-lightline:hover { background: #2c5043; }
.hero-figure { position: relative; display: grid; min-height: 390px; }
.hero-figure img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 75% 50%; }
.hero-figure figcaption, .exhibit-feature figure figcaption { position: absolute; left: 1rem; bottom: 1rem; background: #1c3129ed; color: #fffdf7; padding: .35rem .7rem; font-size: .8rem; font-weight: 680; border-radius: 2px; }

.stays, .rooms-section, .exhibit-section { padding-block: clamp(3.2rem, 7vw, 6.25rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36ch); align-items: end; gap: .8rem 1.25rem; margin-bottom: 1.65rem; }
h2 { font: 650 clamp(1.8rem, 3.05vw, 3.25rem)/1.24 var(--serif); letter-spacing: -.05em; }
.section-heading > p, .house-intro, .exhibit-copy > p, .detail-intro { word-break: keep-all; overflow-wrap: anywhere; }
.section-heading > p { color: var(--muted); font-size: 1rem; }

.house-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.72rem, 1.6vw, 1.3rem); }
.house-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.house-card > img { aspect-ratio: 1.43; width: 100%; height: auto; object-fit: cover; }
.house-body { padding: 1.05rem; display: flex; flex-direction: column; flex: 1; }
.house-area { color: var(--house-color, #4e684b); font-size: .84rem; font-weight: 750; line-height: 1.42; }
.house-area span { margin-inline: .12rem; }
.house-card h3, .room-card h3 { font: 700 clamp(1.16rem, 1.65vw, 1.63rem)/1.26 var(--serif); margin-top: .38rem; letter-spacing: -.047em; }
.house-intro { color: var(--muted); margin: .72rem 0 .85rem; line-height: 1.57; }
.text-button { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--pine); text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: 1px; font-size: .91rem; font-weight: 720; cursor: pointer; }
.text-button:hover { text-decoration-thickness: 2px; }
.house-body > .text-button { margin-top: auto; }

.rooms-section { background: #eaf0e6; }
.filters-wrap { display: flex; align-items: baseline; justify-content: space-between; column-gap: .75rem; row-gap: .45rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filters { display: flex; gap: .45rem; flex-wrap: wrap; }
.filter { padding: .45rem .78rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #9cae9e; border-radius: 3px; background: transparent; min-height: 44px; color: var(--pine-dark); font-size: .88rem; font-weight: 690; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--white); }
.filter[aria-pressed="false"]:hover { background: #dce8da; }
.match-count { color: var(--muted); font-size: .89rem; font-weight: 650; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 1rem; }
.room-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #cfd8cc; border-top: 3px solid var(--house-color); border-radius: 5px; background: var(--white); padding: clamp(1rem, 2.05vw, 1.5rem); }
.room-card h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.room-description { margin: .5rem 0 1rem; color: var(--muted); font-size: .95rem; }
.room-specs, .detail-meta { display: grid; grid-template-columns: .95fr 1fr 1.05fr; gap: .35rem .6rem; border-top: 1px solid var(--line); padding-top: .65rem; margin-top: auto; }
dt { color: var(--muted); font-size: .83rem; font-weight: 650; }
dd { font-weight: 690; line-height: 1.5; }
.room-specs dd { font-variant-numeric: tabular-nums; }
.room-price { margin: .7rem 0 1rem; }
.room-price > div { display: flex; justify-content: space-between; gap: .35rem .6rem; align-items: baseline; border-bottom: 1px solid var(--line); padding: .25rem 0 .6rem; }
.room-price dd { color: var(--pine); font-size: .92rem; text-align: right; }
.room-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.room-actions .button-compare { justify-self: stretch; }
.button-book { background: var(--pine); color: var(--white); }
.button-book:hover { background: #2a5140; }
.button-compare { background: transparent; color: var(--pine); border-color: #aebdb0; }
.button-compare[aria-pressed="true"] { background: #e2eddf; border-color: #5c7863; }
.button-compare:hover { background: #eef3eb; }
.compare-indicator { font-size: 1.11rem; line-height: 1; }
.room-note { color: var(--muted); font-size: .87rem; line-height: 1.45; }
.booking-unavailable { border: 1px solid var(--line); padding: .65rem; text-align: center; color: var(--muted); font-weight: 700; border-radius: 4px; }
.price-note { color: var(--muted); margin-top: 1rem; font-size: .92rem; }

.exhibit-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); min-height: 370px; background: #eeeadb; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.exhibit-feature figure { position: relative; min-height: 240px; }
.exhibit-feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; object-position: 54% 52%; }
.exhibit-copy { align-self: center; padding: clamp(1.25rem, 4.8vw, 4.6rem); }
.exhibit-label { color: #755234; font-weight: 750; font-size: .91rem; margin-bottom: .45rem; }
.exhibit-copy > p:nth-of-type(2) { margin-top: 1rem; color: var(--muted); }
.exhibition-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: 1rem; padding: clamp(1rem, 3.75vw, 2.75rem); border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.exhibition-guide-intro { grid-column: 1 / -1; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.exhibition-guide h3 { margin-bottom: .65rem; font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.3; }
.exhibition-guide p { max-width: 74ch; word-break: keep-all; overflow-wrap: anywhere; }
.exhibition-guide-credit { margin-bottom: .5rem; color: var(--muted); }
.exhibition-guide-venues { display: grid; gap: .65rem; }
.exhibition-guide-venues ul { margin: .15rem 0 0; padding-inline-start: 1.15rem; }
.exhibition-guide-venues li span { color: var(--muted); }
.exhibition-guide .text-button { margin-top: .45rem; text-align: left; overflow-wrap: anywhere; }
.exhibit-details { margin-top: 1rem; color: var(--pine); }
.exhibit-details summary { min-height: 44px; padding-block: .5rem; cursor: pointer; font-size: .93rem; font-weight: 720; }
.exhibit-details ul { padding-left: 1.3rem; margin: 0; }
.exhibit-details li::marker { color: #757960; }

.footer { background: var(--pine-dark); color: var(--paper); }
.footer-inner { padding-block: 1.75rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 2.15rem; }
.footer .brand-mark { background: var(--paper); border-radius: 50%; }
.footer .brand-mark img { mix-blend-mode: multiply; }
.footer-inner p { font-size: .88rem; color: #dce7da; word-break: keep-all; }
.footer-inner p + p { margin-top: .23rem; }
.footer .text-button { color: var(--paper); align-self: center; white-space: nowrap; }

.compare-tray { position: fixed; z-index: 5; bottom: max(1rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(470px, calc(100% - 1.5rem)); display: flex; align-items: center; gap: .5rem; padding: .52rem; border-radius: 6px; background: var(--pine-dark); color: var(--white); box-shadow: 0 6px 24px #18392f49; }
.compare-tray > span { font-size: .88rem; font-weight: 700; margin-inline: .35rem auto; overflow-wrap: anywhere; }
.compare-tray .button { flex-shrink: 0; min-height: 44px; padding-inline: .65rem; font-size: .85rem; }
.compare-tray .button-gold:disabled { background: #d5dcd0; color: #314138; cursor: default; }
.button-quiet { background: transparent; color: var(--white); border-color: #91a79b; }
.button-quiet:hover { background: #2c5043; }
body.has-selection { padding-bottom: 4.65rem; }

dialog { color: var(--ink); background: var(--white); width: min(840px, calc(100% - 1.5rem)); max-height: min(88dvh, 850px); border: 1px solid #b4bdaf; border-radius: 8px; padding: 0; box-shadow: 0 10px 70px #172f2470; overscroll-behavior: contain; }
dialog::backdrop { background: #172f24b5; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: .62rem; padding: 1rem clamp(.9rem, 3.5vw, 1.8rem); border-bottom: 1px solid var(--line); background: var(--white); }
.dialog-head h2 { font-size: clamp(1.45rem, 4vw, 2.18rem); }
.dialog-head .house-area { margin-bottom: .22rem; }
.dialog-close { display: inline-grid; place-items: center; flex: 0 0 44px; min-height: 44px; background: transparent; color: var(--pine); border: 1px solid #bccbbb; border-radius: 4px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: #eaf0e6; }
.dialog-body { padding: 1rem clamp(.9rem, 3.5vw, 1.8rem) 1.5rem; }
.exhibition-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.exhibition-work { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.exhibition-work:only-child { grid-column: 1 / -1; }
.exhibition-work img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 29rem; object-fit: contain; background: var(--paper); }
.exhibition-work img[src$="/exhibit-aewol-bulteok.webp"] { object-fit: cover; object-position: center 34%; }
.exhibition-work figcaption { display: grid; gap: .35rem; padding: .85rem 1rem 1rem; }
.exhibition-work h3 { font-size: 1.1rem; line-height: 1.35; }
.exhibition-work-place { font-weight: 650; }
.exhibition-work-meta { color: var(--muted); font-size: .86rem; }
.photo-strip { display: flex; gap: .65rem; overflow-x: auto; margin-bottom: 1.05rem; padding-bottom: .4rem; }
.photo-strip figure { flex: 1 0 min(190px, 77%); }
.photo-strip img { width: 100%; height: auto; aspect-ratio: 1.43; object-fit: cover; border-radius: 4px; }
.photo-strip figcaption { color: var(--muted); font-size: .82rem; margin-top: .22rem; line-height: 1.3; }
.detail-intro { margin-bottom: 1rem; }
.detail-meta { margin-bottom: .9rem; }
.detail-info { border-top: 1px solid var(--line); margin-bottom: 1.2rem; }
.detail-info > div { padding: .65rem 0; border-bottom: 1px solid var(--line); scroll-margin-block-start: 6rem; }
.detail-info dt { font-size: .94rem; color: var(--pine); }
.detail-info dd { margin-top: .15rem; font-weight: 500; }
.comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .94rem; }
.comparison-table th, .comparison-table td { padding: .65rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.comparison-table th:first-child, .comparison-table td:first-child { width: 22%; }
.comparison-table th { color: var(--pine); }
.comparison-table thead th { font-size: 1.02rem; line-height: 1.36; }
.comparison-table thead span { display: block; font-size: .83rem; color: var(--muted); }
.comparison-table tbody th { word-break: keep-all; }
.comparison-table tbody tr:nth-child(odd) { background: #f3f5eb; }
.button-compact { width: 100%; min-height: 44px; padding: .45rem; font-size: .87rem; }
.comparison-table .room-note { margin-top: .35rem; }

@media (max-width: 1050px) {
  .house-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .house-card > img { aspect-ratio: 1.85; }
}
@media (max-width: 840px) {
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
  .hero-figure { min-height: 355px; }
  .hero-copy { padding-inline: max(1.35rem, 4.15vw) 1.2rem; }
}
@media (max-width: 620px) {
  .exhibition-works { grid-template-columns: minmax(0, 1fr); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 .5rem; min-height: auto; padding-top: .65rem; }
  .language-control { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: .6rem; margin-top: .4rem; border-top: 1px solid var(--line); }
  .primary-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; white-space: normal; }
  .brand { gap: .45rem; min-height: 44px; }
  .brand-mark { flex-basis: 34px; width: 34px; height: 34px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 2.35rem 1rem 2.1rem; }
  .hero-kicker { margin-bottom: .85rem; }
  .hero h1 { font-size: clamp(2.03rem, 7.7vw, 3.1rem); letter-spacing: -.052em; }
  .hero-intro { margin-top: 1rem; }
  .hero-actions { margin-top: 1.2rem; }
  .hero-figure { min-height: 0; aspect-ratio: 1.57; }
  .hero-figure figcaption { bottom: .7rem; left: .7rem; }
  .section-heading { grid-template-columns: 1fr; margin-bottom: 1.2rem; gap: .55rem; }
  .house-grid { gap: .75rem; }
  .house-card > img { aspect-ratio: 1.33; }
  .house-body { padding: .75rem; }
  .house-card h3 { font-size: 1.16rem; }
  .house-intro { font-size: .94rem; }
  .house-area { font-size: .81rem; }
  .room-grid { grid-template-columns: 1fr; gap: .8rem; }
  .room-card { padding: 1rem; }
  .room-description { margin-bottom: .7rem; }
  .filter { padding-inline: .65rem; }
  .exhibit-feature { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .exhibit-feature figure { min-height: 0; aspect-ratio: 1.43; }
  .exhibit-copy { padding: 1.25rem 1rem; }
  .exhibition-guide { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: .75rem; }
  .comparison-table { font-size: .88rem; }
  .comparison-table th, .comparison-table td { padding: .55rem .35rem; }
  .comparison-table th:first-child, .comparison-table td:first-child { width: 21%; }
}
@media (max-width: 360px) {
  .house-grid { grid-template-columns: minmax(0, 1fr); }
  .house-card > img { aspect-ratio: 1.7; }
  .hero h1 { font-size: 1.9rem; }
  .compare-tray { gap: .32rem; padding: .4rem; }
  .compare-tray .button { flex-shrink: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}


.project-details {
  grid-column: 1 / -1;
  border-top: 1px solid #51685d;
  padding-top: .45rem;
}

.project-details summary {
  width: fit-content;
  min-height: 44px;
  padding-block: .5rem;
  font-weight: 720;
  cursor: pointer;
}

.project-details > p {
  max-width: 65ch;
  padding-bottom: .35rem;
}
