/* ============================================================
   讓現場活起來 —— 版型
   原則：行動裝置優先；任何內容都不得撐破容器；動態一律可關

   排版依據（實測自 Apple 環境繁中頁、Patagonia、The Pudding）：
   內文大、欄寬窄、標題行高緊、標題用襯線、底色偏暖不用純白。
   ============================================================ */

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

/* Noto Sans TC / Noto Serif TC 載入前用系統字頂替。
   ascent/descent 對齊 Noto CJK（1160 / 320，upem 1000），
   讓 swap 換字的瞬間行高不變 → CLS 維持 0。 */
@font-face {
  font-family: "TCFallback";
  src: local("PingFang TC"), local("Heiti TC"), local("Microsoft JhengHei"), local("Noto Sans CJK TC");
  ascent-override: 116%;
  descent-override: 32%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

:root {
  /* 內文欄寬 600px ≈ 每行 30 個中文字。The Pudding 用 ~500px，
     繁中方塊字比拉丁字寬，600 才會落在同樣的閱讀節奏。 */
  --content: 37.5rem;
  --wide: 68rem;
  --gutter: clamp(1.15rem, 5vw, 2.5rem);

  /* 紙感暖白，不用純白（Pudding #fffff1、Esther Perel #f4efe8） */
  --bg: #f7f4ef;
  --surface: #fffdfa;
  --text: #1f2225;
  --muted: #676c72;
  --line: #e2dbd0;

  /* 生成：低彩度冷灰藍
     gen-soft 是第一幕條目的文字色，必須對 --bg 過 AA（4.5:1）。 */
  --gen: #46545f;
  --gen-soft: #5f6d78;
  --gen-faint: #7d8b96;   /* 只用在文字雲的大字（WCAG 大字門檻 3:1） */
  --gen-tint: #eaeef0;

  /* 現場：暖赭土 */
  --field: #8a5232;
  --field-soft: #a9714d;
  --field-tint: #f2e8df;

  --radius: 10px;
  --font: "Noto Sans TC", "TCFallback", "PingFang TC", "Heiti TC", "Microsoft JhengHei", system-ui, sans-serif;
  /* 標題也用黑體。試過思源宋體，繁中在螢幕上（尤其細體）並不好看，
     拉丁字還行、漢字很糊。統一回黑體。 */
  --font-display: var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191b1e;
    --surface: #212429;
    --text: #e8e5e0;
    --muted: #a2a7ad;
    --line: #343940;

    --gen: #a8bccb;
    --gen-soft: #7f929f;
    --gen-faint: #63737e;
    --gen-tint: #232a30;

    --field: #dda179;
    --field-soft: #b58058;
    --field-tint: #2a221c;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;              /* 最後一道保險：任何區塊都不該撐出橫向捲動 */
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.1875rem;            /* 19px —— 繁中在這個級數才有閱讀感 */
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

/* 標題行高緊（Apple 與 Patagonia 都是 1.1）。黑體要夠粗才撐得住大字級。 */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--field); text-underline-offset: 0.22em; }
a:hover { text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--field);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--text); color: var(--bg);
  padding: 0.7rem 1.1rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; top: 0; }

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}

.act { padding-block: clamp(4rem, 12vw, 8rem); }

.eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  color: var(--gen);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.eyebrow a { color: inherit; }

.lede {
  font-size: clamp(1.3125rem, 4.5vw, 1.5rem);   /* 21 → 24px */
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 2.75rem;
  max-width: 32rem;
}

/* ---------- 閱讀進度 ---------- */

.progress {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  height: 2px; z-index: 50; pointer-events: none;
  background: transparent;
}
.progress span {
  display: block; height: 100%; width: 0%;
  background: var(--field);
  transition: width 0.1s linear;
}

/* ---------- 浮出的 CTA 條（第五幕之後才出現） ---------- */

