:root {
  --paper: #f7f6f2;
  --paper-raised: #fcfbf8;
  --paper-muted: #efeee9;
  --ink: #17232c;
  --ink-soft: #39454c;
  --muted: #5d666b;
  --line: #d3d2cb;
  --line-strong: #9ba3a5;
  --accent: #506b7b;
  --accent-deep: #334c5b;
  --focus: #1e5878;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 42rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 76rem;
  --header-h: 6rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.012em;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #cad6dc;
  color: var(--ink);
}

a {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
  text-decoration-thickness: 0.12em;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 1px;
}

main:focus {
  outline: none;
}

img,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.32;
}

h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  line-height: 1.45;
}

p,
li {
  overflow-wrap: anywhere;
}

p {
  margin-bottom: 1.15rem;
}

ul,
ol {
  margin-bottom: 1.5rem;
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.55rem;
}

hr {
  width: 100%;
  margin: clamp(3.5rem, 8vw, 6rem) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

blockquote {
  margin: 0;
  padding: 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--paper-raised);
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.preview-bar {
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.45rem var(--gutter);
  background: var(--accent-deep);
  color: #f8f8f5;
  font-size: 0.77rem;
  letter-spacing: 0.055em;
  text-align: center;
}

.preview-bar span {
  padding-right: 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.38);
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* preview-bar.js 在首次繪製前就掛上這個 class，避免換頁時提示條閃一下才消失。 */
.preview-bar-closed .preview-bar {
  display: none;
}

.preview-bar-close {
  min-width: 24px;
  min-height: 24px;
  padding: 0.15rem 0.55rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.preview-bar-close:hover {
  border-color: #f8f8f5;
}

.preview-bar-close:focus-visible {
  outline: 2px solid #f8f8f5;
  outline-offset: 2px;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 242, 0.96);
}

.site-header-inner {
  display: flex;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--accent-deep);
}

.wordmark-name {
  padding-right: 1rem;
  font-family: var(--serif);
  font-size: 1.23rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.wordmark-field {
  padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.site-nav {
  min-width: 0;
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(1.3rem, 2.7vw, 2.5rem);
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
}

.site-nav a:hover::after,
.site-nav a.current::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 首頁：封面 */
.hero {
  display: grid;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  min-height: min(48rem, calc(100vh - var(--header-h)));
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7.5rem) var(--gutter) clamp(5rem, 9vw, 8rem);
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6.5rem);
}

.hero-text {
  min-width: 0;
  padding-top: 1rem;
}

