/* ═══════════════════════════════════════════════════════════════════════════
   波希米亞誌 — Bohemia Taiwan
   Native HTML/CSS. White ground, single typeface (Noto Serif TC),
   hierarchy carried by weight, size and letter-spacing.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* — ground — */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #201f1d;
  --color-divider: rgba(32, 31, 29, 0.16);
  --color-hairline: rgba(32, 31, 29, 0.10);

  /* — accent: aged brass — */
  --color-accent: #b68235;
  --color-accent-600: #a06f24;
  --color-accent-700: #7d5411;

  /* — ink at reduced strength (opaque, so it never picks up the photo) — */
  --ink-80: rgba(32, 31, 29, 0.80);
  --ink-70: rgba(32, 31, 29, 0.70);
  --ink-62: rgba(32, 31, 29, 0.62);
  --ink-55: rgba(32, 31, 29, 0.55);

  /* — type — */
  --font: "Noto Serif TC", "Songti TC", "PingFang TC", Georgia, serif;

  /* — type scale —
     Four tiers, each a clear step in BOTH size and weight, so a page reads
     display → headline → subhead → body instead of one even grey:
       h1  display    700   48–88px
       h2  headline   600   32–44px   (running heads in long docs: 24px)
       h3  subhead    600   21–28px
       p   body       400   16px, softened to ink-80; lede 18px in full ink
     Eyebrows stay tiny, tracked and brass — they mark a section, they never
     compete with its heading. */
  --fs-h1:         clamp(48px, 7vw, 88px);
  --fs-h1-compact: clamp(36px, 5vw, 60px);
  --fs-h2-display: clamp(32px, 3.6vw, 44px);
  --fs-h2:         24px;
  --fs-h3-lg:      28px;
  --fs-h3:         21px;
  --fs-h4:         18px;
  --fs-lede:       18px;
  --fs-body:       16px;

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-display: 1.08;
  --lh-heading: 1.3;
  --lh-body:    2;

  /* — measure — */
  --shell: 1440px;
  --gutter: clamp(20px, 5vw, 64px);

  --radius-sm: 3px;
  --radius-md: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Element defaults carry the ladder; component classes only re-size. */
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--color-text); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold);     line-height: var(--lh-display); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-semibold); line-height: var(--lh-heading); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: var(--lh-heading); }
h4, h5, h6 { font-size: var(--fs-h4); font-weight: var(--fw-medium); line-height: var(--lh-heading); }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: rgba(182, 130, 53, 0.28); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 100; padding: 10px 18px; font-size: 14px;
  background: #fff; color: var(--color-text);
  border: 1px solid var(--color-accent); border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ── page backdrop: image on the sides, content panel on top ─────────── */
body {
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    url("../images/hero-pampas.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── layout primitives ────────────────────────────────────────────────── */
.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 56px 64px; scroll-margin-top: 84px; }
.section--quote { padding-block: 20px 72px; }

.rule { height: 1px; margin: 0; border: 0; background: var(--color-divider); }

.rule-double {
  height: 4px;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--color-bg);
}

/* The photograph sits under a white wash: the page stays white-grounded,
   the pampas texture reads as tone rather than as a picture. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../images/hero-pampas.avif");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.90) 0%,
      rgba(255, 255, 255, 0.74) 34%,
      rgba(255, 255, 255, 0.80) 66%,
      rgba(255, 255, 255, 0.97) 100%
    );
}

.hero__inner { position: relative; }

/* — 主視覺文字 — */
.hero__head {
  text-align: center;
  padding-block: clamp(64px, 12vw, 132px) clamp(56px, 10vw, 116px);
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  text-indent: 0.34em;
}

.hero__title {
  margin: 18px 0 22px;
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-display);
  letter-spacing: 0.12em;
  text-indent: 0.12em;
}

.hero__tagline {
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--ink-70);
}

/* — 內頁的短版主視覺 — */
.hero--compact .hero__head { padding-block: clamp(44px, 7vw, 76px) clamp(38px, 6vw, 64px); }
.hero--compact .hero__title { font-size: var(--fs-h1-compact); margin: 16px 0 18px; }
.hero--compact .hero__media { background-position: center 46%; }

