:root {
  --ink: #17211c;
  --muted: #667069;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #d9ded9;
  --forest: #285943;
  --coral: #d86f55;
  --soft-green: #e6eee8;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(23, 33, 28, 0.1);
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--forest);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 11px 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 160ms ease;
}

main {
  overflow: hidden;
}

.hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 56px;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(300px, 1.15fr);
  align-items: end;
  gap: 56px;
  margin-bottom: 32px;
}

.eyebrow,
.section-index,
.note-meta {
  margin: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  margin: 6px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 560px;
  margin: 0 0 14px;
  color: #3f4a43;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 5px;
}

.hero-visual {
  position: relative;
  display: grid;
  align-content: center;
  width: 100%;
  height: clamp(250px, 34vw, 390px);
  min-height: 250px;
  padding: clamp(30px, 5vw, 68px);
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

.hero-visual::before {
  position: absolute;
  top: 0;
  right: 11%;
  width: 18%;
  height: 100%;
  background: #b9cbbb;
  content: "";
}

.hero-visual::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11%;
  height: 44%;
  background: var(--coral);
  content: "";
}

.visual-date {
  position: absolute;
  top: 26px;
  left: clamp(30px, 5vw, 68px);
  margin: 0;
  color: #c8d8cd;
  font-size: 12px;
  font-weight: 700;
}

.hero-visual blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.visual-caption {
  position: absolute;
  right: clamp(30px, 5vw, 68px);
  bottom: 24px;
  z-index: 1;
  margin: 0;
  color: #edf3ef;
  font-size: 12px;
}

.visual-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 3px;
  background: var(--coral);
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(300px, 1.15fr);
  gap: 56px;
  margin-bottom: 42px;
}

.section-heading h2,
.about-title h2 {
  margin: 0 0 5px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 0;
}

.section-heading > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.note {
  min-height: 278px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest);
  border-radius: 4px;
  background: var(--white);
}

.note:nth-child(2) {
  border-top-color: var(--coral);
}

.note h3,
.reading-list h3 {
  margin: 28px 0 12px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: 0;
}

.note > p:last-child,
.reading-list p,
.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.reading-section {
  width: 100%;
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  background: var(--soft-green);
}

.reading-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.reading-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(40, 89, 67, 0.35);
}

.reading-list h3 {
  margin-top: 0;
}

.book-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 64px;
  color: var(--white);
  background: var(--forest);
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.book-mark-alt {
  background: var(--coral);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(300px, 1.15fr);
  gap: 56px;
}

.about-copy {
  max-width: 680px;
}

.about-copy p + p {
  margin-top: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px max(24px, calc((100vw - 1120px) / 2));
  color: #cfd6d1;
  background: var(--ink);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.icp-link {
  color: #e6eee8;
  text-underline-offset: 4px;
}

.icp-link:hover,
.icp-link:focus-visible {
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 20px;
  }

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
  }

  .hero {
    width: min(100% - 40px, 1120px);
    padding: 38px 0 46px;
  }

  .hero-copy,
  .section-heading,
  .about-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-intro {
    font-size: 18px;
  }

  .hero-visual {
    height: 245px;
    padding: 28px;
  }

  .visual-date {
    top: 20px;
    left: 28px;
  }

  .visual-caption {
    right: auto;
    bottom: 16px;
    left: 28px;
    max-width: 150px;
    color: #c8d8cd;
  }

  .section {
    width: min(100% - 40px, 1120px);
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .notes-grid,
  .reading-list {
    grid-template-columns: 1fr;
  }

  .note {
    min-height: auto;
  }

  .reading-section {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .reading-list {
    gap: 32px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    padding: 22px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
