:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0066cc;
  --focus: #0071e3;
  --canvas: #fff;
  --surface: #f5f5f7;
  --line: #d2d2d7;
  --font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 28px); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--blue); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button:active, .button:active { transform: scale(.97); }
button:disabled { opacity: .5; cursor: wait; }
::selection { background: #d6eaff; }
.wrap { width: min(1040px, calc(100% - 80px)); margin-inline: auto; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5; margin: 0 0 16px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; }
p { margin-top: 0; }
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-height); background: #ffffffed; backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid #00000012; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.brand span { color: var(--muted); margin-left: 4px; font-weight: 400; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.top-nav a { font-size: 12px; color: var(--ink); text-decoration: none; padding-block: 12px; }
.top-nav a:hover { color: var(--blue); }
.header-chat { background: var(--blue); color: #fff; border: 0; border-radius: 999px; font-size: 12px; padding: 8px 18px; min-height: 36px; white-space: nowrap; }
.reading-progress { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--blue); }
.hero { padding: 68px 0 52px; text-align: center; }
.hero .eyebrow { color: var(--ink); font-size: 15px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(44px, 5.7vw, 72px); line-height: 1.14; margin: 0; letter-spacing: -.065em; }
.hero h1 span { color: var(--muted); }
.hero-description { max-width: 560px; font-size: 19px; line-height: 1.6; margin: 24px auto 28px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 999px; min-height: 44px; padding: 11px 24px; font-size: 14px; text-decoration: none; }
.primary { color: white; background: var(--blue); }
.primary:hover, .header-chat:hover { background: var(--focus); }
.hero-object { margin: 38px auto 0; width: min(480px, calc(100% - 48px)); }
.hero-object img { width: 100%; height: auto; display: block; }
.hero-object figcaption { margin-top: 16px; font-size: 11px; color: var(--muted); }
.contents { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 88px 96px; border-top: 1px solid var(--line); }
.contents h2 { font-size: 38px; line-height: 1.25; margin: 0 0 20px; }
.contents p:last-child { font-size: 15px; color: var(--muted); max-width: 300px; }
.contents nav { display: grid; align-content: start; }
.contents nav a { display: flex; gap: 20px; align-items: center; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); min-height: 58px; font-size: 14px; }
.contents nav a:first-child { border-top: 1px solid var(--line); }
.contents nav a:hover { color: var(--blue); }
.contents-number { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.contents nav a span:last-child { margin-left: auto; color: var(--muted); }
.chapter { padding: 96px 0; }
.chapter-tinted { background: var(--surface); }
.chapter-layout { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1fr); column-gap: 92px; }
.chapter-heading { grid-column: 1 / -1; max-width: 700px; margin-bottom: 48px; }
.chapter h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.25; margin: 0 0 20px; }
.chapter-summary { color: var(--muted); font-size: 20px; line-height: 1.6; max-width: 650px; margin-bottom: 12px; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; min-height: 44px; }
.chapter-body { display: contents; }
.chapter-no-photo .prose { grid-column: 1 / -1; max-width: 760px; }
.story-photo { grid-column: 1; grid-row: 2; margin: 0; align-self: start; position: static; }
.photo-button { display: block; width: 100%; position: relative; padding: 0; border: 0; background: transparent; }
.photo-button img { width: 100%; height: auto; display: block; }
.zoom-label { position: absolute; right: 12px; bottom: 12px; background: #ffffffeb; color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 11px; }
figcaption { font-size: 11px; line-height: 1.65; color: var(--muted); margin-top: 14px; }
.prose { grid-column: 2; grid-row: 2; font-size: 17px; line-height: 1.85; }
.prose p { margin: 0 0 24px; }
.prose p:last-child { margin-bottom: 0; }
.citation { font-size: 11px; white-space: nowrap; text-decoration: none; font-weight: 400; }
.route { grid-column: 2; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.route-stops { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.route-stops b { color: var(--muted); font-weight: 400; }
.route p { font-size: 11px; color: var(--muted); margin: 18px 0 0; }
.artifact { grid-column: 1 / -1; margin-top: 72px; padding: 48px; background: var(--surface); border-radius: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: center; }
.artifact-label { grid-column: 1 / -1; }
.artifact h3 { font-size: 28px; line-height: 1.3; margin: 0 0 8px; }
.artifact-image { position: relative; }
.artifact-image img { display: block; width: 100%; height: auto; }
.hotspot { position: absolute; border: 2px solid white; background: var(--ink); color: white; border-radius: 50%; width: 44px; height: 44px; font-size: 13px; }
.hotspot[aria-pressed=true] { background: var(--blue); outline: 2px solid var(--blue); outline-offset: 3px; }
.hotspot-1 { left: 64%; top: 9%; }
.hotspot-2 { left: 20%; top: 62%; }
.hotspot-3 { left: 59%; top: 52%; }
#artifact-detail { font-size: 15px; line-height: 1.8; min-height: 110px; }
#artifact-detail p { margin-bottom: 12px; }
.source-label { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }
.timeline-section { background: var(--ink); color: #f5f5f7; padding: 96px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 64px; margin-bottom: 40px; }
.section-heading h2 { font-size: 44px; line-height: 1.2; margin: 0; }
.section-heading > p { max-width: 290px; font-size: 13px; color: var(--muted); margin: 0; }
.timeline-section .eyebrow, .timeline-section .section-heading > p { color: #b6b6bc; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; }
.timeline button { position: relative; background: transparent; text-align: left; color: #b6b6bc; border: 0; border-top: 1px solid #515154; padding: 24px 20px 20px 0; }
.timeline strong { display: block; font-size: 25px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.timeline button > span:last-child { display: block; margin-top: 8px; font-size: 12px; max-width: 170px; }
.timeline-dot { position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: #86868b; }
.timeline button[aria-pressed=true] { color: #fff; }
.timeline button[aria-pressed=true] .timeline-dot { background: #2997ff; }
.timeline-detail { max-width: 750px; margin-top: 32px; font-size: 17px; line-height: 1.8; min-height: 125px; }
.timeline-detail .citation { color: #70b8ff; }
.ai-invitation { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-block: 96px; }
.ai-invitation h2 { font-size: 36px; line-height: 1.3; margin: 0 0 20px; }
.ai-invitation p:not(.eyebrow) { max-width: 550px; color: var(--muted); font-size: 17px; margin-bottom: 0; }
.ai-invitation .button { flex-shrink: 0; }
.sources-section { background: var(--surface); padding: 80px 0; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.source-card { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.source-id { font-size: 12px; color: var(--muted); min-width: 24px; }
.source-card small { color: var(--muted); font-size: 11px; }
.source-card h3 { font-size: 15px; font-weight: 400; letter-spacing: -.015em; line-height: 1.65; margin: 6px 0 10px; }
.source-card a { text-decoration: none; }
.source-card p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; }
.editorial { border-top: 1px solid var(--line); padding: 20px 0; }
.editorial summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.editorial p, .editorial li { font-size: 13px; color: var(--muted); line-height: 1.8; }
.editorial p { margin: 18px 0 0; }
.footer { display: flex; align-items: start; justify-content: space-between; gap: 32px; padding-block: 32px; }
.footer strong { font-size: 13px; font-weight: 600; }
.footer p, .footer a { font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.footer > a { white-space: nowrap; }
dialog { border: 1px solid var(--line); padding: 0; background: var(--canvas); color: var(--ink); }
dialog::backdrop { background: #00000040; }
#chat-dialog { position: fixed; inset: auto 24px 24px auto; margin: 0; width: 440px; height: min(720px, calc(100dvh - 48px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); border-radius: 18px; overflow: hidden; }
#chat-dialog[open] { display: flex; flex-direction: column; }
.chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; }
.chat-heading h2 { font-size: 18px; letter-spacing: -.03em; margin: 0; }
.chat-heading p { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.icon-button { display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--muted); width: 44px; height: 44px; font-size: 26px; line-height: 1; flex-shrink: 0; }
.chat-rule { padding: 12px 24px; background: var(--surface); font-size: 11px; color: var(--muted); }
#chat-messages { flex: 1; overflow-y: auto; padding: 28px 24px; overscroll-behavior: contain; min-height: 100px; }
.chat-welcome h3 { font-size: 26px; line-height: 1.3; margin: 8px 0 16px; }
.chat-welcome p { font-size: 13px; color: var(--muted); }
.suggestions { display: grid; gap: 8px; margin-top: 24px; }
.suggestion { display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: transparent; border-radius: 8px; padding: 13px; min-height: 44px; text-align: left; color: var(--blue); font-size: 12px; }
.chat-message { margin-bottom: 22px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.chat-message p { margin: 0 0 12px; }
.chat-message p:last-child { margin-bottom: 0; }
.chat-message.user { background: var(--surface); padding: 14px 18px; border-radius: 18px; margin-left: 24px; }
.chat-message.assistant { padding-block: 8px; }
.message-role { display: block; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.evidence-link { display: block; font-size: 11px; margin: 6px 0 16px; text-decoration: none; }
.evidence-details { font-size: 11px; margin-top: 16px; }
.evidence-details summary { cursor: pointer; color: var(--blue); }
.pending { font-size: 12px; color: var(--muted); }
#chat-form { border-top: 1px solid var(--line); padding: 16px 20px; }
#chat-form label { font-size: 11px; display: block; margin-bottom: 8px; }
.chat-input-row { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px; gap: 8px; }
#question { min-width: 0; width: 100%; resize: none; border: 0; background: transparent; font-size: 13px; line-height: 1.65; padding: 4px; }
#chat-send { flex-shrink: 0; width: 44px; height: 44px; border: 0; background: var(--blue); color: white; border-radius: 50%; font-size: 22px; }
.chat-fineprint { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.chat-fineprint a, .chat-fineprint button { padding-block: 12px; }
.chat-fineprint button { border: 0; background: none; color: var(--muted); font-size: 10px; }
.privacy-note { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 0; }
#photo-dialog { max-width: min(1000px, 94vw); max-height: 92dvh; border-radius: 8px; padding: 56px 24px 20px; }
#photo-dialog .icon-button { position: absolute; top: 8px; right: 8px; }
#photo-large { display: block; width: auto; max-width: 100%; max-height: 68dvh; margin: auto; object-fit: contain; }
#photo-caption { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; background: var(--ink); color: white; padding: 10px 18px; font-size: 14px; }
.skip-link:focus { top: 12px; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner, .top-nav { gap: 20px; }
  .chapter-layout { column-gap: 40px; }
  .contents { gap: 48px; }
  .artifact { padding: 32px; gap: 24px; }
  .timeline strong { font-size: 20px; }
}
@media (max-width: 700px) {
  :root { --header-height: 60px; }
  .wrap { width: calc(100% - 40px); }
  .brand { font-size: 15px; }
  .top-nav { display: none; }
  .header-chat { margin-left: auto; min-height: 44px; padding: 8px 16px; }
  .hero { padding: 48px 0 36px; }
  .hero .eyebrow { font-size: 12px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(32px, 8.5vw, 48px); line-height: 1.2; letter-spacing: -.055em; }
  .hero-description { font-size: 16px; line-height: 1.7; max-width: 360px; margin: 22px auto; }
  .hero-object { margin-top: 32px; }
  .hero-object figcaption { font-size: 10px; }
  .contents { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; }
  .contents h2 { font-size: 30px; }
  .contents nav a { min-height: 56px; font-size: 13px; }
  .contents p:last-child { max-width: none; }
  .chapter { padding: 56px 0; }
  .chapter-layout { display: block; }
  .chapter-heading { margin-bottom: 28px; }
  .chapter h2 { font-size: 32px; }
  .chapter-summary { font-size: 17px; }
  .story-photo { position: static; max-width: 480px; margin: 0 auto 28px; }
  .prose { font-size: 16px; line-height: 1.9; }
  .route { margin-top: 28px; }
  .artifact { margin-top: 36px; display: block; padding: 24px 20px; border-radius: 18px; }
  .artifact h3 { font-size: 24px; }
  .artifact-image { margin-block: 24px; }
  #artifact-detail { font-size: 14px; min-height: 0; }
  .source-label { display: block; margin-top: 20px; }
  .timeline-section { padding: 56px 0; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > p { margin-top: 20px; max-width: none; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 40px; }
  .timeline strong { font-size: 22px; }
  .timeline button { padding-right: 0; }
  .timeline-detail { font-size: 16px; margin-top: 24px; min-height: 190px; }
  .ai-invitation { display: block; padding-block: 56px; }
  .ai-invitation h2 { font-size: 30px; }
  .ai-invitation p:not(.eyebrow) { font-size: 16px; }
  .ai-invitation .button { margin-top: 24px; }
  .sources-section { padding: 56px 0; }
  .source-grid { grid-template-columns: 1fr; }
  .footer { display: block; }
  .footer > p { margin-block: 20px; }
  #chat-dialog { right: 8px; bottom: 8px; width: calc(100vw - 16px); max-width: none; height: min(720px, calc(100dvh - 16px)); max-height: calc(100dvh - 16px); }
  .chat-heading { padding: 18px; }
  #chat-messages { padding: 24px 18px; }
  .chat-rule { padding: 12px 18px; }
  #chat-form { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  button:active, .button:active { transform: none; }
}
@media print {
  .site-header, .contents, .ask, .ai-invitation, dialog, .zoom-label { display: none !important; }
  .wrap { width: 100%; }
  .hero, .chapter, .sources-section, .timeline-section { padding-block: 24px; }
  .hero h1 { font-size: 36px; }
  .hero-object { width: 240px; }
  .hero .button { display: none; }
  .chapter-layout { display: block; }
  .story-photo { position: static; max-width: 300px; margin-bottom: 24px; }
  .timeline-section, .timeline button, .timeline-section .eyebrow, .timeline-section .section-heading > p { background: white; color: black; }
  .source-grid { display: block; }
  .source-card { break-inside: avoid; }
}
