/* ==========================================================================
   陳醫師的閱讀筆記 — 樣式表
   排版原則：手機優先、任何情況都不允許水平破框。
   ========================================================================== */

:root {
  /* 內文區寬度。HERO 圖的寬度上限就是綁這個值，確保圖不會比文字區寬。
     52rem ≈ 一行 40 出頭個中文字，是中文長文讀起來最順的區間上緣。 */
  --content: 52rem;
  --wide: 76rem;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);

  --radius: 14px;

  /* ---- 兩套顏色的「原料」。要調色只改這裡，下面切換的地方不用動。 ---- */
  --l-bg: #e9f1f6;
  --l-surface: #f4f9fc;
  --l-text: #233039;
  --l-muted: #556b7d;
  --l-accent: #336f8c;
  --l-accent-soft: #dbe8f1;
  --l-border: #d2e0ea;
  --l-danger: #b05242;
  /* 背景微光。刻意做得很淡：要的是水面那種安靜，不是打光。 */
  --l-glow: radial-gradient(72rem 44rem at 12% -12%, rgba(120, 170, 205, 0.16), transparent 62%),
    radial-gradient(54rem 36rem at 90% 0%, rgba(150, 195, 215, 0.12), transparent 58%),
    radial-gradient(64rem 48rem at 50% 110%, rgba(120, 160, 195, 0.1), transparent 62%);

  --d-bg: #121a21;
  --d-surface: #1a242d;
  --d-text: #e1eaf1;
  --d-muted: #92a4b2;
  --d-accent: #7cb4d1;
  --d-accent-soft: #1d2f3a;
  --d-border: #2a3a46;
  --d-danger: #ef9077;
  --d-glow: radial-gradient(72rem 44rem at 12% -12%, rgba(90, 145, 185, 0.13), transparent 62%),
    radial-gradient(54rem 36rem at 90% 0%, rgba(70, 130, 165, 0.1), transparent 58%),
    radial-gradient(64rem 48rem at 50% 110%, rgba(80, 125, 165, 0.1), transparent 62%);

  /* ---- 實際在用的顏色。預設淺色。 ---- */
  color-scheme: light;
  --bg: var(--l-bg);
  --surface: var(--l-surface);
  --text: var(--l-text);
  --muted: var(--l-muted);
  --accent: var(--l-accent);
  --accent-soft: var(--l-accent-soft);
  --border: var(--l-border);
  --danger: var(--l-danger);
  --glow: var(--l-glow);

  --font-sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-serif: Georgia, "Songti TC", "Noto Serif TC", "Source Han Serif TC", serif;
}

/* 切成深色的兩個入口：
   (1) 讀者按了右上角的按鈕，選擇被記在 data-theme="dark"
   (2) 讀者沒按過（沒有 data-theme），而作業系統本身是深色
   沒按過時跟著系統走；按過之後就以讀者的選擇為準，包含「系統深色但我要淺色」。 */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--d-bg);
  --surface: var(--d-surface);
  --text: var(--d-text);
  --muted: var(--d-muted);
  --accent: var(--d-accent);
  --accent-soft: var(--d-accent-soft);
  --border: var(--d-border);
  --danger: var(--d-danger);
  --glow: var(--d-glow);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: var(--d-bg);
    --surface: var(--d-surface);
    --text: var(--d-text);
    --muted: var(--d-muted);
    --accent: var(--d-accent);
    --accent-soft: var(--d-accent-soft);
    --border: var(--d-border);
    --danger: var(--d-danger);
    --glow: var(--d-glow);
  }
}

/* --- 全域重置：破框防線 ------------------------------------------------ */

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

html {
  /* 防 iOS 橫置時字體被自動放大而撐破版面 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 最後一道保險：即使有元素算錯寬度，也不會出現整頁水平捲軸 */
  overflow-x: hidden;
  background: var(--bg);
  scroll-behavior: smooth;
  /* 錨點捲到定位時，避開上方吸頂的頁首 */
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.85;
  /* 中文長句、英文長單字、長網址一律允許斷行，不撐破容器 */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 暖光層。用 position:fixed 的偽元素而不是 background-attachment:fixed，
   iOS Safari 對後者的捲動表現很差。inset:0 不會產生捲軸。 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--glow);
}

/* 任何內嵌媒體都不得超出容器，且一律等比例縮放 */
img,
svg,
video,
iframe,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}

