/* ============================================================
   菩提道安 BodhiWay.org — 設計系統
   方案：素紙墨跡（主站） / 石窟沉光（影像頁）
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --paper:        #F7F3E9;
  --paper-2:      #EFE9DB;
  --paper-3:      #FBF8F0;
  --ink:          #1A1917;
  --ink-2:        #5C574E;
  --ink-3:        #8C8579;
  --rule:         #DAD3C2;
  --rule-soft:    #E6DFCE;
  --cinnabar:     #9C3A2E;
  --moss:         #5E6B5C;

  --stone:        #100F0C;
  --stone-2:      #191813;
  --moon:         #E9E2D0;
  --moon-2:       #A9A28E;
  --gold:         #B08A4A;

  --serif: "Songti TC", "Noto Serif TC", "Source Han Serif TC",
           "Songti SC", "STSong", "SimSun", serif;
  --sans:  "PingFang TC", "PingFang SC", "Noto Sans TC",
           "Hiragino Sans CNS", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  --latin: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --maxw: 1120px;
  --gut: clamp(20px, 5vw, 56px);
  --nav-h: 76px;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--cinnabar); color: var(--paper); }

/* 紙纖維噪點（全域，極淡） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: .14;
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: multiply;
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; }
.section { padding: clamp(80px, 10vw, 150px) var(--gut); }
.section--tight { padding-top: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 22px;
  margin-bottom: clamp(40px, 5vw, 68px);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: .3em;
  line-height: 1.4;
}
.section-title .idx {
  font-family: var(--latin);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--cinnabar);
  margin-right: 16px;
  text-indent: 0;
  vertical-align: 2px;
}
.section-more {
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .35s;
}
.section-more:hover { color: var(--ink); }
.section-more::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  margin-left: 10px;
  vertical-align: 4px;
  transition: width .35s;
}
.section-more:hover::after { width: 34px; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gut);
  border-bottom: 1px solid transparent;
  transition: background .45s ease, border-color .45s ease;
}
.site-nav.is-scrolled {
  background: rgba(247, 243, 233, .93);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--rule);
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .36em;
  line-height: 1;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 38px);
}
.nav-links a {
  position: relative;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--ink-2);
  transition: color .35s;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: .2em; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 5px 12px;
  transition: border-color .35s;
}
.lang:hover { border-color: var(--ink-3); }
.lang .on { color: var(--ink); }
.lang .sep { opacity: .4; }

.nav-toggle { display: none; width: 26px; height: 16px; position: relative; }
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 1px;
  background: var(--ink); transition: transform .35s, opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 7px; }
.nav-toggle span:nth-child(3) { top: 14px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(38deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-38deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 60px) var(--gut) 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% 0 -10%;
  background:
    radial-gradient(circle at 72% 34%, rgba(94, 107, 92, .13), transparent 54%),
    radial-gradient(circle at 18% 76%, rgba(156, 58, 46, .055), transparent 46%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: .5em;
  text-indent: .5em;
  color: var(--ink-3);
  margin-bottom: 34px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cinnabar);
  opacity: .7;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 4.3vw, 56px);
  line-height: 1.62;
  letter-spacing: .16em;
  text-indent: .16em;
}
.hero h1 .line { display: inline-block; }
.hero h1 .line + .line { margin-left: .9em; }
.hero-source {
  margin-top: 30px;
  font-size: 13px;
  letter-spacing: .34em;
  color: var(--ink-3);
  font-family: var(--latin);
}
.hero-source .dot { opacity: .35; margin: 0 .7em; }
.hero-source .cn { font-family: var(--serif); font-size: 14px; letter-spacing: .26em; }
.hero-actions {
  margin-top: clamp(44px, 5vw, 62px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 38px;
  font-size: 14px;
  letter-spacing: .22em;
  text-indent: .22em;
  border: 1px solid var(--ink);
  transition: background .45s ease, color .45s ease, border-color .45s ease;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn__arrow {
  width: 16px; height: 1px; background: currentColor; position: relative;
  text-indent: 0;
  transition: width .4s;
}
.btn__arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn__arrow { width: 24px; }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, transparent, var(--ink-3));
  opacity: .6;
}

/* ---------- Paths (三大入口) ---------- */
.paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.path {
  padding: clamp(36px, 4.4vw, 60px) clamp(24px, 3vw, 46px) clamp(36px, 4.4vw, 56px) 0;
  border-right: 1px solid var(--rule);
  transition: background .5s;
}
.path:last-child { border-right: 0; padding-right: 0; }
.path:not(:first-child) { padding-left: clamp(24px, 3vw, 46px); }
.path .num {
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cinnabar);
  display: block;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.path h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: .24em;
  text-indent: .24em;
  margin-bottom: 18px;
}
.path p {
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-2);
  max-width: 22em;
}
.path-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--ink-2);
  padding-bottom: 5px;
  transition: color .4s;
}
.path-link::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
  vertical-align: 4px;
  margin-left: 10px;
  transition: width .4s;
}
.path:hover .path-link { color: var(--ink); }
.path:hover .path-link::after { width: 26px; }
.path:hover { background: rgba(239, 233, 219, .5); }

