@charset "UTF-8";

.long-site { --gold: #decba6; --night: #142e28; background: #f7f4eb; }
.long-site [hidden] { display: none !important; }
.long-site [id] { scroll-margin-top: 94px; }
.frame { width: min(88%, 2080px); margin-inline: auto; }
.mast-row, .cover-body, .cover-foot, .colophon-inner { width: min(88%, 3200px); }
.page-band { padding-block: clamp(65px, 7.7vw, 120px); }
.long-site button, .long-site input { font: inherit; }
.long-site button { cursor: pointer; }
.long-site :focus-visible { outline: 3px solid #a9643a; outline-offset: 4px; }
.mast { position: sticky; top: 0; z-index: 8; background: #f9f6ed; border-bottom: 1px solid #d8d4c5; }
.mast-row, .mast-nav, .mast-brand, .cover-actions, .book-caption, .colophon-inner { display: flex; align-items: center; }
.mast-row { justify-content: space-between; gap: 28px; min-height: 78px; }
.mast-brand { gap: 12px; flex-shrink: 0; }
.mast-seal { width: 37px; height: 39px; display: grid; place-items: center; border-radius: 3px; color: #fff4dc; background: #953c2c; font: 700 23px var(--heading-font); box-shadow: inset 0 0 0 2px #a85340; }
.mast-brand strong, .mast-brand small { display: block; }
.mast-brand strong { font: 700 23px/1.28 var(--heading-font); letter-spacing: .12em; color: #1b342b; }
.mast-brand small { margin-top: 2px; font-size: 11px; color: #5d675b; }
.mast-nav { gap: clamp(15px, 2.6vw, 40px); }
.mast-nav a { padding-block: 12px; font-size: 14px; white-space: nowrap; color: #414e43; }
.mast-nav a:hover, .mast-nav a[aria-current] { color: #913e2f; text-decoration: underline; text-underline-offset: 8px; }
.read-meter { height: 2px; position: absolute; inset: auto 0 -1px; pointer-events: none; }
.read-meter span { display: block; height: 100%; background: #b1855e; transform-origin: left; transform: scaleX(0); }

.cover { min-height: clamp(540px, 76vh, 850px); position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; background: var(--night); color: #fff9e9; }
.cover-art, .cover-shade { position: absolute; inset: 0; z-index: -1; }
.cover-art { background: url("hero-ink.webp") center 54% / cover no-repeat; }
.cover-shade { background: linear-gradient(90deg,#122c26f5 0%,#19382ee5 17%,#203d32ae 38%,#233e310c 77%), linear-gradient(0deg,#14291f7a,transparent 25%); }
.cover-body { padding-block: 54px 108px; }
.cover-kicker, .eyeline { font-weight: 650; font-size: 13px; letter-spacing: .16em; }
.cover-kicker { display: flex; align-items: center; gap: 12px; color: #f4d9a4; }
.cover-kicker span { height: 1px; width: 35px; background: currentColor; }
.cover h1 { margin-top: 21px; font: 700 clamp(55px, 6.2vw, 100px)/1.15 var(--heading-font); letter-spacing: .02em; }
.cover h1 em { color: #f4e4c1; font-style: normal; }
.cover-intro { max-width: 415px; margin-top: 20px; color: #f1f0e1; font-size: 16px; line-height: 1.95; }
.cover-actions { flex-wrap: wrap; gap: 27px; margin-top: 27px; }
.cover-button, .cover-text, .ink-link, .atlas-link { display: inline-flex; align-items: center; gap: 17px; font-size: 14px; font-weight: 600; }
.cover-button { padding: 12px 22px; background: #f4e6c7; color: #17352b; border-radius: 2px; }
.cover-button:hover { background: #fff5de; }
.cover-text { border-bottom: 1px solid #e8e2cf8c; padding: 8px 0; }
.cover-foot { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; padding-block: 16px; border-top: 1px solid #eee5d16b; font-size: 14px; }
.cover-foot > span { color: #f6dfb7; font-size: 12px; }
.cover-foot a:hover, .ink-link:hover, .atlas-link:hover, .record-ledger a:hover, .colophon a:hover { text-decoration: underline; text-underline-offset: 5px; }

.eyeline { margin-bottom: 12px; color: #955241; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.long-site .page-band h2 { color: var(--ink); font: 700 clamp(35px,3.5vw,55px)/1.25 var(--heading-font); letter-spacing: .025em; }
.section-head > p { font-size: 15px; color: var(--muted); }
.book-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(14px,2.3vw,33px); }
.shelf-book { display: block; min-width: 0; }
.book-board { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.24; border-radius: 2px 5px 5px 2px; color: #eddfbd; background: var(--cloth); box-shadow: 2px 4px 0 -1px #c8bda5,3px 8px 17px #362b1d24; transition: transform .22s,box-shadow .22s; }
.shelf-book:hover .book-board { transform: translateY(-4px) rotate(-.5deg); box-shadow: 2px 5px 0 -1px #c8bda5,3px 10px 22px #362b1d2c; }
.book-board::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(2deg,transparent 0 3px,#fff9d310 4px), repeating-linear-gradient(92deg,transparent 0 3px,#0000000e 4px); }
.book-board::after { content: ""; position: absolute; inset: 6% auto 6% 9%; width: 2px; background: repeating-linear-gradient(to bottom,#e8d5a7aa 0 12%, transparent 12% 22%); box-shadow: -6px 0 0 #fff6df22; }
.book-title { position: absolute; top: 13%; left: 21%; writing-mode: vertical-rl; background: #f1e8d3; color: #293b31; font: 600 clamp(17px,1.55vw,25px)/1.3 var(--heading-font); letter-spacing: .11em; padding: 9px 3px; border: 3px double #ae9c7a; }
.book-yi { --cloth:#294e41; }.book-bazi { --cloth:#844a3b; }.book-ziwei { --cloth:#354b62; }.book-liuyao { --cloth:#785f37; }
.book-lines, .book-ring, .book-gridmark { position: absolute; inset: auto -6% 10% auto; width: 59%; aspect-ratio: 1; opacity: .42; transform: rotate(-12deg); }
.book-lines { width: 47%; height: 46%; right: 4%; background: repeating-linear-gradient(to bottom, #d9c79c 0 6%, transparent 6% 18%); }
.book-lines-yao::after { content: ""; position: absolute; inset: 0 43% 0 43%; background: repeating-linear-gradient(to bottom,var(--cloth) 0 14%,transparent 14% 36%); }
.book-ring { border: 2px solid #d9c79c; border-radius: 50%; background: repeating-radial-gradient(circle,transparent 0 16%,#d9c79c 16.5% 17%,transparent 17.5% 22%); }
.book-gridmark { border: 1px solid #d9c79c; background: repeating-linear-gradient(90deg,transparent 0 24%,#d9c79c 24% 25%),repeating-linear-gradient(0deg,transparent 0 24%,#d9c79c 24% 25%); }
.book-caption { justify-content: space-between; gap: 8px; margin-block: 21px 4px; }
.book-caption h3 { font: 700 clamp(21px,2vw,30px)/1.35 var(--heading-font); }
.book-caption > span { font-size: 20px; color: var(--cloth); }
.shelf-book > p { color: var(--muted); font-size: 14px; }

.classics-section { background: #e9e6d9; border-block: 1px solid #d9d4c5; }
.classics-spread { display: grid; grid-template-columns: 1.16fr .84fr; align-items: center; gap: clamp(32px,7vw,108px); }
.desk-illustration { border: 1px solid #ada087; padding: 5px; }
.desk-illustration img { width: 100%; height: auto; display: block; aspect-ratio: 1.29; object-fit: cover; }
.classics-copy blockquote { margin: 25px 0 19px; border-left: 2px solid #a98250; padding-left: 20px; font: 600 clamp(23px,2.4vw,36px)/1.65 var(--heading-font); color: #34483a; }
.classics-copy cite { display: block; margin-top: 7px; font: 13px/1.7 var(--sans); color: var(--muted); }
.classics-copy > p:not(.eyeline), .sheet-text p, .about-description { line-height: 1.95; }
.ink-link { color: #834331; border-bottom: 1px solid #bc9a7b; padding-block: 7px; margin-top: 20px; }
.atlas-section { background: #152e28; color: #ece9d7; }
.atlas-section > .frame { display: grid; grid-template-columns: .78fr 1.22fr; gap: 12px 7%; align-items: center; }
.atlas-heading { grid-area: 1/1; }
.long-site .atlas-heading h2 { color: #fff6df; }
.atlas-heading .eyeline { color: #dabf8d; }
.atlas-heading > p:last-child { max-width: 310px; margin-top: 16px; color: #ccdacb; }
#diagram-app { grid-area: 1/2/3/3; }
.atlas-link { align-self: start; justify-self: start; color: #e6c894; }

.app-spread { border-block: 1px solid var(--line); background: #f0ece0; }
.app-selectors { display: flex; border-bottom: 1px solid var(--line); }
.app-selectors button { flex: 1; color: #506051; border: 0; border-bottom: 3px solid transparent; padding: 18px 10px 15px; background: transparent; }
.app-selectors button[aria-selected="true"] { color: #254d3a; background: #e2e4d6; border-bottom-color: #48654c; font-weight: 700; }
.app-sheet { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; padding: clamp(24px,5.5vw,68px); min-height: 340px; }
.sheet-text h3 { margin: 0 0 13px; font: 700 clamp(25px,2.7vw,37px)/1.35 var(--heading-font); }
.chart-sample { padding: clamp(16px,2.4vw,32px); border: 1px solid #c8c2ae; background: #faf7ec; }
.chart-sample > p { margin-bottom: 14px; font-size: 13px; font-weight: 700; color: #795643; text-align: center; }
.pillar-sample table { width: 100%; border-collapse: collapse; text-align: center; }
.pillar-sample td, .pillar-sample th { padding: 7px 2px; border: 1px solid var(--line); }
.pillar-sample th { color: #894e36; font-weight: 600; }.pillar-sample td { font-family: var(--heading-font); }
.ring-chart { display:grid; grid-template-columns:repeat(4,1fr); gap:3px; text-align:center; }
.ring-chart span,.ring-chart b { padding:4px; background:#e6e9dd; }.ring-chart b { grid-area:2/2/4/4; display:grid; place-items:center; }
.position-chart { display:grid; gap:3px; max-width:145px; margin:auto; }
.position-chart span { display:flex; gap:12px; align-items:center; color:#535e50; font-size:12px; }
.position-chart span::before { content:""; flex:1; height:4px; background:#78613c; }
.library-band { background: #eeeee5; border-block:1px solid #d6d9cc; }
.about-band { background: #faf6eb; }
.about-layout { display: grid; grid-template-columns: 1fr .96fr; gap: 10%; align-items: center; }
.long-site .about-band h2 { font-size: clamp(28px,3.1vw,46px); }
.about-description { margin-top: 16px; color: var(--muted); }
.record-ledger { margin:0; border-top: 2px solid #325240; }
.record-ledger div { display: grid; grid-template-columns: 7em 1fr; padding: 14px 3px; gap: 10px; border-bottom: 1px solid var(--line); }
.record-ledger dt { color:var(--muted); font-size:14px; }.record-ledger dd { margin:0; overflow-wrap:anywhere; }
.colophon { background:#19362c; color:#e9e8d5; font-size:13px; }
.colophon-inner { min-height:78px; flex-wrap:wrap; gap:9px 24px; padding-block:15px; }.colophon-inner a:last-child { margin-left:auto; }

@media (max-width: 920px) {
  .frame { width: calc(100% - 64px); }.mast-nav { gap: 15px; }.mast-nav a { font-size:13px; }
  .book-grid { gap:15px; }.classics-spread { gap:33px; }.atlas-section > .frame { grid-template-columns: .68fr 1.32fr; }
}
@media (max-width: 730px) {
  .frame { width: calc(100% - 36px); }.long-site [id] { scroll-margin-top:108px; }
  .mast-row { display:block; padding-top:8px; min-height:0; }.mast-brand { gap:8px; width:max-content; }
  .mast-brand strong { font-size:18px; }.mast-brand small { font-size:10px; margin:0; }.mast-seal { width:28px; height:31px; font-size:18px; }
  .mast-nav { justify-content:space-between; gap:12px; overflow:auto; }.mast-nav a { flex:none; padding:8px 0; font-size:12px; }
  .cover { min-height:clamp(525px,77svh,690px); }.cover-art { background-position:65% center; }
  .cover-shade { background:linear-gradient(90deg,#172e25de 0%,#1c3226b8 36%,#1c322640 100%),linear-gradient(0deg,#122820b8,transparent 37%); }
  .cover-body { padding-block:40px 89px; }.cover h1 { font-size:clamp(46px,9vw,62px); }.cover-intro { max-width:310px; font-size:14px; }
  .cover-foot { padding-block:12px; gap:10px; }.page-band { padding-block:48px; }.section-head { display:block; margin-bottom:23px; }
  .section-head > p { margin-top:9px; font-size:14px; }.eyeline { font-size:12px; margin-bottom:8px; }
  .book-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 15px; }.book-board { aspect-ratio:1.25; }.book-caption { margin-top:12px; }
  .shelf-book > p { font-size:13px; }.book-title { top:8%; font-size:17px; padding:5px 1px; }.book-lines,.book-ring,.book-gridmark { opacity:.36; }
  .classics-spread,.about-layout { grid-template-columns:1fr; gap:24px; }.desk-illustration img { aspect-ratio:1.62; }
  .classics-copy blockquote { margin-block:18px 15px; }.atlas-section > .frame { display:flex; flex-direction:column; align-items:stretch; gap:18px; }
  .atlas-heading > p:last-child { margin-top:8px; max-width:none; }.app-sheet { grid-template-columns:1fr; gap:18px; min-height:0; }
  .app-selectors button { font-size:14px; padding:13px 4px 10px; }.record-ledger div { grid-template-columns:6.1em 1fr; padding-block:11px; }
  .colophon-inner a:last-child { margin-left:0; }.colophon-inner { gap:4px 13px; font-size:12px; }
}
@media (prefers-reduced-motion: reduce) { .shelf-book:hover .book-board { transform:none; }.book-board { transition:none; } }
