:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --ink: #191e18;
  --green: #29513d;
  --muted: #525951;
  --line: #c8c9bb;
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .26em; }
a:focus-visible { outline: 2px solid #a84a35; outline-offset: 5px; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-header { min-height: 5.5rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 1.125rem; text-decoration: none; }
.brand span { margin-inline-start: .8rem; font-size: .75rem; letter-spacing: .14em; color: var(--green); }
nav { display: flex; gap: clamp(1rem, 4vw, 2.25rem); }
nav a, .site-footer a { text-decoration: none; }
nav a:hover, .site-footer a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.eyebrow { font-size: .875rem; letter-spacing: .13em; font-weight: 750; color: var(--green); }
h1, h2 { font-family: 'Songti SC', 'Noto Serif CJK SC', SimSun, serif; }
h1 { margin-block: 1rem 1.4rem; font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.17; letter-spacing: -.055em; font-weight: 800; }
h1 span { color: var(--green); }
.intro { max-width: 28rem; font-size: 1.0625rem; line-height: 1.85; color: var(--muted); }
.links { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 1.35rem; margin-top: 1.9rem; }
.button { padding: .85rem 1.25rem; border-radius: .55rem; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; }
.button:hover { background: #193d2b; }
.text-link { color: var(--green); font-weight: 700; }
.note, figcaption { font-size: .8125rem; }
.note { margin-top: .85rem; color: var(--muted); }

.shelf-scene {
  padding: clamp(1rem, 3.5vw, 2.8rem) clamp(.8rem, 3vw, 2.5rem) .85rem;
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at 12% 10%, #52735a, transparent 75%), #203a2c;
}
.shelf { border-radius: .95rem; padding: clamp(.7rem, 2vw, 1.35rem); background: #fffaf0; box-shadow: 0 1rem 2rem #14271e66; }
.shelf-top, .reading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.shelf-top span, .reading span { color: #4b584c; font-size: .8125rem; }
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.3rem, 1vw, .65rem); margin-block: 1rem; }
.book {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: .45rem;
  aspect-ratio: 3 / 4.3;
  overflow: hidden;
  border-radius: .18rem .45rem .45rem .18rem;
  padding: .55rem .42rem .45rem .68rem;
  box-shadow: inset .26rem 0 #0002;
}
.book span { font-size: .75rem; }
.book b { font-family: 'Songti SC', SimSun, serif; font-size: clamp(.9rem, 2vw, 1.55rem); line-height: 1.12; }
.book i { position: absolute; z-index: -1; bottom: -12%; right: -20%; width: 90%; aspect-ratio: 1; opacity: .45; }
.book-green { background: #3d6651; color: #fff7d9; }
.book-green i { border: 1px solid; border-radius: 50%; box-shadow: 0 0 0 .35rem #f7edbb30, 0 0 0 .75rem #f7edbb30, 0 0 0 1.2rem #f7edbb30; }
.book-yellow { background: #e9bf6c; color: #322518; }
.book-yellow i { background: repeating-linear-gradient(125deg, currentColor 0 1px, transparent 1px 7px); }
.book-red { background: #a84a35; color: #fff5e6; }
.book-red i { transform: rotate(45deg); border: 1px solid; box-shadow: 0 0 0 .5rem #fff5e629, inset 0 0 0 .45rem #fff5e639; }
.reading { padding: .65rem; border-radius: .5rem; background: #e8ebdc; }
.reading strong { display: block; margin-top: .18rem; font-size: .9375rem; }
.progress { min-width: 35%; text-align: right; }
.track { height: .3rem; margin-top: .4rem; border-radius: 1rem; background: linear-gradient(to right, var(--green) 53.33%, #bdc9b7 53.33%); }
figcaption { margin-top: .75rem; text-align: center; color: #eef1e5; }

.features { padding-block: 2rem 3.75rem; border-top: 1px solid var(--line); }
h2 { margin-bottom: 1.6rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-grid article { padding: clamp(1.15rem, 2.5vw, 1.75rem); border: 1px solid var(--line); border-radius: .85rem; background: #fbf9f2; }
h3 { margin-bottom: .65rem; font-size: 1.125rem; color: var(--green); }
.feature-grid p, .local p { line-height: 1.75; color: var(--muted); }
.local { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; margin-top: 1.6rem; }
.site-footer { padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

@media (max-width: 48rem) {
  .hero, .feature-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2rem, 8vw, 4.25rem); }
  .shelf-scene { width: min(100%, 30rem); }
  .book b { font-size: clamp(1rem, 4vw, 1.55rem); }
}

@media (max-width: 26rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { min-height: 4.25rem; }
  .brand span { display: none; }
}
