:root {
  color-scheme: light;
  --ink: #10251d;
  --muted: #5a6d62;
  --paper: #f7f4ed;
  --panel: #ffffff;
  --green: #1fc66a;
  --green-dark: #0d6d3b;
  --line: #dfe8df;
  --shadow: 0 24px 80px rgba(12, 38, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(16, 37, 29, 0.08);
  background: rgba(247, 244, 237, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--green);
  color: #082014;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  padding: 10px 13px;
  border-radius: 999px;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(31, 198, 106, 0.13);
  color: var(--ink);
  outline: none;
}

.nav-cta {
  background: var(--ink);
  color: #fff !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(42px, 6vw, 100px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: clamp(54px, 8vw, 112px) clamp(20px, 5vw, 88px);
  background:
    radial-gradient(circle at 84% 18%, rgba(31, 198, 106, 0.24), transparent 26%),
    linear-gradient(135deg, #f7f4ed 0%, #edf6ed 54%, #dff3e5 100%);
  overflow: hidden;
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
}

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

.button.secondary {
  border: 1px solid rgba(16, 37, 29, 0.18);
  background: rgba(255, 255, 255, 0.55);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.avatar {
  position: absolute;
  right: 4%;
  top: 16px;
  width: min(72vw, 430px);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.signal-card,
.reader-card {
  position: absolute;
  left: 0;
  max-width: 360px;
  border: 1px solid rgba(16, 37, 29, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.signal-card {
  top: 96px;
  padding: 24px;
}

.signal-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-weight: 800;
}

.signal-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.25;
}

.reader-card {
  bottom: 64px;
  left: 60px;
  display: flex;
  gap: 16px;
  padding: 22px;
}

.reader-dot {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
}

.reader-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(60px, 9vw, 118px) clamp(20px, 5vw, 88px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

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

.section-heading h2,
.about-card h2,
.follow-copy h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.topic {
  min-height: 260px;
  padding: 30px;
  border: 1px solid rgba(16, 37, 29, 0.08);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(16, 37, 29, 0.08);
}

.topic span {
  color: var(--green-dark);
  font-weight: 900;
}

.topic h3 {
  margin: 54px 0 14px;
  font-size: 30px;
}

.topic p,
.article-card p,
.about-card p,
.follow-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.articles-section {
  background: #10251d;
  color: #fff;
}

.articles-section .eyebrow,
.articles-section .article-meta {
  color: #91efb6;
}

.article-list {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.article-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.article-card.featured {
  grid-row: span 2;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.article-meta {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.article-card h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.18;
}

.article-card p:not(.article-meta) {
  margin: 12px 0 0;
  color: #c9ded1;
}

.article-card a {
  display: inline-flex;
  margin-top: 18px;
  color: #91efb6;
  font-weight: 800;
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 38px;
  align-items: end;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.about-card p {
  margin: 0;
  font-size: 19px;
}

.follow-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: center;
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 88px);
  background: linear-gradient(135deg, #dff3e5, #f7f4ed);
}

.follow-copy p {
  max-width: 620px;
  font-size: 19px;
}

.qr-box {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 26px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}

.qr-grid span {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--ink);
}

.qr-grid span:nth-child(2n),
.qr-grid span:nth-child(7),
.qr-grid span:nth-child(18),
.qr-grid span:nth-child(23) {
  opacity: 0.1;
}

.qr-box strong {
  font-size: 22px;
}

.qr-box small {
  color: #bfe8cc;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 88px);
  color: var(--muted);
  background: #fff;
}

.footer a {
  color: var(--green-dark);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .topic-grid,
  .article-list,
  .about-card,
  .follow-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 500px;
  }

  .avatar {
    right: 0;
    left: auto;
    width: min(88vw, 390px);
  }

  .signal-card {
    top: 36px;
  }

  .reader-card {
    left: 0;
    bottom: 24px;
  }

  .section-heading.compact {
    display: block;
  }

  .article-card.featured {
    grid-row: auto;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 52px;
  }

  .hero-copy {
    max-width: 338px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.12;
    max-width: 338px;
    word-break: break-all;
  }

  .hero-text {
    max-width: 338px;
    font-size: 18px;
    word-break: break-all;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 460px;
  }

  .signal-card,
  .reader-card {
    max-width: min(100%, 320px);
  }

  .topic,
  .about-card {
    padding: 24px;
  }
}
