/* 鷹捷詠春 — 墨．紙．朱 */

:root {
  --ink: #100e0c;
  --ink-2: #1a1714;
  --ink-3: #2a2521;
  --paper: #f5f2ea;
  --paper-2: #ebe5d8;
  --muted: #6c665c;
  --muted-d: #a49c8f;
  --seal: #a3392a;
  --seal-l: #c9503c;
  --line: rgba(16, 14, 12, 0.14);
  --line-d: rgba(245, 242, 234, 0.18);

  --serif: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
  --sans: 'Noto Sans TC', -apple-system, 'Segoe UI', 'Microsoft JhengHei', sans-serif;

  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 48px);
  --sec-y: clamp(64px, 10vw, 132px);
}

* { 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: 18px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  /* 避免中文段落最後一行只剩一兩個字或標點 */
  text-wrap: pretty;
  line-break: strict;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }

/* ---------- 背景圖 ----------
   檔名由 build.mjs 寫進 --bg-j / --bg-w / --bg-s 三個自訂屬性。
   預設吃 jpg；瀏覽器認得帶 type() 的 image-set 才換成 webp，
   窄畫面再換成 960px 那一版（1920px 的原圖手機根本用不到）。
   基準一定要是 jpg —— 舊版 Safari 認得 image-set 但不認得 type()，
   直接寫 image-set 會整條宣告失效，背景就整片空白。 */
.bgimg { background-image: var(--bg-j); }
@supports (background-image: image-set(url("a.webp") type("image/webp"))) {
  .bgimg { background-image: image-set(var(--bg-w, var(--bg-j)) type("image/webp"), var(--bg-j) type("image/jpeg")); }
  @media (max-width: 768px) {
    .bgimg { background-image: image-set(var(--bg-s, var(--bg-w, var(--bg-j))) type("image/webp"), var(--bg-j) type("image/jpeg")); }
  }
}
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.35; letter-spacing: 0.04em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px;
}
.skip:focus { left: 0; }

/* ---------- 導覽列 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 14, 12, 0.96);
  color: var(--paper);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-d);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.nav--over { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.nav--over.is-stuck { position: fixed; background: rgba(16, 14, 12, 0.96); border-color: var(--line-d); }
.nav__in {
  max-width: var(--wrap); margin-inline: auto; padding: 0 var(--pad);
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.seal { width: 30px; height: 30px; color: var(--seal-l); flex: none; }
.brand__t { display: block; width: fit-content; line-height: 1.2; position: relative; padding-left: 13px; }
.brand__t::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 28px; background: var(--line-d);
}
.brand__t b {
  display: block; font-family: var(--serif); font-size: 19px;
  letter-spacing: 0.24em; margin-right: -0.24em;
  margin-bottom: 5px; line-height: 1.15;
}
.brand__t i {
  display: block; font-style: normal; font-size: 11px; letter-spacing: 0;
  text-align: justify; text-align-last: justify; text-justify: inter-character;
  line-height: 1.2; color: var(--muted-d); text-transform: uppercase;
}
.menu { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.menu a { text-decoration: none; font-size: 16px; letter-spacing: 0.1em; opacity: 0.86; transition: opacity 0.2s, color 0.2s; }
.menu a:hover { opacity: 1; color: var(--seal-l); }
.menu__cta {
  border: 1px solid var(--line-d); padding: 8px 18px; border-radius: 999px;
  opacity: 1 !important; font-size: 15px !important;
}
.menu__cta:hover { background: var(--seal); border-color: var(--seal); color: #fff !important; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--paper); margin: 5px 0; transition: 0.3s; }
.is-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .menu {
    position: fixed; inset: 68px 0 auto 0;
    background: rgba(16, 14, 12, 0.985);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 28px;
    border-bottom: 1px solid var(--line-d);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.28s ease;
  }
  .is-open .menu { transform: none; opacity: 1; pointer-events: auto; }
  .menu a { padding: 16px 2px; border-bottom: 1px solid var(--line-d); font-size: 17px; }
  .menu__cta { border-radius: 0; border: 0; border-bottom: 1px solid var(--line-d) !important; text-align: left; padding: 16px 2px !important; color: var(--seal-l) !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 62vh; padding: 128px 0 clamp(48px, 8vw, 92px); color: var(--paper); overflow: hidden; }
.hero--tall { min-height: 100svh; align-items: center; padding-top: 100px; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; transform: scale(1.03); }
/* 直式照片在窄畫面用原圖，寬畫面用橫幅裁切版。
   只有備了 hero__bg--tall 的 hero 才切換 —— 沒備的照原圖顯示，
   不然窄畫面會把唯一的底圖也藏掉，只剩一片壓黑的漸層。 */
