:root {
  --paper: #f7f3ea; --card: #fdfcf8; --ink: #1f1d1a; --ink2: #5b564d; --ink3: #8d867a;
  --line: rgba(31, 29, 26, .12); --accent: #8a3b24;
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  --sans: "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #1b1a18; --card: #24221f; --ink: #ece6da; --ink2: #b9b1a3; --ink3: #8a8377; --line: rgba(236, 230, 218, .14); --accent: #d98a6c; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.9 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 1040px; margin: 0 auto; padding: 20px 24px; }
.brand { font: 500 20px var(--serif); color: var(--ink); letter-spacing: .04em; }
.top nav a { margin-left: 20px; color: var(--ink2); font-size: 15px; }
main { max-width: 1040px; margin: 0 auto; padding: 0 24px 64px; }
.hero { display: grid; gap: 32px; padding: 16px 0 48px; }
.card { background: #fdfcf8; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: #1c1c1c; }
.card svg { display: block; width: 100%; height: auto; }
.hint { margin: 0; padding: 0 16px 12px; text-align: center; font-size: 13px; color: #8d867a; }
.intro h1 { font: 500 40px/1.3 var(--serif); margin: 0 0 12px; }
.intro p { max-width: 40em; color: var(--ink2); margin: 0 0 12px; }
.list h2 { font: 500 20px var(--serif); margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.list ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 24px; }
.list li a { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.list .no { font: 13px ui-monospace, monospace; color: var(--ink3); width: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.list .op { font-family: var(--serif); }
.list em { font-style: normal; font-size: 12px; color: var(--accent); margin-left: auto; }
.chapter { max-width: 720px; margin: 0 auto; padding-top: 24px; }
.kicker { color: var(--ink3); font-size: 14px; margin: 0; }
.chapter h1 { font: 500 36px/1.35 var(--serif); margin: 4px 0 24px; }
.orig { font: 22px/2.1 var(--serif); padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.lede { color: var(--ink2); }
.line { padding: 20px 0; border-bottom: 1px solid var(--line); }
.src { font: 20px/1.9 var(--serif); margin: 0 0 8px; }
.plain { margin: 0 0 8px; }
details summary { cursor: pointer; color: var(--ink3); font-size: 14px; }
details ul { margin: 8px 0 0; padding-left: 20px; font-size: 15px; color: var(--ink2); }
details li { margin-bottom: 8px; }
.say { display: block; color: var(--ink3); }
.pending { color: var(--ink3); }
.pager { display: flex; justify-content: space-between; padding-top: 32px; }
.foot { max-width: 1040px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 13px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.4fr 1fr; align-items: center; } }
@media (max-width: 600px) { .intro h1 { font-size: 30px; } .chapter h1 { font-size: 28px; } .orig { font-size: 19px; } .top nav a { margin-left: 12px; } }

/* ── 首頁捲動場景（ai-studio engine/layers；高度用 svh，祖先不設 overflow:hidden） ── */
html, body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.stage { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 100svh; }
.js .stage { height: 440svh; }
.stage__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #e9e6e0; color: #1f1d1a; }
.shot { position: absolute; inset: 0; will-change: transform, opacity; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot[data-shot="stream"] { transform-origin: 27% 62%; }
.shot[data-shot="stream"] img { object-position: 27% 55%; }
.shot[data-shot="dusk"] { transform-origin: 40% 60%; }
.shot[data-shot="dusk"] img { object-position: 38% 55%; }
.shot[data-shot="bowl"] { transform-origin: 35% 45%; }
.shot[data-shot="bowl"] img { object-position: 34% 28%; }
.js .shot[data-shot="dusk"], .js .shot[data-shot="bowl"] { opacity: 0; }
.beat { position: absolute; left: 0; right: 0; padding: 0 max(24px, calc(50vw - 520px)); }
.js .beat.b1, .js .beat.b2 { opacity: 0; visibility: hidden; }
.beat.b0 { top: 14svh; }
.beat.b1 { top: 12svh; text-align: center; }
.beat.b2 { top: 18svh; padding-left: max(24px, calc(50vw - 40px)); }
.eyebrow { margin: 0 0 8px; font-size: 14px; letter-spacing: .08em; color: #3a362f; }
.beat h1 { margin: 0; font: 500 clamp(48px, 8vw, 104px)/1 var(--serif); letter-spacing: .06em; }
.sub { margin: 16px 0 0; font: 400 clamp(18px, 2vw, 22px)/1.6 var(--serif); color: #3a362f; }
.q { margin: 0; font: 500 clamp(30px, 4.4vw, 56px)/1.35 var(--serif); letter-spacing: .08em; }
.cite { margin: 12px 0 0; font-size: 14px; letter-spacing: .08em; color: #3a362f; }
.cta { display: flex; gap: 20px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; background: #1f1d1a; color: #f7f3ea; font-size: 16px; }
.btn:hover { background: #3a362f; text-decoration: none; }
.link { color: #1f1d1a; border-bottom: 1px solid rgba(31, 29, 26, .4); font-size: 16px; }
.link:hover { text-decoration: none; border-color: #1f1d1a; }
.btn:focus-visible, .link:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.steps { position: absolute; left: max(24px, calc(50vw - 520px)); bottom: 28px; margin: 0; padding: 0; list-style: none; display: flex; gap: 20px; font-size: 13px; letter-spacing: .14em; color: rgba(31, 29, 26, .45); }
.steps li.on { color: #1f1d1a; }
.steps li.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }

.about-band { display: grid; gap: 32px; padding: 96px 0 64px; align-items: center; }
.about-text h2 { font: 500 32px/1.3 var(--serif); margin: 0 0 16px; }
.about-text p { color: var(--ink2); margin: 0 0 12px; max-width: 34em; }
.about-photo, .ink-band, .plate { margin: 0; }
.about-photo img, .ink-band img, .plate img, .gallery img { display: block; width: 100%; height: auto; border-radius: 16px; }
.about-photo img { max-height: 560px; object-fit: cover; }
.ink-band { padding: 16px 0 8px; }
.plate { margin: 0 0 32px; }
.chapter h2 { font: 500 24px var(--serif); margin: 40px 0 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 16px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 14px; color: var(--ink3); margin-top: 8px; line-height: 1.7; }
.js [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (min-width: 900px) { .about-band { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
@media (max-width: 767px) {
  .shot[data-shot="stream"] img { object-position: 24% 50%; }
  .shot[data-shot="dusk"] img { object-position: 36% 50%; }
  .shot[data-shot="bowl"] img { object-position: 36% 30%; }
  .beat.b0 { top: 10svh; } .beat.b1 { top: 9svh; } .beat.b2 { top: auto; bottom: 88px; padding-left: 24px; }
  .about-band { padding: 64px 0 40px; }
}
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* unslop 修正：首頁頁首疊在照片上，不留一條色帶；文字在霧上加淡紙色暈開以利閱讀 */
body:has(.stage) .top { position: absolute; left: 0; right: 0; z-index: 5; }
body:has(.stage) .top .brand, body:has(.stage) .top nav a { color: #1f1d1a; }
.beat { text-shadow: 0 0 16px rgba(239, 233, 223, .85), 0 0 4px rgba(239, 233, 223, .6); }
.beat .btn { text-shadow: none; }
/* 場景結尾接回頁面底色，照片不留硬邊（ai-studio 的 apron、unslop 的 soft mask） */
.stage__pin::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16svh; background: linear-gradient(to bottom, transparent, var(--paper)); pointer-events: none; z-index: 2; }
.beat, .steps { z-index: 3; }

/* 11-28 手機可讀性修正：上方加淡紙色霧面，步驟列改成有底的膠囊，深色模式也看得清楚 */
.stage__pin::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52svh; background: linear-gradient(to bottom, rgba(239, 233, 223, .78) 0%, rgba(239, 233, 223, .55) 45%, rgba(239, 233, 223, 0) 100%); pointer-events: none; z-index: 2; }
.steps { padding: 8px 14px; border-radius: 999px; background: rgba(239, 233, 223, .88); color: rgba(31, 29, 26, .55); bottom: 32px; }
.steps li.on { color: #1f1d1a; }
@media (max-width: 767px) {
  .stage__pin::before { height: 60svh; background: linear-gradient(to bottom, rgba(239, 233, 223, .9) 0%, rgba(239, 233, 223, .7) 50%, rgba(239, 233, 223, 0) 100%); }
  .beat { text-shadow: 0 0 20px rgba(239, 233, 223, 1), 0 0 6px rgba(239, 233, 223, .9); }
  .beat.b2 { bottom: 104px; }
  .beat.b2::before { content: ""; position: absolute; inset: -24px 0 -16px; background: linear-gradient(to top, rgba(239, 233, 223, .85), rgba(239, 233, 223, .6) 70%, rgba(239, 233, 223, 0)); z-index: -1; }
  .steps { bottom: 24px; }
}

.author .lead { font: 400 20px/1.7 var(--serif); color: var(--ink2); }
.author .note { font-size: 14px; color: var(--ink3); margin-top: 32px; }
