/* ==========================================================================
   咪宝与糯米 · 摄影画册
   Japanese indie photobook × quiet editorial.
   Photos carry the colour; the page stays paper, ink and hairlines.
   ========================================================================== */

:root {
  --paper: #F6F2EA;
  --paper-2: #EEE8DC;
  --ink: #2A2522;
  --ink-2: #6E6660;
  --ink-3: #A39B93;
  --line: rgba(42, 37, 34, 0.14);
  --line-strong: rgba(42, 37, 34, 0.28);

  --mibao: #B5683C;   /* 焦糖 */
  --nuomi: #8E86A8;   /* 雾藤 */

  --night: #13110F;
  --night-2: #1C1916;
  --night-ink: #E9E2D6;
  --night-ink-2: #9C9388;

  --serif: "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --latin: "Cormorant Garamond", "Baskerville", "Libre Baskerville", "Didot", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 1240px;
  --gap: 8px;
  --rh: 300px;           /* justified row target height */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint paper tooth, static */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.mark { width: 18px; height: 18px; flex: none; }
.mark-mibao { color: var(--mibao); }
.mark-nuomi { color: var(--nuomi); }
.icon { width: 20px; height: 20px; flex: none; }

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--latin);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.section-label {
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
  padding: 0 var(--gutter);
  background: rgba(246, 242, 234, 0.86);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.4s, color 0.4s;
}
.masthead.is-scrolled { border-bottom-color: var(--line); }
.masthead.is-night { background: rgba(19, 17, 15, 0.82); color: var(--night-ink); border-bottom-color: rgba(255,255,255,0.06); }
.masthead.is-night .nav-link { color: var(--night-ink-2); }
.masthead.is-night .nav-link.is-active, .masthead.is-night .nav-link:hover { color: var(--night-ink); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.12em;
  justify-self: start;
}
.wordmark i { font-family: var(--latin); font-style: italic; letter-spacing: 0; color: var(--ink-3); }

.running-head {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  white-space: nowrap;
}
.running-head.is-on { opacity: 1; transform: none; }
.running-head em { font-family: var(--latin); font-size: 15px; margin-right: 10px; color: var(--ink-3); }
.masthead.is-night .running-head { color: var(--night-ink-2); }

.primary-nav { justify-self: end; display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav-link {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0.16em; bottom: 0;
  height: 1px;
  background: currentColor;
}

/* ------------------------------------------------------------------ views */
.view { display: none; position: relative; z-index: 1; }
.view.is-active { display: block; }

/* ------------------------------------------------------------------ cover */
.cover {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: var(--measure);
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  min-height: calc(100svh - 60px);
  padding: clamp(40px, 8vh, 96px) var(--gutter);
}
.cover-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5.2vw, 84px);
  line-height: 1.08;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.cover-title .amp {
  display: inline-block;
  margin: 0 0.12em;
  font-size: 0.42em;
  vertical-align: 0.5em;
  color: var(--ink-3);
  letter-spacing: 0;
}
.cover-sub {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: 0.2em;
  color: var(--ink);
}
.cover-meta {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.cover-meta b { font-family: var(--latin); font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: 0.02em; margin: 0 2px; }

.cast { margin-top: 36px; display: grid; gap: 20px; }
.cast-item { display: flex; gap: 14px; align-items: flex-start; }
.cast-item .mark { width: 30px; height: 30px; margin-top: 2px; }
.cast-item strong { font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: 0.14em; margin-right: 12px; }
.cast-item span { font-size: 12px; letter-spacing: 0.14em; color: var(--ink-2); }
.cast-item p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); max-width: 30em; }

.cover-figure { margin: 0; justify-self: end; width: 100%; }
.cover-figure .ph { max-width: 100%; max-height: 78vh; aspect-ratio: var(--ar); margin-left: auto; width: auto; height: min(78vh, calc((min(100vw, var(--measure)) - 2 * var(--gutter)) * 0.56 / var(--ar))); }
.cover-figure figcaption { margin-top: 12px; text-align: right; }

/* ------------------------------------------------------------------ photo primitive */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--c, var(--paper-2));
  border-radius: 2px;
  cursor: zoom-in;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}