.hero__bg--tall { display: none; }
@media (max-width: 767px) {
  .hero--swap .hero__bg { display: none; }
  .hero--swap .hero__bg--tall { display: block; }
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.72) 0%, rgba(16, 14, 12, 0.5) 38%, rgba(16, 14, 12, 0.86) 100%);
}
.hero__in { position: relative; }
.hero__t {
  font-size: clamp(40px, 9vw, 88px); letter-spacing: 0.14em; margin: 0 0 0.4em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.hero--tall .hero__t { letter-spacing: 0.2em; }
.hero__s { max-width: 40em; font-size: clamp(16px, 2vw, 20px); color: rgba(245, 242, 234, 0.86); line-height: 2; }
.hero__vert {
  position: absolute; right: clamp(14px, 3vw, 36px); top: 46%; transform: translateY(-50%);
  writing-mode: vertical-rl; white-space: nowrap; font-family: var(--serif); font-size: 13px;
  letter-spacing: 0.5em; color: rgba(245, 242, 234, 0.42);
}
@media (max-width: 700px) { .hero__vert { display: none; } }

.kicker {
  font-size: clamp(14px, 1.7vw, 16px); letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--seal-l); margin: 0 0 1.2em; font-weight: 500;
}
.kicker a { text-decoration: none; }
.kicker--dark { color: var(--seal); }

/* ---------- 按鈕 ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-block; padding: 14px 30px; border: 1px solid rgba(245, 242, 234, 0.42);
  border-radius: 999px; text-decoration: none; font-size: 16px; letter-spacing: 0.14em;
  transition: 0.25s ease; background: transparent; color: inherit;
}
.btn { backdrop-filter: blur(8px) saturate(130%); }
.btn:hover { background: rgba(245, 242, 234, 0.14); border-color: var(--paper); }
/* 主要按鈕：半透明朱砂，背景照片仍看得見 */
.btn--solid {
  background: rgba(163, 57, 42, 0.42);
  border-color: rgba(201, 80, 60, 0.8);
  color: var(--paper);
}
.btn--solid:hover { background: rgba(163, 57, 42, 0.78); border-color: var(--seal-l); }
.btn--ink { border-color: var(--line); color: var(--ink); }
.btn--ink:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- 區塊 ---------- */
.sec { padding: var(--sec-y) 0; }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec--paper2 { background: var(--paper-2); }
.sec__t { font-size: clamp(26px, 4.4vw, 42px); margin-bottom: clamp(34px, 5vw, 56px); letter-spacing: 0.1em; }

.band { background: var(--ink-2); color: var(--paper); padding: clamp(52px, 8vw, 96px) 0; text-align: center; }
.band__q { font-family: var(--serif); font-size: clamp(28px, 6vw, 54px); letter-spacing: 0.16em; color: var(--paper); margin-bottom: 0.6em; }
.band__s { color: rgba(245, 242, 234, 0.7); max-width: 44em; margin-inline: auto; line-height: 2.1; font-size: 17px; }

/* 圖文左右 */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split__img { position: relative; }
.split__img img { width: 100%; filter: saturate(0.92) contrast(1.04); }
.split__img::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); transform: translate(14px, 14px); pointer-events: none; }
.split__txt h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 0.8em; letter-spacing: 0.1em; }
.split__txt p { color: #3d3831; }
.split__txt .btn { margin-top: 14px; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev .split__img { order: 2; }
}

.lineage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--serif); font-size: 16.5px; letter-spacing: 0.1em; margin: 1.8em 0 1.4em !important; }
.lineage i { width: 22px; height: 1px; background: var(--line); display: inline-block; }
.lineage .on { color: var(--seal); font-weight: 700; }

