:root {
  --cream: #fbf7f1;
  --cream-2: #f5eee5;
  --almond: #ead8c8;
  --peach: #f1c9b8;
  --sage: #c9d4c1;
  --sage-dark: #718367;
  --brown: #6d5548;
  --brown-2: #9a7b69;
  --text: #3f352f;
  --muted: #786b62;
  --line: rgba(109, 85, 72, .14);
  --paper: rgba(255, 253, 249, .82);
  --shadow: 0 22px 60px rgba(109, 85, 72, .12);
  --radius-lg: 30px;
  --radius-md: 22px;
  --header-height: 74px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(241, 201, 184, .3), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(201, 212, 193, .34), transparent 28%),
    linear-gradient(180deg, var(--cream), #fffaf5 48%, var(--cream-2));
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.85;
  letter-spacing: .035em;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(113, 131, 103, .55);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  background: rgba(251, 247, 241, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.page-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: auto;
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--brown);
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.brand small {
  color: var(--brown-2);
  font-size: .74rem;
  font-weight: 500;
}

.desktop-nav,
.nav-cta {
  display: none;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover,
.series-card:hover,
.article-card:hover,
.latest-list a:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #fffaf5;
  background: var(--brown);
  box-shadow: 0 14px 32px rgba(109, 85, 72, .2);
}

.btn-secondary {
  color: var(--brown);
  background: rgba(255, 253, 249, .72);
  border: 1px solid var(--line);
}

.articles-hero {
  padding: 58px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.series-label,
.article-series {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--sage-dark);
  font-weight: 900;
}

.series-subtitle {
  margin: -4px 0 10px;
  color: var(--sage-dark);
  font-weight: 800;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--brown);
  font-family: "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;
  font-size: clamp(2.5rem, 10vw, 5.8rem);
  line-height: 1.13;
}

.hero-desc {
  max-width: 720px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.hero-visual-stack {
  display: grid;
  gap: 18px;
}

.articles-hero-art,
.series-card-art,
.series-card-art img {
  width: 100%;
}

.articles-hero-art {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.articles-hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 70% center;
}

@media (max-width: 639px) {
  .articles-hero {
    padding: 34px 0 52px;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-visual-stack {
    order: -1;
  }

  .articles-hero-art img {
    aspect-ratio: 16 / 10;
    object-position: center;
  }

  .hero-visual-stack .author-card {
    display: none;
  }
}

.author-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.author-card img {
  width: 116px;
  height: 116px;
  border: 7px solid rgba(255, 253, 249, .9);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(109, 85, 72, .15);
}

.author-card strong,
.author-card span {
  display: block;
}

.author-card strong {
  color: var(--brown);
  font-size: 1.1rem;
}

.author-card span {
  color: var(--sage-dark);
  font-size: .88rem;
  font-weight: 800;
}

.author-card p {
  margin: 8px 0;
}

.author-card a,
.text-link,
.article-card a {
  color: var(--sage-dark);
  font-weight: 900;
}

.section {
  padding: 74px 0;
}

.section.alt {
  background: rgba(255, 253, 249, .52);
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 14px;
  color: var(--brown);
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.3;
}

.series-grid,
.article-grid {
  display: grid;
  gap: 18px;
}

.series-card,
.article-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(109, 85, 72, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.series-card {
  overflow: hidden;
}

.series-card-art {
  display: block;
  margin: -24px -24px 20px;
  width: calc(100% + 48px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cream-2);
}

.series-card-art img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.series-card:hover .series-card-art img {
  transform: scale(1.025);
}

@media (max-width: 639px) {
  .series-card-art {
    aspect-ratio: 1 / 1;
  }
}

.featured-series {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 253, 249, .65), transparent 25%),
    linear-gradient(135deg, rgba(241, 201, 184, .55), rgba(201, 212, 193, .35));
}

.series-card h3,
.article-card h3 {
  margin-bottom: 10px;
  color: var(--brown);
  font-size: 1.35rem;
  line-height: 1.42;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 12px;
}

.meta-row span {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--brown);
  background: rgba(234, 216, 200, .52);
  font-size: .82rem;
  font-weight: 800;
}

.latest-list {
  display: grid;
  gap: 12px;
}

.latest-list a {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform .2s ease;
}

.latest-list span {
  color: var(--sage-dark);
  font-size: .88rem;
  font-weight: 900;
}

.latest-list strong {
  color: var(--brown);
  font-size: 1.08rem;
}

.cta-panel {
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 253, 249, .55), transparent 22%),
    linear-gradient(135deg, rgba(241, 201, 184, .66), rgba(234, 216, 200, .76), rgba(201, 212, 193, .6));
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: rgba(109, 85, 72, .08);
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-inner strong {
  color: var(--brown);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--brown);
  font-weight: 800;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .author-card {
    grid-template-columns: 116px 1fr;
  }

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

  .latest-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.2fr .8fr;
  }
}

@media (min-width: 900px) {
  :root {
    --header-height: 82px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .desktop-nav a {
    padding: 9px 11px;
    border-radius: 999px;
    color: var(--brown);
    font-size: .92rem;
    font-weight: 700;
  }

  .desktop-nav a:hover,
  .desktop-nav a[aria-current="page"] {
    background: rgba(234, 216, 200, .48);
  }

  .nav-cta {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 16px;
    font-size: .9rem;
  }

  .articles-hero {
    padding: 92px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .articles-hero-art img {
    aspect-ratio: 16 / 9;
  }

  .section {
    padding: 94px 0;
  }

  .series-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-series {
    grid-column: span 2;
  }

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