:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: #111b29;
  color: #fff9ed;
  --ink: #fff9ed;
  --filter: brightness(.84) saturate(.72) contrast(.97);
  --dawn: .5;
  --sunset: 0;
  --night: 0;
  --glimmer: 0;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid #ffd397; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.view-header { position: fixed; z-index: 3; top: 0; right: 0; left: 0; display: flex; justify-content: space-between; align-items: center; padding: 19px clamp(18px, 5.8vw, 88px); background: linear-gradient(#0c1528a0, transparent); }
.view-header .brand-mark { background: #ffd296; }
.view-header .brand-period { color: #ffd296; }
.sound { display: flex; align-items: center; gap: 9px; min-height: 39px; padding: 0 13px; border: 1px solid #ffeed385; border-radius: 40px; background: #172130ba; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.sound:hover, .sound[aria-pressed=true] { background: #ffebc9; color: #152032; }
.sound-icon { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.sound-icon i { display: block; width: 2px; background: currentColor; height: 5px; border-radius: 2px; }
.sound-icon i:nth-child(2) { height: 10px; }
.sound-icon i:nth-child(3) { height: 7px; }
.river { position: relative; }
.picture { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #172c3f; }
.picture > * { position: absolute; inset: 0; pointer-events: none; }
.landscape { background: 54% 49% / cover url('./han-river.jpg'); filter: var(--filter); }
.dawn-light { opacity: var(--dawn); background: linear-gradient(160deg, #6e75a9a8, #f6b7933d 52%, transparent 70%); mix-blend-mode: screen; }
.sunset-light { opacity: var(--sunset); background: linear-gradient(160deg,#812833e0, #f48236b0 42%, #753e4d00 70%); mix-blend-mode: screen; }
.night-light { opacity: var(--night); background: linear-gradient(180deg,#07193791, #12265216 56%, #07183c81); }
.picture .moon { inset: 24% 22% auto auto; width: min(4vw, 47px); aspect-ratio: 1; border-radius: 50%; opacity: var(--glimmer); background: #f8e9cf; box-shadow: 0 0 23px #f8e9cf5c; }
.reflection { opacity: var(--glimmer); background: radial-gradient(ellipse 1.5% 14% at 69% 62%, #ffc48091 0%, #de954b30 25%, transparent 78%), radial-gradient(ellipse 2.5% 11% at 83% 62%, #ffd2acb0 0%, #eeabd344 25%, transparent 78%), radial-gradient(ellipse 1.4% 8% at 78% 59%, #c2d4ffb0 0%, #94b1ff2b 30%, transparent 78%); mix-blend-mode: screen; }
.shade { background: linear-gradient(0deg,#061119d9, #111a2570 30%, #17213000 65%), linear-gradient(90deg,#0813228c, transparent 70%); }
.chapters { position: relative; z-index: 1; margin-top: -100svh; }
.chapter { display: grid; min-height: 100svh; align-items: end; padding: 110px clamp(22px, 7.8vw, 118px) clamp(100px, 16svh, 164px); }
.chapter-content { max-width: 860px; }
.hour { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: .95rem; font-weight: 700; }
.hour time { color: #ffdfa8; font: 600 1.01rem ui-monospace, monospace; }
.hour span::before { display: inline-block; width: 18px; height: 1px; margin-right: 12px; vertical-align: middle; content: ''; background: #f4dfbd88; }
.chapter h1, .chapter h2 { margin: 0 0 15px; font-size: clamp(2.6rem, 8.5vw, 8rem); font-weight: 830; line-height: 1.03; letter-spacing: -.088em; text-wrap: balance; }
.prose { margin: 0; font-size: clamp(1rem, 1.65vw, 1.32rem); line-height: 1.7; color: #fff6e4; text-wrap: pretty; }
.continue { display: inline-flex; min-height: 42px; align-items: center; margin-top: 25px; padding: 0 15px; border: 1px solid #ffeed380; border-radius: 27px; background: #141c298f; font-size: .9rem; font-weight: 750; text-decoration: none; }
.continue:hover { background: #ffebc9; color: #152032; }
.credit { margin: 14px 0 0; color: #efe2ce; font-size: .78rem; }
.hours { position: fixed; z-index: 2; right: clamp(17px, 4.3vw, 66px); bottom: max(23px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 3px; padding: 5px; border: 1px solid #fff8e44d; border-radius: 12px; background: #152133cf; }
.hours a { padding: 5px 12px; border-radius: 8px; font-size: .82rem; font-weight: 720; text-decoration: none; }
.hours a span { display: block; margin-bottom: 3px; color: #e5c9a8; font: .72rem ui-monospace, monospace; }
.hours a:hover, .hours a[aria-current] { color: #172334; background: #ffebc9; }
.hours a[aria-current] span, .hours a:hover span { color: #43516a; }
@media (max-width: 630px) {
  .view-header { padding-block: 13px; }
  .view-header .brand { font-size: 19px; }
  .view-header .brand-mark { width: 18px; }
  .hours { right: auto; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); }
  .hours a { padding: 5px 9px; white-space: nowrap; }
  .chapter { padding-bottom: 113px; }
  .chapter h1, .chapter h2 { letter-spacing: -.075em; }
  .prose br { display: none; }
}
@media (max-height: 460px) {
  .view-header { padding-block: 8px; }
  .chapter { padding-top: 75px; padding-bottom: 90px; }
  .chapter h1, .chapter h2 { font-size: clamp(2.2rem, 7vw, 4rem); }
}