/* ---------- 文章卡 ---------- */
.cards { display: grid; gap: clamp(16px, 2.2vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: block; text-decoration: none; color: var(--paper);
  min-height: 340px; overflow: hidden; isolation: isolate;
}
/* 預設裁切寫在 card() 的 inline style，文章可以用 posCard: 逐篇覆蓋 */
.card__bg { position: absolute; inset: 0; background-size: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.32) 0%, rgba(16, 14, 12, 0.62) 46%, rgba(16, 14, 12, 0.9) 100%);
  transition: opacity 0.4s;
}
.card__in { position: relative; padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; }
.card__date { font-size: 12.5px; letter-spacing: 0.3em; color: var(--muted-d); margin-bottom: 0.9em; }
.card__t { font-size: clamp(22px, 2.6vw, 27px); letter-spacing: 0.1em; margin-bottom: 0.55em; }
.card__x { font-size: 16px; line-height: 1.95; text-wrap: pretty; color: rgba(245, 242, 234, 0.76); margin-bottom: 1.2em; }
.card__more { font-size: 13.5px; letter-spacing: 0.24em; color: var(--seal-l); }
.card__more::after { content: ' →'; }
.card:hover .card__bg { transform: scale(1.07); }
.card:hover .card__veil { opacity: 0.86; }
.card::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(245, 242, 234, 0.14); pointer-events: none; }

.cards + .center { margin-top: clamp(32px, 4.5vw, 52px); }

.cards--list .card { min-height: 300px; }
.cards--list .card__in { min-height: 300px; }

/* ---------- 資訊卡 ---------- */
.info { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .info { grid-template-columns: repeat(3, 1fr); } }
.info__box { background: var(--paper); padding: clamp(26px, 3.4vw, 40px); text-align: center; }
.sec--paper2 .info__box { background: var(--paper-2); }
.info__box h4 { font-size: 13.5px; letter-spacing: 0.34em; color: var(--seal); margin-bottom: 1em; font-weight: 600; }
.info__box p { font-family: var(--serif); font-size: clamp(17px, 2.1vw, 21px); line-height: 1.9; }
.info + .center { margin-top: clamp(34px, 5vw, 52px); }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; }
.sec--dark .facts { border-color: var(--line-d); }
.fact { display: flex; gap: clamp(18px, 2.2vw, 26px); padding: clamp(26px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line); }
.sec--dark .fact { border-color: var(--line-d); }
.facts .fact:last-child { border-bottom: 0; }
.fact__k {
  writing-mode: vertical-rl; white-space: nowrap; flex: none; margin: 0; padding-top: 3px;
  font-family: var(--serif); font-size: 13.5px; letter-spacing: 0.55em; color: var(--seal);
}
.sec--dark .fact__k { color: var(--seal-l); }
.fact__v { font-family: var(--serif); font-size: clamp(18px, 2.1vw, 22px); line-height: 1.7; margin: 0; letter-spacing: 0.06em; }
.fact__v em {
  font-style: normal; display: block; margin-top: 0.5em;
  font-size: 0.82em; color: var(--muted); letter-spacing: 0.1em;
}
.sec--dark .fact__v em { color: var(--muted-d); }
@media (min-width: 820px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact { border-bottom: 0; border-left: 1px solid var(--line); padding-inline: clamp(26px, 3.2vw, 46px); }
  .sec--dark .fact { border-left-color: var(--line-d); }
  .fact:first-child { border-left: 0; padding-left: 0; }
  .fact:last-child { padding-right: 0; }
}
.facts + .center { margin-top: clamp(34px, 5vw, 52px); }

