:root {
  color: #1c1917;
  background: #fafaf9;
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue",
    Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(
      90deg,
      transparent calc(50% - 40rem),
      #e8e2dc calc(50% - 40rem),
      #e8e2dc calc(50% - 40rem + 1px),
      transparent calc(50% - 40rem + 1px)
    ),
    linear-gradient(
      90deg,
      transparent calc(50% + 40rem),
      #e8e2dc calc(50% + 40rem),
      #e8e2dc calc(50% + 40rem + 1px),
      transparent calc(50% + 40rem + 1px)
    ),
    #fafaf9;
  color: #292524;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid #ddd5ce;
  background: rgb(253 252 251 / 94%);
  backdrop-filter: blur(16px);
}

.site-header-inner,
.site-footer {
  width: min(100%, 80rem);
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #0c0a09;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd5ce;
  border-radius: 0.5rem;
  background: white;
  padding: 0.3rem;
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.site-brand small {
  margin-top: 0.05rem;
  color: #a8a29e;
  font-size: 0.68rem;
  font-weight: 600;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-header nav a {
  border-radius: 0.45rem;
  padding: 0.58rem 0.85rem;
  color: #57534e;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover {
  background: #f5f3f0;
  color: #0c0a09;
}

.site-header nav .primary-nav-link {
  margin-left: 0.25rem;
  background: #18181b;
  color: white;
}

.site-header nav .primary-nav-link:hover {
  background: #292524;
  color: white;
}

.article-main,
.article-index-main {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
}

.article-main {
  padding: 3.5rem 0 5rem;
}

.article-card {
  max-width: 51rem;
  margin: 0 auto;
  border: 1px solid #e7e0da;
  background: #fdfcfb;
  box-shadow: 0 1.5rem 5rem rgb(41 37 36 / 7%);
}

.article-title-block {
  border-bottom: 1px solid #ebe5df;
  padding: 4.5rem 5.25rem 3.5rem;
}

.article-kicker {
  margin: 0 0 1.25rem;
  color: #ea580c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}

a.article-kicker:hover {
  color: #c2410c;
}

.article-title-block h1,
.index-intro h1 {
  margin: 0;
  color: #0c0a09;
  font-weight: 750;
  letter-spacing: -0.055em;
}

.article-title-block h1 {
  max-width: 42rem;
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  line-height: 1.13;
}

.article-description {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: #78716c;
  font-size: 1rem;
  line-height: 1.85;
}

.article-title-block time {
  display: block;
  margin-top: 1.6rem;
  color: #a8a29e;
  font-size: 0.75rem;
  font-weight: 600;
}

.article-content {
  padding: 3.5rem 5.25rem 5rem;
  color: #44403c;
  font-size: 1.02rem;
  line-height: 2.05;
}

.article-content p {
  margin: 1.35rem 0;
}

.article-content > p:first-child {
  margin-top: 0;
  color: #292524;
  font-size: 1.13rem;
  line-height: 2;
}

.article-content h2 {
  margin: 3.6rem 0 1.2rem;
  color: #1c1917;
  font-size: 1.65rem;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.article-content h3 {
  margin: 2.5rem 0 0.9rem;
  color: #292524;
  font-size: 1.2rem;
  line-height: 1.55;
}

.article-content strong {
  color: #1c1917;
  font-weight: 750;
}

.article-content a {
  color: #c2410c;
  text-decoration-color: #fdba74;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.article-content a:hover {
  color: #9a3412;
  text-decoration-color: currentcolor;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.4rem;
}

.article-content li {
  padding-left: 0.35rem;
}

.article-content li + li {
  margin-top: 0.55rem;
}

.article-content li::marker {
  color: #f97316;
  font-weight: 700;
}

.article-content blockquote {
  margin: 2.5rem 0 0;
  border-left: 3px solid #f97316;
  background: #faf7f4;
  padding: 1.25rem 1.5rem;
  color: #57534e;
}

.article-content code {
  border-radius: 0.25rem;
  background: #f5f3f0;
  padding: 0.12rem 0.35rem;
  font-size: 0.9em;
}

.related-section {
  max-width: 64rem;
  margin: 5rem auto 0;
}

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

.section-heading h2 {
  margin: 0;
  color: #1c1917;
  font-size: 1.2rem;
}

.section-heading a,
.section-heading span {
  color: #78716c;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.section-heading a:hover {
  color: #c2410c;
}

.article-index-main {
  padding: 0 0 6rem;
}

.index-intro {
  max-width: 61rem;
  padding: 7.5rem 0 6.5rem;
}

.index-intro h1 {
  max-width: 52rem;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: 1.05;
}

.index-intro > p:last-child {
  max-width: 38rem;
  margin: 2rem 0 0;
  color: #78716c;
  font-size: 1.08rem;
  line-height: 1.9;
}

.index-section-heading {
  border-bottom: 1px solid #ddd5ce;
  padding-bottom: 1rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #ded8d2;
  background: #ded8d2;
}

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

.article-list-card {
  min-width: 0;
  background: #fdfcfb;
}

.article-list-card > a {
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem;
  text-decoration: none;
  transition: background 160ms ease;
}

.article-grid-compact .article-list-card > a {
  min-height: 18rem;
  padding: 1.75rem;
}

.article-list-card > a:hover {
  background: #fffaf5;
}

.card-index {
  margin: 0 0 3rem;
  color: #fb923c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.article-list-card h3 {
  margin: 0;
  color: #1c1917;
  font-size: 1.4rem;
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.article-grid-compact .article-list-card h3 {
  font-size: 1.08rem;
}

.article-list-card div > p:last-child {
  margin: 1rem 0 0;
  color: #78716c;
  font-size: 0.88rem;
  line-height: 1.75;
}

.article-grid-compact .article-list-card div > p:last-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-list-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  color: #a8a29e;
  font-size: 0.72rem;
  font-weight: 650;
}

.article-list-card footer span {
  color: #57534e;
}

.site-footer {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #ddd5ce;
  padding: 1.5rem;
  color: #a8a29e;
  font-size: 0.75rem;
  font-weight: 650;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-dot {
  color: #f97316;
  font-size: 0.4rem;
}

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

.site-footer a:hover {
  color: #57534e;
}

@media (max-width: 760px) {
  body {
    background: #fafaf9;
  }

  .site-header-inner {
    min-height: 3.75rem;
    padding: 0.45rem 1rem;
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .site-brand small,
  .site-header nav > a:first-child {
    display: none;
  }

  .article-main {
    width: 100%;
    padding: 0 0 3.5rem;
  }

  .article-card {
    border-width: 0 0 1px;
    box-shadow: none;
  }

  .article-title-block {
    padding: 3.2rem 1.35rem 2.5rem;
  }

  .article-title-block h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .article-content {
    padding: 2.25rem 1.35rem 3.5rem;
    font-size: 1rem;
    line-height: 1.95;
  }

  .article-content > p:first-child {
    font-size: 1.05rem;
  }

  .article-content h2 {
    margin-top: 3rem;
    font-size: 1.4rem;
  }

  .related-section {
    margin: 3.5rem 1rem 0;
  }

  .article-index-main {
    width: min(100% - 2rem, 72rem);
    padding-bottom: 4rem;
  }

  .index-intro {
    padding: 4.5rem 0 4rem;
  }

  .index-intro h1 {
    font-size: clamp(2.65rem, 14vw, 4.3rem);
  }

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

  .article-list-card > a,
  .article-grid-compact .article-list-card > a {
    min-height: 0;
    padding: 1.6rem;
  }

  .card-index {
    margin-bottom: 1.8rem;
  }

  .site-footer {
    min-height: 5rem;
    padding: 1rem;
  }
}