/* ═══════════════ 導覽 ═══════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--color-divider);
}

.nav__row {
  display: flex;
  align-items: center;
  gap: 10px 20px;
  padding-block: 14px;
}

.nav__links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 30px;
}

.nav a {
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.08em;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--color-accent-600); }

.nav a[aria-current="page"] {
  color: var(--color-accent-700);
  box-shadow: inset 0 -1px 0 var(--color-accent);
}

/* Brand lockup: emblem beside the Chinese name, on the same row as the links. */
.nav .nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text);
  text-decoration: none;
}
.nav .nav__brand:hover { color: var(--color-accent-600); }
.nav__emblem { height: 36px; width: auto; }

/* — 導覽融入主視覺 —
   JS 掛上 .nav--float 後改成固定定位、透明底，主視覺一路鋪到頁面最頂；
   一捲動（或打開手機選單）就鋪回原本的白底毛玻璃。
   --nav-h 由 JS 量測，沒 JS 時導覽維持 sticky 白底，版面不變。 */
.nav--float {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav--float.is-scrolled,
.nav--float.is-open {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom-color: var(--color-divider);
}

.nav--float + .hero { padding-top: var(--nav-h, 65px); }

/* — 手機版：漢堡選單 —
   只有 JS 掛上 .nav--js 之後才收合；關掉 JS 時連結照舊全部攤開，沒有任何一頁走不到。 */
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav--js .nav__row { padding-block: 10px; }

  .nav--js .nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-text);
    text-decoration: none;
  }
  .nav__emblem { height: 28px; width: auto; }
  .nav--js .nav__brand:hover { color: var(--color-accent-600); }

  .nav--js .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0 9px;
    background: transparent;
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
    cursor: pointer;
  }
  .nav__toggle-bar {
    display: block;
    height: 1.5px;
    background: var(--color-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav--js.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav--js.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav--js.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* The link panel floats under the bar instead of pushing the page down. */
  .nav--js .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 10px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-divider);
    box-shadow: 0 18px 28px -20px rgba(32, 31, 29, 0.35);
  }
  .nav--js.is-open .nav__links { display: flex; }
  .nav--js .nav__links a {
    padding: 11px 2px;
    font-size: 15px;
    border-top: 1px solid var(--color-hairline);
  }
  .nav--js .nav__links a:first-child { border-top: 0; }
  .nav--js .nav__links a[aria-current="page"] { box-shadow: none; }
}

/* ═══════════════ 版面：側欄 + 內文 ═══════════════ */
.layout {
  background: var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-hairline), 0 18px 48px rgba(32, 31, 29, 0.08);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0 clamp(30px, 4vw, 54px);
  /* No align-items here on purpose: the aside must stretch to the full row
     height, otherwise it shrinks to its content and the sticky inner has no
     distance to travel. */
}

.layout__main { min-width: 0; container-type: inline-size; }

/* ═══════════════ 側邊目錄 ═══════════════ */
.sidenav { padding-block: 58px 40px; }

/* The aside holds the grid row; the inner block is what actually travels. */
.sidenav__inner {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidenav__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}

.sidenav__nav { display: grid; margin-top: 12px; }

.sidenav__nav a {
  padding: 6px 0 6px 14px;
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  text-decoration: none;
  border-left: 1px solid var(--color-divider);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.sidenav__nav a:hover { color: var(--color-accent-700); border-left-color: var(--color-accent); }

.sidenav__nav a[aria-current="page"] {
  color: var(--color-accent-700);
  border-left-color: var(--color-accent);
  border-left-width: 2px;
  padding-left: 13px;
}

.sidenav__nav--cat {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sidenav__nav--cat a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 9px;
  font-size: 12.5px;
  letter-spacing: 0;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
}
.sidenav__nav--cat a:hover {
  border-color: var(--color-accent);
  background: rgba(182, 130, 53, 0.06);
}
.sidenav__count {
  font-size: 11px;
  color: var(--ink-55);
  font-variant-numeric: tabular-nums;
}

.picks { display: grid; gap: 2px; margin-top: 12px; }

.pick {
  display: block;
  padding: 8px 0 8px 14px;
  text-decoration: none;
  border-left: 1px solid var(--color-divider);
  transition: border-color 0.18s ease;
}
.pick:hover { border-left-color: var(--color-accent); }

.pick__cat {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}
.pick__title {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-80);
  transition: color 0.18s ease;
}
.pick:hover .pick__title { color: var(--color-accent-700); }