/* 首頁的授課內容清單 */
.syl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.syl li {
  display: grid; gap: 4px 22px; align-items: baseline;
  padding: clamp(20px, 2.6vw, 28px) 0; border-bottom: 1px solid var(--line);
  grid-template-columns: auto 1fr;
}
.sec--dark .syl, .sec--dark .syl li { border-color: var(--line-d); }
@media (min-width: 720px) { .syl li { grid-template-columns: auto 12em 1fr; gap: 0 28px; } }
.syl__n {
  font-family: var(--serif); font-size: 14px; letter-spacing: 0.2em; color: var(--seal);
  border: 1px solid rgba(163, 57, 42, 0.45); border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  text-indent: 0.2em; align-self: center;
}
.syl li b { font-family: var(--serif); font-size: clamp(19px, 2.3vw, 24px); letter-spacing: 0.1em; }
.syl__d { font-size: clamp(15px, 1.8vw, 17px); color: var(--muted); }
.sec--dark .syl__n { color: var(--seal-l); border-color: rgba(201, 80, 60, 0.55); }
.sec--dark .syl__d { color: rgba(245, 242, 234, 0.68); }
@media (max-width: 719px) {
  .syl__n { grid-row: span 2; }
  .syl__d { grid-column: 2; }
}
.syl + .center { margin-top: clamp(34px, 5vw, 52px); }


/* ---------- 授課內容 ---------- */
.lessons { display: grid; gap: clamp(44px, 6.5vw, 84px); }
.lesson { display: grid; gap: clamp(20px, 3vw, 44px); align-items: center; }
@media (min-width: 860px) {
  .lesson { grid-template-columns: 5fr 6fr; }
  .lesson:nth-child(even) .lesson__img { order: 2; }
}
.lesson__img { position: relative; }
.lesson__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.92) contrast(1.04); }
.lesson__img::after {
  content: ''; position: absolute; inset: 0; border: 1px solid var(--line);
  transform: translate(13px, 13px); pointer-events: none;
}
.lesson__txt h3 { font-size: clamp(23px, 3vw, 31px); letter-spacing: 0.1em; margin: 0.6em 0 0.4em; }
.lesson__d { color: var(--muted); font-size: clamp(16px, 1.9vw, 18px); margin: 0; }
.lesson__q {
  margin: clamp(22px, 2.6vw, 32px) 0 0; padding: 0 0 0 20px;
  border-left: 2px solid rgba(163, 57, 42, 0.35);
}
.lesson__q p {
  font-family: var(--serif); font-size: clamp(16px, 1.9vw, 18.5px);
  line-height: 2.05; color: #3d3831; margin: 0;
}
.lesson__ref {
  display: inline-block; margin-top: 1em; font-size: 14.5px; letter-spacing: 0.12em;
  color: var(--seal); text-decoration: none;
  border-bottom: 1px solid rgba(163, 57, 42, 0.3); padding-bottom: 5px;
  transition: color 0.2s, border-color 0.2s;
}
.lesson__ref span { display: inline-block; margin-left: 5px; transition: transform 0.2s; }
.lesson__ref:hover { color: var(--seal-l); border-color: var(--seal-l); }
.lesson__ref:hover span { transform: translateX(5px); }

/* ---------- 師承 ---------- */
/* 師承下面那段引文在深色底上，要把 .lesson__q 的深色字翻過來 */
.lineage__q { max-width: 660px; border-left-color: rgba(196, 84, 66, 0.5); }
.lineage__q p { color: rgba(245, 242, 234, 0.82); }
.lineage__q .lesson__ref { color: var(--seal-l); border-color: rgba(196, 84, 66, 0.4); }
.tree { list-style: none; margin: 0; padding: 0; max-width: 660px; }
.tree li { position: relative; padding: 0 0 34px 34px; border-left: 1px solid var(--line-d); }
.tree li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tree li::before {
  content: ''; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--muted-d);
}
.tree li.on::before { background: var(--seal-l); box-shadow: 0 0 0 5px rgba(163, 57, 42, 0.25); }
.tree b { display: block; font-family: var(--serif); font-size: clamp(19px, 2.4vw, 24px); letter-spacing: 0.14em; margin-bottom: 0.3em; }
.tree li.on b { color: var(--seal-l); }
.tree span { font-size: 16px; color: rgba(245, 242, 234, 0.66); line-height: 1.9; }

/* ---------- 內文 ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 0.9em; letter-spacing: 0.1em; }
.prose p { color: #3d3831; line-height: 2.1; }

/* ---------- 地圖 ----------
   iframe 是 Google 的內嵌地圖，帶 loading="lazy"，捲到才會載。 */
