:root {
  --ink: #191b1f;
  --ink-soft: #24272d;
  --paper: #f1e8d5;
  --paper-dim: #b8b1a5;
  --gold: #c7a45d;
  --gold-bright: #e4c981;
  --line: rgba(199, 164, 93, 0.28);
  --panel: rgba(26, 28, 33, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 4vw;
  background: linear-gradient(180deg, rgba(15, 16, 19, 0.94), rgba(15, 16, 19, 0.68));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; gap: 0.6rem; align-items: center; text-decoration: none; font-weight: 700; letter-spacing: 0.12em; }
.brand-mark { color: var(--gold-bright); }
#site-nav { display: flex; gap: clamp(0.8rem, 2.2vw, 2rem); }
#site-nav a { text-decoration: none; font-size: 0.92rem; color: var(--paper-dim); }
#site-nav a:hover, #site-nav a:focus-visible { color: var(--paper); }
.menu-button { display: none; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  background: url("assets/world/01_WEB_HERO_BRENA_SUNSET.webp") center 54% / cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 11, 14, 0.9) 0%, rgba(10, 11, 14, 0.66) 42%, rgba(10, 11, 14, 0.12) 72%), linear-gradient(0deg, var(--ink) 0%, transparent 30%); }
.hero-content { position: relative; z-index: 1; width: min(700px, 92vw); margin: 0 max(4vw, calc((100vw - var(--max)) / 2)); padding: 9rem 0 8vh; }
.hero-logo { width: min(600px, 86vw); height: auto; margin-bottom: 0.6rem; }
.hero-kicker, .eyebrow { color: var(--gold-bright); letter-spacing: 0.2em; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; }
.hero h1 { margin: 0.5rem 0 1rem; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1.08; letter-spacing: -0.045em; }
.hero-lead { max-width: 620px; color: #e7e0d5; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0.75rem 1.15rem; border: 1px solid var(--gold); text-decoration: none; font-weight: 700; }
.button-primary { background: var(--gold); color: #141518; }
.button-primary:hover { background: var(--gold-bright); }
.button-disabled { color: var(--paper-dim); border-color: rgba(184, 177, 165, 0.36); cursor: not-allowed; }
.scroll-cue { position: absolute; right: 3vw; bottom: 7vh; z-index: 1; writing-mode: vertical-rl; color: rgba(255, 255, 255, 0.54); font-size: 0.68rem; letter-spacing: 0.28em; }

.section { width: min(var(--max), 92vw); margin: 0 auto; padding: clamp(5rem, 10vw, 9rem) 0; }
.section-heading { max-width: 790px; margin-bottom: 2.5rem; }
.section-heading h2, .guide-copy h2, .final-cta h2 { margin: 0.25rem 0 0.9rem; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.16; letter-spacing: -0.035em; }
.section-heading p:not(.eyebrow), .guide-copy > p, .final-cta p { color: var(--paper-dim); font-size: 1.05rem; }
.heading-row { display: flex; max-width: none; gap: 4rem; align-items: end; justify-content: space-between; }
.heading-row > p { max-width: 430px; }

.world-collage { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 1.25rem; }
.feature-image { position: relative; margin: 0; overflow: hidden; min-height: 520px; border: 1px solid var(--line); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-image figcaption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; padding: 0.8rem 1rem; background: rgba(18, 20, 24, 0.76); border-left: 2px solid var(--gold); }
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.activity-card { min-height: 250px; padding: 1.3rem; display: flex; flex-direction: column; justify-content: end; background-size: cover; background-position: center; border: 1px solid var(--line); position: relative; overflow: hidden; }
.activity-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 13, 16, 0.94), rgba(12, 13, 16, 0.1)); }
.activity-card > * { position: relative; }
.activity-card h3 { margin: 0; font-size: 1.25rem; }
.activity-card p { margin: 0.25rem 0 0; color: #d5cec2; font-size: 0.9rem; }

.maps-section { width: 100%; max-width: none; padding-left: max(4vw, calc((100vw - var(--max)) / 2)); padding-right: max(4vw, calc((100vw - var(--max)) / 2)); background: #141619; }
.map-shell { border: 1px solid var(--line); background: #101215; box-shadow: var(--shadow); }
.tab-list { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.tab-list button { flex: 1; padding: 1rem; color: var(--paper-dim); background: transparent; border: 0; cursor: pointer; }
.tab-list button[aria-selected="true"] { color: var(--paper); background: rgba(199, 164, 93, 0.12); box-shadow: inset 0 -2px var(--gold); }
.map-panel { padding: 1.2rem; }
.map-stage { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.map-stage img { max-height: 78vh; width: auto; }
.map-marker { position: absolute; transform: translate(-50%, -50%); min-width: 30px; min-height: 30px; padding: 0.3rem 0.55rem; border-radius: 999px; border: 1px solid rgba(228, 201, 129, 0.88); background: rgba(22, 24, 28, 0.86); color: var(--paper); font-size: 0.72rem; line-height: 1.25; cursor: pointer; white-space: nowrap; box-shadow: 0 5px 18px rgba(0, 0, 0, 0.38); }
.map-marker:hover, .map-marker:focus-visible { background: var(--gold); color: var(--ink); }
.map-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1rem; }
.map-list a { padding: 0.6rem 0.75rem; background: var(--ink-soft); text-decoration: none; border-left: 2px solid var(--gold); font-size: 0.88rem; }

.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.region-card { overflow: hidden; background: var(--ink-soft); border: 1px solid rgba(255,255,255,0.08); }
.region-card img { width: 100%; aspect-ratio: 1.45 / 1; object-fit: cover; }
.region-body { padding: 1.25rem; }
.region-body h3 { margin: 0 0 0.25rem; font-size: 1.35rem; }
.region-eyebrow, .region-travel { color: var(--gold-bright); font-size: 0.84rem; }
.region-intro { color: var(--paper-dim); font-size: 0.94rem; }
.tag-list { display: flex; gap: 0.35rem; flex-wrap: wrap; padding: 0; list-style: none; }
.tag-list li { padding: 0.25rem 0.55rem; border: 1px solid rgba(255,255,255,0.14); font-size: 0.78rem; color: #d9d2c7; }

.people-section { width: 100%; max-width: none; padding-left: max(4vw, calc((100vw - var(--max)) / 2)); padding-right: max(4vw, calc((100vw - var(--max)) / 2)); background: linear-gradient(180deg, #1b1e23, #15171b); }
.filter-row { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; }
.filter { padding: 0.6rem 1rem; border: 1px solid var(--line); background: transparent; color: var(--paper-dim); cursor: pointer; }
.filter.is-active { background: var(--gold); color: var(--ink); }
.people-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.person-card { position: relative; min-width: 0; padding: 0; text-align: left; color: var(--paper); background: #111317; border: 1px solid rgba(255,255,255,0.08); cursor: pointer; overflow: hidden; }
.person-card[hidden] { display: none; }
.person-card img { width: 100%; aspect-ratio: 0.73 / 1; object-fit: cover; object-position: center 20%; transition: transform 220ms ease; }
.person-card:hover img, .person-card:focus-visible img { transform: scale(1.025); }
.person-card-copy { position: absolute; inset: auto 0 0; padding: 3rem 0.9rem 0.9rem; background: linear-gradient(0deg, rgba(10,11,14,0.98), transparent); }
.person-card h3 { margin: 0; font-size: 1rem; }
.person-card p { margin: 0.1rem 0 0; color: #d0c9bf; font-size: 0.75rem; line-height: 1.4; }

.guide-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.guide-image { min-height: 620px; background: url("assets/world/03_GOLDEN_STAG_TAVERN.webp") center / cover no-repeat; border: 1px solid var(--line); }
.guide-copy { align-self: center; }
.guide-steps { list-style: none; padding: 0; counter-reset: daystep; }
.guide-steps li { counter-increment: daystep; display: grid; grid-template-columns: 42px 1fr; gap: 0.8rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.guide-steps li::before { content: "0" counter(daystep); color: var(--gold-bright); font-family: Georgia, serif; }
.guide-steps strong { display: block; }
.guide-steps span { color: var(--paper-dim); font-size: 0.92rem; }
.command-drawer { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.command-drawer summary { cursor: pointer; padding: 1rem 0; color: var(--gold-bright); font-weight: 700; }
.command-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding-bottom: 1.2rem; }
.command-card { padding: 0.75rem; background: var(--ink-soft); }
.command-card code { color: var(--gold-bright); font-weight: 700; }
.command-card p { margin: 0.25rem 0 0; font-size: 0.82rem; color: var(--paper-dim); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.gallery-item { position: relative; padding: 0; background: #101215; border: 0; cursor: zoom-in; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; min-height: 240px; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 200ms ease; }
.gallery-item:nth-child(5n+1) { grid-column: span 2; }
.gallery-item:nth-child(5n+1) img { aspect-ratio: 2 / 1; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.025); }
.gallery-item span { position: absolute; inset: auto 0 0; padding: 2.2rem 0.8rem 0.65rem; background: linear-gradient(transparent, rgba(9,10,13,0.9)); color: var(--paper); text-align: left; font-size: 0.82rem; }

.faq-section { max-width: 920px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 700; position: relative; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; color: var(--gold-bright); font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { color: var(--paper-dim); margin: 0 0 1.2rem; }

.final-cta { min-height: 70vh; padding: 10vh 4vw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(rgba(15,16,19,0.74), rgba(15,16,19,0.92)), url("assets/world/08_BRENA_GATE_DISTRICT_SUNSET.webp") center / cover; }
.final-cta img { width: min(680px, 88vw); margin-bottom: 1rem; }
.final-cta .button { margin-top: 1rem; }
footer { padding: 2.2rem 4vw; border-top: 1px solid var(--line); color: var(--paper-dim); text-align: center; font-size: 0.82rem; }
footer p { margin: 0.25rem; }

dialog { padding: 0; color: var(--paper); background: #15171b; border: 1px solid var(--line); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,0.78); backdrop-filter: blur(6px); }
.modal { width: min(900px, 92vw); max-height: 88vh; }
.modal-close { position: absolute; z-index: 2; top: 0.7rem; right: 0.7rem; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; color: white; background: rgba(15,16,19,0.8); font-size: 1.5rem; cursor: pointer; }
.person-detail { display: grid; grid-template-columns: minmax(260px, 42%) 1fr; }
.person-detail img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: center 20%; }
.person-detail-copy { padding: clamp(2rem, 5vw, 4rem); align-self: center; }
.person-detail-copy h2 { margin: 0.3rem 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(2rem, 4vw, 3rem); }
.person-meta { color: var(--gold-bright); }
.person-quote { margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--gold); font-family: Georgia, "Noto Serif KR", serif; color: #e8ded0; }
.lightbox { width: min(1100px, 94vw); max-height: 94vh; background: #0c0d0f; }
.lightbox img { max-height: 82vh; width: 100%; object-fit: contain; }
.lightbox p { margin: 0; padding: 0.8rem 1rem; color: var(--paper-dim); }

@media (max-width: 1024px) {
  .world-collage, .guide-section { grid-template-columns: 1fr; }
  .feature-image { min-height: 460px; }
  .activity-grid { grid-template-columns: repeat(4, 1fr); }
  .activity-card { min-height: 220px; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .site-header { min-height: 60px; }
  .menu-button { display: inline-flex; border: 1px solid var(--line); background: transparent; color: var(--paper); padding: 0.45rem 0.7rem; }
  #site-nav { position: absolute; top: 60px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 0.5rem 4vw 1rem; background: rgba(17,19,23,0.98); border-bottom: 1px solid var(--line); }
  #site-nav.is-open { display: flex; }
  #site-nav a { padding: 0.75rem 0; }
  .hero { min-height: 92svh; background-position: 60% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,11,14,0.96), rgba(10,11,14,0.25) 78%); }
  .hero-content { width: auto; margin: 0 5vw; padding-bottom: 7vh; }
  .scroll-cue { display: none; }
  .heading-row { display: block; }
  .activity-grid, .region-grid { grid-template-columns: 1fr; }
  .activity-card { min-height: 250px; }
  .map-panel { padding: 0.65rem; }
  .map-marker { min-width: 26px; min-height: 26px; padding: 0; width: 26px; overflow: hidden; text-indent: 100%; }
  .map-marker::after { content: ""; position: absolute; inset: 7px; background: var(--gold-bright); border-radius: 50%; }
  .map-list { grid-template-columns: 1fr 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .person-card-copy { padding-left: 0.7rem; padding-right: 0.7rem; }
  .guide-image { min-height: 430px; }
  .command-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(5n+1) { grid-column: span 2; }
  .person-detail { grid-template-columns: 1fr; }
  .person-detail img { min-height: 44vh; max-height: 50vh; }
}

@media (max-width: 390px) {
  .section { width: 90vw; }
  .hero h1 { font-size: 2.35rem; }
  .hero-actions .button { width: 100%; }
  .people-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .person-card h3 { font-size: 0.9rem; }
  .person-card p { font-size: 0.7rem; }
  .map-list { grid-template-columns: 1fr; }
  .gallery-item img { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