.sidenav__rule {
  height: 1px;
  margin: 18px 0 15px;
  border: 0;
  background: var(--color-divider);
}

/* Single column: categories become a scrollable chip strip above the text.
   Picks and site links drop out — the columns section and footer carry them,
   and neither should push the actual article down the page. */
@media (max-width: 900px) {
  .layout { display: block; }

  .sidenav {
    padding-block: 20px 18px;
    border-bottom: 1px solid var(--color-divider);
  }
  .sidenav__inner { position: static; max-height: none; overflow: visible; }
  .sidenav__group--pick { display: none; }

  .sidenav__nav--cat {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .sidenav__nav--cat::-webkit-scrollbar { display: none; }
  .sidenav__nav--cat a { flex: none; }
}

/* ═══════════════ 圖版 ═══════════════ */
.plate {
  border: 6px solid #fff;
  outline: 1px solid var(--color-divider);
  filter: sepia(0.22) saturate(0.82) contrast(1.05);
  background: #fff;
}

.plate img { width: 100%; height: 100%; object-fit: cover; }

.plate--45 { aspect-ratio: 4 / 5; }
.plate--11 { aspect-ratio: 1 / 1; }

figcaption {
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-55);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════ 共用文字 ═══════════════ */
.label {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}
.label__en { letter-spacing: 0.18em; }

.prose {
  margin-top: 16px;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  text-align: justify;
  color: var(--ink-80);
}
.prose--narrow { max-width: 38em; }

/* First paragraph under a headline: one size up, full ink, a touch more
   air — the step between the heading and the running text. */
.prose--lede {
  margin-top: 20px;
  font-size: var(--fs-lede);
  line-height: 1.9;
  color: var(--color-text);
}

.byline {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-55);
}

/* ═══════════════ 元件：tag / btn / input ═══════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
}
.tag--outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 17px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn--primary:hover { background: rgba(182, 130, 53, 0.12); color: var(--color-accent); }
.btn--primary:active { background: rgba(182, 130, 53, 0.22); }

.btn--ghost { color: var(--color-accent); padding-inline: 6px; }
.btn--ghost:hover { background: rgba(182, 130, 53, 0.10); }

.input {
  width: 100%;
  min-height: 38px;
  padding: 6px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease;
}
.input::placeholder { color: var(--ink-55); }
.input:hover { border-color: rgba(32, 31, 29, 0.45); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

/* ═══════════════ 本期特輯 ═══════════════ */
.feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: 36px clamp(28px, 4vw, 52px);
  align-items: start;
}

.feature__vertical {
  flex: none;
  padding-top: 4px;
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--color-accent-700);
}

.feature__body { min-width: 0; }

.feature__meta { display: flex; align-items: center; gap: 14px; }

.feature__date {
  font-size: 12.5px;
  color: var(--ink-55);
  font-variant-numeric: tabular-nums;
}

.feature__title {
  margin-top: 22px;
  font-size: var(--fs-h2-display);
  font-weight: var(--fw-semibold);
  line-height: 1.32;
  letter-spacing: 0.02em;
}

.feature__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.feature__figure { min-width: 0; }

/* ═══════════════ 近期刊載 ═══════════════ */
.posts { display: grid; margin-top: 20px; }

.post {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 0 22px;
  align-items: start;
  padding: 20px 2px;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
}
.posts li:first-child .post { border-top: 1px solid var(--color-divider); }

.post__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #f2f0ee;
}
.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.2) saturate(0.85) contrast(1.02);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.post:hover .post__media img { transform: scale(1.04); filter: sepia(0.1) saturate(0.95); }

