:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --text: #1e211d;
  --muted: #66685f;
  --line: #ded8ca;
  --ink: #243d35;
  --red: #9f3f35;
  --blue: #345f7d;
  --gold: #c38a35;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(159, 63, 53, 0.45);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--red);
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fffdf8;
  font-size: 18px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: 44px;
  min-height: 62vh;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}

.hero h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.button.primary {
  background: var(--ink);
  color: #fffdf8;
}

.button.secondary {
  background: transparent;
}

.section-heading {
  padding: 54px 0 22px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.theme-grid a,
.article-item {
  display: block;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.theme-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
}

.theme-grid p,
.article-item p,
.lead {
  margin: 0;
  color: var(--muted);
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 58px;
}

.article-item time {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.article-item h2,
.article-item h3 {
  margin: 0 0 10px;
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  margin-top: 18px;
  padding: 2px 9px;
  border: 1px solid rgba(159, 63, 53, 0.35);
  border-radius: 999px;
  color: var(--red);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.page-heading {
  padding: 54px 0 34px;
}

.page-heading .lead {
  max-width: 760px;
  margin-top: 18px;
  font-size: 18px;
}

.single {
  max-width: 840px;
}

.content {
  padding-bottom: 64px;
}

.content h2 {
  margin: 42px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 28px;
  line-height: 1.35;
}

.content p,
.content ul {
  margin: 0 0 20px;
}

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

.site-footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 30px, 1120px);
  }

  .site-header {
    gap: 18px;
  }

  .hero,
  .article-list,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 28px;
    padding: 42px 0;
  }

  .hero-image {
    order: -1;
    max-height: 360px;
  }

  .hero h1,
  .page-heading h1 {
    font-size: 52px;
  }

  .section-heading {
    padding: 42px 0 18px;
  }

  .article-list {
    gap: 14px;
    padding-bottom: 48px;
  }

  .page-heading {
    padding: 44px 0 30px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
    line-height: 1.78;
  }

  .site-header,
  .site-footer,
  main {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

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

  .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 253, 248, 0.65);
  }

  .hero {
    gap: 22px;
    padding: 32px 0 38px;
  }

  .hero-image {
    max-height: 260px;
    border-radius: 6px;
  }

  .hero h1,
  .page-heading h1 {
    font-size: 40px;
    line-height: 1.1;
  }

  .hero p {
    margin-top: 16px;
  }

  .hero p,
  .page-heading .lead {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 46px;
  }

  .section-heading {
    padding: 34px 0 16px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .theme-grid a,
  .article-item {
    padding: 16px;
    border-radius: 6px;
  }

  .theme-grid span {
    font-size: 20px;
  }

  .article-item h2,
  .article-item h3 {
    font-size: 20px;
  }

  .page-heading {
    padding: 36px 0 24px;
  }

  .content {
    padding-bottom: 48px;
  }

  .content h2 {
    margin-top: 34px;
    font-size: 24px;
  }

  .content ul {
    padding-left: 1.25em;
  }

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 20px, 1120px);
  }

  .hero h1,
  .page-heading h1 {
    font-size: 36px;
  }

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

  .hero-image {
    max-height: 220px;
  }
}