.sec--map { background: var(--paper-2); }
.map {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper);
}
/* 寬螢幕不跟著長高 —— 16:10 在 1160px 寬會變成 725px，整個畫面只剩地圖 */
@media (min-width: 900px) { .map { aspect-ratio: 21 / 9; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* 地圖的彩度壓下來一點，跟站上墨與紙的調子不要打架；hover 才回復 */
.map iframe { filter: saturate(0.78) contrast(1.02); transition: filter 0.3s; }
.map:hover iframe { filter: none; }
.btns--map { justify-content: flex-start; }
@media (max-width: 600px) {
  .map { aspect-ratio: 4 / 3; }
  .btns--map .btn { flex: 1 1 auto; text-align: center; }
}
/* 課程頁「地點」那格與頁尾的地址都連到地圖 */
.fact__v a, .foot__cols a { text-decoration: none; border-bottom: 1px solid var(--line); }
.fact__v a:hover { border-color: var(--seal); color: var(--seal); }
.foot__cols a { border-bottom-color: var(--line-d); }
.foot__cols a:hover { color: var(--seal-l); border-color: var(--seal-l); }

/* ---------- 常見問題 ---------- */
.faq { margin: 0; }
.faq dt {
  font-family: var(--serif); font-size: clamp(18px, 2.2vw, 21px); font-weight: 700;
  letter-spacing: 0.06em; padding-top: clamp(22px, 2.6vw, 30px); border-top: 1px solid var(--line);
}
.faq dt:first-of-type { padding-top: 0; border-top: 0; }
.faq dd {
  margin: 0.7em 0 clamp(22px, 2.6vw, 30px); color: #3d3831; line-height: 2.1;
}
.faq dd:last-child { margin-bottom: 0; }
.faq dd a { color: var(--seal); text-decoration: none; border-bottom: 1px solid rgba(163, 57, 42, 0.35); }
.faq dd a:hover { color: var(--seal-l); border-color: var(--seal-l); }
.lead { font-family: var(--serif); font-size: clamp(19px, 2.6vw, 23px); line-height: 2.05; color: var(--ink) !important; }

/* ---------- 文章頁 ---------- */
.art__hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; padding: 140px 0 clamp(44px, 7vw, 80px); color: var(--paper); overflow: hidden; }
.art__bg { position: absolute; inset: 0; background-size: cover; background-position: center 38%; }
.art__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 14, 12, 0.74) 0%, rgba(16, 14, 12, 0.48) 40%, rgba(16, 14, 12, 0.9) 100%); }
.art__head { position: relative; max-width: 900px; }
.art__head h1 { font-size: clamp(34px, 7vw, 66px); letter-spacing: 0.16em; margin-bottom: 0.5em; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.4); }
.art__date { font-size: 13.5px; letter-spacing: 0.3em; color: var(--muted-d); margin: 0; }

.pull { margin: 0; background: var(--ink-2); color: var(--paper); padding: clamp(40px, 6vw, 72px) var(--pad); text-align: center; }
.pull p {
  font-family: var(--serif); font-size: clamp(19px, 3vw, 30px); line-height: 1.95;
  letter-spacing: 0.1em; max-width: 26em; margin-inline: auto;
  text-wrap: balance;
}


.art__body { max-width: 460px; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(24px, 4vw, 40px); font-family: var(--serif); }
.art__body p {
  font-size: clamp(17px, 2.2vw, 20px); line-height: 2.05; margin-bottom: 1.9em; color: #2e2a25;
  text-wrap: pretty;
}
.a-h { font-size: clamp(19px, 2.6vw, 23px); color: var(--seal); letter-spacing: 0.14em; margin: 2.6em 0 1em; padding-left: 14px; border-left: 3px solid var(--seal); }
.art__body .a-h:first-child { margin-top: 0; }
.gap { display: inline; padding-inline: 0.42em; }
.a-tags {
  font-size: clamp(14px, 1.7vw, 15.5px) !important; line-height: 2.1 !important;
  color: var(--muted) !important; margin-top: 2.6em !important;
  padding-left: 16px; border-left: 1px solid var(--line);
}

