:root {
  color-scheme: light;
  --ink: #27231d;
  --muted: #6b6257;
  --paper: #f7f2e8;
  --surface: #fffdf8;
  --line: #ddd2c0;
  --accent: #9c4f2f;
  --accent-dark: #71351f;
  --jade: #38675a;
  --gold: #b88532;
  --shadow: 0 18px 50px rgba(55, 43, 28, 0.08);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(184, 133, 50, 0.14), transparent 22rem),
    linear-gradient(180deg, #faf6ee 0%, var(--paper) 100%);
  line-height: 1.75;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid rgba(115, 91, 62, 0.16);
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 1.15rem;
}

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

.site-nav a {
  color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

.hero {
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-note {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow);
}

.hero-note strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--jade);
  font-size: 1.05rem;
}

.hero-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1.3fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.25rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.entry-card {
  grid-column: span 4;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.entry-card:nth-child(1),
.entry-card:nth-child(2) {
  grid-column: span 6;
}

.entry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(156, 79, 47, 0.55);
}

.entry-number {
  margin-bottom: auto;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 0.9rem;
}

.entry-card h3 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.35rem;
}

.entry-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.75rem;
  color: #fffaf1;
  background: #2f5148;
}

.feature-character {
  min-height: 250px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 1.2rem;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(7rem, 20vw, 12rem);
  line-height: 1;
}

.feature h2 {
  margin-bottom: 1rem;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.feature p {
  color: rgba(255,255,255,0.82);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 0.75rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-weight: 750;
  text-decoration: none;
}

.archive-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 2.5rem;
}

.archive-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.archive-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
  padding-bottom: 6rem;
}

.archive-nav {
  position: sticky;
  top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.archive-nav strong {
  display: block;
  margin-bottom: 0.75rem;
}

.archive-nav a {
  display: block;
  padding: 0.35rem 0;
  color: var(--muted);
}

.archive-content section {
  padding: 1rem 0 4.5rem;
  scroll-margin-top: 2rem;
}

.archive-content h2 {
  margin-bottom: 1.2rem;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.archive-content > section > p {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.principle-grid,
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.principle-card,
.evidence-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.principle-card h3,
.evidence-card h3 {
  margin-bottom: 0.55rem;
}

.principle-card p,
.evidence-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.level {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font-weight: 800;
}

.evidence-card:nth-child(2) .level {
  background: var(--gold);
}

.evidence-card:nth-child(3) .level {
  background: var(--jade);
}

.flow-list {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  position: relative;
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0 0 1.7rem;
  counter-increment: flow;
}

.flow-list li::before {
  content: counter(flow);
  z-index: 1;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font-family: Georgia, serif;
}

.flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.38rem;
  top: 2.6rem;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.flow-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.flow-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.notice {
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 0.8rem 0.8rem 0;
  background: rgba(184, 133, 50, 0.1);
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .hero-grid,
  .section-heading,
  .feature,
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .archive-nav {
    position: static;
  }

  .archive-nav a {
    display: inline-block;
    margin-right: 1rem;
  }

  .entry-card,
  .entry-card:nth-child(1),
  .entry-card:nth-child(2) {
    grid-column: span 6;
  }

  .principle-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .entry-card,
  .entry-card:nth-child(1),
  .entry-card:nth-child(2) {
    grid-column: 1 / -1;
    min-height: 200px;
  }

  .feature {
    padding: 1.4rem;
  }

  .feature-character {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .entry-card {
    transition: none;
  }
}