.floatbar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 45;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-block-start: 1px solid var(--line);
  padding: 0.6rem var(--gutter);
  padding-block-end: calc(0.6rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 0.9rem;
  transform: translateY(110%);
  transition: transform 0.35s ease;
  backdrop-filter: blur(8px);
}
.floatbar.on { transform: none; }
.floatbar p { margin: 0; font-size: 0.9375rem; color: var(--muted); flex: 1; min-width: 0; }
.floatbar .cta { margin: 0; flex-shrink: 0; }
.floatbar a.top { font-size: 0.875rem; color: var(--muted); flex-shrink: 0; }

/* ============================================================
   第一幕：一百個答案
   ============================================================ */

.act-flood { padding-block-start: clamp(2rem, 8vw, 4rem); }

/* 文字雲的容器比內文欄寬，答案才散得開 */
.wrap-cloud {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}

/* 別佔滿整個首屏 —— 破題那兩句必須跟文字雲一起出現在第一畫面，
   否則讀者只看到一堆活動名稱，不知道這頁在幹嘛。 */
.flood {
  min-height: 44vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-block: 1.25rem;
}

/* 四散：flex-wrap 而不是絕對定位 —— 絕對定位在窄螢幕一定會疊字或破框，
   flex 讓它自己流，再用字級、深淺與上下微偏做出散落感。 */
.flood-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  /* 直向間距必須大於 2×nudge（±0.7rem），否則位移後上下兩排會疊在一起。
     translateY 不佔版面空間，所以只能靠 gap 讓出餘裕。 */
  gap: 1.85rem clamp(0.85rem, 3vw, 1.9rem);
  width: 100%;
}

/* 位置固定不動，只淡入 —— 用 display 會讓每個字冒出來時整片重排 */
.flood-list li {
  opacity: 0;
  line-height: 1.35;
  color: var(--gen-soft);
  transform: translateY(var(--nudge, 0));
  white-space: nowrap;
  max-width: 100%;
}
.flood-list li.in {
  animation: flood-in 0.5s ease both;
}
.flood-list li.seed { animation: none; opacity: 1; }
@keyframes flood-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 字級五級 */
.flood-list .s1 { font-size: 0.8125rem; }
.flood-list .s2 { font-size: 0.9375rem; }
.flood-list .s3 { font-size: 1.125rem; }
.flood-list .s4 { font-size: 1.4375rem; }
.flood-list .s5 { font-size: clamp(1.625rem, 5vw, 2.125rem); }

/* 深淺三階。d3 最淡，build.mjs 只把它配給 s5（大字），
   小字配淡色會讀不到。 */
.flood-list .d1 { color: var(--gen); }
.flood-list .d2 { color: var(--gen-soft); }
.flood-list .d3 { color: var(--gen-faint); }

/* 大字加粗，讓雲的層次不只靠大小 */
.flood-list .s4, .flood-list .s5 {
  font-weight: 500;
}

/* 資訊流跑完之前先藏起落點文案與主標，否則讀者會先讀到答案。
   只調 opacity、不動 display —— 空間始終保留，所以不會有 layout shift。
   .staged 是 JS 加的：沒有 JS 就維持全部可見。 */
.act-flood.staged .flood-stop,
.act-flood.staged .masthead { opacity: 0; }
.act-flood.staged.revealed .flood-stop { opacity: 1; transition: opacity 0.7s ease; }
.act-flood.staged.revealed .masthead { opacity: 1; transition: opacity 0.7s ease 0.35s; }

.flood-stop { padding-block-start: 2.5rem; }
.stop-line {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.5vw, 1.875rem);   /* 24 → 30px */
  line-height: 1.45;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.stop-line-2 { color: var(--field); }

.pivot {
  margin-block-start: 2.25rem;
  padding-inline-start: 1.2rem;
  border-inline-start: 3px solid var(--field);
  font-size: 1.25rem;
  line-height: 1.75;
}

.masthead { padding-block: clamp(3.5rem, 14vw, 7rem) 0; }
.masthead h1 {
  /* 13.5vw 的上限：主標是 6 個中文字，15vw 在 390px 寬的手機上會超出約 3px，
     害「來」單獨掉到第二行。CJK 不需要 letter-spacing，一併拿掉。 */
  font-size: clamp(2.75rem, 13.5vw, 7rem);     /* 44 → 112px */
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 0.6rem;
  text-wrap: balance;                          /* 真的要換行時也均分，不留孤字 */
}
.tagline {
  font-size: 1.125rem;
  color: var(--gen);
  letter-spacing: 0.06em;
}