/* ---------- Video grid ---------- */
.videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
}
.video { display: block; }
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #EDE6D5;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-color .45s, background .45s;
}
.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .3;
  mix-blend-mode: multiply;
}
.play {
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color .45s, transform .45s;
}
.play::after {
  content: "";
  width: 0; height: 0;
  border-left: 7px solid var(--ink-3);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  margin-left: 3px;
  transition: border-left-color .45s;
}
.video:hover .thumb { border-color: var(--ink-3); }
.video:hover .play { transform: scale(1.08); border-color: var(--cinnabar); }
.video:hover .play::after { border-left-color: var(--cinnabar); }
.video h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .1em;
  margin-top: 18px;
  line-height: 1.7;
}
.video .meta {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-3);
  margin-top: 6px;
  font-family: var(--latin);
}

/* ---------- Film band (暗場) ---------- */
.film-band {
  position: relative;
  background: var(--stone);
  color: var(--moon);
  padding: clamp(72px, 9vw, 132px) var(--gut);
  overflow: hidden;
}
.film-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 28%, rgba(176, 138, 74, .16), transparent 56%);
  pointer-events: none;
}
.film-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .1;
  pointer-events: none;
}
.film-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.film-band .eyebrow {
  color: var(--gold);
  margin-bottom: 26px;
  justify-content: flex-start;
}
.film-band .eyebrow::before,
.film-band .eyebrow::after { background: var(--gold); opacity: .55; }
.film-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px);
  letter-spacing: .2em;
  text-indent: .2em;
  line-height: 1.4;
  margin-bottom: 28px;
}
.film-band p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--moon-2);
  max-width: 27em;
}
.film-band .film-meta {
  margin-top: 26px;
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--gold);
  opacity: .85;
}
.btn--gold {
  margin-top: 38px;
  border-color: rgba(176, 138, 74, .55);
  color: var(--moon);
}
.btn--gold:hover { background: var(--gold); border-color: var(--gold); color: #14130E; }

.film-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--stone-2);
  border: 1px solid rgba(233, 226, 208, .14);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.film-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(233, 226, 208, .1), transparent 62%);
}
.film-frame .play {
  border-color: rgba(233, 226, 208, .5);
  width: 58px; height: 58px;
}
.film-frame .play::after { border-left-color: rgba(233, 226, 208, .75); }
.film-frame .cap {
  position: absolute;
  left: 18px; bottom: 14px;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(233, 226, 208, .45);
}

/* ---------- Calligraphy rail ---------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(176px, 21vw, 238px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.rail::-webkit-scrollbar { height: 2px; }
.rail::-webkit-scrollbar-thumb { background: var(--rule); }
.rail::-webkit-scrollbar-track { background: transparent; }

.ink-card {
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .6s cubic-bezier(.2,.7,.3,1), border-color .6s, background .6s;
}
.ink-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(218, 211, 194, .55);
  pointer-events: none;
}
.ink-card .label {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .44em;
  text-indent: .44em;
  color: rgba(140, 133, 121, .55);
  transition: color .6s;
}
.ink-card .seal {
  position: absolute;
  right: 16px; bottom: 16px;
  width: 13px; height: 13px;
  background: var(--cinnabar);
  opacity: .82;
}
.ink-card:hover {
  transform: translateY(-6px);
  border-color: var(--ink-3);
  background: #FFFDF7;
}
.ink-card:hover .label { color: var(--ink-3); }

/* ---------- Quote strip ---------- */
.quote-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(56px, 7vw, 96px) var(--gut);
  text-align: center;
  background: var(--paper-2);
}
.quote-strip blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: .22em;
  text-indent: .22em;
  line-height: 2;
  color: var(--ink);
}
.quote-strip cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--ink-3);
  font-family: var(--sans);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: clamp(64px, 8vw, 100px) var(--gut) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(48px, 6vw, 76px);
}
.footer .brand { display: block; margin-bottom: 24px; }
.footer-verse {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .16em;
  line-height: 2.1;
  color: var(--ink-3);
}
.footer-col h5 {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-3);
  font-weight: 400;
  margin: 0 0 22px;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--ink-2);
  transition: color .35s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-3);
  font-family: var(--latin);
}
.footer-bottom .cn {
  font-family: var(--sans);
  letter-spacing: .22em;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.3,1), transform 1.1s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   暗場基礎（影像頁樣式見 assets/film.css）
   ============================================================ */