/* 鍵盤操作時看得見自己在哪裡；滑鼠點擊不會觸發，不會干擾一般瀏覽 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- 版面容器 ---------------------------------------------------------- */

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* --- 頁首 -------------------------------------------------------------- */

.site-header {
  /* 吸頂：長文讀到一半也能一鍵回首頁 */
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  /* 半透明讓底下的暖光透出來；不支援 color-mix 的瀏覽器落在上一行的實色 */
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  max-width: var(--wide);
  display: flex;
  align-items: center;
  min-height: 3.75rem;
  padding-block: 0.6rem;
}
.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  color: inherit;
  text-decoration: none;
}
.brand-zh {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-en {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 深淺色切換鈕。靠 margin 自動把自己推到頁首最右邊，
   所以中間不需要多包一層 flex 容器。 */
.theme-toggle {
  margin-inline-start: auto;
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: rotate(-12deg);
}
.theme-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
}
/* 兩個圖示都印在 HTML 裡，靠 CSS 決定誰現身：
   淺色時顯示月亮（點了會變暗），深色時顯示太陽（點了會變亮）。
   這樣即使 JS 還沒載入，圖示也已經是對的。 */
.theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme]) .theme-toggle .icon-moon {
    display: none;
  }
}

/* --- HERO 區 ------------------------------------------------------------
   刻意「不」做滿版出血：圖放在內容容器裡，寬度上限 = --content，
   height:auto 保持原比例。→ 等比例縮放且不超過內文區寬度。            */

.hero {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  /* 底色像裱畫的紙：立軸型的畫置中後，兩側留白看起來就是裝裱 */
  background: var(--accent-soft);
  display: flex;
  justify-content: center;
}
.hero img {
  width: 100%;
  height: auto; /* 等比例，永不變形 */
  /* 直式的畫（例如浮世繪立幅）不讓它佔掉整個首屏；
     object-fit:contain 只會留白，不會裁切也不會壓扁。 */
  max-height: 36rem;
  object-fit: contain;
}

/* --- 首頁開場 ---------------------------------------------------------- */

.intro {
  padding-block: clamp(2.25rem, 7vw, 4rem) 0.5rem;
  text-align: center;
}
.site-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem);
  line-height: 1.25;
  margin: 0 0 0.6rem;
  letter-spacing: 0.04em;
}
.site-tagline {
  margin: 0 0 clamp(1.75rem, 5vw, 2.5rem);
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
/* 標題與圖之間的一道短線，收住開場 */
.site-tagline::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 1.25rem auto 0;
  background: var(--accent);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: clamp(2rem, 6vw, 3rem) 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.section-title .count {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

/* --- 首頁「關於」與核心價值 -------------------------------------------- */

.bio {
  margin: 0 0 1.35rem;
}
/* 開場第一句放大一級，當作整段自述的引子 */
.bio-open {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.4rem);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
/* 收尾那句是對讀者說的，縮排並留白，讓它自己站著 */
.bio-close {
  margin: 1.9rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--accent);
}

.values-heading {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: clamp(2.25rem, 7vw, 3.25rem) 0 0;
}

/* 刻意「不」做成三張並排的卡片：改成由上而下、一件一件讀過去的信條，
   讓節奏慢下來。每一則左側一道暖色細線，把三則串成一條時間軸。 */
.credo {
  list-style: none;
  margin: 0;
  padding: 0;
}
.credo-item {
  position: relative;
  min-width: 0;
  padding: clamp(1.5rem, 5vw, 2rem) 0 0 clamp(1.1rem, 4.5vw, 1.6rem);
  border-left: 2px solid var(--border);
}
.credo-item:first-child {
  padding-top: 1.25rem;
}
/* 左側線在第一則上緣與最後一則下緣淡出，不要像個生硬的框 */
.credo-item:first-child::after,
.credo-item:last-child::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 2px;
  height: 1.25rem;
  background: linear-gradient(var(--bg), transparent);
}
.credo-item:first-child::after {
  top: 0;
}
.credo-item:last-child::after {
  bottom: 0;
  background: linear-gradient(transparent, var(--bg));
  height: 2.5rem;
}
/* 圓點：三則的共同節拍 */
.credo-item::before {
  content: "";
  position: absolute;
  left: -0.3125rem;
  top: clamp(1.9rem, 5.6vw, 2.4rem);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  z-index: 1;
}
.credo-item:first-child::before {
  top: 1.65rem;
}

.credo-no {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 0.3rem;
}
.credo-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.55rem);
  line-height: 1.4;
  margin: 0 0 0.55rem;
  letter-spacing: 0.02em;
}
.credo-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.2rem);
  line-height: 1.75;
  margin: 0 0 0.7rem;
  color: var(--accent);
}
.credo-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--muted);
}