.series {
  max-width: 560px; padding-top: clamp(34px, 5vw, 48px);
  border-top: 1px solid var(--line); margin-top: clamp(34px, 5vw, 52px);
}
.series__t { font-size: 13px; letter-spacing: 0.28em; color: var(--seal); margin-bottom: 1.4em; }
.series ol { list-style: none; margin: 0; padding: 0; }
.series li { border-bottom: 1px solid var(--line); }
.series li:last-child { border-bottom: 0; }
.series a {
  display: flex; gap: 16px; align-items: baseline; padding: 15px 2px;
  text-decoration: none; font-family: var(--serif);
  font-size: clamp(16.5px, 2vw, 18.5px); letter-spacing: 0.06em;
  transition: color 0.2s;
}
.series a span { color: var(--seal); font-size: 0.85em; letter-spacing: 0.2em; flex: none; }
.series a:hover { color: var(--seal); }
.series li.on a { color: var(--seal); }
.series li.on a::after { content: '　←　現在這篇'; font-size: 0.78em; color: var(--muted); letter-spacing: 0.1em; }

.art__sig { font-family: var(--serif); color: var(--muted); letter-spacing: 0.2em; font-size: 16px; text-align: right; margin-top: 3em !important; }

.art__nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 900px; padding-top: clamp(30px, 5vw, 46px); padding-bottom: clamp(56px, 8vw, 90px);
  border-top: 1px solid var(--line); margin-top: clamp(30px, 5vw, 48px);
}
.art__nav-i { text-decoration: none; display: block; max-width: 46%; }
.art__nav-i span { display: block; font-size: 12.5px; letter-spacing: 0.3em; color: var(--seal); margin-bottom: 0.5em; }
.art__nav-i b { font-family: var(--serif); font-size: 18.5px; letter-spacing: 0.08em; transition: color 0.2s; }
.art__nav-i:hover b { color: var(--seal); }
.art__nav-i--r { text-align: right; margin-left: auto; }
@media (max-width: 560px) { .art__nav-i { max-width: 100%; } }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(72px, 11vw, 132px) 0; color: var(--paper); overflow: hidden; text-align: center; }
.cta__bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.cta__veil { position: absolute; inset: 0; background: rgba(16, 14, 12, 0.82); }
.cta__in { position: relative; }
.cta__in h2 { font-size: clamp(23px, 4vw, 38px); letter-spacing: 0.1em; margin-bottom: 0.7em; }
.cta__in p { color: rgba(245, 242, 234, 0.76); font-size: 17px; }
.cta .btns { justify-content: center; }

/* ---------- 頁尾 ---------- */
.foot { background: var(--ink); color: var(--paper); padding-top: clamp(48px, 7vw, 76px); }
.foot__in { display: grid; gap: clamp(32px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 64px); }
@media (min-width: 860px) { .foot__in { grid-template-columns: 1fr 2fr; align-items: start; } }
.foot__brand { display: flex; align-items: center; gap: 13px; line-height: 1.15; }
.foot__brand > div { position: relative; padding-left: 16px; width: fit-content; }
.foot__brand > div::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 38px; background: var(--line-d);
}
.foot__brand b { font-family: var(--serif); font-size: 21px; letter-spacing: 0.2em; margin-right: -0.2em; display: block; line-height: 1.2; margin-bottom: 6px; }
.foot__brand span { font-size: 13.5px; color: var(--muted-d); letter-spacing: 0; text-align: justify; text-align-last: justify; line-height: 1.3; display: block; }
.foot__cols { display: grid; gap: 28px; }
@media (min-width: 620px) { .foot__cols { grid-template-columns: repeat(3, 1fr); } }
.foot__cols h4 { font-size: 12.5px; letter-spacing: 0.32em; color: var(--seal-l); margin-bottom: 1em; font-weight: 600; }
.foot__cols p { font-size: 15.5px; color: rgba(245, 242, 234, 0.78); line-height: 2; }
.foot__cols a { text-decoration: none; border-bottom: 1px solid var(--line-d); }
.foot__cols a:hover { color: var(--seal-l); }
.foot__bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--line-d); padding-top: 22px; padding-bottom: 26px;
  font-size: 13px; letter-spacing: 0.12em; color: var(--muted-d);
}

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card__bg { transition: none; }
}


