:root {
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --surface-muted: #f0ede7;
  --text: #111111;
  --text-soft: #5c5c5c;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.24);
  --accent: #111111;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 18rem),
    repeating-linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.03) 0,
      rgba(17, 17, 17, 0.03) 1px,
      transparent 1px,
      transparent 96px
    ),
    var(--bg);
  font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

.site-frame {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 2rem;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.55rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.hero,
.module-card,
.article-card,
.panel,
.article-shell,
.article-layout {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.84);
}

.hero {
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 28px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.hero h1,
.section-heading h2,
.module-card h3,
.article-card h3,
.panel h1,
.article-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.94;
}

.hero-copy,
.module-card p,
.article-card p,
.panel p,
.article-body p,
.article-body li {
  color: var(--text-soft);
  line-height: 1.82;
}

.hero-copy,
.page-intro,
.article-copy {
  max-width: 760px;
  margin: 1.25rem 0 0;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
}

.section {
  margin-top: 4rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: clamp(1.95rem, 4vw, 3rem);
}

.section-note,
.article-meta,
.meta-line,
.module-index,
.breadcrumb {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.module-grid,
.article-list,
.two-column,
.stats-grid {
  display: grid;
  gap: 1rem;
}

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

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

.module-card,
.article-card,
.panel {
  border-radius: 22px;
  padding: 1.4rem;
}

.module-card h3,
.article-card h3,
.panel h1 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
}

.module-card a,
.article-card a,
.breadcrumb a,
.article-sources a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.module-card a:hover,
.module-card a:focus-visible,
.article-card a:hover,
.article-card a:focus-visible,
.breadcrumb a:hover,
.breadcrumb a:focus-visible,
.article-sources a:hover,
.article-sources a:focus-visible {
  border-color: var(--line-strong);
}

.module-card.is-featured {
  background: var(--accent);
  color: #ffffff;
}

.module-card.is-featured p,
.module-card.is-featured a,
.module-card.is-featured .module-index {
  color: rgba(255, 255, 255, 0.85);
}

.two-column {
  grid-template-columns: 1.4fr 0.9fr;
}

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

.stat-box {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.stat-box h3,
.stat-box p {
  margin: 0;
}

.stat-box h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.panel.muted {
  background: var(--surface-muted);
}

.article-layout {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 28px;
}

.article-hero {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1;
}

.article-shell {
  margin-top: 1.25rem;
  padding: 1.8rem;
  border-radius: 22px;
}

.article-body h2,
.article-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.article-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.6rem;
}

.article-body h3 {
  margin: 1.4rem 0 0.55rem;
  font-size: 1.16rem;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0.85rem 0 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.article-body li + li {
  margin-top: 0.45rem;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(17, 17, 17, 0.03);
  color: var(--text-soft);
}

.article-sources {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.article-sources h2 {
  margin-top: 0;
}

.article-sources ul {
  margin: 0.8rem 0 0;
  padding-left: 1.25rem;
}

.site-footer {
  padding-top: 2.5rem;
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .module-grid,
  .article-list,
  .two-column,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-frame {
    width: min(calc(100% - 1rem), var(--max-width));
  }

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

  .hero h1,
  .article-hero h1 {
    max-width: none;
  }

  .hero,
  .module-card,
  .article-card,
  .panel,
  .article-shell,
  .article-layout {
    border-radius: 20px;
  }
}