.credo-coda {
  margin: clamp(1.75rem, 5vw, 2.25rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}

/* --- 文章卡片 ---------------------------------------------------------- */

.cards {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  /* min(100%, 20rem) 是窄螢幕不破框的關鍵：
     欄位永遠不會比容器本身還寬。 */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.card {
  min-width: 0; /* grid 子項預設 min-width:auto，長內容會撐破格線 */
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 4vw, 1.5rem);
  display: flex;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
/* 整張卡片浮起來，明確告訴讀者「這裡可以點」 */
.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px -18px rgba(30, 60, 85, 0.5);
}
.card > article {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}
.card-title a {
  color: inherit;
  text-decoration: none;
}
.card-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.card-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap; /* 窄螢幕自動換行，不會被擠爆 */
  align-items: center;
  gap: 0.15rem 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}
.sep {
  opacity: 0.45;
}

.card-summary {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  flex: 1;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
}
.tags li {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: auto 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}
.card-foot .more {
  color: var(--accent);
}
.views-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* --- 文章頁 ------------------------------------------------------------ */

.post {
  padding-block: clamp(1.5rem, 5vw, 2.5rem) 1rem;
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
}
.eyebrow a {
  text-decoration: none;
  color: var(--muted);
}
.eyebrow a:hover {
  color: var(--accent);
}

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.05rem + 2.2vw, 2.2rem);
  line-height: 1.45;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}
.post-meta {
  margin-bottom: 1rem;
}
.byline {
  color: var(--text);
  font-weight: 600;
}

.book-ref {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}

/* --- 內文排版 ---------------------------------------------------------- */

/* 內文比介面其他地方再大一點 —— 這裡是要「讀完」的，不是掃過的 */
.prose {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 2.5rem 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 2rem 0 0.6rem;
}
.prose p {
  margin: 0 0 1.35rem;
}
.prose ul,
.prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.4rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose li::marker {
  color: var(--accent);
}
.prose strong {
  font-weight: 700;
  color: var(--text);
}
.prose blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: normal;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.prose code {
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}
.prose pre {
  overflow-x: auto; /* 程式碼太長就自己捲，不撐破頁面 */
  -webkit-overflow-scrolling: touch;
  background: var(--accent-soft);
  padding: 1rem;
  border-radius: var(--radius);
  margin: 0 0 1.35rem;
}
.prose pre code {
  background: none;
  padding: 0;
  white-space: pre;
}

/* 表格在窄螢幕包一層水平捲動容器 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.35rem;
}
.table-scroll table {
  border-collapse: collapse;
  min-width: 100%;
}
.table-scroll th,
.table-scroll td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.9rem;
}
.table-scroll th {
  background: var(--accent-soft);
}

.post-end {
  margin: 3rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
.post-end a {
  text-decoration: none;
  color: var(--muted);
}
.post-end a:hover {
  color: var(--accent);
}

/* --- 留言區 ------------------------------------------------------------ */

.comments {
  padding-block: 0 1rem;
}
.comments-note {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment {
  min-width: 0;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(0.9rem, 3.5vw, 1.2rem);
  margin-bottom: 0.85rem;
}
.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.comment-name {
  font-weight: 700;
  color: var(--text);
}
.comment-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  /* 保留留言者自己打的換行，但長句仍會自動折行 */
  white-space: pre-wrap;
}

.comment-empty {
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.comment-form {
  margin-top: 1.5rem;
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 1rem; /* 小於 16px 時 iOS 會在聚焦時自動放大整頁 */
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
}
.field textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.8;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

/* 蜜罐：人看不到也 tab 不到，只有機器人會填 */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.comment-actions button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
}
.comment-actions button:hover {
  filter: brightness(1.08);
}
.comment-actions button:disabled {
  opacity: 0.55;
  cursor: default;
}
.comment-status {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.comment-status.is-error {
  color: var(--danger);
}

/* --- 頁尾（含 CC BY 圖片出處） ----------------------------------------- */

.site-footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--border);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  padding-block: 2rem 2.5rem;
}
.site-footer .wrap {
  max-width: var(--wide);
}

.credits h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.credits ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.credits li {
  font-size: 0.8125rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.colophon {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.colophon.subtle {
  margin-top: 0.35rem;
  opacity: 0.8;
}

/* --- 偏好設定 ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