.ph img.is-loaded { opacity: 1; }
.ph:hover img.is-loaded { transform: scale(1.012); }
.ph .fav-dot {
  position: absolute;
  right: 8px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.ph .alts-chip {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 1px 7px;
  font-family: var(--latin);
  font-size: 13px;
  color: #fff;
  background: rgba(20, 18, 16, 0.42);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.25s;
}
.ph:hover .alts-chip { opacity: 1; }

.cap {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.cap .t { font-family: var(--serif); font-size: 14px; color: var(--ink); letter-spacing: 0.1em; margin-right: 10px; }
.cap .d { font-family: var(--latin); font-style: italic; font-size: 14px; letter-spacing: 0.02em; }

/* ------------------------------------------------------------------ contents */
.contents {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) var(--gutter) clamp(40px, 8vh, 96px);
  border-top: 1px solid var(--line);
}
.contents-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.toc-act { padding-top: 6px; }
.toc-act h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.2em;
}
.toc-act h3 em { font-family: var(--latin); font-size: 22px; color: var(--ink-3); letter-spacing: 0; }
.toc-act h3 small { margin-left: auto; font-family: var(--latin); font-style: italic; font-size: 13px; color: var(--ink-3); letter-spacing: 0.02em; }
.toc-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding 0.3s var(--ease);
}
.toc-item:hover { padding-left: 6px; }
.toc-item .n { font-family: var(--latin); font-style: italic; font-size: 16px; color: var(--ink-3); }
.toc-item .ttl { font-family: var(--serif); font-size: 15.5px; letter-spacing: 0.1em; }
.toc-item .ct { font-family: var(--latin); font-size: 14px; color: var(--ink-3); }
.toc-item.is-night .ttl::after { content: "夜"; margin-left: 8px; font-size: 11px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink-2); vertical-align: 2px; }

/* ------------------------------------------------------------------ act divider */
.act {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 80px var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
}
.act-numeral { font-family: var(--latin); font-size: clamp(64px, 9vw, 120px); line-height: 1; color: var(--ink-3); font-weight: 400; }
.act-title { margin: 18px 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); letter-spacing: 0.4em; padding-left: 0.4em; }
.act-range { font-family: var(--latin); font-style: italic; color: var(--ink-2); font-size: 16px; }

/* ------------------------------------------------------------------ chapter */
.chapter { position: relative; padding: clamp(56px, 10vh, 120px) 0 clamp(48px, 8vh, 96px); }
.chapter-inner { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

.opener { display: grid; gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(56px, 9vh, 112px); }
.opener.is-portrait { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.opener.is-portrait .ph { max-height: 86vh; aspect-ratio: var(--ar); width: min(100%, calc(86vh * var(--ar))); }
.opener.is-landscape { grid-template-columns: 1fr; }
.opener.is-landscape .opener-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.opener.is-landscape .ph { aspect-ratio: var(--ar); max-height: 82vh; }

.ch-num { display: block; font-family: var(--latin); font-style: italic; font-size: 20px; color: var(--ink-3); margin-bottom: 6px; }
.ch-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.25; letter-spacing: 0.12em; }
.ch-en { display: block; margin-top: 10px; font-family: var(--latin); font-style: italic; font-size: 17px; color: var(--ink-2); }
.ch-lede { margin: 26px 0 0; font-family: var(--serif); font-size: 16.5px; line-height: 2; letter-spacing: 0.06em; color: var(--ink); max-width: 26em; }
.ch-stat { margin-top: 22px; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); }

/* justified rows */
.group { margin: 0 0 clamp(40px, 7vh, 80px); }
.group-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-label span { font-family: var(--latin); font-style: italic; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.rows { display: flex; flex-wrap: wrap; gap: var(--gap); }
.rows::after { content: ""; flex-grow: 999999; }
.rows .ph { flex: var(--ar) 1 calc(var(--ar) * var(--row-h, var(--rh))); aspect-ratio: var(--ar); }
.rows.is-airy { --row-h: calc(var(--rh) * 1.3); }

/* feature */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); align-items: end; margin: clamp(56px, 10vh, 120px) 0; }
.feature .ph { aspect-ratio: var(--ar); }
.feature figcaption { padding-bottom: 6px; }
.feature .f-text { font-family: var(--serif); font-size: 17px; line-height: 1.9; letter-spacing: 0.08em; margin: 0 0 8px; }
.feature .f-date { font-family: var(--latin); font-style: italic; font-size: 14px; color: var(--ink-2); }
.feature.is-portrait.is-left .ph { grid-column: 2 / span 5; }
.feature.is-portrait.is-left figcaption { grid-column: 8 / span 4; }
.feature.is-portrait.is-right .ph { grid-column: 7 / span 5; order: 2; }
.feature.is-portrait.is-right figcaption { grid-column: 2 / span 4; order: 1; text-align: right; }
.feature.is-landscape.is-left .ph { grid-column: 1 / span 9; }
.feature.is-landscape.is-left figcaption { grid-column: 10 / span 3; }
.feature.is-landscape.is-right .ph { grid-column: 4 / span 9; order: 2; }
.feature.is-landscape.is-right figcaption { grid-column: 1 / span 3; order: 1; text-align: right; }
.feature.is-square .ph { grid-column: 3 / span 6; }
.feature.is-square figcaption { grid-column: 9 / span 3; }