/* ============================================================
   第二幕：概念情境
   ============================================================ */

.act-script { background: var(--gen-tint); }

.scenario {
  background: var(--surface);
  border-inline-start: 3px solid var(--gen-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  margin-block-end: 2.75rem;
}
.scenario-label {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--gen);
  margin-bottom: 1.3rem;
  font-weight: 500;
}
.scenario p:not(.scenario-label) { color: var(--text); }

.landing {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 5vw, 1.625rem);   /* 22 → 26px */
  line-height: 1.5;
  font-weight: 500;
  margin-block-end: 2.75rem;
}

.bridge { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.bridge li {
  padding-inline-start: 1.6rem;
  position: relative;
  color: var(--muted);
  font-size: 1.0625rem;
}
.bridge li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.85em;
  width: 0.7rem; height: 1px; background: var(--gen-soft);
}

/* ============================================================
   第三幕：真正的現場
   ============================================================ */

.seqs { display: grid; gap: clamp(3.5rem, 11vw, 6rem); }
.seq { display: grid; gap: 1.4rem; }

.photo { margin: 0; position: relative; }
.photo img { width: 100%; border-radius: var(--radius); }
.photo figcaption {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
  margin-block-start: 0.8rem;
}

/* 節奏高點：撐破內文欄寬（但不超過視窗），並且拉高 */
.photo-feature {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
}
.photo-feature img, .photo-feature .ph { border-radius: 0; }
.photo-feature img {
  min-height: 60vh;
  max-height: 88vh;
  object-fit: cover;
}
.photo-feature figcaption {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 文字壓圖（Patagonia）。一定帶暗色漸層，
   否則壓在未知照片上會讀不到——build.mjs 只在真的有圖時才輸出。 */
.photo-overlay {
  position: absolute;
  inset-inline: 0; inset-block-end: 0;
  padding: clamp(3rem, 12vw, 7rem) var(--gutter) clamp(1.75rem, 5vw, 3rem);
  background: linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.45) 45%, transparent);
  pointer-events: none;
}
.photo-overlay p {
  max-width: var(--content);
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 5vw, 2.125rem);
  line-height: 1.45;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.4);
}

.q {
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 4.5vw, 1.375rem);   /* 19 → 22px */
  line-height: 1.6;
  color: var(--text);
  margin-block: 0.6rem;
  padding-inline-start: 1.2rem;
  border-inline-start: 2px solid var(--field-soft);
}

/* 照片 placeholder —— 佔用正確比例的空間，補照片時不會跳版 */
.ph {
  border: 1px dashed var(--gen-soft);
  border-radius: var(--radius);
  background: var(--gen-tint);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(1rem, 4vw, 1.75rem);
  min-width: 0;
}
.ph-id { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--gen); }
.ph-need { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.ph-tag {
  font-size: 0.75rem; color: var(--gen);
  border: 1px solid var(--gen-soft); border-radius: 999px;
  padding: 0.1rem 0.65rem; align-self: flex-start;
}

/* ============================================================
   第四幕：三段錯落滿版帶
   ============================================================ */

.band { padding-block: clamp(3rem, 9vw, 5rem); }
.band-l { background: var(--field-tint); }
.band-r { background: var(--surface); }

.verb {
  font-size: clamp(3rem, 13vw, 5rem);           /* 48 → 80px */
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--field);
  margin-bottom: 1.1rem;
}
.verb-lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  line-height: 1.5;
  margin-bottom: 1.35rem;
  max-width: 28rem;
}
.verb-body { color: var(--muted); max-width: 30rem; font-size: 1.0625rem; }

/* 桌機時左右錯開，讀者要橫向掃過才讀完三個動詞 */
@media (min-width: 48rem) {
  .band-r .wrap > * { margin-inline-start: auto; text-align: end; }
  .band-r .verb-lead, .band-r .verb-body { margin-inline-start: auto; }
}