.nb { white-space: nowrap; }

/* 短段落用 balance：兩三行平均分配，最後一行不會只剩一兩個字 */
.card__x, .hero__s, .band__s, .cta__in p, .course__i p,
.scene__x p, .fact__v, .tree span, .split__txt p, .art__nav-i b {
  text-wrap: balance;
}

/* ---------- 進站頁：大圖大字 ---------- */
.is-gate { background: var(--ink); color: var(--paper); }
.intro { position: relative; }

.intro__brand {
  position: absolute; top: clamp(24px, 4vw, 44px); left: clamp(20px, 5vw, 56px); z-index: 5;
  display: flex; align-items: center; gap: 14px;
  line-height: 1.15;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}
.intro__brand .seal { width: 40px; height: 40px; color: var(--seal-l); flex: none; }
.intro__brand > div { position: relative; padding-left: 17px; width: fit-content; }
.intro__brand > div::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 40px; background: rgba(245, 242, 234, 0.32);
}
.intro__brand h1 {
  font-family: var(--serif); font-size: clamp(22px, 2.8vw, 28px);
  /* 負的 margin 抵銷最後一個字後面的字距，讓區塊寬度＝標題實際墨色寬度 */
  letter-spacing: 0.24em; margin-right: -0.24em;
  display: block; margin-bottom: 6px; line-height: 1.2;
}
.intro__brand span {
  display: block; font-size: clamp(13.5px, 1.7vw, 17px); letter-spacing: 0;
  text-align: justify; text-align-last: justify;
  line-height: 1.3; color: rgba(245, 242, 234, 0.78);
}

.scene {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 22vh var(--pad) clamp(72px, 12vh, 130px); overflow: hidden;
}
.scene__bg { position: absolute; inset: 0; background-size: cover; }
.scene__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.62) 0%, rgba(16, 14, 12, 0.28) 34%, rgba(16, 14, 12, 0.82) 78%, rgba(16, 14, 12, 0.94) 100%);
}
.scene__in { position: relative; width: 100%; max-width: 940px; margin-inline: auto; }
.scene__n {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: 0.4em; color: var(--seal-l); margin-bottom: 1.4em;
}
.scene__n i { width: 34px; height: 1px; background: var(--seal-l); display: inline-block; }
.scene__t {
  font-size: clamp(38px, 7.2vw, 86px); letter-spacing: 0.1em; line-height: 1.25;
  margin-bottom: 0.5em; text-shadow: 0 2px 34px rgba(0, 0, 0, 0.5);
}
.scene__x { max-width: 32em; margin-bottom: 1.9em; }
.scene__x p {
  font-size: clamp(16px, 2.1vw, 21px); line-height: 2.05; color: rgba(245, 242, 234, 0.88);
  margin: 0 0 0.85em; text-wrap: pretty;
}
.scene__x p:last-child { margin-bottom: 0; }
.scene__t { text-wrap: balance; }
.scene__more {
  display: inline-block; text-decoration: none; font-size: clamp(15px, 1.8vw, 17px);
  letter-spacing: 0.2em; color: var(--paper);
  border-bottom: 1px solid rgba(245, 242, 234, 0.4); padding-bottom: 9px;
  transition: color 0.25s, border-color 0.25s;
}
.scene__more span { display: inline-block; transition: transform 0.25s; margin-left: 6px; }
.scene__more:hover { color: var(--seal-l); border-color: var(--seal-l); }
.scene__more:hover span { transform: translateX(6px); }

.scene--end { align-items: center; min-height: 88svh; padding-top: clamp(72px, 12vh, 130px); text-align: center; }
.scene--end .scene__in { text-align: center; }
.scene--end .scene__t { font-size: clamp(30px, 5.4vw, 60px); }
.scene--end .scene__x { max-width: none; margin-inline: auto; }
.scene--end .scene__x p { font-family: var(--serif); letter-spacing: 0.12em; }
.scene--end .btns { justify-content: center; }
.scene__veil--end { background: rgba(16, 14, 12, 0.8); }

@media (max-width: 700px) {
  .scene { padding-top: 26vh; align-items: flex-end; }
  .intro__brand .seal { width: 30px; height: 30px; }
}

