:root {
  --bg: #f4efe6;
  --bg-soft: #fffaf3;
  --paper: rgba(255, 250, 243, 0.86);
  --text: #29211d;
  --muted: #6a5a50;
  --line: rgba(85, 54, 35, 0.12);
  --brand: #8f4b2e;
  --brand-strong: #6f341f;
  --sage: #42594d;
  --ink: #1f1a17;
  --shadow: 0 28px 60px rgba(38, 24, 18, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(210, 176, 147, 0.28), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(161, 177, 165, 0.22), transparent 22%),
    linear-gradient(180deg, #f8f3eb 0%, #f4efe6 52%, #efe8dc 100%);
  font-family: "Source Han Sans SC", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}

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

a,
.button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(143, 75, 46, 0.12);
}

p, li, h1, h2, h3, a, small, span {
  line-break: auto;
  word-break: break-word;
}

h1, h2, h3 {
  scroll-margin-top: 120px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(41, 33, 29, 0.94);
  color: #fff7ef;
  transition: top 0.18s ease;
}

.skip-link:focus-visible {
  top: 16px;
}

h1, h2, h3, .panel-quote, .start-grid a, .article-card h3 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

.site-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  position: sticky;
  top: 16px;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(44, 28, 20, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff7ef;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, #2b322e, #965231);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
  border-color: rgba(143, 75, 46, 0.38);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(143, 75, 46, 0.36);
  outline-offset: 4px;
}

.hero, .section, .page-main, .article-main {
  margin-top: 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 24px;
  align-items: start;
}

.hero-visual-stack {
  display: grid;
  gap: 18px;
}

.hero-copy,
.hero-panel,
.story-panel,
.service-panel,
.page-hero,
.article-shell,
.article-side .sticky-card,
.service-card,
.service-cta,
.series-item,
.start-options article {
  background: var(--paper);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
}

.hero-copy,
.page-hero,
.article-shell {
  padding: 48px;
  border-radius: 34px;
}

.hero-panel,
.story-panel,
.service-panel,
.service-cta,
.article-side .sticky-card {
  padding: 30px;
  border-radius: 28px;
}

.hero-visual-card,
.page-hero-media,
.article-hero-media,
.series-media,
.article-card-media {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 248, 240, 0.85);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
}

.hero-visual-card {
  margin: 0;
  position: relative;
}

.hero-image,
.page-hero-image,
.article-hero-image,
.series-image,
.card-image,
.start-option-image,
.community-qr-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image,
.page-hero-image,
.article-hero-image,
.series-image,
.card-image,
.start-option-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-visual-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff7ef;
  background: linear-gradient(180deg, rgba(39, 28, 23, 0.16), rgba(39, 28, 23, 0.76));
  backdrop-filter: blur(10px);
  font-size: 0.94rem;
}

.hero h1,
.page-hero h1,
.article-header h1,
.section h2,
.service-card h2,
.service-cta h2 {
  font-family: "Source Han Serif SC", "Songti SC", "Noto Serif CJK SC", serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.7rem, 4.1vw, 4rem);
  line-height: 1.14;
  width: 100%;
  max-width: none;
}
.page-hero h1, .article-header h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }

.eyebrow, .card-tag, .panel-label {
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--brand);
  margin: 0 0 14px;
  font-weight: 700;
}

.lead {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 44rem;
  margin-top: 18px;
}

.hero-route {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-route span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(143, 75, 46, 0.12);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions,
.card-meta,
.article-meta,
.series-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff7f1;
}

.button-secondary {
  border: 1px solid rgba(143, 75, 46, 0.28);
  color: var(--brand-strong);
  background: rgba(255, 250, 243, 0.68);
}

.panel-quote {
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.5rem;
  line-height: 1.45;
  margin: 0;
  letter-spacing: 0.01em;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.signal-grid div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.44);
  border: 1px solid var(--line);
}

.signal-grid strong {
  display: block;
  font-size: 1.6rem;
  color: var(--ink);
}

.signal-grid span { color: var(--muted); font-size: 0.9rem; }

.section {
  padding: 12px 0;
}

.section-head {
  margin-bottom: 22px;
}

.problem-grid,
.article-grid,
.start-grid,
.start-options,
.dual-panel {
  display: grid;
  gap: 18px;
}

.problem-grid {
  grid-template-columns: repeat(3, 1fr);
}

