:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --paper-deep: #ebe8df;
  --ink: #1d2b33;
  --iron: #687477;
  --line: #d8d6ce;
  --accent: #8a553b;
  --white: #fffefa;
  --navy: #20333b;
  --focus: #7e4c35;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #e8e6df; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

#app { width: min(100%, 470px); min-height: 100vh; margin: 0 auto; background: var(--paper); box-shadow: 0 0 36px rgb(30 40 42 / 6%); }
.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 10px 22px; border-bottom: 1px solid rgb(29 43 51 / 12%); background: rgb(244 242 236 / 94%); backdrop-filter: blur(12px); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; }
.wordmark-mark { display: block; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 4px; }
.wordmark-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wordmark-name { font-size: 17px; font-weight: 750; letter-spacing: -.04em; }
.wordmark-sub { color: var(--iron); font-size: 9px; font-weight: 650; letter-spacing: .14em; }
.language-switch { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; color: var(--iron); font-size: 12px; }
.language-switch button { min-height: 44px; padding: 0 7px; border: 0; border-radius: 3px; color: var(--iron); background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.page { padding: 0 22px 26px; animation: appear 240ms ease-out both; }
.hero { padding-top: 34px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
.hero h1 { max-width: 410px; margin: 15px 0 14px; font-size: clamp(34px, 9vw, 47px); font-weight: 720; letter-spacing: -.065em; line-height: 1.18; }
.hero-intro { max-width: 390px; margin-bottom: 22px; color: #424e52; font-size: 16px; line-height: 1.75; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 0 18px; border-radius: 3px; font-size: 14px; font-weight: 700; text-decoration: none; }
.button-primary { color: var(--white); background: var(--navy); }
.button-primary span { font-size: 17px; }
.button-primary:active { background: #304a55; }
.hero-art, .place-art { position: relative; margin: 27px 0 0; overflow: hidden; background: var(--paper-deep); }
.hero-art img, .place-art img { display: block; width: 100%; height: auto; }
.hero-art figcaption, .place-art figcaption { position: absolute; right: 9px; bottom: 9px; padding: 5px 8px; color: var(--ink); background: rgb(255 254 250 / 90%); font-size: 9px; line-height: 1.3; }
.chapter-section { padding-top: 40px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.chapter-list { margin: 0; padding: 0; list-style: none; }
.chapter-row { border-bottom: 1px solid var(--line); }
.chapter-row a { display: grid; grid-template-columns: 42px 1fr 24px; align-items: center; gap: 8px; min-height: 70px; padding: 11px 0; text-decoration: none; }
.chapter-number { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: .05em; }
.chapter-name { font-size: 15px; font-weight: 650; line-height: 1.5; }
.chapter-arrow { color: var(--iron); font-size: 19px; text-align: right; }
.chapter-row a:active .chapter-name, .back-link:active { color: var(--accent); }

.place-page { padding-top: 23px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 18px -6px; padding: 0 6px; color: var(--iron); font-size: 13px; font-weight: 650; text-decoration: none; }
.place-heading { padding-bottom: 20px; }
.place-heading h1 { margin: 10px 0 12px; font-size: clamp(29px, 8vw, 39px); font-weight: 720; letter-spacing: -.06em; line-height: 1.25; }
.place-intro { margin: 0; color: #424e52; font-size: 16px; line-height: 1.75; }
.place-art { margin: 0 -22px; }
.place-art img { object-fit: contain; }
.summary-block { padding: 28px 0 25px; border-bottom: 1px solid var(--line); }
.summary-block .eyebrow { margin-bottom: 10px; }
.summary-block h2 { margin-bottom: 10px; font-size: 19px; letter-spacing: -.04em; }
.summary-block > p:last-child { margin: 0; color: #39474b; font-size: 16px; line-height: 1.8; }
.audio-card { margin: 22px 0 0; padding: 17px; border-radius: 5px; color: var(--white); background: var(--navy); }
.audio-card-top, .audio-time { display: flex; justify-content: space-between; gap: 12px; color: rgb(255 254 250 / 70%); font-size: 11px; font-variant-numeric: tabular-nums; }
.audio-kicker { letter-spacing: .08em; text-transform: uppercase; }
.audio-duration { color: var(--white); }
.audio-main-control { display: flex; align-items: center; gap: 10px; margin: 13px 0 9px; }
.play-button { display: flex; align-items: center; gap: 11px; flex: 1; min-height: 48px; padding: 0 13px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 3px; color: var(--white); background: transparent; text-align: left; font-size: 14px; font-weight: 700; cursor: pointer; }
.play-button:disabled, .restart-button:disabled { cursor: not-allowed; opacity: .72; }
.play-icon { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--navy); background: var(--white); font-size: 10px; }
.restart-button { width: 48px; min-height: 48px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 3px; color: var(--white); background: transparent; font-size: 21px; cursor: pointer; }
.audio-progress { width: 100%; height: 44px; margin: 3px 0 0; accent-color: #c18c6e; cursor: pointer; }
.audio-progress:disabled { opacity: .45; cursor: not-allowed; }
.audio-status { margin: 12px 0 0; color: #f2d8c7; font-size: 13px; line-height: 1.6; }
.retry-audio { min-height: 44px; margin-top: 5px; padding: 0 10px; border: 0; color: rgb(255 254 250 / 78%); background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
audio { display: none; }
.transcript { margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.transcript summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.transcript summary::-webkit-details-marker { display: none; }
.details-mark { color: var(--accent); font-size: 21px; font-weight: 400; }
.transcript[open] .details-mark { transform: rotate(45deg); }
.transcript-copy { padding: 0 0 17px; color: #39474b; font-size: 16px; line-height: 1.9; }
.transcript-copy p { margin: 0 0 1em; }
.transcript-copy p:last-child { margin-bottom: 0; }
.story-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 22px; }
.story-nav-link { display: flex; align-items: center; gap: 9px; min-height: 68px; padding: 10px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; }
.story-nav-link small { display: block; margin-bottom: 4px; color: var(--iron); font-size: 10px; }
.story-nav-link strong { display: block; font-size: 12px; line-height: 1.4; }
.next-link { justify-content: flex-end; text-align: right; }
.next-link > span:first-child { display: flex; flex-direction: column; align-items: flex-end; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 35px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--iron); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.page-footer a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; letter-spacing: 0; font-size: 12px; }
.not-found { padding-top: 45px; }
.not-found h1 { font-size: 28px; }
.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; }
noscript { display: block; padding: 20px; }

@keyframes appear { from { opacity: .75; } to { opacity: 1; } }
@media (min-width: 520px) {
  body { padding: 18px 0; }
  #app { min-height: calc(100vh - 36px); border: 1px solid rgb(29 43 51 / 8%); }
  .site-header { top: 0; }
}
@media (max-width: 365px) {
  .site-header { padding-right: 14px; padding-left: 14px; }
  .page { padding-right: 16px; padding-left: 16px; }
  .place-art { margin-right: -16px; margin-left: -16px; }
  .wordmark { gap: 7px; }
  .wordmark-mark { width: 24px; height: 24px; }
  .wordmark-name { font-size: 14px; }
  .wordmark-sub { font-size: 8px; letter-spacing: .08em; }
  .language-switch { gap: 1px; }
  .language-switch button { padding: 0 4px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
