.story-page {
  --ink: #292929;
  --muted: #696969;
  --line: #dfdfdf;
  --paper: #f5f2eb;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.6 Arial, sans-serif;
}
.story-page * { box-sizing: border-box; }
.story-page [hidden] { display: none !important; }
.story-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.story-page .site-header { border-bottom: 1px solid var(--line); }
.story-page nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 32px; padding: 14px 20px; font-size: 14px; color: #484848; }
.story-page nav > * { padding: 6px 0; }
.story-page nav [aria-current] { box-shadow: inset 0 -1px var(--ink); }
.story-page nav a { color: inherit; text-decoration: none; }
.story-page nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.story-page main { width: min(100%, 1008px); margin: auto; padding: 0 24px; }
.story-page .intro { text-align: center; padding: 38px 0 40px; }
.story-page .eyebrow { font-size: 10px; letter-spacing: 3px; color: var(--muted); margin: 0; }
.story-page h1 { font-size: clamp(36px, 4.5vw, 48px); font-weight: 400; line-height: 1.12; letter-spacing: -1.3px; margin: 18px 0; }
.story-page .intro > p:last-child { color: var(--muted); font-size: 16px; margin: 0; }
.story-page .story { padding-bottom: 46px; }
.story-page .story-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.story-page h2 { min-width: 0; font-size: clamp(23px, 2.8vw, 30px); font-weight: 400; line-height: 1.35; margin: 0; overflow-wrap: break-word; }
.story-page .story-number { flex-shrink: 0; color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.story-page button, .story-page summary { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
.story-page button { min-height: 44px; border: 0; background: transparent; }
.story-page button:disabled { opacity: .4; cursor: default; }
.story-page button img, .story-page summary img { display: block; pointer-events: none; }
.story-page .player { margin-top: 16px; }
.story-page .transport { display: grid; grid-template-columns: 56px minmax(80px, 1fr) auto auto 44px; align-items: center; column-gap: 18px; }
.story-page .play-button { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid #8b8b8b; border-radius: 50%; }
.story-page .play-button:hover:not(:disabled) { background: #f1f1ef; border-color: var(--ink); }
.story-page .timeline { display: flex; align-items: center; min-width: 0; }
.story-page input[type="range"] { width: 100%; min-width: 0; height: 44px; margin: 0; accent-color: #606d63; cursor: pointer; }
.story-page input[type="range"] { appearance: none; -webkit-appearance: none; background: transparent; }
.story-page input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: #dededc; border-radius: 2px; }
.story-page input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border: 0; border-radius: 50%; background: #606d63; }
.story-page input[type="range"]::-moz-range-track { height: 3px; background: #dededc; border: 0; border-radius: 2px; }
.story-page input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #606d63; }
.story-page input:disabled { cursor: default; }
.story-page .time { white-space: nowrap; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.story-page .view-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 6px 0 20px; border-left: 1px solid var(--line); white-space: nowrap; font-size: 14px; }
.story-page .view-toggle:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
.story-page .view-toggle[aria-pressed="true"] { color: #395640; }
.story-page .player-options { position: relative; z-index: 2; }
.story-page .player-options > summary { display: grid; place-items: center; list-style: none; width: 44px; height: 44px; border-radius: 50%; }
.story-page .player-options > summary::-webkit-details-marker { display: none; }
.story-page .player-options > summary:hover, .story-page .player-options[open] > summary { background: #f3f3f1; }
.story-page .options-panel { position: absolute; right: 0; top: 50px; width: 264px; max-width: calc(100vw - 32px); padding: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 24px #0000000d; font-size: 14px; }
.story-page .volume-label { display: flex; align-items: center; gap: 8px; }
.story-page .motion-label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.story-page input[type="checkbox"] { width: 18px; height: 18px; accent-color: #606d63; flex-shrink: 0; }
.story-page #motion-note { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.story-page #native-toggle { width: 100%; padding: 8px; border: 1px solid var(--line); font-size: 13px; }
.story-page audio { display: block; width: 100%; margin-top: 12px; }
.story-page .player-status { min-height: 19px; margin: 5px 0 8px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.story-page .artwork-stage { position: relative; width: 100%; aspect-ratio: var(--art-ratio, 1); background: var(--paper) url('./assets/paper.jpg') center / cover; }
.story-page .illustration { display: block; position: absolute; inset: 0; color: inherit; }
.story-page .illustration > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.story-page .expand-icon { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #ffffffed; }
.story-page .illustration:hover .expand-icon { background: #fff; outline: 1px solid #777; }
.story-page .wr-visual { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 100%; aspect-ratio: 1672 / 941; overflow: hidden; background: var(--paper); }
.story-page .wr-visual > .wr-paper, .story-page .wr-visual > .wr-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.story-page .caption { white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); font-size: 15px; max-width: 640px; margin: 20px 0 0; }
.story-page footer { text-align: center; border-top: 1px solid var(--line); padding: 26px 20px; color: var(--muted); font-size: 12px; }
.story-page :focus-visible { outline: 2px solid #526d58; outline-offset: 4px; }
.story-page .image-dialog { width: min(96vw, 1440px); max-width: none; max-height: 94vh; padding: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.story-page .image-dialog::backdrop { background: #161b18cc; }
.story-page .dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.story-page .dialog-header p { margin: 0; font-size: 14px; }
.story-page .dialog-header button { display: grid; place-items: center; width: 44px; flex-shrink: 0; }
.story-page .image-scroll { overflow: auto; max-height: calc(94vh - 150px); text-align: center; background: var(--paper); }
.story-page .image-scroll > img { display: block; max-width: 100%; max-height: calc(94vh - 150px); width: auto; height: auto; margin: auto; }
.story-page #original-image { display: inline-block; padding: 10px 0 0; color: #455f4b; font-size: 13px; }
.story-page:has(.image-dialog[open]) { overflow: hidden; }
@media (max-width: 600px) {
  .story-page nav { font-size: 12px; gap: 6px 16px; padding: 10px 16px; }
  .story-page main { padding: 0 18px; }
  .story-page .intro { padding: 28px 0 32px; }
  .story-page .eyebrow { font-size: 9px; letter-spacing: 2.2px; }
  .story-page h1 { font-size: 36px; margin: 16px 0; }
  .story-page .intro > p:last-child { font-size: 14px; }
  .story-page .story-heading { gap: 12px; }
  .story-page h2 { font-size: 23px; }
  .story-page .player { margin-top: 14px; }
  .story-page .transport { grid-template-columns: 48px minmax(0, 1fr) auto 44px; column-gap: 10px; row-gap: 0; }
  .story-page .play-button { grid-column: 1; grid-row: 1; width: 48px; height: 48px; }
  .story-page .timeline { grid-column: 2 / -1; grid-row: 1; }
  .story-page .time { grid-column: 1 / 3; grid-row: 2; font-size: 12px; }
  .story-page .view-toggle { grid-column: 3; grid-row: 2; padding: 0; border: 0; font-size: 13px; gap: 6px; }
  .story-page .player-options { grid-column: 4; grid-row: 2; }
  .story-page .player-status { margin-top: 0; margin-bottom: 8px; }
  .story-page .caption { font-size: 14px; margin-top: 16px; }
  .story-page .expand-icon { right: 8px; bottom: 8px; }
  .story-page .story { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-page *, .story-page *::before, .story-page *::after { scroll-behavior: auto !important; }
}