.hero-eyebrow {
  display: flex;
  margin-bottom: clamp(2.8rem, 5vw, 4.6rem);
  align-items: center;
  gap: 0.9rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.hero-eyebrow::before {
  width: 2.4rem;
  height: 2px;
  background: var(--accent);
  content: "";
}

.hero-name {
  margin-bottom: clamp(3rem, 5vw, 4.75rem);
  font-size: clamp(4rem, 7.2vw, 6.9rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.hero-name-en {
  display: block;
  margin-top: 1.3rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.hero-roles {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.hero-roles li {
  position: relative;
  margin: 0;
  padding: 1rem 0 1rem 1.7rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-roles li::before {
  position: absolute;
  top: 1.85rem;
  left: 0;
  width: 0.75rem;
  height: 1px;
  background: var(--accent);
  content: "";
}

.hero-portrait {
  position: relative;
  width: min(92%, 36rem);
  margin: 0 1.25rem 1.25rem 0;
  justify-self: end;
}

.hero-portrait::after {
  position: absolute;
  z-index: -1;
  top: 1.25rem;
  right: -1.25rem;
  bottom: -1.25rem;
  left: 1.25rem;
  border: 1px solid var(--line-strong);
  content: "";
}

.hero-portrait picture,
.hero-portrait img {
  width: 100%;
}

.hero-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #d7d4cc;
}

.band {
  position: relative;
  padding: clamp(5.5rem, 10vw, 9rem) var(--gutter);
  border-top: 1px solid var(--line);
}

.band > * {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.band > :last-child {
  margin-bottom: 0;
}

.band > h2 {
  display: grid;
  margin-bottom: clamp(2.8rem, 5vw, 4.5rem);
  grid-template-columns: 2.3rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.band > h2::before {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.band-viewpoint {
  background: var(--ink);
  color: #f3f2ee;
}

.band-viewpoint > h2 {
  margin-bottom: 2rem;
  color: #f3f2ee;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.band-viewpoint > h2::before {
  content: "01";
}

.band-viewpoint blockquote {
  max-width: 61rem;
  margin-left: auto;
  padding-left: clamp(1.5rem, 4vw, 4.5rem);
  border-left: 2px solid var(--accent);
}

.band-viewpoint blockquote p {
  color: #f7f6f2;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.035em;
}

.band-topics > h2::before {
  content: "02";
}

.band-topics > p {
  max-width: 44rem;
  margin-right: auto;
  margin-bottom: 3rem;
  margin-left: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.band-topics > ul {
  display: grid;
  margin-bottom: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.band-topics > ul li {
  margin: 0;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.band-topics > ul li + li {
  padding-right: 0;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid var(--line);
}

.band-topics li a {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration-color: var(--accent);
}

.band-articles {
  background: var(--paper-raised);
}

.band-articles > h2::before {
  content: "03";
}

.article-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.article-list > li {
  display: grid;
  margin: 0;
  padding: 1.65rem 0;
  grid-template-columns: minmax(15rem, 0.95fr) 10rem minmax(14rem, 1.25fr);
  align-items: baseline;
  gap: clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.article-head {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.7rem;
}

.article-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.55;
}

.article-meta {
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.article-summary {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.tag-draft {
  display: inline-flex;
  min-height: 1.65rem;
  padding: 0.12rem 0.45rem;
  align-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.band-articles > p:last-child {
  margin-top: 2rem;
}

.band-locations {
  background: var(--paper-muted);
}

.band-locations > h2::before {
  content: "04";
}

.location-brief {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.location-brief li {
  display: grid;
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 3rem) 0;
  grid-template-columns: 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.location-brief li + li {
  padding-right: 0;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid var(--line);
}

.location-brief strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.location-brief span {
  max-width: 31rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* 內頁共用 */
body:not(.page-home) main {
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  min-height: 65vh;
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) var(--gutter) clamp(7rem, 12vw, 11rem);
}

.page-head {
  max-width: 58rem;
  margin-bottom: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(2.3rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line-strong);
}

.page-kicker {
  display: flex;
  margin-bottom: 1.25rem;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.page-kicker::before {
  width: 1.8rem;
  height: 1px;
  background: var(--accent);
  content: "";
}

.page-head h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.page-lead {
  max-width: 43rem;
  margin-top: 1.7rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

body:not(.page-home):not(.page-about):not(.page-article):not(.page-articles) main > :not(.page-head) {
  max-width: var(--measure);
}

body:not(.page-home):not(.page-about):not(.page-article):not(.page-articles) main > h2 {
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.page-topics main > hr ~ * {
  margin-left: clamp(0rem, 7vw, 6rem);
}

.page-articles .page-head {
  margin-bottom: 4rem;
}

.page-articles main > .group-title {
  max-width: 100%;
  margin-top: 5rem;
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.page-articles main > .article-list {
  max-width: 100%;
}

.page-articles .note {
  margin-top: 4rem;
}

/* 關於頁：人物特寫 */
.page-about main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(1rem, 2.4vw, 2.5rem);
}

.page-about .page-head {
  z-index: 2;
  grid-column: 1 / 8;
}

.page-about .portrait {
  position: relative;
  grid-column: 8 / 13;
  grid-row: 1 / span 7;
  margin: 2.5rem 1rem 0 0;
  padding: clamp(0.35rem, 0.5vw, 0.5rem);
  border: 1px solid var(--line);
  background: var(--paper-raised);
}

.page-about .portrait::after {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2.5rem);
  bottom: -1px;
  width: clamp(3.5rem, 28%, 7rem);
  height: 3px;
  background: var(--accent);
  content: "";
}

.page-about .portrait img {
  width: 100%;
  background: var(--paper-raised);
}

.page-about .portrait figcaption {
  margin: 0;
  padding: 0.72rem 0.2rem 0.12rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.page-about main > :not(.page-head):not(.portrait) {
  grid-column: 1 / 7;
  width: 100%;
}

.page-about main > h2 {
  margin-top: 4.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.page-about main > blockquote {
  margin-top: 1rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.75;
}

/* 文章頁：安靜閱讀室 */
.reading-article {
  width: 100%;
}

.article-headline {
  max-width: 61rem;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.article-headline .page-kicker {
  justify-content: center;
}

.article-headline h1 {
  font-size: clamp(2.8rem, 6vw, 5.55rem);
  line-height: 1.22;
}

.article-byline {
  display: flex;
  margin: 2.25rem 0 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
}

.article-body {
  width: min(100%, var(--measure));
  margin: 0 auto;
  color: #27343b;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.45vw, 1.16rem);
  line-height: 1.92;
  letter-spacing: 0.018em;
}

.article-body p {
  margin-bottom: 1.45em;
}

.article-body h2 {
  margin-top: 3.9rem;
  margin-bottom: 1.45rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.article-body h3 {
  margin-top: 3rem;
}

.article-body a {
  text-decoration-thickness: 0.07em;
}

.article-body #參考資料 {
  margin-top: 5.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.article-body #參考資料 + ol {
  padding-left: 1.2rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.72;
}

.article-body #參考資料 + ol li + li {
  margin-top: 1rem;
}

.note {
  margin-top: 3rem;
  padding: 1.25rem 1.4rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.placeholder {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  background: var(--paper-muted);
}

.placeholder-tag {
  margin-bottom: 0.3rem;
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.placeholder-title {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.placeholder > p:last-child {
  margin-bottom: 0;
}

.skeleton {
  display: grid;
  margin: 1.75rem 0;
  gap: 0.72rem;
}

.skeleton .bar {
  display: block;
  height: 1px;
  background: var(--line-strong);
}

.muted {
  color: var(--muted);
}

.page-404 main > p {
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line-strong);
  background: var(--paper-raised);
}

.site-footer-inner {
  display: grid;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  grid-template-columns: 0.8fr 1fr 1.6fr;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  margin: 0;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: 0.78rem;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.75;
}

/* 頁面最末一行，比聲明段落再輕一階；不得比頁尾連結或聲明搶眼。
   0.68rem 的 var(--muted) 對 var(--paper-raised) 是 5.67:1，仍在 4.5:1 之上。 */
.footer-copyright {
  margin: 0;
  padding-top: 1.6rem;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

/* 頁尾版權行的小精靈彩蛋。整組元素由 assets/pac.js 產生：
   靜止時只是版權文字前面一個小圓點，點下去才會沿著那行字吃過去，吃完出現破關畫面。
   prefers-reduced-motion 或沒有 JavaScript 時只剩一行完整、可選取的版權文字。
   色票全部取自既有 token；圓點靜止色 inherit 自 .footer-copyright 的 var(--muted)。 */
.pac-ch.is-eaten {
  visibility: hidden;
}

.pac-dot {
  position: relative;
  z-index: 2;
  margin: 0 0.5em 0 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: none;
  color: inherit;
  cursor: pointer;
  line-height: 0;
  vertical-align: middle;
}

/* 視覺圓點維持 10px，命中區用透明的 ::before 撐到 24×24（SPEC §5.5、A13）。
   絕對定位，所以不會把版權行的行高撐開。 */
.pac-dot::before {
  position: absolute;
  top: -7px;
  right: -7px;
  bottom: -7px;
  left: -7px;
  content: "";
}

.pac-dot svg {
  display: block;
  width: 10px;
  height: 10px;
  shape-rendering: crispEdges;
}

.pac-dot:hover {
  color: var(--ink-soft);
}

.pac-dot:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.pac-dot .pac-open {
  display: none;
}

.pac-dot.is-open .pac-open {
  display: block;
}

.pac-dot.is-open .pac-shut {
  display: none;
}

.pac-dot.is-playing {
  color: var(--accent);
}

.pac-clear {
  position: fixed;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  inset: 0;
}

/* 遮罩獨立成偽元素，讓 var(--ink) 可以帶不透明度而不連帶淡化面板內容。 */
.pac-clear::before {
  position: absolute;
  background: var(--ink);
  content: "";
  inset: 0;
  opacity: 0.93;
}

.pac-clear-panel {
  position: relative;
  z-index: 1;
  padding: 2.1rem 2.4rem 1.8rem;
  animation: pac-pop 0.18s steps(3) both;
  background: var(--ink);
  box-shadow:
    0 -5px 0 0 var(--paper-raised),
    0 5px 0 0 var(--paper-raised),
    -5px 0 0 0 var(--paper-raised),
    5px 0 0 0 var(--paper-raised);
  color: var(--paper-raised);
  text-align: center;
}

@keyframes pac-pop {
  from {
    transform: scale(0.86);
  }

  to {
    transform: scale(1);
  }
}

.pac-hero {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--accent);
  shape-rendering: crispEdges;
}

.pac-word {
  display: block;
  width: 180px;
  height: 36px;
  margin: 0 auto;
  color: var(--paper-raised);
  shape-rendering: crispEdges;
}

.pac-score {
  margin-top: 1.3rem;
  color: var(--line);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.pac-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.6rem;
}

.pac-btn {
  padding: 0.4rem 1rem;
  border: 2px solid var(--line);
  background: none;
  color: var(--paper-raised);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.pac-btn:hover {
  background: var(--paper-raised);
  color: var(--ink);
}

/* 深色面板上 var(--focus) 只有 2.07:1、var(--accent) 只有 2.84:1，
   都達不到 A12 的 3:1；改用 var(--paper-raised)，對 var(--ink) 是 15.5:1。 */
.pac-btn:focus-visible {
  outline: 2px solid var(--paper-raised);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .site-nav a::after {
    transition: transform 260ms ease;
  }

  .hero-text,
  .hero-portrait,
  .band > *,
  .page-head {
    animation: rise 420ms ease-out both;
  }

  .hero-portrait,
  .band > *:nth-child(2) {
    animation-delay: 80ms;
  }

  @keyframes rise {
    from {
      transform: translateY(0.75rem);
    }

    to {
      transform: translateY(0);
    }
  }
}

@media (max-width: 62rem) {
  :root {
    --header-h: auto;
  }

  .site-header-inner {
    min-height: 5.25rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-name {
    font-size: clamp(3.6rem, 7.5vw, 5rem);
  }

  .article-list > li {
    grid-template-columns: minmax(13rem, 1fr) minmax(10rem, 1.15fr);
  }

  .article-meta {
    grid-column: 1;
    grid-row: 2;
  }

  .article-summary {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 47.5rem) {
  :root {
    --gutter: 1.25rem;
  }

  html {
    scroll-padding-top: 8.5rem;
  }

  .preview-bar {
    min-height: 2.2rem;
    gap: 0.5rem;
    font-size: 0.67rem;
    line-height: 1.5;
  }

  .preview-bar span {
    padding-right: 0.5rem;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .site-header-inner {
    display: grid;
    min-height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.45rem;
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .wordmark {
    min-height: 2.35rem;
  }

  .wordmark-name {
    font-size: 1.05rem;
  }

  .wordmark-field {
    font-size: 0.62rem;
  }

  .site-nav ul {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .site-nav a {
    width: 100%;
    min-height: 2.75rem;
    justify-content: center;
    font-size: clamp(0.68rem, 3.05vw, 0.78rem);
    letter-spacing: 0;
  }

  .site-nav li + li {
    border-left: 1px solid var(--line);
  }

  .site-nav a::after {
    right: 0.55rem;
    left: 0.55rem;
  }

  .hero {
    padding-top: 3.7rem;
    padding-bottom: 5.2rem;
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .hero-text {
    padding-top: 0;
  }

  .hero-eyebrow {
    margin-bottom: 2.2rem;
    font-size: 0.7rem;
  }

  .hero-name {
    margin-bottom: 2.5rem;
    font-size: clamp(3.8rem, 18vw, 5.25rem);
  }

  .hero-name-en {
    margin-top: 1rem;
  }

  .hero-portrait {
    width: calc(100% - 0.8rem);
    margin: 0 0.8rem 0.8rem 0;
    justify-self: start;
  }

  .hero-portrait::after {
    top: 0.8rem;
    right: -0.8rem;
    bottom: -0.8rem;
    left: 0.8rem;
  }

  .hero-portrait img {
    aspect-ratio: 4 / 5;
  }

  .band {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .band > h2 {
    margin-bottom: 2.4rem;
  }

  .band-viewpoint blockquote {
    padding-left: 1.25rem;
  }

  .band-viewpoint blockquote p {
    font-size: clamp(1.75rem, 8.5vw, 2.5rem);
  }

  .band-topics > ul,
  .location-brief {
    grid-template-columns: 1fr;
  }

  .band-topics > ul li,
  .band-topics > ul li + li,
  .location-brief li,
  .location-brief li + li {
    padding: 1.8rem 0;
    border-left: 0;
  }

  .article-list > li {
    padding: 1.5rem 0;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .article-meta,
  .article-summary {
    grid-column: 1;
    grid-row: auto;
  }

  .article-summary {
    margin-top: 0.35rem;
  }

  body:not(.page-home) main {
    padding-top: 4.25rem;
    padding-bottom: 7rem;
  }

  .page-head {
    margin-bottom: 3.8rem;
  }

  .page-head h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .page-topics main > hr ~ * {
    margin-left: 0;
  }

  .page-about main {
    display: block;
  }

  .page-about .portrait {
    width: min(82%, 27.5rem);
    margin: 0 auto 5rem;
  }

  .page-about main > h2 {
    margin-top: 3.7rem;
  }

  .article-headline {
    text-align: left;
  }

  .article-headline .page-kicker,
  .article-byline {
    justify-content: flex-start;
  }

  .article-headline h1 {
    font-size: clamp(2.45rem, 11vw, 3.7rem);
  }

  .article-body {
    font-size: 1.04rem;
    line-height: 1.88;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 22rem) {
  .wordmark-name {
    padding-right: 0.7rem;
    font-size: 0.98rem;
  }

  .wordmark-field {
    padding-left: 0.7rem;
  }

  .site-nav a {
    font-size: 0.64rem;
  }

  .hero-name {
    font-size: 3.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .hero-portrait::after,
  .page-about .portrait::after {
    background: CanvasText;
  }
}
