/* site.css — Part 1: components taken from cairns-journal/css/journal-diary.css on 2026-11-19 (only the blocks listed in the plan). Part 2 (end of file): the new Yakusou components. */
/* --------------------------------------------------------------------------
   1. Tokens for this layer (extend tokens.css without editing it)
   -------------------------------------------------------------------------- */
:root {
  --diary-paper:#fff8e6;          /* sticky-note yellow */
  --diary-paper-ink:#4a3b12;
  --diary-pink:#ffd9e6;
  --diary-mint:#dff6ee;
  --ease-pop:cubic-bezier(.34,1.56,.64,1);
  --shadow-note:0 10px 26px rgba(11,17,17,.18);
}
/* --------------------------------------------------------------------------
   2. Diary voice: dated entries and handwritten margin notes
   -------------------------------------------------------------------------- */
.diary-note { display:inline-block; max-width:24rem; padding:1rem 1.25rem 1.2rem; background:var(--diary-paper); color:var(--diary-paper-ink); font-family:var(--font-script); font-size:1.45rem; line-height:1.25; box-shadow:var(--shadow-note); transform:rotate(-2deg); position:relative; }
.diary-note:before { content:''; position:absolute; top:-.55rem; left:50%; width:3.4rem; height:1.1rem; margin-left:-1.7rem; background:rgba(255,255,255,.55); border:1px solid rgba(0,0,0,.06); transform:rotate(2deg); }
.diary-note.pink { background:var(--diary-pink); }
.diary-note.mint { background:var(--diary-mint); }
.diary-note.tilt-right { transform:rotate(2.5deg); }
.diary-note small { display:block; margin-top:.5rem; font-family:var(--font-sans); font-size:.65rem; letter-spacing:.14em; text-transform:uppercase; opacity:.75; }
/* --------------------------------------------------------------------------
   3. Pop-ups: “Look, a bird!” spots and “Did you know?” fun facts
   Both are data-reveal wrappers with .fx-pop (see effects.css) and data-sfx.
   -------------------------------------------------------------------------- */
