:root {
  --paper: #f3eee8;
  --paper-deep: #e4d9d1;
  --ink: #302c2d;
  --muted: #685f60;
  --rose: #b78f90;
  --rose-soft: #dbc3c2;
  --blue: #8396a3;
  --blue-soft: #c8d2d7;
  --sage: #8f9b86;
  --sage-soft: #ccd1c5;
  --clay: #b28d75;
  --clay-soft: #ddc9ba;
  --mauve: #968792;
  --white: #fffdf9;
  --shadow: 0 22px 54px rgba(63, 49, 47, .13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(219, 195, 194, .62), transparent 28rem),
    radial-gradient(circle at 92% 34%, rgba(200, 210, 215, .62), transparent 30rem),
    linear-gradient(180deg, #f6f1ec, #eee7e0 70%, #e8ded7);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

img {
  display: block;
  width: 100%;
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 200;
  padding: .65rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.site-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: .65rem clamp(1rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(90, 70, 67, .12);
  background: rgba(247, 243, 238, .9);
  box-shadow: 0 10px 28px rgba(62, 48, 47, .07);
  backdrop-filter: blur(15px);
}

html.cpa-four-language-toolbar-active .site-bar {
  top: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(64, 48, 46, .16);
}

.site-bar nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.site-bar nav a {
  padding: .46rem .86rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}

.site-bar nav a[aria-current="page"] {
  color: #fff;
  background: #78676c;
}

.archive-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(190px, 18vw, 260px);
  padding: clamp(2.4rem, 4.5vw, 4rem) clamp(1.2rem, 6vw, 7rem) clamp(2rem, 3.5vw, 3rem);
  background:
    linear-gradient(90deg, rgba(247, 242, 233, .94), rgba(247, 242, 233, .7)),
    linear-gradient(135deg, rgba(183, 143, 144, .18), rgba(131, 150, 163, .13));
}

/* Flat watercolor marks: deliberate paper-and-ink texture, never a shadowed hero. */
.archive-hero::before,
.archive-hero::after {
  position: absolute;
  content: "";
  border-radius: 46% 54% 57% 43%;
  opacity: .72;
  transform: rotate(-8deg);
}

.archive-hero::before {
  top: -13rem;
  right: -5rem;
  width: 29rem;
  height: 24rem;
  background: rgba(181, 143, 144, .22);
}

.archive-hero::after {
  bottom: -17rem;
  left: -8rem;
  width: 27rem;
  height: 22rem;
  background: rgba(131, 150, 163, .18);
  transform: rotate(12deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #796267;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .18em;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.hero-copy {
  max-width: 720px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}

.hero-meta span {
  padding: .4rem .72rem;
  border: 1px solid rgba(103, 83, 80, .16);
  border-radius: 999px;
  background: rgba(255, 253, 249, .64);
  color: #675c5e;
  font-size: .78rem;
  font-weight: 760;
}

.archive-main {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 clamp(5rem, 10vw, 9rem);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
  padding: 1.2rem .3rem;
  border-bottom: 1px solid rgba(91, 72, 69, .16);
}

.section-head h2 {
  margin: .2rem 0 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 720;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-grid li { min-width: 0; }

.report-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(79, 60, 58, .13);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.report-grid li:nth-child(2n) .card-art { order: 2; }
.report-grid li:nth-child(2n) .card-copy { order: 1; }

.report-card:hover,
.report-card:focus-visible {
  outline: none;
  transform: translateY(-5px);
  box-shadow: 0 29px 65px rgba(63, 49, 47, .2);
}

.card-art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--paper-deep);
}

.card-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(145deg, transparent 52%, rgba(44, 38, 39, .13));
  pointer-events: none;
}

.card-art img {
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.report-card:hover .card-art img { transform: scale(1.035); }

.card-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3vw, 2.2rem);
}

.tone-rose .card-copy { background: linear-gradient(145deg, #f8f2ef, #ead7d5); }
.tone-blue .card-copy { background: linear-gradient(145deg, #f5f5f2, #d8e0e3); }
.tone-sage .card-copy { background: linear-gradient(145deg, #f6f4ed, #dce0d5); }
.tone-clay .card-copy { background: linear-gradient(145deg, #f8f2ed, #e5d4c8); }
.tone-mauve .card-copy { background: linear-gradient(145deg, #f6f1f4, #ddd4dc); }

.card-copy time {
  color: #705c60;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.card-copy h3 {
  margin: .7rem 0 .8rem;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.28;
}

.card-copy p {
  margin: 0;
  color: #5f5758;
  font-size: .94rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.35rem;
  color: #715a60;
  font-size: .86rem;
  font-weight: 850;
}

.report-card.featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  min-height: 420px;
}

.report-card.featured .card-copy { padding: clamp(2rem, 5vw, 4.5rem); }
.report-card.featured .card-copy h3 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
.report-card.featured .card-copy p { max-width: 55ch; font-size: 1.03rem; }

.site-footer {
  padding: 2.4rem 1.2rem;
  color: #5f5557;
  background: #ded3cc;
  text-align: center;
}

.site-footer p { margin: .2rem 0; }
.site-footer a { font-weight: 800; }

@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
  .report-card.featured { grid-column: auto; }
}

@media (max-width: 680px) {
  .site-bar { min-height: 62px; padding-inline: .9rem; }
  .brand span { font-size: .78rem; }
  .site-bar nav a:first-child { display: none; }
  .archive-hero {
    min-height: 0;
    padding: 2rem 1.1rem 1.35rem;
  }
  .archive-hero::before {
    top: -11rem;
    right: -11rem;
    width: 23rem;
    height: 19rem;
  }
  .archive-hero::after {
    bottom: -15rem;
    left: -12rem;
    width: 22rem;
    height: 18rem;
  }
  .hero-copy { margin-top: .8rem; }
  .hero-meta { gap: .38rem; margin-top: .9rem; }
  .hero-meta span { padding: .3rem .55rem; font-size: .72rem; }
  .archive-main { width: min(100% - 1.1rem, 1240px); }
  .section-head { align-items: start; flex-direction: column; gap: .2rem; }
  .report-card,
  .report-card.featured {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .report-grid li:nth-child(2n) .card-art { order: 1; }
  .report-grid li:nth-child(2n) .card-copy { order: 2; }
  .card-art { min-height: 235px; }
  .report-card.featured .card-art { min-height: 280px; }
  .card-copy,
  .report-card.featured .card-copy { padding: 1.4rem; }
  .report-card.featured .card-copy h3 { font-size: 1.8rem; }
}

@media (max-width: 820px) {
  html.cpa-four-language-toolbar-active .site-bar {
    top: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-bar { position: static; }
  .report-card { break-inside: avoid; box-shadow: none; }
}
