:root {
  color-scheme: light;
  --background: #f7f6f2;
  --surface: rgba(255, 255, 255, 0.94);
  --text: #191919;
  --muted: #686864;
  --line: #deddd7;
  --accent: #b83b2f;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(25, 25, 25, 0.025) 1px, transparent 1px),
    var(--background);
  background-size: 100% 48px;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--text);
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand::before {
  width: 9px;
  height: 9px;
  margin-right: 10px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.7vw, 28px);
}

.site-nav a {
  position: relative;
  padding: 32px 0 29px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-control {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.page-shell {
  width: min(calc(100% - 48px), var(--content-width));
  min-height: calc(100vh - 89px);
  margin: 0 auto;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, white);
  outline-offset: 4px;
}

@media (max-width: 1040px) {
  .header-inner {
    position: relative;
    min-height: 76px;
  }

  .menu-control {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    opacity: 0;
    white-space: nowrap;
    border: 0;
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu-control:focus-visible + .menu-toggle {
    outline: 3px solid color-mix(in srgb, var(--accent) 55%, white);
    outline-offset: 4px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(26, 25, 21, 0.1);
  }

  .site-nav.is-open,
  .menu-control:checked ~ .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    padding: 14px 16px;
    border-radius: 4px;
  }

  .site-nav a::after {
    right: 16px;
    bottom: 8px;
    left: 16px;
    height: 2px;
  }

  .page-shell {
    min-height: calc(100vh - 77px);
  }
}

@media (max-width: 560px) {
  .header-inner,
  .page-shell {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .brand {
    font-size: 1.16rem;
  }

  .site-nav.is-open,
  .menu-control:checked ~ .site-nav {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
}

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

/* Article and editorial layouts */

[data-category="society"] {
  --category-color: #b65338;
  --category-soft: #f5dfd7;
}

[data-category="finance"] {
  --category-color: #17705e;
  --category-soft: #d9ece6;
}

[data-category="housing"] {
  --category-color: #3e667f;
  --category-soft: #dce8ee;
}

[data-category="health"] {
  --category-color: #668443;
  --category-soft: #e3ecd7;
}

[data-category="leisure"] {
  --category-color: #5f50a0;
  --category-soft: #e6e1f5;
}

.home-page,
.listing-page {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
}

.home-page {
  padding: 34px 0 110px;
}

.home-hero {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(32px, 6vw, 76px);
  color: #fff;
  background: #151515;
  border-radius: 28px;
  isolation: isolate;
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
  z-index: 2;
  pointer-events: none;
}

.home-hero::before {
  width: 430px;
  height: 430px;
  top: -140px;
  right: -40px;
}

.home-hero::after {
  width: 620px;
  height: 620px;
  right: -230px;
  bottom: -390px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.72) 48%, rgba(10, 10, 10, 0.16) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.55), transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
}

.hero-category,
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hero-category {
  margin-bottom: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-content h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(2.5rem, 4.6vw, 4.55rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.hero-content p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
}

.primary-button {
  display: inline-flex;
  margin-top: 32px;
  padding: 14px 22px;
  color: var(--text);
  background: #fff;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.home-section {
  padding-top: 90px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.listing-header h1 {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3.15rem);
}

.text-link,
.read-more {
  color: var(--text);
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible,
.card-link:hover .read-more {
  color: var(--accent);
}

.featured-story {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.featured-cover {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 25%, rgba(255, 255, 255, 0.24) 0, transparent 26%),
    linear-gradient(145deg, var(--category-color), color-mix(in srgb, var(--category-color) 55%, #101010));
}

.featured-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.featured-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
  content: "";
}

.featured-cover:hover img {
  transform: scale(1.025);
}

.featured-cover::before {
  position: absolute;
  width: 380px;
  height: 380px;
  top: -130px;
  right: -80px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  content: "";
  z-index: 2;
}

.featured-cover span {
  position: relative;
  z-index: 3;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}

.featured-copy h3 {
  margin: 20px 0 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.featured-copy p {
  margin: 22px 0 28px;
  color: var(--muted);
  line-height: 1.85;
}

.card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(31, 29, 24, 0.09);
}

.card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-cover {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.27) 0, transparent 24%),
    linear-gradient(145deg, var(--category-color), color-mix(in srgb, var(--category-color) 58%, #111));
}

.card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.card-cover::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
  content: "";
}

.card-link:hover .card-cover img {
  transform: scale(1.035);
}

.card-cover::after {
  position: absolute;
  width: 190px;
  height: 190px;
  top: -80px;
  right: -42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
  z-index: 1;
}

.card-cover span {
  position: relative;
  z-index: 2;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.38);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.card-content h2,
.card-content h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 18px 0 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 1.32rem;
  letter-spacing: -0.025em;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.read-more {
  margin-top: auto;
  font-size: 0.88rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-grid a {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: var(--text);
  background: var(--category-soft);
  border: 1px solid color-mix(in srgb, var(--category-color) 24%, white);
  border-radius: 14px;
  transition: transform 160ms ease;
}

.category-grid a:hover {
  transform: translateY(-3px);
}

.category-grid span {
  color: var(--category-color);
  font-size: 1.06rem;
  font-weight: 850;
}

.category-grid small {
  color: var(--muted);
}

.listing-page {
  min-height: calc(100vh - 88px);
  padding: 84px 0 110px;
}

.listing-header {
  max-width: 760px;
}

.listing-header h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.listing-intro {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.result-count {
  margin: 18px 0 0;
  color: var(--muted);
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 42px 0 34px;
}

.topic-links a {
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.topic-links a:hover,
.topic-links a:focus-visible {
  border-color: var(--accent);
}

.empty-state {
  max-width: 760px;
  padding: clamp(34px, 6vw, 64px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.empty-state h2 {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.empty-state > p:not(.eyebrow) {
  max-width: 570px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.dark-button {
  color: #fff;
  background: var(--text);
}

.article-document {
  background: #fff;
  background-image: none;
}

.article-page {
  --article-accent: var(--category-color);
  width: min(calc(100% - 48px), 1040px);
  margin: 0 auto;
  padding: 42px 0 110px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 64px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumbs a:hover {
  color: var(--article-accent);
}

.article-header {
  max-width: 920px;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line);
}

.article-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.category-pill {
  color: var(--article-accent);
  background: var(--category-soft);
}

.article-type {
  padding: 8px 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.article-header h1 {
  margin: 24px 0 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(2.35rem, 5.2vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 1.14;
}

.article-deck {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
  line-height: 1.85;
}

.article-meta {
  margin-top: 30px;
}

.article-meta a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-cover {
  margin: 52px 0 0;
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
}

.article-cover figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(42px, 7vw, 88px);
  margin-top: 62px;
}

.article-toc {
  position: sticky;
  top: 118px;
  align-self: start;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding: 18px 0 18px 18px;
  border-left: 1px solid var(--line);
}

.toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 13px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-align: left;
}

.toc-toggle [data-toc-label] {
  display: none;
  color: var(--article-accent);
  letter-spacing: 0;
}

.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc li + li {
  margin-top: 10px;
}

.article-toc a {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: var(--article-accent);
}

.article-body {
  max-width: 760px;
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 1.06rem;
  line-height: 2;
}

.article-body h2 {
  margin: 64px 0 24px;
  padding-left: 18px;
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.4;
  border-left: 5px solid var(--article-accent);
  scroll-margin-top: 120px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 44px 0 16px;
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  letter-spacing: -0.02em;
  line-height: 1.45;
  scroll-margin-top: 120px;
}

.article-body p {
  margin: 0 0 28px;
}

.article-body ol,
.article-body ul {
  margin: 0 0 32px;
  padding-left: 1.5em;
}

.article-body li {
  margin: 10px 0;
  padding-left: 0.3em;
}

.article-body a {
  color: var(--article-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.article-body dl {
  margin: 28px 0 36px;
  padding: 8px 24px;
  background: #f7f6f2;
  border-radius: 10px;
}

.article-body dl div {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.article-body dl div:last-child {
  border-bottom: 0;
}

.article-body dt {
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  font-weight: 800;
}

.article-body dd {
  margin: 0;
}

.source-section {
  margin-top: 80px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.source-list {
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: 0.93rem;
  line-height: 1.75;
}

.source-list li {
  margin-bottom: 18px;
}

.source-list div {
  margin-top: 3px;
}

.article-end {
  max-width: 760px;
  margin: 84px auto 0;
}

.author-box {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 28px;
  background: #f7f6f2;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.author-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--article-accent);
  border-radius: 50%;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 1.45rem;
  font-weight: 850;
}

.author-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.author-box h2 {
  margin: 0;
  font-size: 1.22rem;
}

.author-box > div:last-child > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.share-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.share-tools > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-tools a,
.share-tools button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
}

.share-tools a:hover,
.share-tools button:hover,
.secondary-button:hover {
  border-color: var(--accent);
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.post-navigation a:last-child {
  text-align: right;
}

.post-navigation a:hover {
  border-color: var(--article-accent);
}

.post-navigation span {
  color: var(--muted);
  font-size: 0.78rem;
}

.post-navigation strong {
  font-size: 0.94rem;
  line-height: 1.55;
}

.related-section {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 0 0 110px;
}

.about-page {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 92px 0 120px;
}

.about-hero {
  max-width: 930px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

.about-hero h1,
.error-page h1 {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(2.55rem, 5.3vw, 5.1rem);
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.about-hero > p:last-child {
  max-width: 800px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(50px, 8vw, 110px);
  padding-top: 72px;
}

.about-summary {
  position: sticky;
  top: 120px;
  align-self: start;
  padding: 28px;
  color: #fff;
  background: #1b1b19;
  border-radius: 14px;
}

.about-summary > strong {
  font-size: 1.2rem;
}

.about-summary dl {
  margin: 24px 0 0;
}

.about-summary dl div {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.about-summary dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}

.about-summary dd {
  margin: 5px 0 0;
  font-size: 0.92rem;
}

.about-content > section {
  scroll-margin-top: 120px;
}

.about-content > section + section {
  margin-top: 88px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.about-content h2 {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  letter-spacing: -0.04em;
}

.about-content > section > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.9;
}

.about-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.about-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.about-topics article {
  padding: 22px;
  background: var(--category-soft);
  border: 1px solid color-mix(in srgb, var(--category-color) 24%, white);
  border-radius: 12px;
}

.about-topics h3 {
  margin: 0;
  color: var(--category-color);
  font-size: 1rem;
}

.about-topics p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.policy-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: policy;
}

.policy-list li {
  position: relative;
  padding: 22px 0 22px 52px;
  color: var(--muted);
  line-height: 1.85;
  border-top: 1px solid var(--line);
  counter-increment: policy;
}

.policy-list li::before {
  position: absolute;
  top: 22px;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--text);
  border-radius: 50%;
  content: counter(policy, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 800;
}

.policy-list strong {
  color: var(--text);
}

.contact-note {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-page {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 42px 0 120px;
}

.legal-page > .breadcrumbs {
  margin-bottom: 58px;
}

.legal-hero {
  max-width: 940px;
  padding-bottom: 62px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(2.75rem, 5.5vw, 5.2rem);
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.legal-hero > p:not(.eyebrow, .legal-date) {
  max-width: 790px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.legal-date {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(50px, 8vw, 110px);
  margin-top: 70px;
}

.legal-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  padding: 26px;
  color: #fff;
  background: #0c0f14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.legal-sidebar > p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.legal-sidebar nav {
  display: grid;
}

.legal-sidebar a {
  position: relative;
  padding: 15px 0;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.08rem;
  font-weight: 750;
}

.legal-sidebar a:hover,
.legal-sidebar a:focus-visible,
.legal-sidebar a[aria-current="page"] {
  color: #fff;
}

.legal-sidebar a[aria-current="page"]::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.legal-content {
  min-width: 0;
}

.legal-notice {
  margin-bottom: 54px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
}

.legal-notice strong {
  font-size: 0.88rem;
}

.legal-notice p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-content section {
  scroll-margin-top: 120px;
}

.legal-content section + section {
  margin-top: 54px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.legal-content section > p,
.legal-content li {
  color: #4f4f4b;
  line-height: 1.95;
}

.legal-content section > p {
  margin: 20px 0 0;
}

.legal-content ul {
  margin: 20px 0 0;
  padding-left: 1.4em;
}

.legal-content li + li {
  margin-top: 12px;
}

.legal-content strong {
  color: var(--text);
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.error-page {
  width: min(calc(100% - 48px), 900px);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 100px 0 120px;
}

.error-code {
  margin: 0 0 -28px;
  color: color-mix(in srgb, var(--accent) 12%, transparent);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(7rem, 22vw, 15rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.error-page > p:not(.eyebrow, .error-code) {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.error-actions .primary-button {
  margin-top: 0;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer {
  color: #f6f4ed;
  background: #181817;
}

.footer-inner {
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-content: center;
  gap: 30px 42px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 850;
}

.footer-inner nav {
  display: flex;
  gap: 24px;
}

.footer-primary {
  flex-wrap: wrap;
  align-content: flex-start;
  max-width: 470px;
}

.footer-inner .footer-legal {
  flex-direction: column;
  gap: 10px;
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-inner .footer-legal a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
}

.footer-inner nav a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.45);
}

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

  .featured-cover {
    min-height: 330px;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    gap: 42px;
  }

  .article-toc {
    position: static;
    max-height: none;
    padding: 22px;
    background: #f7f6f2;
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .article-toc ol {
    columns: 2;
    column-gap: 30px;
  }

  .article-toc.is-collapsible {
    max-height: none;
    overflow: visible;
  }

  .article-toc.is-collapsible:not(.is-open) ol {
    display: none;
  }

  .article-toc.is-collapsible .toc-toggle {
    margin-bottom: 0;
    cursor: pointer;
  }

  .article-toc.is-collapsible.is-open .toc-toggle {
    margin-bottom: 16px;
  }

  .article-toc.is-collapsible .toc-toggle [data-toc-label] {
    display: inline;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-summary {
    position: static;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .legal-sidebar a {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    text-align: center;
  }

  .legal-sidebar a[aria-current="page"]::after {
    top: auto;
    right: 13px;
    bottom: 9px;
    transform: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 56px 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .home-page,
  .listing-page,
  .article-page,
  .related-section,
  .about-page,
  .legal-page,
  .footer-inner {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .home-page {
    padding-top: 16px;
  }

  .home-hero {
    min-height: 580px;
    padding: 28px 24px;
    border-radius: 18px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.66) 68%, rgba(10, 10, 10, 0.3) 100%);
  }

  .hero-content h1 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .home-section {
    padding-top: 68px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .featured-cover {
    min-height: 260px;
  }

  .featured-copy {
    padding: 30px 24px 36px;
  }

  .listing-page {
    padding-top: 58px;
  }

  .breadcrumbs {
    margin-bottom: 42px;
  }

  .article-header {
    padding-bottom: 42px;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-layout {
    margin-top: 42px;
  }

  .article-toc ol {
    columns: 1;
  }

  .article-body h2 {
    margin-top: 52px;
  }

  .article-body dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .article-cover {
    margin-top: 36px;
  }

  .article-cover img {
    border-radius: 10px;
  }

  .article-end {
    margin-top: 62px;
  }

  .author-box {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 22px;
  }

  .author-mark {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  .share-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-navigation a:last-child {
    text-align: left;
  }

  .about-page {
    padding-top: 62px;
  }

  .about-hero {
    padding-bottom: 52px;
  }

  .about-layout {
    padding-top: 52px;
  }

  .about-topics {
    grid-template-columns: 1fr;
  }

  .legal-page {
    padding-top: 34px;
  }

  .legal-page > .breadcrumbs {
    margin-bottom: 40px;
  }

  .legal-hero {
    padding-bottom: 44px;
  }

  .legal-hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.8rem);
  }

  .legal-layout {
    gap: 38px;
    margin-top: 44px;
  }

  .legal-sidebar {
    padding: 20px;
  }

  .legal-sidebar nav {
    grid-template-columns: 1fr;
  }

  .legal-sidebar a {
    text-align: left;
  }

  .legal-notice {
    margin-bottom: 42px;
    padding: 20px;
  }

  .legal-content section + section {
    margin-top: 44px;
    padding-top: 40px;
  }

  .error-page {
    width: min(calc(100% - 32px), 900px);
    padding-top: 74px;
  }

  .footer-inner {
    min-height: 260px;
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-inner nav {
    flex-wrap: wrap;
  }

  .footer-inner .footer-legal {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .footer-inner small {
    grid-column: auto;
  }
}