.quote {
  margin: 2.75rem 0 0;
  padding-inline-start: 1.3rem;
  border-inline-start: 3px solid var(--field-soft);
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 4.5vw, 1.375rem);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}
.quote cite { font-size: 0.9375rem; color: var(--muted); font-style: normal; }

.pending {
  margin-block-start: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

/* ============================================================
   第五幕：三個實驗現場
   ============================================================ */

.fields { display: grid; gap: clamp(3.5rem, 11vw, 5.5rem); }

.field {
  border-block-start: 1px solid var(--line);
  padding-block-start: 2.25rem;
  min-width: 0;
}
.field-head { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.5rem; }
.field-num {
  font-size: 0.875rem; letter-spacing: 0.1em; color: var(--gen);
  font-variant-numeric: tabular-nums;
}
.field-head h3 {
  font-size: clamp(1.75rem, 7vw, 2.75rem);      /* 28 → 44px */
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field-problem { margin-bottom: 1.9rem; }
.field-problem p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 0.55rem;
  padding-inline-start: 1.15rem;
  position: relative;
}
.field-problem p::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.85em;
  width: 0.55rem; height: 1px; background: var(--gen-soft);
}

.field-scene {
  margin-block-start: 1.6rem;
  padding: 1.2rem 1.35rem;
  background: var(--field-tint);
  border-radius: var(--radius);
  font-size: 1.1875rem;
  line-height: 1.8;
}
.field-how { margin-block-start: 1.35rem; }

.ai-note {
  margin-block-start: 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  background: var(--surface);
}
.ai-note h4 { font-size: 1.0625rem; margin-bottom: 0.85rem; color: var(--gen); }
.ai-note p { font-size: 1rem; line-height: 1.75; color: var(--muted); margin-bottom: 0.65rem; }
.ai-note p:last-child { margin-bottom: 0; }
.ai-note b { color: var(--text); font-weight: 500; }

.field-exit { margin-block-start: 1.9rem; }
.note { font-size: 0.875rem; color: var(--muted); margin-block-start: 0.75rem; }

/* ---------- CTA ---------- */

.cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--field);
  border-radius: var(--radius);
  color: var(--field);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.cta:hover { background: var(--field); color: var(--bg); }
.cta-primary { background: var(--field); color: var(--bg); }
.cta-primary:hover { background: transparent; color: var(--field); }

.cta-pending {
  border-style: dashed;
  border-color: var(--gen-soft);
  color: var(--muted);
  cursor: default;
}
.cta-pending:hover { background: transparent; color: var(--muted); }
.cta-pending small { display: block; font-size: 0.75rem; margin-block-start: 0.15rem; }

/* ============================================================
   第六幕：書
   ============================================================ */

.act-book { background: var(--surface); }
.book-wrap { display: grid; gap: 2rem; }
.book-cover .photo { max-width: 11rem; }
.book-cover img, .book-cover .ph { border-radius: 4px; }
.book-text h3 { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 0.4rem; }
.book-meta { font-size: 0.9375rem; color: var(--muted); margin-bottom: 1.35rem; }
.book-text .cta { margin-block-start: 1.2rem; }

@media (min-width: 40rem) {
  .book-wrap { grid-template-columns: 11rem minmax(0, 1fr); gap: 2.75rem; align-items: start; }
  .book-cover .photo { max-width: none; }
}

/* ============================================================
   關於作者
   ============================================================ */

.author-wrap { display: grid; gap: 1.75rem; }
/* 不做圓形頭像：那是形象網站的長相，而且他要放的是工作中的照片，
   裁成圓形會切掉一半情境。跟站上其他照片一致用圓角方框。 */
.author-photo .photo { max-width: 10rem; }
.author-text h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.author-title { font-size: 0.9375rem; color: var(--gen); letter-spacing: 0.06em; margin-bottom: 1.25rem; }
.author-text p { font-size: 1.0625rem; }
.author-link { margin-block-start: 1.25rem; font-size: 1rem; }