.problem-grid article,
.article-card,
.start-grid a {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 250, 243, 0.76);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}

.article-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card-body {
  padding: 22px 24px 24px;
}

.article-card-media {
  display: block;
}

.problem-grid h3,
.article-card h3,
.series-item h2,
.start-options article h2 {
  font-family: "Source Han Serif SC", "Songti SC", serif;
  margin-top: 0;
  line-height: 1.34;
}

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

.article-card p:last-of-type { margin-bottom: 0; }

.card-pulse,
.article-pulse {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.card-pulse {
  margin-top: 0;
}

.article-card-feature {
  background: linear-gradient(160deg, rgba(247, 238, 228, 0.92), rgba(230, 235, 229, 0.78));
  border-color: rgba(143, 75, 46, 0.16);
}

.quote-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quote-band blockquote {
  margin: 0;
  padding: 22px;
  border-left: 3px solid rgba(111, 52, 31, 0.25);
  background: rgba(255, 247, 239, 0.68);
  border-radius: 20px;
}

.quote-band .is-featured {
  background: linear-gradient(135deg, rgba(111,52,31,0.92), rgba(63,86,75,0.94));
  color: #fff8f1;
}

.quote-band p {
  margin: 0;
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.22rem;
  line-height: 1.52;
}

.dual-panel {
  grid-template-columns: 1.1fr 0.9fr;
}

.service-panel ul,
.article-content ul,
.service-card ul,
.article-side ul {
  padding-left: 1.2rem;
}

.connect-panel .start-grid {
  grid-template-columns: repeat(4, 1fr);
}

.start-grid a {
  min-height: 152px;
  display: flex;
  align-items: end;
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.25rem;
}

.page-main,
.article-main {
  display: grid;
  gap: 22px;
}

.series-list,
.service-sections {
  display: grid;
  gap: 18px;
}

.service-community {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  gap: 18px;
}

.series-item,
.service-card,
.service-community-copy,
.service-community-card {
  padding: 28px;
  border-radius: 28px;
}

.service-community-copy,
.service-community-card {
  background: var(--paper);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
}

.series-item {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.series-copy p:last-of-type {
  margin-bottom: 0;
}

.page-hero-split,
.article-header-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.page-hero-media,
.article-hero-media {
  margin: 0;
}

.service-community-card {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(244, 239, 230, 0.96));
}

.community-qr-image {
  max-width: min(100%, 360px);
  border-radius: 24px;
  background: #121212;
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.12);
}

.service-community-card figcaption {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.article-main {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.article-content {
  margin-top: 34px;
}

.article-content h2,
.article-content h3 {
  font-family: "Source Han Serif SC", "Songti SC", serif;
}

.article-content p,
.article-content li {
  font-size: 1.06rem;
  line-height: 1.92;
  letter-spacing: 0.01em;
}

code {
  background: rgba(111, 52, 31, 0.08);
  color: var(--brand-strong);
  padding: 0.15em 0.4em;
  border-radius: 0.4em;
}

.article-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
}

.article-nav a {
  color: var(--brand-strong);
  font-weight: 600;
}

.start-options {
  grid-template-columns: repeat(2, 1fr);
}

.start-options article {
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
}

.start-option-image {
  margin: -28px -28px 22px;
}

.site-footer {
  margin-top: 44px;
  padding: 24px 12px 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .dual-panel,
  .article-main,
  .problem-grid,
  .quote-band,
  .article-grid,
  .connect-panel .start-grid,
  .start-options,
  .service-community,
  .page-hero-split,
  .article-header-split {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    border-radius: 26px;
    padding: 18px;
  }

  .site-nav {
    width: 100%;
    gap: 12px 18px;
  }

  .hero-copy,
  .page-hero,
  .article-shell {
    padding: 32px 24px;
  }

  .signal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .series-item {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .site-nav a {
    font-size: 0.96rem;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 12px;
  }

  .hero h1 { font-size: 2.45rem; }

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

  .site-header {
    gap: 14px;
  }

  .site-nav a {
    padding-bottom: 2px;
  }

  .hero-copy,
  .hero-panel,
  .page-hero,
  .article-shell,
  .story-panel,
  .service-panel,
  .service-cta,
  .series-item,
  .service-card,
  .start-options article,
  .article-side .sticky-card {
    padding: 24px 20px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .hero-route span {
    width: fit-content;
  }

  .start-option-image {
    margin: -24px -20px 20px;
  }
}
