:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --paper-deep: #e8e2d6;
  --ink: #202b2a;
  --muted: #78817a;
  --green: #1e3d3b;
  --green-dark: #152c2c;
  --gold: #aa8b56;
  --line: rgba(32, 43, 42, .14);
  --serif: "New York", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #a58245; outline-offset: 3px; }
.page-width { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.topbar { height: 72px; padding: 0 max(32px, calc((100vw - 1140px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); border-radius: 11px; }
.brand-mark svg { width: 21px; fill: none; stroke: #d2b883; stroke-width: 1.35; }
.brand-mark circle { fill: #d2b883; stroke: none; }
.topbar nav { display: flex; align-items: center; gap: 29px; font-size: 12px; color: #53605a; }
.topbar nav a { text-decoration: none; transition: color .18s ease; }
.topbar nav a:hover { color: var(--green); }
.topbar nav .nav-cta { color: var(--green); font-weight: 650; }
.nav-cta span { font-size: 15px; margin-left: 4px; }

.hero { min-height: 620px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; padding-block: 67px 70px; }
.hero-copy { padding-bottom: 8px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #7c806f; font-size: 9px; font-weight: 700; letter-spacing: .17em; margin: 0 0 24px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(170,139,86,.12); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .cover-title strong { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(54px, 6.2vw, 82px); line-height: .99; margin: 0 0 25px; color: #203433; }
h1 em, h2 em, .closing em { color: #71847d; font-weight: 400; }
.hero-lede { max-width: 490px; color: #69746d; font-size: 15px; line-height: 1.8; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 30px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border-radius: 999px; padding: 0 20px; font-size: 12px; font-weight: 650; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fffdf8; background: var(--green); box-shadow: 0 6px 16px rgba(21,44,44,.12); }
.button-primary:hover { background: #2b514d; }
.button-primary span { color: #d6c39e; font-size: 15px; }
.text-link { text-decoration: none; color: #57645e; font-size: 12px; font-weight: 550; }
.text-link span { padding-left: 6px; color: var(--gold); }
.book-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 50px; align-items: end; color: #727971; font-size: 11px; line-height: 1.7; }
.book-meta p { margin: 0; }
.book-meta strong { color: #313e38; font-weight: 620; }
.meta-rule { grid-column: 1 / -1; width: 46px; height: 1px; background: var(--gold); margin-bottom: -5px; }
.meta-side { color: #858a81; }

.hero-art { height: 478px; display: grid; place-items: center; position: relative; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; z-index: -1; width: 390px; height: 390px; border: 1px solid rgba(170,139,86,.22); border-radius: 50%; }
.hero-art::after { content: ""; position: absolute; z-index: -2; width: 460px; height: 460px; border: 1px solid rgba(170,139,86,.09); border-radius: 50%; }
.cover-shadow { position: absolute; width: 275px; height: 366px; transform: translate(15px, 13px) rotate(3deg); background: #cfc6b2; border-radius: 4px; box-shadow: 0 28px 45px rgba(39,48,42,.18); }
.cover { position: relative; width: 275px; height: 366px; padding: 22px 23px 17px; color: #d3b477; display: flex; flex-direction: column; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 53% 41%, #294a44 0, #203b39 47%, #193432 100%); border: 1px solid rgba(224,199,148,.68); border-radius: 4px; box-shadow: 0 12px 20px rgba(24,41,37,.13), inset 0 0 0 6px #203b39, inset 0 0 0 7px rgba(211,180,119,.4); transform: rotate(-2deg); }
.cover::before, .cover::after { content: ""; position: absolute; left: 14px; right: 14px; height: 1px; background: rgba(211,180,119,.55); }
.cover::before { top: 13px; }.cover::after { bottom: 13px; }
.cover-top { width: 100%; display: flex; justify-content: space-between; font-family: var(--serif); font-size: 12px; letter-spacing: .08em; }
.cover-number { font-family: inherit; font-size: 9px; opacity: .8; }
.cover-ornament { width: 178px; height: 178px; margin: 17px 0 4px; color: #c5a46b; opacity: .82; }
.cover-title { text-align: center; display: flex; flex-direction: column; gap: 9px; }
.cover-title > span { font-family: var(--serif); font-size: 15px; direction: rtl; }
.cover-title strong { font-size: 20px; line-height: 1.05; letter-spacing: -.025em; color: #f0e8d7; }
.cover-title small { margin-top: 2px; color: #cdb47f; font-size: 9px; letter-spacing: .06em; }
.cover-publisher { margin-top: auto; font-size: 7px; letter-spacing: .2em; color: #bba16c; }
.art-caption { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: flex; align-items: center; gap: 10px; color: #92958a; font-size: 8px; letter-spacing: .15em; }
.caption-line { height: 1px; width: 24px; background: var(--gold); }

.note-band { padding: 73px 0 75px; background: #eae6dc; border-block: 1px solid rgba(32,43,42,.06); }
.note-grid { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 34px; align-items: start; }
.section-kicker { display: flex; align-items: center; gap: 9px; color: #778078; font-size: 8px; letter-spacing: .15em; font-weight: 700; white-space: nowrap; }
.section-kicker > span:first-child { color: var(--gold); font-size: 10px; }
.section-line { height: 1px; width: 27px; background: #c2b28e; }
.note-intro h2 { font-size: 39px; line-height: 1.06; margin: -7px 0 0; color: #293e3a; }
.note-body { color: #68716a; font-size: 13px; line-height: 1.78; max-width: 470px; }
.note-body p { margin: 0 0 11px; }
.topic-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 51px; }
.topic-strip article { border-top: 1px solid rgba(32,43,42,.19); padding-top: 16px; position: relative; }
.topic-index { color: #aa8b56; font-family: var(--serif); font-size: 13px; }
.topic-strip h3 { color: #2a3935; font-family: var(--serif); font-size: 20px; font-weight: 400; margin: 10px 0 7px; }
.topic-strip p { color: #788079; font-size: 11px; line-height: 1.6; margin: 0; max-width: 250px; }

.assistant-section { padding-block: 82px 84px; }
.assistant-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin: 25px 0 27px; }
.assistant-heading .eyebrow { margin: 0 0 12px; }
h2 { font-size: clamp(38px, 4.4vw, 55px); line-height: 1.03; margin: 0; color: #263a37; }
.assistant-heading h2 em, .contents-title-row h2 em { color: #87938a; }
.assistant-deck { max-width: 300px; color: #727b74; font-size: 12px; line-height: 1.75; margin: 0 2px 2px 0; }
.chat-shell { min-height: 400px; color: #f3f1e8; background: linear-gradient(135deg, #193332, #1d3a37 64%, #254440); border-radius: 22px; padding: 23px 26px 17px; box-shadow: 0 18px 42px rgba(23,49,46,.13); overflow: hidden; }
.chat-topline { display: flex; align-items: center; gap: 11px; padding-bottom: 17px; border-bottom: 1px solid rgba(235,230,215,.15); }
.assistant-avatar { width: 36px; height: 36px; border-radius: 12px; background: rgba(226,204,159,.11); display: grid; place-items: center; }
.assistant-avatar svg { width: 21px; fill: none; stroke: #d4bb89; stroke-width: 1.2; }
.assistant-avatar circle { fill: #d4bb89; stroke: none; }
.chat-topline strong { display: block; color: #f2eee2; font-size: 12px; font-weight: 620; }
.chat-topline span:not(.assistant-avatar) { display: block; color: #aab8ae; font-size: 9px; margin-top: 3px; }
.chat-topline span i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; background: #89b390; border-radius: 50%; vertical-align: 1px; }
.clear-button { margin-left: auto; border: 1px solid rgba(226,220,203,.2); background: rgba(255,255,255,.03); color: #d8dfd5; padding: 7px 11px; border-radius: 999px; font-size: 9px; cursor: pointer; transition: background .2s ease; }
.clear-button:hover { background: rgba(255,255,255,.1); }
.chat-messages { min-height: 150px; max-height: 360px; overflow: auto; padding: 18px 5px 8px; display: flex; flex-direction: column; gap: 15px; scrollbar-color: rgba(220,207,173,.35) transparent; }
.message { width: fit-content; max-width: min(720px, 90%); padding: 12px 15px; border-radius: 13px; }
.assistant-message { background: rgba(247,245,235,.09); border: 1px solid rgba(230,221,197,.09); }
.user-message { align-self: flex-end; background: #d8c7a4; color: #243b37; }
.message-label { color: #d0ba88; font-size: 8px; font-weight: 700; letter-spacing: .13em; margin-bottom: 6px; }
.user-message .message-label { color: #597269; }
.message p { font-size: 12px; line-height: 1.72; margin: 0; white-space: pre-wrap; }
.source-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.source-chip { border: 1px solid rgba(216,199,164,.34); border-radius: 999px; padding: 4px 8px; color: #e0cd9f; font-size: 9px; }
.retry-button { margin-top: 10px; border: 1px solid rgba(216,199,164,.48); border-radius: 999px; padding: 7px 11px; background: rgba(255,255,255,.04); color: #eadbb9; font-size: 10px; cursor: pointer; }
.retry-button:hover { background: rgba(255,255,255,.11); }
.suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 7px 0 12px; }
.suggestions button { color: #dbe1d8; border: 1px solid rgba(223,219,202,.18); border-radius: 999px; background: rgba(255,255,255,.035); padding: 8px 11px; font-size: 10px; cursor: pointer; transition: border .18s ease, background .18s ease; }
.suggestions button:hover { border-color: rgba(224,201,155,.55); background: rgba(255,255,255,.08); }
.composer { display: flex; align-items: end; gap: 12px; padding: 8px 8px 8px 15px; border: 1px solid rgba(235,230,215,.21); border-radius: 15px; background: rgba(6,22,21,.18); }
.composer:focus-within { border-color: rgba(222,194,137,.72); box-shadow: 0 0 0 3px rgba(215,189,139,.1); }
.composer textarea { color: #fffdf6; resize: none; flex: 1; max-height: 120px; min-height: 30px; border: 0; outline: 0; background: transparent; padding: 6px 0 5px; font-size: 12px; line-height: 1.5; }
.composer textarea::placeholder { color: #aab6aa; }
.send-button { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 0; border-radius: 11px; background: #d9c49a; color: #203c38; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.send-button:hover { transform: translateY(-2px); background: #ebd6ad; }
.send-button:disabled { opacity: .45; cursor: wait; transform: none; }
.send-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-footnote { display: flex; justify-content: space-between; gap: 15px; padding: 9px 1px 0; color: #a5b0a5; font-size: 8px; }
.privacy-note { text-align: center; color: #80867e; font-size: 10px; margin: 13px 0 0; }

.contents-section { padding: 73px 0 77px; background: #eae6dc; border-block: 1px solid rgba(32,43,42,.06); }
.contents-head .section-kicker { margin-bottom: 27px; }
.contents-title-row { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.contents-title-row .eyebrow { margin: 0 0 12px; }
.contents-title-row h2 { font-size: clamp(38px, 4.4vw, 54px); }
.contents-tools { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; }
.search-box { display: flex; align-items: center; gap: 8px; width: 205px; height: 36px; border: 1px solid rgba(32,43,42,.18); border-radius: 999px; padding: 0 11px; background: rgba(255,255,255,.22); }
.search-box svg { width: 15px; flex: 0 0 15px; fill: none; stroke: #7c837a; stroke-width: 1.4; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.search-box input::placeholder { color: #868d84; }
.chapter-count { color: #7b827a; font-size: 10px; white-space: nowrap; }
.chapter-groups { padding-top: 33px; }
.chapter-group { margin-top: 24px; }
.chapter-group-heading { display: flex; align-items: center; gap: 12px; color: #879087; font-size: 8px; font-weight: 700; letter-spacing: .15em; padding-bottom: 9px; border-bottom: 1px solid rgba(32,43,42,.15); }
.chapter-group-heading span:last-child { color: #9c8a66; font-weight: 500; letter-spacing: .04em; }
.chapter-list { display: grid; grid-template-columns: repeat(2,1fr); column-gap: 42px; }
.chapter-row { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 9px; min-height: 54px; border-bottom: 1px solid rgba(32,43,42,.1); text-decoration: none; transition: padding .18s ease, background .18s ease; }
.chapter-row:hover { padding-inline: 6px; background: rgba(255,255,255,.24); }
.chapter-row[hidden] { display: none; }
.chapter-no { color: #aa8b56; font-family: var(--serif); font-size: 11px; }
.chapter-name { color: #33413c; font-family: var(--serif); font-size: 14px; }
.chapter-page { color: #879088; font-size: 8px; white-space: nowrap; }
.loading-note { color: #7c857d; font-size: 12px; }
.empty-note { color: #788079; font-size: 12px; padding: 26px 0; }

.closing { min-height: 189px; display: flex; align-items: center; gap: 19px; }
.closing-star { color: var(--gold); font-size: 24px; }
.closing p { font-family: var(--serif); color: #34423c; font-size: 25px; line-height: 1.1; margin: 0; }
.closing a { margin-left: auto; text-decoration: none; width: 36px; height: 36px; border: 1px solid var(--line); display: grid; place-items: center; border-radius: 50%; color: #647068; transition: background .18s ease; }
.closing a:hover { background: #e9e4d9; }
.footer { min-height: 55px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid var(--line); color: #879087; font-size: 8px; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (min-width: 1500px) { .hero { min-height: 680px; } }
@media (max-width: 900px) {
  .hero { gap: 30px; grid-template-columns: 1fr .85fr; min-height: 540px; }
  .hero-art { transform: scale(.88); }
  .note-grid { grid-template-columns: 130px 1fr 1fr; gap: 20px; }
  .topbar nav { gap: 17px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }
  .page-width { width: min(100% - 40px, 520px); }
  .topbar { height: 62px; padding-inline: 20px; }
  .brand { font-size: 11px; gap: 8px; }
  .brand-mark { width: 31px; height: 31px; }
  .topbar nav { gap: 13px; font-size: 10px; }
  .topbar nav a:first-child { display: none; }
  .nav-cta { font-size: 0; width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff !important; }
  .nav-cta span { font-size: 16px; margin: 0; }
  .hero { padding-block: 58px 46px; grid-template-columns: 1fr; gap: 22px; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 8px; letter-spacing: .13em; margin-bottom: 18px; }
  h1 { font-size: clamp(52px, 14vw, 69px); margin-bottom: 18px; }
  .hero-lede { font-size: 13px; max-width: 430px; }
  .hero-actions { margin-top: 22px; gap: 17px; }
  .button { min-height: 43px; padding-inline: 16px; font-size: 11px; }
  .text-link { font-size: 10px; }
  .book-meta { margin-top: 30px; }
  .hero-art { height: 405px; transform: none; }
  .hero-art::before { width: 335px; height: 335px; }
  .hero-art::after { width: 395px; height: 395px; }
  .cover-shadow { transform: translate(12px,12px) rotate(3deg) scale(.9); }
  .cover { transform: rotate(-2deg) scale(.9); }
  .art-caption { font-size: 7px; bottom: 0; }
  .note-band, .contents-section { padding-block: 52px; }
  .note-grid { grid-template-columns: 1fr; gap: 23px; }
  .section-kicker { font-size: 7px; }
  .note-intro h2 { font-size: 36px; }
  .note-body { font-size: 12px; }
  .topic-strip { grid-template-columns: 1fr; gap: 15px; margin-top: 35px; }
  .topic-strip article { display: grid; grid-template-columns: 24px 1fr; column-gap: 9px; padding-top: 13px; }
  .topic-index { grid-row: span 2; }
  .topic-strip h3 { font-size: 18px; margin: 0 0 4px; }
  .topic-strip p { grid-column: 2; font-size: 10px; max-width: 300px; }
  .assistant-section { padding-block: 56px; }
  .assistant-heading { display: block; margin-block: 21px; }
  .assistant-heading h2, .contents-title-row h2 { font-size: 40px; }
  .assistant-deck { margin-top: 12px; max-width: 370px; font-size: 11px; }
  .chat-shell { padding: 17px 14px 13px; border-radius: 18px; }
  .chat-messages { min-height: 143px; max-height: 320px; padding-inline: 0; }
  .message { max-width: 96%; }
  .message p { font-size: 11px; }
  .suggestions { flex-wrap: nowrap; overflow-x: auto; margin-inline: -2px; padding-bottom: 12px; scrollbar-width: none; }
  .suggestions::-webkit-scrollbar { display: none; }
  .suggestions button { flex: 0 0 auto; max-width: 230px; white-space: normal; text-align: left; line-height: 1.3; }
  .chat-footnote { font-size: 7px; }
  .chat-footnote span:last-child { display: none; }
  .privacy-note { font-size: 9px; line-height: 1.5; }
  .contents-head .section-kicker { margin-bottom: 22px; }
  .contents-title-row { display: block; }
  .contents-tools { justify-content: space-between; margin-top: 20px; }
  .search-box { width: min(70%, 250px); }
  .chapter-groups { padding-top: 17px; }
  .chapter-list { grid-template-columns: 1fr; }
  .chapter-group { margin-top: 20px; }
  .chapter-row { min-height: 49px; }
  .chapter-name { font-size: 13px; }
  .closing { min-height: 145px; }
  .closing p { font-size: 20px; }
  .footer { display: block; padding-block: 13px; }
  .footer span { display: block; margin: 3px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