/* night chapter */
.chapter.is-night { background: var(--night); color: var(--night-ink); }
.chapter.is-night .ch-num, .chapter.is-night .group-label span { color: var(--night-ink-2); }
.chapter.is-night .ch-en, .chapter.is-night .ch-stat, .chapter.is-night .f-date { color: var(--night-ink-2); }
.chapter.is-night .ch-lede { color: var(--night-ink); }
.chapter.is-night .group-label::after { background: rgba(255, 255, 255, 0.08); }
.chapter.is-night .ph { background: var(--night-2); }
.chapter.is-night + .chapter, .chapter.is-night + .act { border-top: 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ colophon */
.colophon { padding: clamp(80px, 16vh, 180px) var(--gutter) 64px; text-align: center; border-top: 1px solid var(--line); }
.colophon-big { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); letter-spacing: 0.4em; padding-left: 0.4em; }
.colophon-small { margin: 22px 0 0; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); line-height: 2.1; }

/* ------------------------------------------------------------------ index view */
#view-index { max-width: var(--measure); margin: 0 auto; padding: clamp(40px, 7vh, 80px) var(--gutter) 120px; }
.index-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line-strong); }
.index-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: 0.16em; }
.index-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.seg button:hover { color: var(--ink); }
.seg button.is-on { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.45); }
.seg .mark, .seg .icon { width: 16px; height: 16px; }
.seg-small button { font-size: 12px; padding: 4px 12px; }
.index-summary { margin: 16px 0 0; font-size: 12.5px; letter-spacing: 0.12em; color: var(--ink-3); }
.index-month { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.index-month h3 { margin: 0; position: sticky; top: 84px; align-self: start; font-family: var(--serif); font-weight: 400; font-size: 16px; letter-spacing: 0.12em; }
.index-month h3 small { display: block; font-family: var(--latin); font-style: italic; font-size: 14px; color: var(--ink-3); letter-spacing: 0.02em; }
.index-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.index-cells .ph { aspect-ratio: 1; }
.index-cells .ph.is-unpicked img.is-loaded { opacity: 0.55; }
.index-cells .ph.is-unpicked::after { content: attr(data-reject); position: absolute; left: 5px; bottom: 5px; padding: 1px 5px; border-radius: 2px; background: rgba(20, 18, 16, 0.58); font-size: 10px; letter-spacing: 0.06em; color: #fff; }
.index-empty { padding: 80px 0; text-align: center; color: var(--ink-2); font-family: var(--serif); letter-spacing: 0.12em; }

/* ------------------------------------------------------------------ lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  background: rgba(15, 13, 12, 0.97);
  color: var(--night-ink);
  animation: fade 0.3s var(--ease);
}
.lightbox[hidden], .show[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-stage { margin: 0; display: grid; place-items: center; min-height: 0; height: 100%; overflow: hidden; padding: 52px 72px 12px; }
.lb-stage img { max-width: 100%; max-height: 100%; min-height: 0; width: auto; height: auto; object-fit: contain; border-radius: 1px; transition: opacity 0.35s var(--ease); }
.lb-stage img.is-swapping { opacity: 0; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; color: var(--night-ink-2); transition: color 0.2s; z-index: 2; }
.lb-btn:hover { color: #fff; }
.lb-btn .icon { width: 26px; height: 26px; }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 8px 72px 20px; }
.lb-caption { margin: 0 0 4px; font-family: var(--serif); font-size: 16px; letter-spacing: 0.1em; color: var(--night-ink); min-height: 1em; }
.lb-caption:empty { display: none; }
.lb-meta { margin: 0; font-size: 12px; letter-spacing: 0.12em; color: var(--night-ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lb-meta .d { font-family: var(--latin); font-style: italic; font-size: 14px; letter-spacing: 0.02em; }
.lb-meta .mark { width: 16px; height: 16px; }
.lb-note { margin: 6px 0 0; font-family: var(--serif); font-size: 14px; color: #d8c8a8; letter-spacing: 0.06em; }
.lb-note:empty { display: none; }
.lb-actions { display: flex; align-items: center; gap: 6px; }
.lb-counter { font-family: var(--latin); font-size: 14px; color: var(--night-ink-2); margin-right: 10px; white-space: nowrap; }
.lb-act { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--night-ink-2); transition: color 0.2s, background 0.2s; }
.lb-act:hover { color: #fff; background: rgba(255,255,255,0.06); }
.lb-act.is-on { color: #E8A08A; }
.lb-act.is-on .icon path { fill: currentColor; }
.lb-alts { display: flex; gap: 6px; align-items: center; padding: 0 72px 18px; overflow-x: auto; }
.lb-alts::before { content: attr(data-label); font-size: 11px; letter-spacing: 0.14em; color: var(--night-ink-2); margin-right: 8px; white-space: nowrap; }
.lb-alts button { flex: none; width: 46px; height: 46px; border-radius: 2px; overflow: hidden; opacity: 0.5; outline: 1px solid transparent; transition: opacity 0.2s; }
.lb-alts button img { width: 100%; height: 100%; object-fit: cover; }
.lb-alts button:hover { opacity: 0.85; }
.lb-alts button.is-on { opacity: 1; outline-color: var(--night-ink); outline-offset: 2px; }
.lb-editor { padding: 0 72px 22px; }
.lb-editor input {
  width: min(560px, 100%);
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--night-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.24);
  outline: none;
}
.lb-editor input::placeholder { color: var(--night-ink-2); }

/* ------------------------------------------------------------------ slideshow */
.show { position: fixed; inset: 0; z-index: 90; background: #0c0b0a; color: var(--night-ink); overflow: hidden; cursor: none; }
.show.is-ui { cursor: default; }
.show-layer { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 1.4s var(--ease); }
.show-layer.is-on { opacity: 1; }
.show-layer img { max-width: 92vw; max-height: 88vh; object-fit: contain; transform: scale(1); }
.show-layer.is-on img { animation: drift 9s linear forwards; }
@keyframes drift { to { transform: scale(1.045); } }
.show-card { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: #0c0b0a; opacity: 0; pointer-events: none; transition: opacity 1s var(--ease); }
.show-card.is-on { opacity: 1; }
.show-card .n { font-family: var(--latin); font-style: italic; font-size: 22px; color: var(--night-ink-2); }
.show-card h3 { margin: 14px 0 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 48px); letter-spacing: 0.24em; padding-left: 0.24em; }
.show-card p { margin: 0; font-family: var(--latin); font-style: italic; color: var(--night-ink-2); font-size: 17px; }
.show-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 22px 32px; background: linear-gradient(transparent, rgba(0,0,0,0.5)); opacity: 0; transition: opacity 0.4s; }
.show.is-ui .show-bar { opacity: 1; }
.show-where { font-size: 12.5px; letter-spacing: 0.14em; color: var(--night-ink-2); }
.show-where b { font-family: var(--serif); font-weight: 400; color: var(--night-ink); margin-right: 10px; letter-spacing: 0.12em; font-size: 14px; }
.show-ctrl { display: flex; gap: 6px; }
.show-ctrl button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--night-ink-2); transition: color 0.2s, background 0.2s; }
.show-ctrl button:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .contents-list { grid-template-columns: 1fr 1fr; }
  .running-head { display: none; }
  .masthead { grid-template-columns: 1fr auto; }
}