.post__body { min-width: 0; }

.post__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.post__num { color: var(--color-accent); }
.post__cat { color: var(--ink-55); }
.post__date { margin-left: auto; color: var(--ink-55); }

.post__title {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}
.post:hover .post__title { color: var(--color-accent-700); }

.post__excerpt {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-70);
}

@container (max-width: 520px) {
  .post { grid-template-columns: 104px minmax(0, 1fr); gap: 0 16px; }
  .post__title { font-size: 17px; margin-top: 6px; }
  .post__excerpt { display: none; }
}

/* ═══════════════ 常設專欄 ═══════════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 20px 20px;
  overflow: hidden;
  color: var(--color-text);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}
.card:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  background: rgba(182, 130, 53, 0.05);
  transform: translateY(-2px);
}

/* Full-bleed thumbnail; the same sepia damping as .plate so the six
   photographs read as one set rather than six stock images. */
.card__media {
  display: block;
  margin: 0 -20px 12px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f2f0ee;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.2) saturate(0.85) contrast(1.02);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.card:hover .card__media img { transform: scale(1.035); filter: sepia(0.1) saturate(0.95) contrast(1.03); }

.card__kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.card__title { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: 1.25; }

.card__body { flex: 1; font-size: 14px; line-height: 1.9; color: var(--ink-70); }

.card__meta { font-size: 11px; color: var(--ink-55); font-variant-numeric: tabular-nums; }

/* ═══════════════ 引言 ═══════════════ */
.quote blockquote {
  max-width: 30em;
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-indent: -0.5em;
}

.quote figcaption { margin-top: 18px; font-size: 14px; letter-spacing: 0; color: var(--ink-62); }

/* ═══════════════ 關於本誌 ═══════════════ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 36px clamp(28px, 4vw, 52px);
  align-items: start;
}

.about__figure { min-width: 0; }

.about__body { min-width: 0; }

.about__title {
  margin-top: 14px;
  font-size: var(--fs-h3-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
}

.about__actions { margin-top: 22px; }

/* ═══════════════ 頁尾 ═══════════════ */
.footer {
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
}

/* 跟主視覺同一張芒草、同一套白紗，上下顛倒鋪：靠內文那側最白，
   往頁尾底邊才慢慢透出來，讓整頁以同一張圖開場、收尾。 */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.80) 34%,
      rgba(255, 255, 255, 0.74) 66%,
      rgba(255, 255, 255, 0.90) 100%
    ),
    url("../images/hero-pampas.avif");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 36px 52px;
}

.footer__brand { flex: 1 1 320px; max-width: 36em; }

/* Brand lockup, same idea as the masthead: emblem beside the name. */
.footer__lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text);
  text-decoration: none;
}
.footer__lockup:hover .footer__name { color: var(--color-accent-600); }
.footer__emblem { height: 52px; width: auto; }
.footer__lockup-text > span { display: block; }

.footer__name { font-size: 19px; font-weight: 600; letter-spacing: 0.1em; transition: color 0.18s ease; }

.footer__en {
  margin-top: 5px;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.footer__desc {
  max-width: 30em;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-70);
}

.footer__copy {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-55);
  font-variant-numeric: tabular-nums;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: flex-start;
  padding-top: 4px;
  font-size: 13.5px;
}

.footer__links a {
  color: var(--ink-70);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer__links a:hover { color: var(--color-accent-600); }

/* ═══════════════ 編輯原則（About） ═══════════════ */
.principles {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  counter-reset: none;
}

.principle {
  display: flex;
  gap: clamp(16px, 3vw, 30px);
  align-items: flex-start;
  padding: 24px 2px;
  border-bottom: 1px solid var(--color-divider);
}
.principle:first-child { border-top: 1px solid var(--color-divider); }

.principle__num {
  flex: none;
  width: 2em;
  padding-top: 2px;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--color-accent-700);
}

.principle__title { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: 1.4; letter-spacing: 0.02em; }

