:root {
  --ink: #14213d;
  --paper: #fffdf7;
  --muted: #65708a;
  --line: #dfe4ee;
  --violet: #4b36e7;
  --shadow: 0 20px 55px rgba(27, 37, 78, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
.site-header { position: sticky; z-index: 30; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 15px clamp(20px, 6vw, 92px); border-bottom: 1px solid rgba(19,33,62,.1); background: rgba(255,253,247,.93); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; line-height: .86; }
.brand-mark { width: 35px; height: 35px; object-fit: contain; }
.brand span { display: grid; font-size: 17px; letter-spacing: -.06em; }
.brand b { color: var(--ink); font-weight: 820; }
.brand i { color: var(--violet); font-style: normal; font-weight: 600; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 13px; font-weight: 760; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--violet); }
.nav-separator { color: #a6aec2; font-weight: 500; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); min-height: 580px; overflow: hidden; color: #fff; background: #15172a; }
.hero-copy { align-self: center; padding: clamp(56px, 9vw, 130px) clamp(24px, 8vw, 120px); }
.eyebrow, .section-kicker { margin: 0 0 13px; font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: #9ccff8; }
h1, h2, h3 { margin: 0; letter-spacing: -.055em; }
h1 { max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6.2vw, 88px); line-height: .98; font-weight: 550; }
.lede { max-width: 680px; margin: 26px 0 0; color: #d6d9f1; font-size: 18px; line-height: 1.65; }
.hero-route { position: relative; display: grid; place-items: center; gap: 14px; padding: 48px; background: radial-gradient(circle at 52% 42%, rgba(94,86,255,.6), transparent 29%), linear-gradient(160deg, #3523c5, #1366ce 58%, #52c981); }
.route-line { position: relative; display: grid; justify-items: center; gap: 20px; width: min(420px, 94%); }
.route-line::before { content: ""; position: absolute; inset: -14px 18% -14px; border-radius: 70px; background: rgba(255,253,246,.96); box-shadow: 0 10px 15px rgba(7,12,60,.25); }
.route-line i { position: relative; z-index: 1; display: block; width: 64%; height: 66px; border: 18px solid #4a35f0; border-radius: 34px; }
.route-line i:nth-child(2) { width: 74%; margin-left: 18%; border-color: #6d62ee; }
.route-line i:nth-child(3) { width: 66%; margin-right: 20%; border-color: #4da8e9; }
.route-line i:nth-child(4) { width: 80%; margin-left: 11%; border-color: #62cc8d; }
.route-caption { position: relative; z-index: 1; font-size: 12px; font-weight: 850; letter-spacing: .15em; }
.snake-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; padding: 68px clamp(24px, 8vw, 120px); border-bottom: 1px solid var(--line); background: #fff; }
.section-kicker { color: var(--violet); }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; font-weight: 560; }
.snake-intro p:last-child { max-width: 720px; margin: 0; align-self: end; color: #4f5b76; font-size: 16px; line-height: 1.75; }
.snake-section { padding: 82px clamp(20px, 7vw, 110px) 100px; overflow: hidden; background: #f5f6fa; }
.snake-header { display: flex; justify-content: space-between; align-items: end; gap: 26px; margin-bottom: 30px; }
.snake-header p { max-width: 540px; margin: 0; color: #53607a; line-height: 1.65; }
.stage-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.stage-legend span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #dbe0ea; border-radius: 999px; color: #47526c; background: #fff; font-size: 11px; font-weight: 800; }
.stage-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--stage-color); }
.snake-scroll { overflow-x: auto; padding: 10px 0 28px; scrollbar-color: #aeb5cd transparent; }
.snake-scroll:focus-visible { outline: 3px solid rgba(75,54,231,.3); outline-offset: 4px; }
.snake-canvas { position: relative; width: 100%; min-width: 820px; aspect-ratio: 1000 / var(--snake-height); filter: drop-shadow(0 11px 14px rgba(26, 37, 79, .12)); }
.snake-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.snake-route { fill: none; stroke: url(#stage-gradient); stroke-width: 58; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 5px 0 rgba(19,33,62,.16)); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.snake-stage-label { position: absolute; z-index: 12; left: 50%; display: grid; justify-items: center; gap: 3px; min-width: 290px; transform: translate(-50%, -50%); color: var(--stage-color); text-align: center; }
.snake-stage-label strong { padding: 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; letter-spacing: -.03em; background: #f5f6fa; }
.snake-stage-label small { padding: 0 7px; color: #64708a; background: #f5f6fa; font-size: 11px; font-weight: 750; }
.stage-panel-links { display: flex; justify-content: center; gap: 5px; padding: 3px 5px; border: 1px solid rgba(215,221,233,.95); border-radius: 999px; background: rgba(255,253,247,.98); box-shadow: 0 4px 11px rgba(32,43,74,.08); }
.stage-panel-button { border: 0; border-radius: 999px; padding: 5px 7px; color: #46516d; background: transparent; font: inherit; font-size: 9px; font-weight: 820; line-height: 1; white-space: nowrap; cursor: pointer; }
.stage-panel-button:hover, .stage-panel-button:focus-visible { color: #fff; background: var(--stage-color); outline: 0; }
.snake-points { position: absolute; inset: 0; }
.snake-point { position: absolute; z-index: 8; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transform: translate(-50%, -50%); }
.point-core { position: absolute; inset: 4px; display: block; border: 4px solid #fff; border-radius: inherit; background: var(--stage-color); box-shadow: 0 0 0 3px var(--stage-color), 0 5px 12px rgba(19,33,62,.32); transition: transform .18s ease, background .18s ease; }
.snake-point.is-author .point-core { inset: 5px; border-radius: 8px; background: #162343; box-shadow: 0 0 0 3px var(--stage-color), 0 5px 12px rgba(19,33,62,.32); transform: rotate(45deg); }
.snake-point:hover .point-core, .snake-point:focus-visible .point-core { transform: scale(1.24); }
.snake-point.is-author:hover .point-core, .snake-point.is-author:focus-visible .point-core { transform: rotate(45deg) scale(1.18); }
.snake-point:focus-visible { outline: 0; }
.point-year { position: absolute; top: -37px; left: 50%; min-width: max-content; padding: 3px 5px; border: 1px solid rgba(210,216,231,.82); border-radius: 6px; color: #202b47; background: rgba(255,253,247,.94); box-shadow: 0 2px 6px rgba(26,37,79,.09); font-size: 11px; font-weight: 880; letter-spacing: -.02em; transform: translateX(-50%); white-space: nowrap; pointer-events: none; }
.point-tooltip { position: absolute; bottom: -13px; left: 50%; width: max-content; max-width: 190px; padding: 8px 10px; border-radius: 9px; color: #fff; background: #162343; box-shadow: 0 8px 20px rgba(19,33,62,.25); font-size: 11px; font-weight: 760; line-height: 1.25; opacity: 0; pointer-events: none; transform: translate(-50%, 100%) translateY(-4px); transition: opacity .17s ease, transform .17s ease; }
.snake-point:hover .point-tooltip, .snake-point:focus-visible .point-tooltip { opacity: 1; transform: translate(-50%, 100%) translateY(0); }
.sources { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 46px; padding: 84px clamp(24px, 8vw, 120px); background: #eef0f7; }
.legend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.legend-grid article { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; min-height: 82px; padding: 16px; border: 1px solid #dde2ec; border-radius: 16px; background: #fff; }
.legend-grid p { margin: 0; color: #4c5772; font-size: 14px; line-height: 1.55; }
.legend-grid b { color: var(--ink); }
.legend-mark { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--violet); font-size: 11px; font-weight: 850; }
.legend-circle { border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 3px var(--violet); }
.legend-diamond { border: 4px solid #fff; border-radius: 7px; background: #162343; box-shadow: 0 0 0 3px var(--violet); transform: rotate(45deg); }
.legend-letter { border-radius: 8px; }
.webgraphy { padding: 84px clamp(24px, 8vw, 120px); border-top: 1px solid #e0e4ed; background: #fff; }
.webgraphy-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: end; margin-bottom: 38px; }
.webgraphy-intro p:last-child { max-width: 720px; margin: 0; color: #4c5772; line-height: 1.7; }
.apa-list { columns: 2; column-gap: 44px; margin: 0; padding: 0; list-style: none; counter-reset: apa; }
.apa-list li { position: relative; break-inside: avoid; margin: 0 0 14px; padding: 0 0 14px 33px; border-bottom: 1px solid #e8ebf1; color: #4c5772; font-size: 13px; line-height: 1.62; counter-increment: apa; }
.apa-list li::before { content: counter(apa, decimal-leading-zero); position: absolute; top: 1px; left: 0; color: var(--violet); font-size: 10px; font-weight: 850; }
.apa-list a { color: #2433b7; font-weight: 720; text-decoration-color: #aeb7ef; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px clamp(24px, 8vw, 120px); color: #d8dcee; background: #15172a; font-size: 12px; }
footer p { margin: 0; }
footer a { color: #98e5b0; font-weight: 750; text-decoration: none; }
dialog { width: min(1040px, calc(100% - 70px)); max-height: calc(100% - 42px); margin: auto; padding: 0; overflow-y: auto; border: 0; border-radius: 28px; color: var(--ink); background: var(--paper); box-shadow: 0 25px 80px rgba(0,0,0,.38); }
dialog::backdrop { background: rgba(15,17,35,.68); backdrop-filter: blur(5px); }
.dialog-top { display: flex; justify-content: end; padding: 28px 38px 0; }
.dialog-close { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: #edf0f7; font-size: 27px; line-height: 1; cursor: pointer; }
#dialog-content { max-width: 840px; padding: 8px 92px 90px; margin: 0 auto; }
#dialog-content h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 57px); line-height: 1.03; font-weight: 540; }
.dialog-date { margin: 13px 0 28px; color: var(--violet); font-size: 13px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.dialog-image { display: block; width: 100%; height: 330px; margin: 0 0 30px; border-radius: 19px; object-fit: contain; background: #eef1f7; }
.detail-essay { border-top: 1px solid #e5e7ee; }
.detail-essay p { margin: 24px 0 0; color: #3f4b64; font-size: 16px; line-height: 1.85; }
.listen-link { display: inline-flex; align-items: center; min-height: 42px; margin-top: 24px; padding: 10px 16px; border-radius: 999px; color: #fff; background: var(--violet); font-size: 13px; font-weight: 800; text-decoration: none; }
.listen-link:hover, .listen-link:focus-visible { background: #2e1ac2; outline: 3px solid rgba(75,54,231,.2); outline-offset: 3px; }
@media (max-width: 840px) { .hero, .snake-intro, .sources, .webgraphy-intro { grid-template-columns: 1fr; } .hero-route { min-height: 330px; } .snake-header { align-items: start; flex-direction: column; } .stage-legend { justify-content: flex-start; } }
@media (max-width: 700px) { .site-header { gap: 8px; align-items: center; } nav { gap: 6px; justify-content: flex-end; font-size: 11px; text-align: right; } .brand-mark { width: 30px; height: 30px; } .hero-copy { padding: 64px 24px; } .snake-intro, .snake-section, .sources, .webgraphy { padding-top: 58px; padding-bottom: 58px; } .snake-scroll { overflow: visible; } .snake-canvas { min-width: 0; width: 100%; } .snake-stage-label { min-width: 250px; } .snake-stage-label strong { font-size: 15px; } .snake-stage-label small { font-size: 8px; } .stage-panel-links { gap: 1px; padding: 2px; } .stage-panel-button { padding: 4px 4px; font-size: 7px; } .snake-point { width: 28px; height: 28px; } .point-year { top: -31px; padding: 2px 3px; font-size: 8px; } .point-tooltip { max-width: 140px; font-size: 10px; } .legend-grid { grid-template-columns: 1fr; } .apa-list { columns: 1; } dialog { width: calc(100% - 24px); max-height: calc(100% - 24px); border-radius: 22px; } .dialog-top { padding: 20px 24px 0; } #dialog-content { padding: 8px 30px 62px; } .dialog-image { height: 210px; } footer { flex-direction: column; } }