@media (min-width: 40rem) {
  .author-wrap { grid-template-columns: 10rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .author-photo .photo { max-width: none; }
}

/* ============================================================
   第七幕：三個入口
   ============================================================ */

.exits { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }

.exit a, .exit-pending {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
  min-width: 0;
}
.exit a:hover { border-color: var(--field); transform: translateX(3px); }
.exit-who { display: block; font-size: 0.9375rem; color: var(--muted); margin-bottom: 0.45rem; }
.exit-action {
  display: block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--field);
}

/* 主 CTA：份量最重，但仍是分流的一支，不是排名第一 */
.exit-primary a, .exit-primary .exit-pending {
  border-width: 2px;
  border-color: var(--field);
  padding-block: 1.9rem;
}
.exit-primary .exit-action { font-size: 1.625rem; }

.exit-pending { border-style: dashed; cursor: default; }
.exit-pending small { display: block; font-size: 0.75rem; color: var(--muted); margin-block-start: 0.55rem; }

/* ============================================================
   文章卡片
   ============================================================ */

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.card { min-width: 0; }
.card a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s;
}
.card a:hover { border-color: var(--field); }
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card-body { padding: 1.25rem 1.45rem; min-width: 0; }
.card-body h3 { font-size: 1.375rem; margin-bottom: 0.55rem; }
.card-sum { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-bottom: 0.8rem; }
.card-meta {
  font-size: 0.875rem; color: var(--muted); margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem;
}
.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 44rem) {
  .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
}

/* ============================================================
   文章頁
   ============================================================ */

.post { padding-block: clamp(3rem, 10vw, 5rem); }
.post h1 {
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}
.post-meta {
  font-size: 0.9375rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.95rem;
  margin-bottom: 0;
}
.post-meta .by { color: var(--text); font-weight: 500; }

/* 首圖等比例縮放，寬度上限＝內文欄寬 */
.post-hero {
  margin: 2.25rem auto;
  max-width: var(--content);
  padding-inline: var(--gutter);
}
.post-hero img { width: 100%; border-radius: var(--radius); }

.post-body { margin-block-start: 2.25rem; }
.post-body h2 { font-size: clamp(1.5rem, 6vw, 1.875rem); margin-block: 2.5rem 1rem; }
.post-body h3 { font-size: 1.375rem; margin-block: 2rem 0.75rem; }
.post-body ul, .post-body ol { padding-inline-start: 1.35rem; margin-bottom: 1.15em; }
.post-body li { margin-bottom: 0.45rem; }
.post-body img { border-radius: var(--radius); margin-block: 1.75rem; }
.post-body blockquote {
  margin: 2rem 0; padding-inline-start: 1.3rem;
  border-inline-start: 3px solid var(--field-soft); color: var(--muted);
  font-family: var(--font-display);
}
.post-body pre {
  overflow-x: auto; background: var(--gen-tint);
  padding: 1rem; border-radius: var(--radius); font-size: 0.9375rem;
}
.post-body code { font-size: 0.9em; }
.post-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 0.55rem 0.8rem; text-align: start; }

.back { margin-block-start: 2.75rem; font-size: 1rem; }

/* ============================================================
   頁尾
   ============================================================ */

.site-footer {
  border-block-start: 1px solid var(--line);
  padding-block: clamp(3rem, 9vw, 4.5rem);
  padding-block-end: 6rem;      /* 讓開浮出的 CTA 條 */
  background: var(--surface);
}
.foot-closing {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 5vw, 1.75rem);
  line-height: 1.5;
  max-width: 24rem;
  margin-bottom: 2rem;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-bottom: 1.6rem; font-size: 1rem; }
.foot-meta { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.35rem; }
.credit { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem; }

/* ============================================================
   減少動態：直接顯示終態，不做任何過場
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .flood-list li { animation: none; opacity: 1; }
  .flood { min-height: 0; }
  .act-flood.staged .flood-stop,
  .act-flood.staged .masthead { opacity: 1; }
  .floatbar { transform: none; }
}
