/* Article pages — matches landing tokens, no React bundle. */
:root {
  --ink: #1c211e;
  --ink-soft: #3a433d;
  --paper: #f2f4f1;
  --jade: #2d6a58;
  --jade-deep: #1f4d40;
  --gold-soft: #d4c0a4;
  --line: rgba(28, 33, 30, 0.12);
  --font-display: "Noto Serif SC", "Cormorant Garamond", serif;
  --font-latin: "Cormorant Garamond", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ziwei-article {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(197, 214, 206, 0.5), transparent 58%),
    radial-gradient(800px 420px at 100% 0%, rgba(212, 192, 164, 0.22), transparent 52%),
    linear-gradient(180deg, #eef1ed 0%, var(--paper) 42%, #e8ece7 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.article-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.35rem 0 0.5rem;
}

.article-brand {
  text-decoration: none;
  letter-spacing: 0.28em;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.article-brand span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-latin);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  opacity: 0.72;
}

.article-nav-cta {
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(28, 33, 30, 0.22);
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.article-nav-cta:hover {
  background: #e4d3ba;
}

.article {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto 4.5rem;
  padding-top: 2.4rem;
  animation: article-rise 0.9s var(--ease) both;
}

.article-eyebrow {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jade-deep);
}

.article h1 {
  margin: 0 0 1rem;
  font-family: var(--font-latin);
  font-size: clamp(2rem, 5vw, 3.05rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.article .lead {
  margin: 0 0 2.4rem;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.article h2 {
  margin: 2.4rem 0 0.85rem;
  font-family: var(--font-latin);
  font-size: 1.55rem;
  font-weight: 600;
}

.article p,
.article li {
  font-size: 1.02rem;
  line-height: 1.8;
}

.article p {
  margin: 0 0 1.05rem;
}

.article ul {
  margin: 0 0 1.2rem;
  padding-left: 1.15rem;
}

.article blockquote {
  margin: 1.4rem 0 1.6rem;
  padding-left: 1rem;
  border-left: 2px solid var(--jade);
  font-family: var(--font-latin);
  font-size: 1.35rem;
  line-height: 1.45;
  font-style: italic;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4rem 0 1.6rem;
  font-size: 0.95rem;
}

.article th,
.article td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article th {
  font-weight: 600;
  color: var(--jade-deep);
}

.article-cta {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.article-cta .btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  background: var(--jade);
  color: #f7faf7;
}

.article-cta .btn:hover {
  background: var(--jade-deep);
}

.article-foot {
  margin-top: 2.2rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

@keyframes article-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .article-nav,
  .article {
    width: min(760px, calc(100% - 1.6rem));
  }

  .article table {
    font-size: 0.86rem;
  }
}