body.dark {
  background: #0B0A08;
  color: #EDE6D4;
}
body.dark::after { mix-blend-mode: screen; opacity: .06; }
body.dark ::selection { background: #C0A062; color: #14120E; }
.dark .site-nav.is-scrolled {
  background: rgba(11, 10, 8, .9);
  border-bottom-color: rgba(237, 230, 212, .1);
}
.dark .site-nav .brand { color: #EDE6D4; }
.dark .nav-links a { color: rgba(237, 230, 212, .58); }
.dark .nav-links a:hover { color: #EDE6D4; }
.dark .nav-links a::after { background: #EDE6D4; }
.dark .lang { border-color: rgba(237, 230, 212, .16); color: rgba(237, 230, 212, .45); }
.dark .lang .on { color: #EDE6D4; }
.dark .nav-toggle span { background: #EDE6D4; }


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    padding: 8px var(--gut) 32px;
    border-bottom: 1px solid var(--rule);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s, transform .4s;
  }
  .nav-links a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 15px;
  }
  .nav-links a::after { display: none; }
  .nav-links .lang { margin-top: 20px; }
  .nav-toggle { display: block; }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .dark .nav-links { background: var(--stone); border-bottom-color: rgba(233,226,208,.14); }
  .dark .nav-links a { border-bottom-color: rgba(233,226,208,.12); }

  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero h1 { letter-spacing: .12em; text-indent: .12em; line-height: 1.75; }
  .hero h1 .line { display: block; }
  .hero h1 .line + .line { margin-left: 0; }
  .hero-source { letter-spacing: .18em; line-height: 2; }
  .hero-source .dot { display: none; }
  .hero-source .latin-name { display: block; font-size: 11px; letter-spacing: .14em; margin-top: 8px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 300px; margin-left: auto; margin-right: auto; }
  .hero-actions .btn { justify-content: center; padding: 16px 24px; }
  .eyebrow { letter-spacing: .34em; text-indent: .34em; }
  .scroll-hint { display: none; }

  .paths { grid-template-columns: 1fr; }
  .path {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 34px 0;
  }
  .path:not(:first-child) { padding-left: 0; }
  .path:last-child { border-bottom: 0; }
  .path .num { margin-bottom: 20px; }
  .path-link { margin-top: 20px; }

  .videos { grid-template-columns: 1fr; gap: 30px; }
  .film-grid { grid-template-columns: 1fr; gap: 40px; }
  .film-frame { order: -1; }
  .quote-strip blockquote { letter-spacing: .14em; text-indent: .14em; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .film-hero h1 { letter-spacing: .16em; text-indent: .16em; }
  .ways { grid-template-columns: 1fr; }
  .synopsis { grid-template-columns: 1fr; gap: 24px; }
  .synopsis .side { display: flex; gap: 20px; flex-wrap: wrap; }
  .screen-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .screen-row .venue { grid-column: 1 / 2; }
  .screen-row .date { grid-column: 2 / 3; text-align: right; }
  .screen-row .tag { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
  .reserve { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   師父頁
   ============================================================ */
.master-hero {
  padding: calc(var(--nav-h) + 76px) var(--gut) clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.master-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(94, 107, 92, .11), transparent 62%);
  pointer-events: none;
}
.mh-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  position: relative;
  z-index: 1;
}
.mh-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(62px, 9.6vw, 132px);
  line-height: 1.15;
  letter-spacing: .18em;
  text-indent: .18em;
  margin: 26px 0 30px;
}
.mh-alias {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .3em;
  color: var(--ink-2);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}
.mh-line {
  font-size: 14px;
  letter-spacing: .24em;
  color: var(--ink-3);
  line-height: 2.2;
}
.mh-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 400px;
  justify-self: end;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  padding: 12px;
}
.mh-portrait .inner {
  width: 100%; height: 100%;
  border: 1px solid var(--rule-soft);
  display: grid;
  place-items: center;
}
.mh-portrait .inner span {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .5em;
  text-indent: .5em;
  color: rgba(140, 133, 121, .6);
}
.mh-portrait .seal {
  position: absolute;
  right: 22px; bottom: 22px;
  width: 14px; height: 14px;
  background: var(--cinnabar);
  opacity: .8;
}

/* 年表 */
.timeline { border-top: 1px solid var(--rule); }
.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.timeline .yr {
  font-family: var(--latin);
  font-size: 16px;
  letter-spacing: .16em;
  color: var(--cinnabar);
}
.timeline .tx {
  font-size: 15.5px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.timeline .tx b { font-weight: 400; color: var(--ink); font-family: var(--serif); letter-spacing: .08em; }

/* 正文 */
.prose { max-width: 640px; }
.prose p {
  font-size: 17px;
  line-height: 2.15;
  letter-spacing: .03em;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.prose p.lead {
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 22px);
  line-height: 2.1;
  letter-spacing: .1em;
  color: var(--ink);
}
.prose p.lead::first-letter {
  font-size: 1.5em;
  color: var(--cinnabar);
}

/* 進入影像頁的橫幅 */
.next-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  padding: clamp(56px, 7vw, 92px) var(--gut);
}
.next-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.next-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.6vw, 28px);
  letter-spacing: .16em;
  line-height: 1.9;
  max-width: 22em;
}
.next-band .sub {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .mh-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .mh-portrait { max-width: 240px; aspect-ratio: 3 / 4; }
  .mh-name { margin: 20px 0 24px; }
  .timeline li { grid-template-columns: 84px 1fr; gap: 16px; padding: 20px 0; }
  .prose p { font-size: 16px; line-height: 2.05; }
}
