:root {
  --paper: #f4efe4;
  --paper-deep: #e4d6bf;
  --ink: #17251f;
  --muted: #6f6657;
  --line: rgba(35, 45, 37, 0.16);
  --forest: #203c32;
  --forest-dark: #10251e;
  --gold: #b88a3d;
  --rust: #9d563b;
  --cream: #fff9ed;
  --shadow: 0 24px 70px rgba(28, 39, 32, 0.16);
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "LXGW WenKai", "Kaiti SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 12% 6%, rgba(184, 138, 61, 0.18), transparent 30rem),
    linear-gradient(135deg, #faf6ed 0%, var(--paper) 48%, #efe6d6 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(32, 60, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 60, 50, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 84%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 32px), 1120px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(255, 249, 237, 0.68);
  border-radius: 999px;
  background: rgba(255, 249, 237, 0.76);
  box-shadow: 0 16px 48px rgba(21, 32, 26, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-seal {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  background: var(--forest);
}

.brand-mark strong,
.brand-mark em {
  display: block;
  line-height: 1.1;
}

.brand-mark strong {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand-mark em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 15px;
  color: rgba(23, 37, 31, 0.78);
  font-size: 14px;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav-links a:hover {
  color: var(--forest-dark);
  background: rgba(32, 60, 50, 0.08);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: 124px 24px 72px;
  place-items: center;
  background:
    radial-gradient(circle at 82% 22%, rgba(184, 138, 61, 0.34), transparent 24rem),
    radial-gradient(circle at 74% 76%, rgba(32, 60, 50, 0.23), transparent 28rem),
    linear-gradient(145deg, #fbf5e7 0%, #eadbc2 58%, #d6bf94 100%);
}

.hero::after {
  position: absolute;
  inset: auto -8% -18% -8%;
  height: 260px;
  content: "";
  background: rgba(16, 37, 30, 0.12);
  filter: blur(80px);
}

.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.54) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(16, 37, 30, 0.14) 0 1px, transparent 1px);
  background-size: 18px 18px, 24px 24px;
  mix-blend-mode: multiply;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 1160px);
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}

.hero__copy {
  max-width: 640px;
  animation: rise-in 760ms ease both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.98;
}

.hero__lead {
  max-width: 520px;
  margin: 28px 0 0;
  color: rgba(23, 37, 31, 0.74);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--cream);
  background: var(--forest);
  box-shadow: 0 18px 36px rgba(16, 37, 30, 0.22);
}

.button--quiet {
  border-color: rgba(32, 60, 50, 0.2);
  color: var(--forest-dark);
  background: rgba(255, 249, 237, 0.54);
}

.reading-scene {
  position: relative;
  min-height: 560px;
  animation: scene-in 980ms 120ms ease both;
}

.scene-label {
  position: absolute;
  top: 20px;
  right: 18%;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(255, 249, 237, 0.7);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(16, 37, 30, 0.86);
  box-shadow: var(--shadow);
}

.scene-label span {
  font-size: 10px;
  letter-spacing: 0.2em;
}

.scene-label strong {
  margin-top: -20px;
  font-family: var(--serif);
  font-size: 42px;
}

.book-stack {
  position: absolute;
  right: 2%;
  bottom: 74px;
  left: 2%;
  height: 430px;
}

.display-book {
  position: absolute;
  bottom: 0;
  display: flex;
  width: 172px;
  height: 330px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 249, 237, 0.36);
  border-radius: 12px 18px 18px 12px;
  padding: 24px 18px 28px;
  color: var(--cream);
  box-shadow:
    20px 34px 68px rgba(16, 37, 30, 0.26),
    inset 10px 0 16px rgba(0, 0, 0, 0.16),
    inset -1px 0 0 rgba(255, 255, 255, 0.22);
  transform-origin: bottom center;
}

.display-book::before {
  position: absolute;
  inset: 0 0 0 28px;
  content: "";
  border-left: 1px solid rgba(255, 249, 237, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.18), transparent 10rem);
}

.display-book span,
.display-book b {
  position: relative;
  z-index: 1;
}

.display-book span {
  font-size: 13px;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
}

.display-book b {
  align-self: flex-end;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.05;
  writing-mode: vertical-rl;
}