@media (max-width: 760px) {
  :root { --rh: 150px; --gap: 5px; }
  body { font-size: 14.5px; }
  .masthead { height: 54px; }
  .wordmark { font-size: 15px; letter-spacing: 0.08em; gap: 6px; }
  .wordmark .mark { display: none; }
  .nav-link { font-size: 13.5px; letter-spacing: 0.1em; }
  .cover { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; gap: 36px; }
  .cover-figure { order: -1; }
  .cover-figure .ph { height: auto; width: 100%; max-height: 64vh; }
  .cover-title { font-size: clamp(42px, 11vw, 56px); }
  .contents-list { grid-template-columns: 1fr; }
  .toc-act + .toc-act { margin-top: 28px; }
  .act { min-height: 46vh; }
  .opener.is-portrait, .opener.is-landscape .opener-text { grid-template-columns: 1fr; }
  .opener.is-portrait .ph { width: 100%; max-height: 78vh; }
  .opener .ph { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .opener.is-portrait .ph { width: calc(100% + 2 * var(--gutter)); }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .feature .ph, .feature figcaption { grid-column: 1 / -1 !important; order: initial !important; text-align: left !important; }
  .feature.is-portrait .ph { width: 82%; }
  .feature.is-portrait.is-right .ph { margin-left: auto; }
  .feature.is-portrait.is-right figcaption { text-align: right !important; }
  .index-head { align-items: flex-start; }
  .index-controls { align-items: flex-start; }
  .index-month { grid-template-columns: 1fr; gap: 12px; }
  .index-month h3 { position: static; }
  .index-cells { grid-template-columns: repeat(4, 1fr); gap: 3px; }
  .lb-stage { padding: 52px 0 8px; }
  .lb-stage img { max-height: 100%; }
  .lb-prev, .lb-next { display: none; }
  .lb-info, .lb-alts, .lb-editor { padding-left: 18px; padding-right: 18px; }
  .show-bar { padding: 16px; }
  .show-where { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .show-layer.is-on img { animation: none; }
  .ph img, .show-layer, .show-card { transition-duration: 0.01s; }
}