.principle__body {
  margin-top: 10px;
  font-size: var(--fs-body);
  line-height: 1.95;
  color: var(--ink-80);
}

/* ═══════════════ 編輯室名單 ═══════════════ */
.staff { margin-top: 24px; }

.staff__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(20px, 4vw, 44px);
  padding: 20px 2px;
  border-bottom: 1px solid var(--color-divider);
}
.staff__row:first-child { border-top: 1px solid var(--color-divider); }

.staff__role {
  flex: none;
  width: 6em;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-accent-700);
  padding-top: 3px;
}

.staff__person { flex: 1 1 260px; min-width: 0; margin: 0; }

.staff__name { display: block; font-size: 17.5px; font-weight: 600; letter-spacing: 0.02em; }

.staff__note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-70);
}

/* Rows with no name line (About masthead): the note is the first line, align it with the role. */
.staff__person > .staff__note:first-child { margin-top: 3px; }

/* ═══════════════ 聯絡信箱 ═══════════════ */
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-top: 26px;
}

/* Four channels read better as a 2×2 block than as 3 + 1. */
@container (min-width: 620px) {
  .channels { grid-template-columns: repeat(2, 1fr); }
}

.channel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 20px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.channel:hover { border-color: var(--color-accent); background: rgba(182, 130, 53, 0.05); }

.channel__title { font-size: var(--fs-h3); font-weight: var(--fw-semibold); letter-spacing: 0.03em; }

.channel__mail {
  font-size: 14px;
  letter-spacing: 0.02em;
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px solid rgba(182, 130, 53, 0.4);
  align-self: flex-start;
}
.channel__mail:hover { border-bottom-color: currentColor; }

.channel__body { font-size: 14px; line-height: 1.9; color: var(--ink-70); }

/* ═══════════════ 條款／政策長文 ═══════════════ */
.doc { max-width: 42em; }

.doc__h {
  margin-top: 52px;
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.doc__h:first-child { margin-top: 0; }
.doc__h { scroll-margin-top: 84px; }

.doc p {
  margin-top: 14px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-80);
}
/* Tighter under its own heading than between paragraphs. */
.doc__h + p, .doc__h + .doc__list { margin-top: 10px; }

.doc__list { margin-top: 14px; display: grid; gap: 10px; }

.doc__list li {
  position: relative;
  padding-left: 1.35em;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-80);
}
.doc__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.92em;
  width: 5px;
  height: 5px;
  border: 1px solid var(--color-accent);
  transform: rotate(45deg);
}

.doc__term { font-weight: 600; color: var(--color-text); }

.doc__related {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--color-divider);
}
.doc__related a { text-decoration: none; letter-spacing: 0.04em; }

/* ═══════════════ 進場動畫 ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ═══════════════ 響應式 ═══════════════ */
@container (max-width: 660px) {
  .feature__grid { grid-template-columns: minmax(0, 1fr); }
  .feature__figure { order: -1; max-width: 460px; }
}

@container (max-width: 560px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__figure { max-width: 320px; }
}

@media (max-width: 640px) {
  .section { padding-block: 44px 48px; }
  .hero__head { padding-block: 56px 48px; }
  .nav__row { gap: 8px 12px; }
  .nav__links { gap: 8px 18px; }
  .nav a { font-size: 14px; }

  .prose { text-align: left; }

  .principle { gap: 14px; padding: 20px 2px; }
  .principle__num { width: 1.6em; font-size: 14px; }
  .principle__title { font-size: 19px; }
  .about__title { font-size: 24px; }
  .prose--lede { font-size: 17px; }

  .staff__role { width: auto; flex: 1 1 100%; padding-top: 0; }
  .doc__h { margin-top: 40px; font-size: 21px; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════ 列印 ═══════════════ */
@media print {
  .nav__links, .nav__toggle, .sidenav, .skip-link { display: none; }
  .nav { position: static; }
  .hero__media { display: none; }
  body { font-size: 11pt; }
  /* Sections below the fold never got their reveal — force them visible. */
  .reveal { opacity: 1 !important; transform: none !important; }
}