.bird-spot,
.fun-fact { position:relative; display:grid; gap:1.25rem; padding:1.5rem; background:var(--color-white); color:var(--color-ink); border-radius:var(--radius-card); box-shadow:var(--shadow-note); max-width:34rem; }
.bird-spot { grid-template-columns:150px 1fr; align-items:center; }
.bird-spot .photo { width:150px; aspect-ratio:1; border-radius:50%; }
.bird-spot .annotation { font-size:1.9rem; margin:0 0 .35rem; color:var(--color-accent-ink); transform:rotate(-3deg); display:inline-block; }
.bird-spot h3,
.fun-fact h3 { font-size:1.05rem; letter-spacing:-.02em; line-height:1.3; }
.bird-spot p,
.fun-fact p { font-size:.85rem; line-height:1.7; color:var(--color-muted); margin-top:.4rem; }
.bird-spot .meta,
.fun-fact .meta { font-size:.6rem; color:var(--color-accent-ink); margin-top:.6rem; display:block; }
.bird-spot .bird-tag { position:absolute; top:-.9rem; right:1.25rem; font-family:var(--font-script); font-size:1.15rem; background:var(--diary-paper); color:var(--diary-paper-ink); padding:.15rem .7rem; transform:rotate(4deg); box-shadow:0 3px 8px rgba(0,0,0,.12); }
.fun-fact { grid-template-columns:auto 1fr; align-items:start; background:var(--diary-mint); }
.fun-fact.warm { background:var(--diary-paper); }
.fun-fact.night { background:#13262b; color:var(--color-paper); --color-muted:#b6c1be; }
.fun-fact.night .meta { color:var(--color-accent); }
.fun-fact .fact-photo { grid-column:1/-1; aspect-ratio:4/3; border-radius:calc(var(--radius-card) - .4rem); }
.fun-fact.with-photo { grid-template-columns:auto 1fr; }
.fun-fact.with-photo .fact-photo { grid-column:1/-1; }
.dark .bird-spot { background:#132022; color:var(--color-paper); }
.dark .bird-spot .annotation { color:var(--color-accent); }
.dark .bird-spot .meta { color:var(--color-accent); }
.pop-row { display:flex; gap:2rem; flex-wrap:wrap; align-items:flex-start; margin-block:3rem; }
.pop-row>* { flex:1 1 320px; }
.pop-row.centered { justify-content:center; }
/* --------------------------------------------------------------------------
   4. Scroll scenes: two photographs cross-fade while the frame stays pinned
   <section class="scene-fade" data-scene-fade> <div class="scene-frame">…</div> </section>
   JS (diary.js) writes --fade 0→1 from scroll position.
   -------------------------------------------------------------------------- */
.scene-fade { position:relative; height:var(--scene-length,calc(var(--journal-svh, 1svh) * 220)); --fade:0; }
.scene-frame { position:sticky; top:0; height:calc(var(--journal-svh, 1svh) * 100); min-height:520px; overflow:hidden; background:var(--color-ink); isolation:isolate; }
.scene-frame>.scene-layer { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:var(--photo-position,center); }
.scene-frame>.scene-layer.scene-to { opacity:var(--fade); }
.scene-frame>.scene-layer.scene-from { transform:scale(calc(1 + var(--fade) * .06)); }
.scene-frame:after { content:''; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,rgba(0,0,0,.25),transparent 35%,transparent 60%,rgba(0,0,0,.6)); pointer-events:none; }
.scene-caption { position:absolute; z-index:2; left:var(--gutter); right:var(--gutter); bottom:3rem; color:white; display:flex; justify-content:space-between; align-items:end; gap:2rem; }
.scene-caption .title-film { font-size:clamp(2.4rem,5.5vw,5.5rem); }
.scene-caption .scene-labels { position:relative; min-width:12rem; text-align:right; }
.scene-caption .scene-labels>span { display:block; transition:opacity 300ms; }
.scene-caption [data-from] { opacity:calc(1 - var(--fade)); }
.scene-caption [data-to] { position:absolute; right:0; bottom:0; opacity:var(--fade); }
.scene-meter { position:absolute; z-index:2; top:6rem; right:var(--gutter); width:1px; height:9rem; background:rgba(255,255,255,.3); }
.scene-meter:after { content:''; position:absolute; top:0; left:-2px; width:5px; height:100%; background:var(--color-accent); transform-origin:top; transform:scaleY(var(--fade)); }
.scene-hint { position:absolute; z-index:2; top:6rem; left:var(--gutter); color:white; font-family:var(--font-script); font-size:1.5rem; opacity:calc(1 - var(--fade) * 2); }
.scene-frame .diary-note { position:absolute; z-index:2; top:5.5rem; left:var(--gutter); max-width:19rem; opacity:calc(1 - var(--fade) * 1.6); }
/* Reduced motion: the pinned cross-fade becomes an editorial diptych. Both
   photographs are shown side by side on the same ink ground, and the film
   title and the from/to labels keep their place, so the scene still reads as
   one composed frame rather than two loose images. */
html.motion-off .scene-fade,
html:not(.motion-ready) .scene-fade { height:auto; }
html.motion-off .scene-frame,
html:not(.motion-ready) .scene-frame {
  position:relative; height:auto; min-height:0;
  display:grid; grid-template-columns:1fr 1fr; gap:4px;
  padding-bottom:clamp(7rem,14vw,11rem);
}
html.motion-off .scene-frame>.scene-layer,
html:not(.motion-ready) .scene-frame>.scene-layer {
  position:relative; inset:auto; opacity:1!important; transform:none!important;
  aspect-ratio:4/5; height:auto; width:100%;
}
/* The scroll affordances have no job once nothing scrolls. */
html.motion-off .scene-frame .diary-note,
html:not(.motion-ready) .scene-frame .diary-note,
html.motion-off .scene-meter,
html:not(.motion-ready) .scene-meter { display:none; }
/* The gradient existed to lift text off the photo; the caption now sits below. */
html.motion-off .scene-frame:after,
html:not(.motion-ready) .scene-frame:after { display:none; }
html.motion-off .scene-caption,
html:not(.motion-ready) .scene-caption {
  position:absolute; top:auto; bottom:clamp(2rem,4vw,3.5rem);
  align-items:end;
}
html.motion-off .scene-caption [data-from],
html:not(.motion-ready) .scene-caption [data-from] { opacity:1; }
html.motion-off .scene-caption [data-to],
html:not(.motion-ready) .scene-caption [data-to] { position:static; opacity:1; }
html.motion-off .scene-caption .scene-labels,
html:not(.motion-ready) .scene-caption .scene-labels { min-width:0; }
html.motion-off .scene-caption .scene-labels>span,
html:not(.motion-ready) .scene-caption .scene-labels>span { display:block; }
/* from → to, read as a pair. */
html.motion-off .scene-caption [data-from]:after,
html:not(.motion-ready) .scene-caption [data-from]:after {
  content:' \2192'; color:var(--color-accent);
}
@media(max-width:760px) {
  html.motion-off .scene-frame,
html:not(.motion-ready) .scene-frame { grid-template-columns:1fr; }
  html.motion-off .scene-frame>.scene-layer,
html:not(.motion-ready) .scene-frame>.scene-layer { aspect-ratio:4/3; }
}
/* --------------------------------------------------------------------------
   5. Living photographs: a still that becomes its own short video clip
   <figure class="photo living-photo" data-living><img …><video data-src …></video></figure>
   -------------------------------------------------------------------------- */
.living-photo video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity 1200ms var(--ease-soft); z-index:1; pointer-events:none; }
.living-photo.is-live video { opacity:1; }
.living-photo .live-badge { position:absolute; z-index:3; top:1rem; left:1rem; display:inline-flex; align-items:center; gap:.4rem; font-size:.6rem; letter-spacing:.16em; text-transform:uppercase; color:white; background:rgba(0,0,0,.45); padding:.35rem .6rem; border-radius:2rem; opacity:0; transition:opacity 500ms; }
.living-photo .live-badge:before { content:''; width:6px; height:6px; border-radius:50%; background:#ff5c5c; }
.living-photo.is-live .live-badge { opacity:1; }
.living-photo.is-live .live-badge:before { animation:live-blink 1.6s infinite; }
@keyframes live-blink { 50% { opacity:.25; } }
/* Motion down: the clip waits behind its still photograph, but it can still
   be played by hand, and it becomes visible once it is running. */
.motion-off .living-photo:not(.is-live) video,
.motion-off .living-photo:not(.is-live) .live-badge { display:none; }
.motion-off .living-photo.is-live video { display:block; opacity:1; }
/* --------------------------------------------------------------------------
   9. Sticky lo-fi player and audio settings (site-wide, stored in localStorage)
   -------------------------------------------------------------------------- */
.site-header .music-toggle { background:none; border:0; color:white; padding:10px; min-width:44px; min-height:44px; display:grid; place-items:center; cursor:pointer; margin-inline-start:1rem; flex-shrink:0; }
.music-toggle svg { width:23px; height:23px; }
.music-toggle [hidden] { display:none; }
.music-toggle:hover { opacity:.75; }
.site-header .site-nav { margin-inline-start:auto; }
@media(max-width:760px) {
  .site-header .music-toggle { margin-inline-start:auto; margin-inline-end:.5rem; }
}
/* Motion switch: same quiet treatment as the sound switch. */
.site-header .motion-toggle { background:none; border:0; color:white; padding:10px; min-width:44px; min-height:44px; display:grid; place-items:center; cursor:pointer; margin-inline-start:.25rem; flex-shrink:0; }
.motion-toggle svg { width:23px; height:23px; }
.motion-toggle [hidden] { display:none; }
.motion-toggle:hover { opacity:.75; }
.motion-toggle:focus-visible { outline:3px solid var(--color-accent); outline-offset:2px; }
@media(max-width:760px) {
  .site-header .motion-toggle { margin-inline-start:auto; margin-inline-end:0; }
  .site-header .sound-control { margin-inline-start:.25rem; }
}
/* Volume, on the pointer devices that can hover. The slider shares the
   button's hit area so it opens on hover and stays open while it has focus. */
.sound-control { position:relative; display:flex; align-items:center; margin-inline-start:1rem; flex-shrink:0; }
.sound-control .music-toggle { margin-inline-start:0; }
.volume-popover {
  position:absolute; top:100%; right:0; z-index:60;
  padding:.85rem .9rem; border-radius:1rem;
  background:rgba(11,17,17,.92); border:1px solid #ffffff2b;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  opacity:0; visibility:hidden; transform:translateY(-4px);
  transition:opacity 160ms var(--ease-soft), transform 160ms var(--ease-soft), visibility 160ms;
}
.sound-control:hover .volume-popover,
.sound-control:focus-within .volume-popover { opacity:1; visibility:visible; transform:translateY(0); }
.volume-slider { -webkit-appearance:none; appearance:none; width:110px; height:4px; border-radius:2px; background:#ffffff3d; outline:none; display:block; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:16px; height:16px; border-radius:50%; background:var(--color-accent); border:0; cursor:pointer; }
.volume-slider::-moz-range-thumb { width:16px; height:16px; border-radius:50%; background:var(--color-accent); border:0; cursor:pointer; }
.volume-slider:focus-visible { outline:3px solid var(--color-accent); outline-offset:6px; }
/* No hover, no popover: touch screens keep the plain sound switch. */
@media(hover:none),(pointer:coarse) {
  .volume-popover { display:none; }
}
/* --------------------------------------------------------------------------
   11. Small extras: moon note, food link, footer copyright
   -------------------------------------------------------------------------- */
.moon-note { display:grid; grid-template-columns:200px 1fr; gap:2rem; align-items:center; max-width:40rem; margin-top:3rem; }
.moon-note .photo { aspect-ratio:3/4; border-radius:var(--radius-card); }
.moon-note p { font-size:.9rem; color:var(--color-muted); line-height:1.75; }
.moon-note .annotation { font-size:1.8rem; margin-bottom:.75rem; }
.site-footer-copy { display:block; font-size:.7rem; color:var(--color-muted); line-height:1.8; margin-top:.5rem; }
footer .footer-copy-block { display:flex; flex-direction:column; gap:.2rem; }
.chapter-copy .text-link { margin-top:1.5rem; }
/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media(max-width:760px) {
  .bird-spot { grid-template-columns:110px 1fr; padding:1.1rem; gap:1rem; }
  .bird-spot .photo { width:110px; }
  .bird-spot .annotation { font-size:1.5rem; }
  .fun-fact { padding:1.1rem; }
  .scene-frame { min-height:0; height:calc(var(--journal-svh, 1svh) * 88); }
  .scene-caption { bottom:2rem; flex-direction:column; align-items:start; gap:1rem; }
  .scene-caption .scene-labels { text-align:left; min-width:0; }
  .scene-caption [data-to] { right:auto; left:0; }
  .scene-meter { top:5rem; height:6rem; }
  .scene-frame .diary-note { top:5rem; max-width:15rem; font-size:1.2rem; }
  .moon-note { grid-template-columns:130px 1fr; gap:1.2rem; }
}
/* Hero adjustments for the diary layer */
.scroll-cue .cue-text { border:0; width:auto; height:auto; display:inline; border-radius:0; }
.journal .hero-index { display:none; }
.scene-caption { bottom:5.5rem; }
@media(max-width:760px) {
  .scene-caption { bottom:5.5rem; }
}
/* Keep the birds, rather than the background, at the centre of each crop. */
.bird-spot { grid-template-columns:190px minmax(0,1fr); max-width:40rem; }
.bird-spot .photo { width:190px; height:190px; overflow:hidden; }
.bird-spot .photo img { transform:scale(var(--bird-zoom,1.5)); transform-origin:var(--bird-focus,50% 50%); }
@media(max-width:600px) {
  .bird-spot { grid-template-columns:minmax(0,1fr); max-width:100%; }
  .bird-spot .photo { width:min(240px,100%); height:auto; aspect-ratio:1; }
}
/* Sound credits and per-picture sound buttons. */
.audio-credits { display:block; margin-top:1.25rem; font-size:.8rem; line-height:1.8; color:var(--color-muted); }
.audio-credits a { text-decoration:underline; text-underline-offset:.2em; }
[data-bird-sound] { cursor:pointer; }
.bird-sound-button {
  position:absolute; top:.5rem; right:.5rem; z-index:5;
  display:grid; place-items:center; width:44px; height:44px;
  padding:0; border:0; border-radius:50%; cursor:pointer;
  color:var(--color-white); background:var(--color-ink); opacity:.82;
}
.bird-spot .bird-sound-button { top:13%; right:13%; }
.bird-sound-button:hover,
.bird-sound-button:focus-visible { opacity:1; }
.bird-sound-button:focus-visible { outline:3px solid var(--color-white); outline-offset:2px; }
.bird-sound-stop,
[data-bird-state="playing"] .bird-sound-waves { display:none; }
[data-bird-state="playing"] .bird-sound-stop { display:block; }
[data-bird-state="loading"] .bird-sound-button { opacity:.55; }
/* Consistent editorial spacing and quiet, contextual illustrations. */
:root { --journal-icon-filter:grayscale(1) brightness(.48) sepia(.65); --journal-icon-filter-dark:grayscale(1) brightness(1.35) sepia(.4); }
.journal-video { display:block; width:100%; height:100%; object-fit:cover; background:var(--color-ink); }
.slide-photo>.journal-video { position:absolute; inset:0; object-fit:contain; }
.memory-slide .slide-photo { background:var(--color-ink); }
.memory-slideshow .slideshow-controls { padding-top:1rem; flex-wrap:wrap; }
.memory-slideshow .slide-arrows { flex-wrap:wrap; gap:.5rem; }
.memory-slideshow .slide-dots button { min-width:44px; width:44px; }
.kuranda-grid>.photo>.journal-video { position:absolute; inset:0; }
.scroll-album { height:calc(var(--journal-svh, 1svh) * 250); }
.scroll-album-frame { position:sticky; top:0; height:calc(var(--journal-svh, 1svh) * 100); overflow:hidden; background:var(--color-ink); }
.scroll-album-frame>img,
.scroll-album-frame>video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.scroll-album-frame>img:not(:first-child),
.scroll-album-frame>video { opacity:0; }
.scroll-album-frame .scene-title { pointer-events:none; bottom:5rem; }
.scroll-album-count { position:absolute; z-index:3; top:6rem; right:var(--gutter); color:white; }
.hero-media { position:absolute; inset:0; }
.hero-media>img,
.hero-media>video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity 800ms ease; }
.hero-media>:first-child,
.hero-media>.is-current { opacity:1; }
.hero-media:has(.is-current)>:not(.is-current) { opacity:0; }
.hero-media-toggle { position:absolute; z-index:4; top:6rem; right:var(--gutter); min-height:44px; padding:.5rem 1rem; color:white; background:var(--color-ink); border:1px solid currentColor; border-radius:3px; }
@media(max-width:760px) {
  .scroll-album { height:calc(var(--journal-svh, 1svh) * 220); }
  .hero-media-toggle { top:5rem; font-size:.75rem; }
  .memory-slideshow .slide-dots { flex-wrap:wrap; }
  .memory-slideshow .slide-arrows { width:100%; }
  .memory-slideshow .slide-dots { order:2; width:100%; justify-content:center; }
}
/* Reduced motion (and before the scripts run): the album stops being a stack
   of full-height frames. The lead photograph keeps the scene title over it,
   exactly where the animation leaves it, and the others sit underneath as a
   strip, so the spread still reads as one album. */
.motion-off .scroll-album,
html:not(.motion-ready) .scroll-album { height:auto; }
.motion-off .scroll-album-frame,
html:not(.motion-ready) .scroll-album-frame {
  position:relative; height:auto; overflow:hidden;
  display:grid; grid-template-columns:repeat(2,1fr); gap:4px;
}
.motion-off .scroll-album-frame>img,
.motion-off .scroll-album-frame>video,
html:not(.motion-ready) .scroll-album-frame>img,
html:not(.motion-ready) .scroll-album-frame>video {
  position:relative; inset:auto; opacity:1; width:100%; height:auto;
  aspect-ratio:4/3; object-fit:cover;
}
.motion-off .scroll-album-frame>img:first-of-type,
html:not(.motion-ready) .scroll-album-frame>img:first-of-type {
  grid-area:1/1/2/-1; aspect-ratio:16/9;
}
/* Same grid cell as the lead photograph, so the title sits on it rather than
   wherever the static position happens to fall. */
.motion-off .scroll-album-frame .scene-title,
html:not(.motion-ready) .scroll-album-frame .scene-title {
  position:relative; inset:auto; grid-area:1/1/2/-1;
  align-self:end; z-index:2; height:auto;
  padding:5rem var(--gutter) 2.5rem;
  background:linear-gradient(transparent,rgba(0,0,0,.62));
}
/* The frame-wide shade would darken the whole strip; the title carries it. */
.motion-off .scroll-album-frame.photo-shade:after,
html:not(.motion-ready) .scroll-album-frame.photo-shade:after { display:none; }
.motion-off .scroll-album-frame .info-locator,
html:not(.motion-ready) .scroll-album-frame .info-locator {
  top:var(--gutter); left:var(--gutter); right:auto; bottom:auto; z-index:3;
}
.motion-off .scroll-album-count,
html:not(.motion-ready) .scroll-album-count { display:none; }
@media(max-width:600px) {
  .motion-off .scroll-album-frame,
html:not(.motion-ready) .scroll-album-frame { grid-template-columns:1fr; }
  /* A portrait lead on phones: the title and the weather panel need the room. */
  .motion-off .scroll-album-frame>img:first-of-type,
html:not(.motion-ready) .scroll-album-frame>img:first-of-type { aspect-ratio:3/4; }
  .motion-off .scroll-album-frame .scene-title,
html:not(.motion-ready) .scroll-album-frame .scene-title {
    padding:4rem var(--gutter) 1.5rem;
    flex-wrap:wrap; gap:.75rem 1rem;
  }
}
.motion-off .hero-media>* { transition:none; }
/* Keep motion focused on the photographs rather than their decorative frames. */
.journal .tilt-right,
.journal .tilt-left { rotate:0deg; }
.journal .bird-spot,
.journal .fun-fact { box-shadow:none; }
.journal .fun-fact:not(.night):not(.warm) { background:var(--color-surface,var(--diary-mint)); }
/* Tablet cards need enough text width beside their photographs. */
.bird-spot figcaption,
.moon-note figcaption { min-width:0; }
.bird-spot :is(p,h3,.meta),
.moon-note p { overflow-wrap:anywhere; }
@media(min-width:761px) and (max-width:1100px) {
  .pop-row { flex-direction:column; }
  .pop-row>* { flex:none; width:100%; max-width:none; }
}
/* Let the photographs lead; keep playback controls at the edge of the story. */
.hero-media-toggle { top:auto; bottom:2rem; padding:.65rem; width:44px; height:44px; display:grid; place-items:center; border:0; border-radius:50%; }
.slideshow-controls [data-slide-play] { display:grid; place-items:center; min-width:44px; min-height:44px; padding:.5rem; }
.fade-slideshow .slides-viewport { height:calc(var(--journal-svh, 1svh) * 100); }
.fade-slideshow .memory-slide { position:relative; height:100%; }
.journal .fade-slideshow .slide-photo { height:100%; aspect-ratio:auto; border-radius:0; }
.fade-slideshow .memory-slide figcaption { position:absolute; inset:auto 0 0; padding:5rem var(--gutter) 5.5rem; color:var(--color-white); background:linear-gradient(transparent,rgba(0,0,0,.8)); pointer-events:none; }
.fade-slideshow .memory-slide figcaption p { max-width:48rem; color:inherit; }
.fade-slideshow .memory-slide .balloon-trip-notes { padding-top:8rem; }
.balloon-trip-notes .trip-quote { margin-block:1rem; }
.balloon-trip-notes .prose { max-width:48rem; }
.fade-slideshow .slideshow-controls { position:absolute; bottom:.5rem; inset-inline:var(--gutter); color:var(--color-white); z-index:3; }
.fade-slideshow .slideshow-controls button { color:inherit; }
@media(max-width:760px) {
  .fade-slideshow .memory-slide figcaption { padding-bottom:8rem; }
  .balloon-trip-notes .annotation { font-size:1.6rem; }
  .balloon-trip-notes .trip-quote p { font-size:1.2rem; }
  .balloon-trip-notes .prose p { font-size:.95rem; line-height:1.65; }
}
.motion-ready .fade-slideshow .slides-viewport { display:block; position:relative; overflow:hidden; }
.motion-ready .fade-slideshow .memory-slide { position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity 850ms ease,visibility 850ms; }
.motion-ready .fade-slideshow .memory-slide.is-current { opacity:1; visibility:visible; }
.fade-slideshow .slideshow-controls { border:0; margin-inline:0; }
.fade-slideshow .memory-slide .balloon-trip-notes p { text-shadow:0 1px 3px #000; }
.journal .balloon-trip-notes .annotation { transform:none; line-height:1.35; margin-bottom:.75rem; }
.journal .balloon-trip-notes .trip-quote { margin:.75rem 0 1.1rem; }
.journal .balloon-trip-notes .trip-quote cite { color:inherit; opacity:.85; }
@media(max-width:760px) {
  .fade-slideshow .slideshow-controls { flex-wrap:nowrap; align-items:flex-start; }
  .fade-slideshow .slide-arrows { width:auto; flex:1; min-width:0; }
  .fade-slideshow .slide-dots { gap:0; }
  .fade-slideshow .slide-dots button { min-width:44px; width:44px; }
}
@media(max-width:760px) {
  .fade-slideshow .slideshow-controls { display:grid; grid-template-columns:1fr 44px; gap:.25rem; }
  .fade-slideshow .slide-arrows { display:contents; }
  .fade-slideshow [data-slide-prev] { grid-area:1 / 1; justify-self:start; }
  .fade-slideshow [data-slide-next] { grid-area:1 / 1; justify-self:start; margin-inline-start:48px; }
  .fade-slideshow [data-slide-play] { grid-area:1 / 2; }
  .fade-slideshow .slide-dots { grid-area:2 / 1 / 3 / 3; width:100%; }
}
/* Readable captions and a shared row for the landing photograph and notes. */
.journal .memory-slide figcaption>p,
.journal .memory-slide figcaption>.meta { font-size:clamp(1rem,1.2vw,1.2rem); line-height:1.65; }
.journal .balloon-trip-notes .trip-quote p { font-size:clamp(1.15rem,1.6vw,1.5rem); }
.journal .balloon-trip-notes .trip-quote cite { font-size:1rem; }
.journal .balloon-trip-notes .prose p { font-size:clamp(1.0625rem,1.3vw,1.2rem); line-height:1.65; }
.journal .fade-slideshow figcaption>.annotation { font-size:clamp(1.8rem,3vw,2.6rem); }
@media(max-width:760px) {
  .journal .balloon-trip-notes .trip-quote p { font-size:1.15rem; }
  .journal .balloon-trip-notes .prose p { font-size:1.0625rem; }
}
@media(max-width:760px) {
  .fade-slideshow .slides-viewport { min-height:44rem; }
}
/* --------------------------------------------------------------------------
   Manual play fallback
   Shown by js/media.js only when a clip refuses to start on its own, or when
   reduced motion holds autoplay back. The poster stays visible behind it.
   -------------------------------------------------------------------------- */
.video-fallback-anchor { position:relative; }
.video-fallback {
  position:absolute; z-index:4; left:50%; top:50%; transform:translate(-50%,-50%);
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  min-height:44px; min-width:44px; padding:.6rem 1.1rem;
  font-family:var(--font-sans); font-size:.7rem; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--color-ink); background:var(--color-paper);
  border:0; border-radius:2rem; cursor:pointer;
  box-shadow:0 6px 24px rgba(0,0,0,.35);
  transition:background 180ms var(--ease-soft), color 180ms var(--ease-soft), transform 180ms var(--ease-soft);
}
.video-fallback:hover { background:var(--color-accent); }
.video-fallback:focus-visible { outline:3px solid var(--color-accent); outline-offset:3px; }
.video-fallback svg { flex-shrink:0; }
@media(max-width:480px) {
  .video-fallback { font-size:.62rem; padding:.55rem .9rem; letter-spacing:.1em; }
}
html.motion-off .video-fallback { transition:none; }
/* Composed frames put a title in the middle, so the play button steps aside
   instead of landing on the type. */
.scene-frame .video-fallback,
.scroll-album-frame .video-fallback {
  left:auto; top:auto;
  right:var(--gutter); bottom:var(--gutter);
  transform:none;
}
@media(max-width:760px) {
  .scene-frame .video-fallback,
.scroll-album-frame .video-fallback { right:1rem; bottom:1rem; }
}
/* --------------------------------------------------------------------------
   Readability floor
   Small editorial labels are part of the look, but several fell to 7-10px on
   narrow screens. Latin small-caps reads at 10px; Japanese does not, so it
   gets its own floor. Scoped through .journal so these outrank the
   component rules they are correcting.
   -------------------------------------------------------------------------- */
html .journal .memory-slide figcaption>.meta { font-size:.68rem; }
html .journal .living-photo .live-badge { font-size:.64rem; }
/* Four icon controls plus the brand and the menu need a little help below
   400px, or the brand and the menu label wrap onto second lines. */
@media(max-width:400px) {
  .site-header { padding-inline:1rem; gap:0; }
  .site-header .brand { white-space:nowrap; font-size:.82rem; letter-spacing:-.02em; }
  .site-header .brand-mark { width:24px; height:24px; }
  .site-header .menu-toggle { white-space:nowrap; padding:.35rem .5rem; font-size:.7rem; }
  .site-header .motion-toggle,
.site-header .music-toggle { padding:6px; min-width:38px; }
  .site-header .motion-toggle svg,
.site-header .music-toggle svg { width:20px; height:20px; }
}

/* ==========================================================================
   Part 2: Yakusou Ressha — new components and site look (2026-11-19).
   Window seat, lunch box, ticket, ask / find / listen chips, line diagram.
   ========================================================================== */

/* Base look ------------------------------------------------------------------ */
body.yakusou { background:var(--color-paper); }
.yakusou .photo { background:var(--color-rail); }
.yakusou [lang=ja] { font-family:var(--font-ja); font-weight:500; letter-spacing:.02em; }
.yakusou .annotation [lang=ja], .yakusou .find-tag[lang=ja] { font-family:'Yomogi',var(--font-script); }
.yakusou .title-editorial em { color:var(--color-accent-ink); }
.yakusou .dark .title-editorial em, .yakusou .title-editorial.dark em { color:var(--color-accent); }
.yakusou .dark .title-editorial em { color:var(--color-accent); }
.yakusou .annotation { color:var(--color-lacquer); transform:rotate(-3deg); font-size:clamp(1.6rem,3vw,2.2rem); display:inline-block; }
.yakusou .dark .annotation { color:#f2b48f; }
.yakusou .box-lead { font-size:1.08rem; line-height:1.85; max-width:38rem; color:var(--color-muted); margin-top:1.25rem; }
.yakusou .dark .box-lead, .yakusou .dark .prose p { color:#c9d3d0; }
.yakusou .image-credit { font-size:.8rem; }
.yakusou .dark .image-credit { color:#b9c4c1; }
.sr-status { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline:2px solid var(--color-accent-ink); outline-offset:3px; box-shadow:0 0 0 5px rgba(255,255,255,.85); }
.dark a:focus-visible, .dark button:focus-visible, .dark summary:focus-visible, .site-header :focus-visible, .hero :focus-visible, .scene-frame :focus-visible { outline-color:var(--color-accent); box-shadow:0 0 0 5px rgba(22,33,31,.85); }
.site-header .brand { min-height:44px; }
.site-nav a { min-height:44px; display:inline-flex; align-items:center; }
.menu-toggle { min-height:44px; min-width:44px; color:white; border-radius:2rem; }
.music-check { display:flex; gap:.5rem; align-items:center; margin-top:.8rem; font-size:.78rem; color:white; min-height:32px; cursor:pointer; }
.music-check input { width:18px; height:18px; accent-color:var(--color-accent); }

/* Hero ----------------------------------------------------------------------- */
.yakusou .hero:before { background:linear-gradient(180deg,rgba(10,18,18,.55),rgba(10,18,18,.18) 38%,rgba(10,18,18,.25) 60%,rgba(10,18,18,.78)); }
.yakusou .hero .hero-title { align-self:center; margin-top:0; max-width:min(92vw,62rem); padding-inline:var(--gutter); }
.hero-headline { font-family:var(--font-destination); font-weight:700; font-size:clamp(2.6rem,7.4vw,6.8rem); line-height:1.04; letter-spacing:-.02em; transform:none; text-wrap:balance; text-shadow:0 2px 24px rgba(0,0,0,.45); }
.yakusou .hero-title>.meta { letter-spacing:.3em; font-size:.75rem; text-shadow:0 1px 8px rgba(0,0,0,.6); }
.yakusou .hero-subtitle { font-size:clamp(1rem,1.6vw,1.25rem); letter-spacing:.01em; margin-top:1.25rem; text-shadow:0 1px 10px rgba(0,0,0,.6); }
.hero-media>.hero-clip { opacity:0; transition:opacity 900ms ease; }
.hero-media.is-playing>.hero-clip { opacity:1; }
.hero-media>.hero-poster { opacity:1; }
.yakusou .hero-side { text-shadow:0 1px 6px rgba(0,0,0,.6); }
.yakusou .hero-bottom .info-location strong { font-size:1rem; letter-spacing:.1em; }
.yakusou .scroll-cue { min-height:44px; }

/* Intro ---------------------------------------------------------------------- */
.platform-sign { margin-top:2.5rem; }
.yakusou .intro-copy { max-width:32rem; }
.yakusou .intro-copy .annotation { margin-block:1.5rem 1rem; font-size:1.7rem; }

/* Ask chip ------------------------------------------------------------------- */
details.ask { margin-top:1rem; max-width:38rem; border-top:1px solid var(--color-line); }
details.ask>summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:.75rem; min-height:48px; padding:.6rem 0; font-weight:600; font-size:.98rem; }
details.ask>summary::-webkit-details-marker { display:none; }
details.ask>summary:before { content:'?'; flex:none; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; border:1.5px solid currentColor; font-weight:800; font-size:.85rem; color:var(--color-accent-ink); }
.dark details.ask>summary:before { color:var(--color-accent); }
details.ask[open]>summary:before { content:'–'; background:var(--color-accent-ink); color:white; border-color:var(--color-accent-ink); }
.dark details.ask[open]>summary:before { background:var(--color-accent); color:var(--color-ink); border-color:var(--color-accent); }
details.ask>p { color:var(--color-muted); font-size:.95rem; line-height:1.8; padding:0 0 .9rem 2.6rem; }
.dark details.ask>p { color:#c9d3d0; }
details.ask>p.meta { font-size:.68rem; letter-spacing:.12em; }
details.ask a { text-decoration:underline; text-underline-offset:.2em; color:var(--color-accent-ink); }
.dark details.ask a { color:var(--color-accent); }
.source-list { padding:0 0 1rem 2.6rem; margin:0; font-size:.9rem; color:var(--color-muted); }
.source-list li { margin-bottom:.5rem; }


/* Find note (adapts .moon-note / .bird-spot) -------------------------------- */
.find { position:relative; display:grid; grid-template-columns:150px minmax(0,1fr); gap:1.25rem; align-items:center; max-width:30rem; margin-top:2.5rem; padding:1.1rem; background:var(--color-surface); color:var(--color-ink); border-radius:var(--radius-card); box-shadow:0 10px 26px rgba(22,33,31,.12); }
.find .photo { aspect-ratio:1; border-radius:calc(var(--radius-card) - .4rem); }
.find .annotation { font-size:1.55rem; color:var(--color-lacquer); }
.find .meta { display:block; margin-top:.5rem; font-size:.62rem; color:var(--color-muted); }
.find-tag { position:absolute; top:-.85rem; right:1.1rem; font-family:var(--font-script); font-size:1.1rem; background:#fff3c9; color:#4a3b12; padding:.1rem .7rem; transform:rotate(3deg); box-shadow:0 3px 8px rgba(0,0,0,.12); }
.dark .find { background:#22302d; color:var(--color-paper); }
.dark .find .meta { color:#b9c4c1; }
.find.wide-find { grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); max-width:56rem; }
.find.wide-find .photo { aspect-ratio:21/9; }

/* Window seat (adapts .scroll-album) ----------------------------------------- */
.window-seat { position:relative; padding-block:var(--space-6) var(--space-5); }
.seat-layout { display:block; }
.seat-window { position:relative; z-index:3; padding:.5rem 0 1rem; }
.window-frame { position:relative; aspect-ratio:16/9; border-radius:28px; overflow:hidden; background:var(--color-rail); border:10px solid var(--color-rail); box-shadow:inset 0 2px 0 rgba(255,255,255,.18), 0 1px 0 rgba(255,255,255,.35), 0 18px 40px rgba(22,33,31,.22); isolation:isolate; }
.window-frame:before { content:''; position:absolute; inset:0; z-index:2; border-radius:18px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.22), inset 0 10px 18px rgba(0,0,0,.18); pointer-events:none; }
.window-frame>.seat-view { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:18px; opacity:0; transition:opacity var(--motion-medium) var(--ease-soft); }
.window-frame>.seat-view.is-active { opacity:1; z-index:1; }
.window-frame .video-fallback { left:auto; top:auto; right:.8rem; bottom:.8rem; transform:none; }
.window-label { margin-top:.8rem; color:var(--color-muted); min-height:1.6em; }
.dark .window-label { color:#b9c4c1; }
.window-note { font-size:.75rem; color:var(--color-muted); margin-top:.15rem; }
.dark .window-note { color:#b9c4c1; }
.seat-step { padding-block:2rem; border-top:1px solid var(--color-line); }
.seat-step:first-child { border-top:0; }
.seat-step .step-view { margin-bottom:1.25rem; }
.step-title { font-size:clamp(1.6rem,3vw,2.5rem); letter-spacing:-.035em; font-weight:600; }
.seat-step>p { margin-top:1rem; color:var(--color-muted); font-size:1.05rem; line-height:1.85; max-width:34rem; }
.dark .seat-step>p { color:#c9d3d0; }
.seat-step .title-film { font-size:clamp(2.2rem,4.5vw,4rem); }
.seat-step p.annotation { color:var(--color-lacquer); }
.dark .seat-step p.annotation { color:#f2b48f; }
.outside-head { margin-bottom:2rem; }
.look-switch { display:flex; align-items:center; gap:1rem; margin-top:.6rem; flex-wrap:wrap; }
.look-switch[hidden] { display:none; }
.look-button, .bento-button { min-height:44px; padding:.55rem 1.3rem; border-radius:2rem; border:0; background:var(--color-lacquer); color:white; font-weight:700; font-size:.9rem; letter-spacing:.01em; }
.look-button:hover, .bento-button:hover { background:#8a3a20; }
.bento-button.is-quiet { background:transparent; color:var(--color-ink); border:1.5px solid var(--color-ink); }
.bento-button:disabled { opacity:.55; }
/* Enhanced: the window sticks; each step keeps its picture for screen readers only. */
.window-seat.is-enhanced .step-view { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; margin:0; }
.window-seat.is-enhanced .seat-window { position:sticky; top:3.6rem; background:var(--color-paper); margin-inline:calc(var(--gutter) * -1); padding-inline:var(--gutter); }
.window-seat.is-enhanced.dark .seat-window { background:var(--color-ink); }
.window-seat.is-enhanced .window-frame { max-height:38svh; aspect-ratio:auto; height:min(38svh, calc((100vw - var(--gutter) * 2) * .5625)); }
.window-seat.is-enhanced .seat-step { min-height:62svh; display:flex; flex-direction:column; justify-content:center; }
.window-seat.is-front .window-frame { border-radius:14px; border-width:14px; border-color:#3d4d52; }
.window-seat.is-front .window-frame>.seat-view, .window-seat.is-front .window-frame:before { border-radius:4px; }
@media (min-width:900px) {
  .seat-layout { display:grid; grid-template-columns:min(52vw,760px) minmax(0,1fr); gap:clamp(2rem,4vw,4.5rem); align-items:start; }
  .window-seat.is-enhanced .seat-window { top:max(6rem, calc(50svh - 16rem)); margin:0; padding:0; background:none; }
  .window-seat.is-enhanced.dark .seat-window { background:none; }
  .window-seat.is-enhanced .window-frame { height:auto; max-height:none; aspect-ratio:16/9; }
  .window-seat.is-front.is-enhanced .window-frame { aspect-ratio:2/1; }
  .window-seat.is-enhanced .seat-step { min-height:82svh; }
  .seat-step { border-top:0; }
}
.blue-slideshow { margin-top:1.5rem; }
.blue-slideshow .slide-photo, .midori-slideshow .slide-photo { aspect-ratio:16/9; height:auto; min-height:0; border-radius:var(--radius-card); }
.blue-slideshow .memory-slide figcaption, .midori-slideshow .memory-slide figcaption { padding-inline:0; }
.walk-hint { margin-top:.5rem; color:var(--color-muted); }
html:not(.js) .walk-hint { display:none; }

/* Hotspots (shared by the table photograph and the box) --------------------- */
.hotspot, .card-zone { position:absolute; z-index:3; left:var(--x,50%); top:var(--y,50%); width:44px; height:44px; margin:-22px 0 0 -22px; padding:0; border-radius:50%; border:2px solid white; background:rgba(255,255,255,.22); box-shadow:0 0 0 2px var(--color-ink), 0 4px 14px rgba(0,0,0,.35); cursor:pointer; }
.hotspot:after { content:''; position:absolute; inset:-8px; border-radius:50%; border:2px solid rgba(255,255,255,.8); animation:hotspot-pulse 2.6s ease-out infinite; pointer-events:none; }
.hotspot:before { content:''; position:absolute; left:50%; top:50%; width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%; background:white; box-shadow:0 0 0 2px var(--color-ink); }
.hotspot[aria-expanded="true"], .hotspot.is-found { background:rgba(163,72,42,.75); }
@keyframes hotspot-pulse { 0% { transform:scale(.85); opacity:.9; } 70%,100% { transform:scale(1.45); opacity:0; } }
.motion-off .hotspot:after { animation:none; opacity:.6; transform:none; }
html:not(.js) .hotspot, html:not(.js) .card-zone { display:none; }

/* Table photograph ----------------------------------------------------------- */
.box-intro { display:grid; grid-template-columns:minmax(0,1fr); gap:2.5rem; align-items:center; }
.table-photo { aspect-ratio:4/3; border-radius:var(--radius-card); }
.table-spots figcaption { margin-top:1rem; }
.hotspot-hint { color:var(--color-muted); }
html:not(.js) .hotspot-hint, .table-spots:not(.is-enhanced) .hotspot-note { display:none; }
.hotspot-list { list-style:none; padding:0; margin:1rem 0 0; display:grid; gap:1rem; }
.hotspot-list li, .hotspot-note.is-open { background:var(--color-surface); border-radius:1rem; padding:1rem 1.2rem; }
.hotspot-list .annotation, .hotspot-note .annotation { display:block; font-size:1.45rem; margin-top:.3rem; transform:rotate(-1deg); }
.hotspot-list .meta, .hotspot-note .meta { display:block; margin-top:.4rem; font-size:.66rem; color:var(--color-muted); }
.hotspot-note { margin-top:.8rem; min-height:1px; }
@media (min-width:900px) { .box-intro { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:5rem; } }

/* Lunch box -------------------------------------------------------------------- */
.menu-intro { margin-top:var(--space-6); max-width:40rem; }
.menu-intro>.meta { color:var(--color-accent-ink); }
.menu-title { font-size:clamp(1.8rem,3.6vw,3rem); letter-spacing:-.04em; font-weight:600; margin:.6rem 0 1rem; }
.menu-intro>p:last-child { color:var(--color-muted); font-size:1.05rem; line-height:1.85; }
.lid-title { margin-top:var(--space-5); }
.bento { display:grid; grid-template-columns:minmax(0,1fr); gap:2rem; margin-top:2rem; }
.bento-stage { display:grid; gap:1rem; }
.bento-layer { position:relative; overflow:hidden; border-radius:var(--radius-card); aspect-ratio:16/10; background:var(--color-rail); }
.bento-layer>img { position:absolute; inset:0; }
.layer-caption { position:absolute; left:1rem; bottom:1rem; z-index:2; color:white; background:rgba(22,33,31,.7); padding:.3rem .7rem; border-radius:2rem; font-size:.66rem; }
.bento-lid { display:none; }
.bento.is-enhanced .bento-stage { position:relative; display:block; aspect-ratio:16/10; border-radius:var(--radius-card); overflow:hidden; background:var(--color-rail); }
.bento.is-enhanced .bento-layer { position:absolute; inset:0; border-radius:0; aspect-ratio:auto; }
.bento.is-enhanced .bento-layer[hidden] { display:none; }
.bento.is-enhanced .layer-caption { display:none; }
.bento.is-enhanced .bento-stage.lid-playing .bento-lid { display:block; position:absolute; inset:0; z-index:4; width:100%; height:100%; object-fit:cover; }
.bento-stage.is-shaking { animation:box-shake 420ms ease-in-out 1; }
@keyframes box-shake { 0%,100% { transform:none; } 20% { transform:translateX(-6px) rotate(-.4deg); } 40% { transform:translateX(5px) rotate(.4deg); } 60% { transform:translateX(-3px); } 80% { transform:translateX(2px); } }
.bento-controls { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1rem; margin-top:1rem; }
.bento-controls[hidden] { display:none; }
.bento-controls .meta { color:var(--color-muted); margin-left:auto; }
.menu-card { align-self:start; }
.menu-card-photo { position:relative; aspect-ratio:16/10; border-radius:.6rem; overflow:hidden; background:#efe9dc; box-shadow:0 12px 30px rgba(22,33,31,.16); transform:rotate(-1.2deg); }
.menu-card-photo>img { position:absolute; inset:0; }
.menu-card figcaption { margin-top:.9rem; color:var(--color-muted); font-size:.66rem; }
.card-zone { background:rgba(255,255,255,.12); border:2px dashed var(--color-ink); box-shadow:0 0 0 2px rgba(255,255,255,.9); }
.card-zone.is-found:after { content:''; position:absolute; left:13px; top:7px; width:12px; height:22px; border:solid var(--color-herb); border-width:0 4px 4px 0; transform:rotate(40deg); border-radius:1px; }
.card-zone.is-found { border-style:solid; border-color:var(--color-herb); }
.dish-card { position:relative; margin-top:1rem; padding:1.2rem 1.2rem 1.2rem; background:var(--color-surface); border-radius:var(--radius-card); box-shadow:0 10px 26px rgba(22,33,31,.12); border-left:6px solid var(--color-lacquer); }
.dish-card[hidden] { display:none; }
.dish-card-body { display:grid; grid-template-columns:120px minmax(0,1fr); gap:1.1rem; align-items:start; padding-right:4.5rem; }
.dish-card .dish-photo, .dish-list .dish-photo { aspect-ratio:1; border-radius:.9rem; }
.dish-card h3, .dish-list h3 { font-size:1.2rem; font-weight:700; letter-spacing:-.02em; margin-top:.25rem; }
.dish-card p, .dish-list p { font-size:.92rem; color:var(--color-muted); line-height:1.7; margin-top:.35rem; }
.dish-ja { color:var(--color-ink)!important; }
.dish-reading { color:var(--color-muted); font-size:.85rem; margin-left:.3rem; }
.dish-where { color:var(--color-accent-ink)!important; font-size:.64rem!important; }
.dish-tag { display:inline-block; margin-top:.6rem; font-size:.6rem; color:var(--color-lacquer); border:1px solid currentColor; padding:.15rem .5rem; border-radius:2rem; }
.dish-close { position:absolute; top:.8rem; right:.8rem; min-height:44px; min-width:44px; padding:.3rem .8rem; border-radius:2rem; border:1.5px solid var(--color-ink); background:transparent; font-size:.8rem; font-weight:600; }
.dish-message { font-size:1.6rem; margin:0; }
.find-note { margin-top:1rem; }
.find-note[hidden] { display:none; }
.dish-list { list-style:none; padding:0; margin:0; display:grid; gap:1rem; grid-template-columns:repeat(auto-fill,minmax(min(100%,22rem),1fr)); }
.dish-list>li { display:grid; grid-template-columns:110px minmax(0,1fr); gap:1rem; align-items:start; background:var(--color-surface); border-radius:var(--radius-card); padding:1rem; }
.dish-list[hidden] { display:none; }
@media (min-width:900px) {
  .bento { grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:3rem; align-items:start; }
  .bento .dish-list { grid-column:1/-1; }
  .menu-card { position:sticky; top:6rem; }
}
@media (max-width:520px) {
  .dish-card-body { grid-template-columns:1fr; padding-right:0; }
  .dish-card .dish-photo { max-width:160px; }
  .dish-card { padding-top:3.8rem; }
  .dish-list>li { grid-template-columns:80px minmax(0,1fr); }
}

/* Scene fade with video layers ------------------------------------------------- */
.scene-frame>.scene-layer { position:absolute; inset:0; width:100%; height:100%; overflow:hidden; background:var(--color-ink); }
.scene-frame>.scene-layer>video, .scene-frame>.scene-layer>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.scene-frame>.scene-layer.scene-to { opacity:var(--fade); z-index:0; }
.scene-frame>.scene-layer.scene-from { transform:scale(calc(1 + var(--fade) * .06)); }
html.motion-off .scene-frame>.scene-layer, html:not(.motion-ready) .scene-frame>.scene-layer { position:relative; aspect-ratio:4/5; height:auto; }
@media(max-width:760px) { html.motion-off .scene-frame>.scene-layer, html:not(.motion-ready) .scene-frame>.scene-layer { aspect-ratio:16/10; } }
.yakusou .scene-frame .diary-note { background:#fff3c9; }
.station-sign .sign-photo { aspect-ratio:4/3; border-radius:var(--radius-card); }
.station-sign { margin:0; }

/* Get off strip ---------------------------------------------------------------- */
.down-line { margin-top:1rem; font-size:clamp(1.9rem,4vw,3.6rem); }
.stop-strip { position:relative; margin-top:3rem; }
.stop-route { position:absolute; left:0; right:0; top:22px; height:40px; width:100%; color:var(--color-rail); pointer-events:none; }
.stop-route .route-line { stroke-width:2; }
.stop-list { position:relative; list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
.stop-list a { display:flex; flex-direction:column; gap:.3rem; min-height:44px; padding-top:3.4rem; position:relative; }
.stop-list .stop-dot { position:absolute; top:28px; left:0; width:28px; height:28px; border-radius:50%; background:var(--color-paper); border:3px solid var(--color-lacquer); }
.stop-list a:hover .stop-dot, .stop-list a:focus-visible .stop-dot { background:var(--color-lacquer); }
.stop-list strong { font-size:1.35rem; letter-spacing:-.02em; }
.stop-list span:last-child { color:var(--color-muted); }
.stop-list .meta { color:var(--color-accent-ink); }
@media (max-width:700px) {
  .stop-route { display:none; }
  .stop-list { grid-template-columns:1fr; gap:0; border-left:2px solid var(--color-rail); margin-left:13px; }
  .stop-list a { padding:1rem 0 1rem 2rem; }
  .stop-list .stop-dot { top:1.1rem; left:-15px; }
}

/* Midori ------------------------------------------------------------------------- */
.midori-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:2.5rem; }
.midori-grid .station-sign { margin-top:2rem; }
.midori-extras { display:grid; grid-template-columns:minmax(0,1fr); gap:2.5rem; margin-top:var(--space-5); align-items:start; }
.play-once { margin:0; }
.play-once-frame { border-radius:var(--radius-card); }
.play-once-frame>video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; z-index:1; transition:opacity 300ms; }
.play-once.is-playing .play-once-frame>video, .play-once.has-played:not(.is-missing) .play-once-frame>video { opacity:1; }
.play-once figcaption { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1.2rem; margin-top:1rem; }
.play-once figcaption .meta { color:var(--color-muted); width:100%; }
.after-note[hidden] { display:none; }
@media (min-width:900px) {
  .midori-grid { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:4rem; }
  .midori-extras { grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:4rem; }
}

/* Walk ------------------------------------------------------------------------------ */
#walk { padding-top:var(--space-6); }
.pocket-title { color:var(--color-muted); margin-bottom:1.5rem; }
.flip-row { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.25rem; }
.flip { position:relative; }
.flip-front { aspect-ratio:1; border-radius:50%; }
.flip-back { display:block; margin-top:.9rem; font-size:1.35rem; text-align:center; transform:rotate(-2deg); }
.flip-button { position:absolute; inset:0; z-index:3; width:100%; height:100%; border:0; padding:0; background:transparent; border-radius:50%; cursor:pointer; }
.flip-button:focus-visible { outline-offset:4px; }
.flip.is-enhanced { aspect-ratio:1; }
.flip.is-enhanced .flip-front, .flip.is-enhanced .flip-back { position:absolute; inset:0; margin:0; backface-visibility:hidden; transition:transform 600ms var(--ease-out-cinematic), opacity 300ms; }
.flip.is-enhanced .flip-back { display:grid; place-items:center; padding:1rem; border-radius:50%; background:#fff3c9; color:#6b2f19; font-size:clamp(1.05rem,1.8vw,1.45rem); transform:rotateY(180deg); }
.flip.is-flipped .flip-front { transform:rotateY(180deg); }
.flip.is-flipped .flip-back { transform:rotateY(0); }
.motion-off .flip.is-enhanced .flip-back { opacity:0; transform:none; }
.motion-off .flip.is-flipped .flip-front { opacity:0; transform:none; }
.motion-off .flip.is-flipped .flip-back { opacity:1; }
@media (max-width:700px) { .flip-row { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Oribe ------------------------------------------------------------------------------ */
.oribe-intro { padding-top:0; }
.oribe-intro .roadside { margin-top:1.5rem; }
.oribe-film { margin-block:var(--space-5) 2rem; }
.oribe-foot { padding-top:1.5rem; }
.fade-slideshow .memory-slide figcaption>.meta { color:white; }

/* Evening ------------------------------------------------------------------------------ */
.evening-photo { aspect-ratio:16/9; border-radius:var(--radius-card); }
.evening-photo>video { position:absolute; inset:0; }
.ticket-line { margin-top:1.5rem; font-size:1rem; line-height:1.8; color:#e9efe9; }
.ticket-line a { text-decoration:underline; text-underline-offset:.2em; color:var(--color-accent); }
.evening-actions { display:flex; flex-wrap:wrap; align-items:center; gap:1rem 2rem; margin-top:2rem; }
.evening-actions .text-link { min-height:44px; }

/* Line diagram -------------------------------------------------------------------------- */
.route-lead { color:#c9d3d0; }
.line-diagram { margin-top:3rem; }
.line-svg { color:var(--color-paper); }
.line-svg-tall { display:none; max-width:320px; margin-inline:auto; }
.line-base { stroke:#9fb0ac; stroke-width:2; stroke-dasharray:.006 .01; }
.line-herb { stroke:var(--color-accent); stroke-width:5; }
.line-walk { stroke:#a9c97f; stroke-width:4; stroke-linecap:round; stroke-dasharray:1 9; }
.line-svg .route-dot { fill:var(--color-ink); stroke:var(--color-accent); stroke-width:3; }
.line-svg .route-node.is-punched .route-dot { fill:var(--color-accent); }
.line-svg .route-label { font-size:15px; letter-spacing:1.5px; font-weight:600; }
.line-svg .route-label-small { font-size:13px; font-family:var(--font-ja); opacity:.85; letter-spacing:1px; }
.line-svg .legend-herb { fill:var(--color-accent); opacity:1; }
.line-svg .legend-walk { fill:#a9c97f; opacity:1; }
.line-legend { list-style:none; padding:0; margin:1.2rem 0 0; display:flex; flex-wrap:wrap; gap:.6rem 1.8rem; font-size:.85rem; color:#c9d3d0; }
.line-legend li { display:flex; align-items:center; gap:.5rem; }
.line-legend .travel-icon { width:1.1rem; height:1.1rem; color:#a9c97f; }
.legend-swatch { width:28px; height:0; border-top:5px solid var(--color-accent); }
.legend-swatch.walk { border-top:4px dotted #a9c97f; }
.legend-swatch.local { border-top:2px dashed #9fb0ac; }
.yakusou .margin-note { color:#b9c4c1; }
.map-load { margin-top:2rem; display:grid; gap:.5rem; justify-items:start; }
.map-load[hidden] { display:none; }
.map-load-button { min-height:44px; padding:.55rem 1.3rem; border-radius:2rem; border:1.5px solid var(--color-accent); background:transparent; color:var(--color-accent); font-weight:600; }
.line-map { width:100%; height:420px; border-radius:var(--radius-card); }
@media (max-width:700px) { .line-svg-wide { display:none; } .line-svg-tall { display:block; } }

/* Plan ---------------------------------------------------------------------------------- */
.plan-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr)); gap:1.25rem; margin:2.5rem 0 1.5rem; }
.plan-row { display:flex; gap:1rem; align-items:flex-start; padding:1.25rem; background:var(--color-surface); border-radius:var(--radius-card); border:1px solid var(--color-line); }
.plan-row .travel-icon { color:var(--color-accent-ink); width:1.6rem; height:1.6rem; margin-top:.15rem; }
.plan-row h3 { font-size:1rem; font-weight:700; letter-spacing:.02em; }
.plan-row p { font-size:.92rem; color:var(--color-muted); line-height:1.7; margin-top:.3rem; }
.plan-link { display:inline-flex; align-items:center; gap:.8rem; min-height:48px; margin-top:1rem; padding:.6rem 1.4rem; border-radius:2rem; background:var(--color-accent-ink); color:white; font-weight:700; }
.plan-link .travel-icon { width:1.1rem; height:1.1rem; }
#plan .meta.muted { margin-top:.5rem; }

/* Ticket -------------------------------------------------------------------------------- */
.ticket { margin:0 auto; padding:var(--space-5) var(--gutter); max-width:calc(var(--content) + var(--gutter) * 2); }
.ticket-card { max-width:380px; background:#fbf3df; color:var(--color-ink); border-radius:14px; border-left:8px solid var(--color-lacquer); padding:1.1rem 1.2rem 1rem; box-shadow:0 12px 30px rgba(22,33,31,.2); position:relative; }
.ticket-card:before, .ticket-card:after { content:''; position:absolute; right:-9px; width:18px; height:18px; border-radius:50%; background:var(--color-paper); }
.ticket-card:before { top:-9px; } .ticket-card:after { bottom:-9px; }
.ticket-title { font-size:1rem; font-weight:800; letter-spacing:.01em; }
.ticket-card>.meta { font-size:.6rem; color:var(--color-muted); margin-top:.2rem; }
.ticket-stations { list-style:none; padding:0; margin:.8rem 0 0; display:grid; gap:.15rem; }
.ticket-stations li { position:relative; display:flex; align-items:center; gap:.6rem; padding-left:30px; min-height:36px; border-bottom:1px dashed rgba(22,33,31,.2); background:#fbf3df; }
.ticket-stations li:last-child { border-bottom:0; }
.ticket-stations li:before { content:''; position:absolute; left:4px; top:50%; width:16px; height:16px; margin-top:-8px; border-radius:50%; border:1.5px dashed var(--color-lacquer); }
/* The punched hole: a dark disc with an inner shadow, so the card reads as cut through. */
.ticket-stations li.is-punched:before { border:0; background:var(--color-ink); box-shadow:inset 0 2px 3px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.8); }
.ticket-stations a { font-weight:700; min-height:36px; display:inline-flex; align-items:center; }
.ticket-stations a:hover { text-decoration:underline; }
.ticket-stations [lang=ja] { color:var(--color-muted); font-size:.85rem; }
.ticket.is-enhanced { position:fixed; z-index:45; right:calc(env(safe-area-inset-right) + 12px); bottom:calc(env(safe-area-inset-bottom) + 12px); margin:0; padding:0; max-width:none; display:flex; flex-direction:column-reverse; align-items:flex-end; gap:.6rem; }
.ticket.is-enhanced .ticket-card { width:min(280px, calc(100vw - 24px)); }
.ticket.is-enhanced .ticket-card[hidden] { display:none; }
.ticket.is-enhanced .ticket-card:before, .ticket.is-enhanced .ticket-card:after { display:none; }
.ticket-tab { display:inline-flex; align-items:center; gap:.5rem; min-height:48px; min-width:48px; padding:.4rem 1rem .4rem .8rem; border-radius:2rem; border:2px solid var(--color-lacquer); background:#fbf3df; color:var(--color-ink); font-weight:800; font-size:.85rem; box-shadow:0 6px 20px rgba(22,33,31,.28); }
.ticket-tab[hidden] { display:none; }
.ticket-tab .travel-icon { width:1.25rem; height:1.25rem; color:var(--color-lacquer); }
.ticket.just-punched .ticket-tab { animation:ticket-bump 500ms var(--ease-pop,ease) 1; }
@keyframes ticket-bump { 30% { transform:scale(1.12) rotate(-3deg); } 100% { transform:none; } }
html:not(.js) .ticket-tab { display:none; }

/* Footer ------------------------------------------------------------------------------- */
.yakusou footer { flex-wrap:wrap; align-items:flex-start; }
.yakusou footer nav { flex-wrap:wrap; }
.yakusou footer nav a { min-height:44px; display:inline-flex; align-items:center; }
.yakusou .site-footer-copy, .yakusou .audio-credits { color:#b9c4c1; max-width:56rem; }
.yakusou footer code { font-size:.95em; }

/* Small-text floor ---------------------------------------------------------------------- */
.yakusou .meta { font-size:max(.6rem, var(--meta-size, .72rem)); }
.yakusou .route-label-small { font-size:max(10px, .6rem); }
@media (max-width:760px) {
  .find { grid-template-columns:110px minmax(0,1fr); gap:1rem; }
  .find.wide-find { grid-template-columns:1fr; }
  .yakusou .chapter-head { flex-direction:column; align-items:flex-start; gap:.75rem; }
}

/* Missing or slow pictures: never print the alt text over the layout. */
.photo img, .hero-media img, .window-frame img, .bento img, .menu-card img, .station-sign img { color:transparent; }
/* Hero controls: the pause button sits top right, the cue stays clear of the ticket. */
.yakusou .hero-media-toggle { top:5.5rem; bottom:auto; right:var(--gutter); }
.yakusou .hero-bottom { padding-right:7.5rem; }
@media (max-width:760px) { .yakusou .hero-bottom { padding-right:0; padding-bottom:4.5rem; } }
/* Phone: the sticky window covers the strip above it too, so text never shows through the gap under the header. */
@media (max-width:899px) {
  .window-seat.is-enhanced .seat-window:before { content:''; position:absolute; left:0; right:0; bottom:100%; height:3.6rem; background:inherit; }
}
/* The hero title is a sentence, not a place name: keep it readable on phones (overrides journey.css). */
.yakusou .hero .title-destination.hero-headline { font-size:clamp(2.5rem,7.4vw,6.8rem); margin:.4rem 0 0; }
@media (max-width:760px) { .yakusou .hero .title-destination.hero-headline { font-size:clamp(2.3rem,11vw,3.6rem); } }
/* Target sizes (house size 44 px). */
.yakusou .site-nav a { min-width:44px; justify-content:center; padding-inline:.35rem; }
.yakusou .volume-slider { height:24px; background:linear-gradient(#ffffff3d,#ffffff3d) center/100% 4px no-repeat; border-radius:0; }
.yakusou .music-check { min-height:44px; margin-top:.4rem; }
.blue-slideshow .memory-slide figcaption, .midori-slideshow .memory-slide figcaption { min-height:0; padding-block:.8rem; }
/* Pop-in and tilt animations must never widen the page for a moment (clip keeps sticky working). */
.yakusou main { overflow-x:clip; }