.display-book--one {
  left: 2%;
  height: 344px;
  background: linear-gradient(150deg, #162923, #284f3f);
  transform: rotate(-9deg);
}

.display-book--two {
  left: 24%;
  height: 398px;
  background: linear-gradient(150deg, #a6683f, #d6a259);
  transform: rotate(2deg);
}

.display-book--three {
  left: 48%;
  height: 358px;
  background: linear-gradient(150deg, #273247, #596f80);
  transform: rotate(9deg);
}

.display-book--four {
  left: 69%;
  height: 314px;
  background: linear-gradient(150deg, #6f3e34, #a75f45);
  transform: rotate(-3deg);
}

.desk-line {
  position: absolute;
  right: 0;
  bottom: 56px;
  left: 0;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(16, 37, 30, 0.42), transparent);
  filter: blur(1px);
}

.intro-strip {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(calc(100% - 32px), 1120px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -36px auto 0;
  border: 1px solid rgba(255, 249, 237, 0.82);
  border-radius: 28px;
  padding: 22px 26px;
  background: rgba(255, 249, 237, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-strip p,
.intro-strip strong {
  margin: 0;
}

.intro-strip p {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.intro-strip strong {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 32px);
}

.section {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0 0;
}

.section-heading {
  display: grid;
  max-width: 720px;
  gap: 12px;
  margin-bottom: 34px;
}

.section-heading h2,
.notes-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.section-heading p:not(.eyebrow),
.notes-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.feature-book {
  display: grid;
  min-height: 470px;
  align-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(32, 60, 50, 0.13);
  border-radius: 34px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 249, 237, 0.92), rgba(246, 238, 222, 0.92)),
    var(--cream);
  box-shadow: 0 18px 54px rgba(28, 39, 32, 0.09);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.feature-book:hover {
  box-shadow: 0 26px 70px rgba(28, 39, 32, 0.15);
  transform: translateY(-8px);
}

.cover {
  position: relative;
  display: grid;
  min-height: 292px;
  overflow: hidden;
  border-radius: 24px 30px 30px 24px;
  padding: 28px;
  color: var(--cream);
  box-shadow:
    inset 14px 0 20px rgba(0, 0, 0, 0.18),
    inset -1px 0 0 rgba(255, 255, 255, 0.24);
}

.cover::before {
  position: absolute;
  inset: 0 0 0 34px;
  content: "";
  border-left: 1px solid rgba(255, 249, 237, 0.18);
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.2), transparent 8rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 28%);
}

.cover span,
.cover strong {
  position: relative;
  z-index: 1;
}

.cover span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.cover strong {
  align-self: end;
  max-width: 1em;
  font-family: var(--serif);
  font-size: 42px;
  letter-spacing: 0.06em;
  line-height: 1.08;
}

.cover--navy {
  background: linear-gradient(145deg, #132b38, #27556a);
}

.cover--moss {
  background: linear-gradient(145deg, #203c32, #6f7b4f);
}

.cover--ochre {
  background: linear-gradient(145deg, #7c4d2d, #c5974e);
}

.book-copy {
  padding: 24px 8px 4px;
}

.book-tag {
  display: inline-flex;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--forest-dark);
  font-size: 12px;
  font-weight: 900;
  background: rgba(184, 138, 61, 0.16);
}

.book-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.book-copy p:not(.book-tag) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.library-section {
  padding-top: clamp(82px, 11vw, 132px);
}

.filter-bar {
  position: sticky;
  top: 88px;
  z-index: 10;
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 26px;
  border: 1px solid rgba(32, 60, 50, 0.14);
  border-radius: 999px;
  padding: 7px;
  background: rgba(255, 249, 237, 0.78);
  box-shadow: 0 16px 42px rgba(28, 39, 32, 0.08);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 17px;
  color: rgba(23, 37, 31, 0.7);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.filter-button:hover {
  transform: translateY(-1px);
}

.filter-button.is-active {
  color: var(--cream);
  background: var(--forest);
}

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

.book-tile {
  display: grid;
  min-height: 168px;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(32, 60, 50, 0.12);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 249, 237, 0.66);
  box-shadow: 0 18px 46px rgba(28, 39, 32, 0.06);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.book-tile:hover {
  border-color: rgba(184, 138, 61, 0.42);
  background: rgba(255, 249, 237, 0.95);
  transform: translateY(-5px);
}

.book-tile.is-hidden {
  display: none;
}

.mini-cover {
  display: grid;
  height: 112px;
  place-items: center;
  border-radius: 12px 18px 18px 12px;
  color: var(--cream);
  box-shadow:
    inset 9px 0 14px rgba(0, 0, 0, 0.18),
    10px 16px 26px rgba(28, 39, 32, 0.12);
}

.mini-cover span {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
}

.mini-cover--ink {
  background: linear-gradient(145deg, #17251f, #345447);
}

.mini-cover--gold {
  background: linear-gradient(145deg, #7b4e25, #c29348);
}

.mini-cover--green {
  background: linear-gradient(145deg, #1d4335, #668156);
}

.mini-cover--rust {
  background: linear-gradient(145deg, #70392f, #b46a4b);
}

.book-tile p,
.book-tile strong,
.book-tile span {
  display: block;
}

.book-tile p {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.book-tile strong {
  margin-top: 8px;
  color: var(--gold);
  font-size: 13px;
}

.book-tile div > span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.notes-section {
  display: grid;
  width: min(calc(100% - 32px), 1120px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: 24px;
  margin: 0 auto;
  padding: clamp(82px, 11vw, 132px) 0;
}

.notes-card {
  position: sticky;
  top: 112px;
  align-self: start;
  overflow: hidden;
  border-radius: 40px;
  padding: clamp(32px, 5vw, 54px);
  color: var(--cream);
  background:
    radial-gradient(circle at 20% 12%, rgba(184, 138, 61, 0.44), transparent 14rem),
    linear-gradient(145deg, #10251e, #244339);
  box-shadow: var(--shadow);
}

.notes-card .eyebrow {
  color: #dcb96f;
}

.notes-card p:not(.eyebrow) {
  color: rgba(255, 249, 237, 0.72);
}

.principles {
  display: grid;
  gap: 14px;
}

.principle {
  border-top: 1px solid rgba(32, 60, 50, 0.18);
  padding: 28px 0 34px;
}

.principle span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.principle h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: -0.06em;
}

.principle p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.site-footer {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 54px 24px;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 120%, rgba(184, 138, 61, 0.38), transparent 26rem),
    var(--forest-dark);
}

.site-footer p {
  margin: 0 0 12px;
  color: #dcb96f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.site-footer strong {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.12;
}

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

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

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scene-in {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .site-header {
    top: 12px;
    width: min(calc(100% - 20px), 720px);
  }

  .brand-mark em {
    display: none;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 110px 18px 62px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero h1 {
    max-width: 720px;
  }

  .reading-scene {
    min-height: 430px;
  }

  .book-stack {
    right: 50%;
    left: auto;
    width: min(520px, 100%);
    height: 340px;
    transform: translateX(50%);
  }

  .display-book {
    width: 126px;
    height: 270px;
  }

  .display-book b {
    font-size: 28px;
  }

  .display-book--one {
    left: 1%;
    height: 272px;
  }

  .display-book--two {
    left: 23%;
    height: 316px;
  }

  .display-book--three {
    left: 47%;
    height: 286px;
  }

  .display-book--four {
    left: 68%;
    height: 254px;
  }

  .scene-label {
    top: 4px;
    right: 8px;
    width: 88px;
    height: 88px;
  }

  .scene-label strong {
    font-size: 34px;
  }

  .intro-strip {
    align-items: flex-start;
    flex-direction: column;
    margin-top: -18px;
  }

  .featured-grid,
  .shelf-grid,
  .notes-section {
    grid-template-columns: 1fr;
  }

  .feature-book {
    min-height: 0;
  }

  .cover {
    min-height: 250px;
  }

  .notes-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    border-radius: 24px;
  }

  .brand-seal {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .brand-mark strong {
    font-size: 16px;
  }

  .nav-links a {
    display: none;
  }

  .hero {
    padding: 96px 16px 52px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero__lead {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero__actions {
    gap: 10px;
    margin-top: 26px;
  }

  .button {
    width: 100%;
  }

  .reading-scene {
    min-height: 360px;
  }

  .book-stack {
    width: 350px;
    height: 286px;
  }

  .display-book {
    width: 92px;
    border-radius: 9px 14px 14px 9px;
    padding: 18px 12px 20px;
  }

  .display-book span {
    font-size: 11px;
  }

  .display-book b {
    font-size: 22px;
  }

  .display-book--one {
    height: 230px;
  }

  .display-book--two {
    height: 266px;
  }

  .display-book--three {
    height: 240px;
  }

  .display-book--four {
    height: 214px;
  }

  .scene-label {
    width: 74px;
    height: 74px;
  }

  .scene-label span {
    font-size: 8px;
  }

  .scene-label strong {
    font-size: 28px;
  }

  .section {
    width: min(calc(100% - 28px), 1120px);
    padding-top: 66px;
  }

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

  .featured-grid {
    gap: 14px;
  }

  .feature-book,
  .book-tile,
  .notes-card {
    border-radius: 26px;
  }

  .cover {
    min-height: 220px;
    border-radius: 18px 24px 24px 18px;
  }

  .cover strong {
    font-size: 34px;
  }

  .book-copy h3 {
    font-size: 25px;
  }

  .filter-bar {
    top: 78px;
    width: 100%;
    border-radius: 22px;
  }

  .shelf-grid {
    gap: 12px;
  }

  .book-tile {
    min-height: 142px;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .mini-cover {
    height: 92px;
  }

  .mini-cover span {
    font-size: 26px;
  }

  .book-tile p {
    font-size: 20px;
  }

  .notes-section {
    width: min(calc(100% - 28px), 1120px);
    padding-top: 70px;
    padding-bottom: 72px;
  }

  .notes-card {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
