@font-face {
  font-family: 'Noto Serif Display';
  src: url('fonts/display.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif Display';
  src: url('fonts/display-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #151020;
  --panel: #1a1427;
  --line: #3a3048;
  --text: #fbf6ff;
  --muted: #c8bdd2;
  --accent: #dfc4ff;
  --display: 'Noto Serif Display', Georgia, serif;
  --shell: min(100% - 88px, 1184px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
:focus-visible { outline: 2px solid #f2ceff; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.065em; line-height: .99; }
.shell { width: var(--shell); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 640; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; border: 1px solid #6b557f; border-radius: 50%; color: var(--accent); width: 36px; height: 36px; flex: 0 0 auto; font-size: 1.15rem; font-family: Georgia, serif; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3.5vw, 44px); font-size: .95rem; color: var(--muted); }
.nav-links a:hover, .site-footer a:hover { color: var(--text); }
.nav-route { padding: 9px 16px; border: 1px solid #675577; border-radius: 999px; color: var(--text); }
.nav-route:hover { background: #30233e; }

.hero { isolation: isolate; display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; min-height: 625px; gap: 1.5rem; padding-block: 68px 78px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--accent); letter-spacing: .115em; text-transform: uppercase; font-size: .875rem; font-weight: 650; }
.eyebrow span { width: 7px; height: 7px; background: #d4aaf4; rotate: 45deg; border-radius: 1px; flex: 0 0 auto; }
.hero h1 { font-size: clamp(4.1rem, 7.7vw, 6.65rem); margin-block: 20px 25px; }
.hero h1 em { color: var(--accent); font-weight: inherit; padding-inline-end: .06em; }
.hero-summary { max-width: 450px; font-size: clamp(1.03rem, 1.7vw, 1.19rem); color: var(--muted); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.2rem; margin-top: 28px; }
.primary-button { display: inline-flex; align-items: center; min-height: 49px; padding: 11px 21px; background: var(--accent); color: #231432; border: 1px solid transparent; border-radius: 999px; font-weight: 720; transition: background .2s; }
.primary-button:hover { background: #f1dcff; }
.media-total { color: var(--muted); font-size: .9rem; }
.hero-collage { position: relative; min-width: 0; width: 100%; max-width: 566px; justify-self: end; aspect-ratio: 1.12; }
.hero-collage::before { content: ''; position: absolute; inset: -13% 0 -9%; background: radial-gradient(ellipse at 52% 53%, #6f389757, #3d20513d 44%, transparent 72%); z-index: -1; pointer-events: none; }
.collage-orbit { position: absolute; inset: 9% 9% 10% 9%; border: 1px solid #a077c451; border-radius: 50%; rotate: -24deg; pointer-events: none; }
.print { position: absolute; display: flex; flex-direction: column; width: 56%; margin: 0; border: 0; padding: 10px 10px 0; color: #241532; background: #eae0ef; box-shadow: 0 24px 64px #08060db0; text-align: left; transition: transform .25s ease; }
.print img { aspect-ratio: 4/4.8; object-fit: cover; min-width: 0; }
.print span { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 7px 3px; font-size: .88rem; font-weight: 670; line-height: 1.24; }
.print-coast { top: 12%; left: 4%; transform: rotate(-10deg); }
.print-coast:hover { transform: rotate(-7deg) translateY(-4px); }
.print-coast img { object-position: 53% 54%; }
.print-concert { top: 8%; right: 4%; width: 56%; transform: rotate(9deg); }
.print-concert:hover { transform: rotate(6deg) translateY(-4px); }
.print-concert img { object-position: 50% 59%; }
.print-concert i { margin-left: .5em; color: #6f4787; font-style: normal; }
.hero-star, .hero-star-small { position: absolute; color: #ead0ff; font: 3.8rem/1 Georgia, serif; pointer-events: none; }
.hero-star { top: 0; right: 7%; text-shadow: 0 0 24px #d9a4fd88; }
.hero-star-small { bottom: 6%; left: 12%; font-size: 2.35rem; }

.skip-link { position: fixed; z-index: 5; inset: 10px auto auto 12px; padding: 10px 16px; border-radius: 8px; color: #231432; background: var(--accent); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.welcome { border-top: 1px solid var(--line); background: #1b1426; padding-block: clamp(55px, 7vw, 87px); }
.welcome-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 18px 45px; }
.welcome h2, .route h2 { font-size: clamp(3rem, 6.2vw, 5.1rem); text-wrap: balance; }
.welcome-prose { max-width: 680px; color: #e4daeb; font-size: clamp(1.06rem, 1.8vw, 1.17rem); line-height: 1.76; }
.welcome-prose p + p { margin-top: 1em; }

.route { padding-block: clamp(55px, 8vw, 104px); border-top: 1px solid var(--line); }
.route-jumps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.route-jumps a { border: 1px solid #705982; border-radius: 999px; padding: 8px 13px; font-size: .95rem; }
.route-jumps a:hover { background: #352646; }
.route-group { scroll-margin-top: 20px; margin-top: 40px; padding-top: 23px; border-top: 1px solid var(--line); }
.route-group h3 { margin-bottom: 15px; color: #efe2fc; font-size: clamp(1.1rem, 2.2vw, 1.36rem); }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.route-grid li { display: flex; min-width: 0; }
.route-card { flex: auto; border: 1px solid #544462; border-radius: 12px; overflow: hidden; background: #261d32; transition: border-color .2s, background .2s; }
.route-card:hover { background: #352646; border-color: #ab8fbd; }
.route-card img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 55%; }
.route-card[href='concert/index.html'] img { object-position: 50% 61%; }
.route-card[href='hanbok/index.html'] img { object-position: 50% 68%; }
.route-card[href='bays/index.html'] img { object-position: 50% 68%; }
.route-label { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .72rem; min-height: 59px; padding: 13px 14px; font-weight: 610; line-height: 1.35; }
.route-number { color: var(--accent); font-size: .875rem; font-variant-numeric: tabular-nums; font-weight: 500; }

.chapter { width: min(var(--shell), 1092px); padding-block: clamp(48px, 6.5vw, 88px) 64px; }
.chapter-heading { margin-bottom: clamp(26px, 4.1vw, 45px); }
.chapter-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chapter-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.chapter-count { flex: 0 0 auto; padding: 5px 11px; border: 1px solid #614976; border-radius: 99px; color: var(--accent); font-variant-numeric: tabular-nums; font-size: .9rem; }
.chapter-heading h1 { margin-block: 20px 21px; max-width: 970px; font-size: clamp(3.1rem, 7vw, 6.15rem); text-wrap: balance; overflow-wrap: anywhere; }
.chapter-intro { max-width: 770px; color: var(--muted); font-size: clamp(1.09rem, 2vw, 1.26rem); line-height: 1.65; }
.moments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.6vw, 24px); }
.moments:has(.moment:only-child) { grid-template-columns: minmax(0, 755px); }
.moment { min-width: 0; overflow: hidden; border-radius: 13px; border: 1px solid #4a3a57; background: var(--panel); }
.moment-media { display: grid; place-items: center; aspect-ratio: 1.18; background: #0e0b15; overflow: hidden; }
.moment:only-child .moment-media { aspect-ratio: auto; height: min(59svh, 560px); min-height: 270px; }
.moment-media img, .moment-media video { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.moment figcaption { padding: 14px 18px 18px; }
.moment figcaption strong { display: block; margin-bottom: 4px; font-size: 1.05rem; line-height: 1.35; }
.moment figcaption p { color: var(--muted); line-height: 1.55; }

.article-layout { display: grid; grid-template-columns: minmax(0, 755px) minmax(190px, 1fr); gap: clamp(25px, 5vw, 64px); margin-top: clamp(35px, 6vw, 65px); }
.story-text { color: #ede4f1; min-width: 0; }
.story-section { scroll-margin-top: 20px; }
.story-section + .story-section { margin-top: clamp(36px, 5.2vw, 58px); }
.story-section h2 { font-size: clamp(2.1rem, 4.6vw, 3.36rem); line-height: 1.09; letter-spacing: -.044em; color: var(--text); margin-bottom: .54em; text-wrap: pretty; }
.story-section p { max-width: 70ch; font-size: clamp(1.06rem, 1.75vw, 1.16rem); line-height: 1.79; overflow-wrap: anywhere; }
.story-section p + p { margin-top: .95em; }
.reading-guide { align-self: start; position: sticky; top: 98px; padding-left: 17px; border-left: 1px solid #715a85; }
.reading-toggle { display: none; }
.reading-links p { font-weight: 700; }
.reading-links ul { margin: 9px 0 0; padding: 0; list-style: none; }
.reading-links a { display: inline-block; padding-block: 5px; color: var(--muted); line-height: 1.35; }
.reading-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.question { margin-top: 33px; border: 1px solid #795892; border-radius: 12px; background: #261a35; padding: 15px 19px; }
.question summary { cursor: pointer; color: #f0d8ff; font-weight: 650; }
.question p { margin-top: 11px; max-width: 62ch; line-height: 1.65; }
.words { margin-top: 31px; }
.words h2, .references h2 { font: 700 1.09rem/1.3 system-ui, sans-serif; letter-spacing: 0; }
.words dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-block: 12px 0; }
.words dl div { border: 1px solid #534363; border-radius: 9px; background: var(--panel); padding: 11px 13px; }
.words dt { display: grid; color: var(--text); font-weight: 650; }
.words dt span { color: var(--accent); font-size: 1.22rem; }
.words dd { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }
.references { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 20px; }
.references ul { padding-left: 1.3em; margin: .7em 0 0; }
.references li { padding-block: 3px; color: var(--muted); }
.references a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.references a:hover { color: var(--text); }

.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.chapter-link { display: flex; flex-direction: column; gap: 4px; justify-content: center; min-height: 78px; padding: 13px 17px; border: 1px solid #6b557f; border-radius: 12px; overflow-wrap: anywhere; }
.chapter-link span { font-size: .9rem; }
.chapter-link strong { font-size: 1.07rem; line-height: 1.35; }
.chapter-link:hover { background: #372647; }
.chapter-next { background: var(--accent); color: #231432; text-align: right; }
.chapter-next:hover { background: #f1dcff; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 84px; padding-block: 20px; }
.site-footer a { text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }

@media (max-width: 940px) {
  :root { --shell: min(100% - 56px, 1184px); }
  .hero { min-height: 500px; gap: 8px; padding-block: 58px; }
  .hero h1 { font-size: clamp(3.75rem, 8.4vw, 5.6rem); }
  .print { padding: 7px 7px 0; }
  .print span { min-height: 34px; }
  .hero-star { font-size: 3.1rem; }
  .hero-star-small { bottom: 2%; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .reading-guide { display: none; }
  .reading-toggle { display: block; margin-bottom: 30px; border-block: 1px solid var(--line); padding: 11px 0; }
  .reading-toggle summary { cursor: pointer; color: var(--accent); font-weight: 650; }
}
@media (max-width: 700px) {
  :root { --shell: calc(100% - 36px); }
  .nav { min-height: 64px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 1rem; }
  .nav-concert { display: none; }
  .nav-route { padding: 6px 11px; white-space: nowrap; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-block: 43px 34px; gap: 20px; }
  .hero h1 { font-size: clamp(3.25rem, 12vw, 5.3rem); margin-block: 16px 18px; }
  .hero-summary { max-width: 450px; }
  .hero-actions { margin-top: 23px; }
  .hero-collage { align-self: center; width: min(100%, 440px); }
  .hero-star-small { font-size: 1.75rem; bottom: 5%; }
  .welcome-layout { grid-template-columns: 1fr; }
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .route-card img { aspect-ratio: 4 / 3; }
  .route-label { font-size: .92rem; min-height: 54px; padding: 9px; gap: .42rem; }
  .chapter { padding-block: 40px 45px; }
  .chapter-meta .eyebrow { font-size: .8rem; letter-spacing: .09em; }
  .chapter-heading h1 { margin-block: 17px 16px; font-size: clamp(2.85rem, 10.4vw, 4.5rem); }
  .moments, .moments:has(.moment:only-child) { grid-template-columns: minmax(0, 1fr); }
  .moment-media, .moment:only-child .moment-media { height: auto; min-height: 0; aspect-ratio: auto; }
  .moment-media img, .moment-media video { width: 100%; height: auto; max-height: 62vh; }
  .moment figcaption { padding-inline: 13px; }
  .words dl { grid-template-columns: 1fr; }
  .words dt { grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; }
  .chapter-nav { gap: 9px; margin-top: 26px; }
  .chapter-link { padding: 10px; }
  .chapter-link strong { font-size: .95rem; }
  .site-footer .shell { min-height: 70px; font-size: .89rem; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: clamp(2.9rem, 13.2vw, 3.3rem); }
  .hero-actions { gap: .75rem; }
  .print span { min-height: 33px; }
  .route-label { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
