/* Native CSS watching page. Light warm neutral palette follows the parent gallery.
   Design dials: variance 4, motion 1, density 3. Video content owns the motion.
   Shape rule: 12px for media; 4px for focus/feedback; text links stay unboxed. */
:root {
  color-scheme: light;
  --canvas: #f7f6f3;
  --ink: #242621;
  --muted: #62665d;
  --line: #dcded6;
  --accent: #3e583a;
  --wash: #ecefe7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.65 "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a, summary, video { -webkit-tap-highlight-color: transparent; }
a, summary { touch-action: manipulation; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
[hidden] { display: none !important; }
.page-shell { width: min(1120px, calc(100% - 64px)); margin: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 8px 14px; background: var(--ink); color: #fff; transform: translateY(-160%); z-index: 2; }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; border-bottom: 1px solid var(--line); }
.back-link { text-decoration: none; font-size: 12px; }
.back-link span { margin-right: 7px; }
.collection-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.intro { padding: 27px 0 29px; }
h1 { margin: 0; font: 550 clamp(28px, 2.9vw, 40px)/1.3 "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: -.045em; }
h1 span { color: var(--accent); }
.intro p { margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; align-items: start; }
.story { min-width: 0; }
.story-heading { display: flex; gap: 12px; align-items: flex-start; min-height: 64px; padding-bottom: 15px; }
.story-number { font: 400 12px/1.7 "SF Mono", Menlo, monospace; color: var(--accent); padding-top: 2px; }
.story-heading h2 { margin: 0; font-size: clamp(16px, 1.55vw, 21px); font-weight: 550; letter-spacing: -.025em; line-height: 1.3; }
.story-subtitle { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.player-wrap { width: min(100%, calc((100svh - 290px) * 9 / 16)); min-width: 200px; margin-inline: auto; position: relative; border-radius: 12px; overflow: hidden; background: #e7e7e0; }
video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; background: #111; border-radius: inherit; }
.playback-error { position: absolute; inset: auto 12px 56px; margin: 0; padding: 12px; background: rgba(247,246,243,.96); color: var(--ink); border-radius: 4px; font-size: 12px; text-align: center; pointer-events: none; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 10px; row-gap: 6px; padding-top: 14px; font-size: 11px; color: var(--muted); }
.download-link { color: var(--accent); white-space: nowrap; text-decoration: none; font-size: 12px; }
.download-link:hover { text-decoration: underline; }
.download-link span[aria-hidden] { display: inline-block; margin-left: 4px; }
.story-description { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.story-method { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.story-method summary { width: fit-content; cursor: pointer; font-size: 12px; color: var(--accent); }
.story-method p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.method-note { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding: 22px 24px; margin-top: 38px; border-radius: 12px; background: var(--wash); }
.method-note h2 { margin: 1px 0 0; color: var(--accent); font-size: 14px; font-weight: 550; }
.method-note p { max-width: 78ch; margin: 0; color: #505b4a; font-size: 12px; line-height: 1.85; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 22px 0 28px; color: var(--muted); font-size: 11px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--accent); }
.preparing { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.preparing p { margin: 0 0 12px; }
.preparing a { color: var(--accent); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.notes-page .page-shell { width: min(960px, calc(100% - 64px)); }
.notes-main { padding: 30px 0 14px; }
.notes-main h1 { max-width: 24em; font-size: clamp(27px, 3vw, 36px); line-height: 1.45; }
.notes-main h2 { margin: 36px 0 12px; font-size: 21px; font-weight: 550; line-height: 1.5; letter-spacing: -.02em; }
.notes-main h3 { margin: 25px 0 10px; font-size: 17px; font-weight: 550; }
.notes-main p, .notes-main li { max-width: 60em; font-size: 14px; line-height: 1.95; color: #50574c; }
.notes-main p { margin: 12px 0; }
.notes-main ul { margin: 10px 0; padding-left: 22px; }
.notes-main li { margin: 9px 0; padding-left: 3px; }
.notes-main code { font: 12px/1.8 "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.notes-table { width: 100%; margin: 14px 0; overflow-x: auto; }
.notes-table table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 13px; line-height: 1.8; }
.notes-table th, .notes-table td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.notes-table th { font-weight: 550; color: var(--ink); }
.notes-table td { color: #50574c; }
@media (max-width: 899px) {
  .page-shell { width: min(470px, calc(100% - 40px)); }
  .site-header { min-height: 62px; gap: 12px; }
  .back-link, .collection-label { font-size: 11px; }
  .intro { padding: 26px 0 30px; }
  h1 { font-size: clamp(26px, 6.5vw, 34px); }
  .intro p { max-width: 30em; line-height: 1.8; }
  .story-grid { grid-template-columns: minmax(0, 1fr); row-gap: 38px; }
  .story-heading { min-height: 0; padding-bottom: 15px; }
  .story-heading h2 { font-size: 21px; }
  .player-wrap { width: 100%; min-width: 0; }
  .story-meta { font-size: 12px; }
  .story-description { font-size: 14px; }
  .method-note { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 34px; padding: 20px; }
  .notes-page .page-shell { width: min(680px, calc(100% - 40px)); }
  .notes-main { padding-top: 26px; }
  .notes-main h2 { font-size: 20px; margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
