:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --ink: #212b24;
  --muted: #525c53;
  --green: #31483a;
  --line: #d7dbd1;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', 'Batang', serif;
  --sans: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #a05e2f; outline-offset: 4px; }
.wrap { width: min(100% - 5rem, 1320px); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; transform: translateY(-160%); background: white; padding: .5rem 1rem; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.masthead { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font: 700 1.8rem/.95 Georgia, serif; letter-spacing: -.065em; white-space: nowrap; }
.site-header nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.4rem); font-size: .9rem; font-weight: 600; }
.site-header nav a:hover, .footer a:hover, .back:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero { display: grid; grid-template-columns: 2fr 3fr; min-height: 510px; margin-top: 1.5rem; background: #263e32; color: #fffdf6; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.2rem; padding: clamp(2rem, 4vw, 4.8rem); }
.kicker { font-size: .875rem; font-weight: 700; letter-spacing: .12em; }
.hero .kicker { color: #e6dcc5; }
.hero h1, .heading, .detail h1 { font-family: var(--serif); font-weight: 700; line-height: 1.17; letter-spacing: -.065em; }
.hero h1 { font-size: clamp(2.6rem, 4.55vw, 4.85rem); }
.hero p { color: #f2eee3; max-width: 25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.15rem; border: 1px solid currentColor; background: transparent; font-weight: 650; font-size: .9rem; }
.hero .button { margin-top: .5rem; background: #fffaf0; color: #24362b; border-color: #fffaf0; }
.hero .button:hover { background: #e9dfc9; }
.hero .button:focus-visible { outline-color: #efcd96; }
.hero-image { position: relative; isolation: isolate; overflow: hidden; min-height: 100%; }
.hero-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 54% center; }
.hero-image figcaption { position: absolute; right: 1rem; bottom: 1rem; background: #26352af5; color: white; padding: .45rem .72rem; font-size: .8125rem; }
.section { padding-top: clamp(2.7rem, 5.3vw, 5.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.45rem; }
.heading { font-size: clamp(2rem, 4.1vw, 3.5rem); }
.section-head p { margin-top: .6rem; color: var(--muted); }
.features, .scene-grid, .related-grid { display: grid; gap: 1.55rem; }
.features { grid-template-columns: 1.22fr 1fr 1fr; }
.scene-grid, .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.card a { display: block; }
.card .photo { overflow: hidden; background: #dce0d5; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .28s ease; }
.features .card img { aspect-ratio: 1.45; }
.features { align-items: stretch; }
.features .card a { display: flex; flex-direction: column; height: 100%; }
.features .photo { display: flex; aspect-ratio: 1.45; }
.features .card img { height: 100%; }
.card a:hover img { transform: scale(1.035); }
.card a:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.card-meta { color: var(--muted); font-size: .875rem; margin-top: .8rem; }
.card h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.45; margin-top: .23rem; }
.features h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -.045em; }
.features .card p:last-child { color: var(--muted); margin-top: .35rem; }
.gallery { scroll-margin-top: 1rem; }
.count { color: var(--muted); white-space: nowrap; }
.filters { border-block: 1px solid var(--line); display: flex; justify-content: space-between; gap: .75rem; padding: .8rem 0; margin-bottom: 1.55rem; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 99px; min-height: 44px; padding: .42rem .9rem; font-size: .9rem; }
.chip:hover, select:hover { border-color: var(--green); }
.chip[aria-pressed='true'] { background: var(--green); border-color: var(--green); color: #fff; }
select { appearance: none; padding: .45rem 2.2rem .45rem .85rem; border: 1px solid var(--line); background: var(--paper); min-height: 44px; width: 100%; font-size: .9rem; }
.select { position: relative; flex: 0 0 10.5rem; }
.select::after { content: ''; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: absolute; pointer-events: none; right: 1rem; top: 1.05rem; width: .44rem; height: .44rem; transform: rotate(45deg); }
.empty { padding: 3rem 1rem; border-bottom: 1px solid var(--line); text-align: center; }
.empty button { margin-top: 1rem; }
.footer { border-top: 1px solid var(--line); margin-top: clamp(3rem, 7vw, 6rem); padding: 2rem 0; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.footer .wordmark { color: var(--ink); }
.footer p { font-size: .9rem; }
.back { display: inline-block; margin: 1.5rem 0 1.25rem; font-size: .9rem; font-weight: 650; }
.detail-head { max-width: 58rem; margin-bottom: 1.7rem; }
.detail h1 { font-size: clamp(2.15rem, 5.2vw, 4.5rem); margin: .45rem 0 .65rem; }
.detail-head p { color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.scene-photo { background: #dce0d5; position: relative; aspect-ratio: 3 / 2; }
.scene-photo img { width: 100%; }
.scene-figure figcaption { color: var(--muted); font-size: .875rem; margin-top: .65rem; }
.hotspot { display: grid; place-items: center; position: absolute; transform: translate(-50%, -50%); width: 42px; height: 42px; border: 2px solid white; border-radius: 50%; background: #263e32; color: white; font-weight: 750; box-shadow: 0 0 0 2px #263e3277; }
.hotspot:hover, .hotspot:focus-visible { background: #774829; z-index: 1; }
.detail aside { border-top: 1px solid var(--line); }
.detail aside section { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.detail aside h2 { font: 700 1.5rem/1.3 var(--serif); margin-bottom: .65rem; }
.detail aside ol { padding: 0; margin: 0; list-style: none; display: grid; gap: .45rem; }
.detail aside li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .62rem; align-items: start; padding: .6rem .48rem; scroll-margin-top: 1rem; }
.detail aside li:target { background: #e4e9df; }
.detail aside li span { background: var(--green); color: #fff; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; font-size: .875rem; }
.detail aside li p { color: var(--muted); }
.palette { color: var(--muted); margin-top: .65rem; }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 3rem); }
  .hero { grid-template-columns: 5fr 6fr; min-height: 440px; }
  .hero-copy { padding: 1.8rem; }
  .features, .scene-grid, .related-grid { gap: 1rem; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { min-height: 64px; }
  .wordmark { font-size: 1.45rem; }
  .site-header nav { gap: .85rem; font-size: .875rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin-top: .85rem; }
  .hero-copy { padding: 2.2rem 1.4rem; gap: .9rem; }
  .hero h1 { font-size: clamp(2.45rem, 9vw, 3.5rem); }
  .hero-image { min-height: 0; aspect-ratio: 3 / 2; }
  .hero-image figcaption { right: .55rem; bottom: .55rem; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features .card:first-child { grid-column: 1 / -1; }
  .features .card:first-child .photo { aspect-ratio: 3 / 2; }
  .filters { flex-direction: column; }
  .select { flex-basis: auto; }
  .scene-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .hotspot { width: 38px; height: 38px; }
  .footer .wrap { flex-direction: column; }
}
@media (max-width: 360px) {
  .card h3 { font-size: 1.03rem; }
  .card-meta { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .card img { transition: none; }
}
