@charset "UTF-8";

:root {
  --violet: #8d7ce9;
  --violet-deep: #6857c7;
  --violet-pale: #e6dfff;
  --plum: #211b2a;
  --plum-soft: #30283b;
  --paper: #faf7f2;
  --paper-lilac: #f4f0ff;
  --ink: #211e26;
  --muted: #706b76;
  --line: #d7d0dc;
  --top-h: 72px;
  --rail-w: clamp(214px, 16vw, 252px);
  --content: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  text-decoration: none;
}

button {
  font: inherit;
}

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

h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

.skip-link {
  position: fixed;
  z-index: 1200;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: #fff;
  background: var(--plum);
  font-size: 14px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--violet-deep);
}

.story-topbar {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto 0;
  height: var(--top-h);
  display: grid;
  grid-template-columns: var(--rail-w) 1fr auto;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d9d2e1;
  box-shadow: 0 8px 24px rgba(39, 30, 53, .06);
}

.story-topbar::after {
  position: absolute;
  bottom: -1px;
  left: var(--rail-w);
  width: 18%;
  height: 2px;
  content: "";
  background: var(--violet);
}

.story-brand {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 clamp(14px, 1.5vw, 22px);
  color: var(--ink);
  background: var(--paper-lilac);
  border-right: 1px solid #d9d2e1;
}

.story-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 4px;
}

.story-brand > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.story-brand strong {
  overflow: hidden;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.story-brand small {
  margin-top: 4px;
  overflow: hidden;
  color: #797183;
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-left: clamp(22px, 3.5vw, 54px);
  color: #78717d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.topbar-note i {
  width: 30px;
  height: 1px;
  background: var(--violet);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: clamp(14px, 2vw, 28px);
}

.topbar-download {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #fff;
  background: var(--violet-deep);
  border: 1px solid var(--violet-deep);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.topbar-download:hover {
  background: var(--plum);
  border-color: var(--plum);
}

.menu-toggle {
  width: 44px;
  height: 42px;
  display: none;
  padding: 10px;
  border: 1px solid var(--plum);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  display: block;
  margin: 4px 0;
  background: var(--plum);
}

.story-rail {
  position: fixed;
  z-index: 900;
  top: var(--top-h);
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #f4f0f7;
  background: var(--plum);
  border-right: 1px solid #42384e;
  scrollbar-width: thin;
}

.rail-card {
  position: relative;
  margin: 24px 18px 20px;
  padding: 22px 18px 20px;
  overflow: hidden;
  border: 1px solid #554863;
  background: linear-gradient(135deg, rgba(141,124,233,.2), transparent 70%);
}

.rail-card::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 42px;
  height: 42px;
  content: "";
  border-radius: 50%;
  background: var(--violet);
}

.rail-code {
  display: block;
  color: var(--violet-pale);
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 950;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.rail-subtitle {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

.rail-card b {
  position: absolute;
  top: 14px;
  right: 12px;
  color: var(--violet);
  font-size: 12px;
}

.rail-nav {
  padding: 0 13px;
}

.rail-nav ul {
  display: grid;
  gap: 5px;
}

.rail-nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  color: #d5cfda;
  border-left: 2px solid transparent;
  font-size: 15px;
  font-weight: 700;
}

.rail-nav a span {
  color: #8b8194;
  font-size: 12px;
  font-weight: 900;
}

.rail-nav a:hover,
.rail-nav a.is-active {
  color: #fff;
  background: #352d40;
  border-left-color: var(--violet);
}

.rail-nav a.is-active span {
  color: var(--violet-pale);
}

.rail-bottom {
  margin-top: auto;
  padding: 22px 27px 26px;
  border-top: 1px solid #403647;
}

.rail-bottom span {
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.rail-bottom p {
  margin-top: 5px;
  color: #a9a1b0;
  font-size: 12px;
}

.rail-backdrop {
  display: none;
}

.page-shell {
  margin-left: var(--rail-w);
  padding-top: var(--top-h);
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(27,22,34,.97) 0%, rgba(27,22,34,.9) 42%, rgba(31,24,40,.32) 78%, rgba(31,24,40,.13) 100%), var(--hero-bg);
  background-position: center 31%;
  background-size: cover;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 5px);
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: -12%;
  right: 8%;
  width: 210px;
  height: 130%;
  content: "";
  border-right: 1px solid rgba(230,223,255,.25);
  border-left: 1px solid rgba(230,223,255,.25);
  background: rgba(141,124,233,.12);
  transform: rotate(8deg);
}

.hero-paper {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(230,223,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(230,223,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0 53%, transparent 82%);
}

.hero-copy {
  width: min(730px, calc(100% - 80px));
  margin: 54px 0 54px clamp(36px, 6vw, 96px);
  padding: 42px 46px 38px;
  background: rgba(28, 23, 36, .88);
  border: 1px solid rgba(230,223,255,.25);
  border-top: 5px solid var(--violet);
  box-shadow: 18px 18px 0 rgba(16,12,20,.25);
  backdrop-filter: blur(2px);
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--violet-pale);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
}

.eyebrow b {
  padding: 4px 8px;
  color: #fff;
  background: var(--violet-deep);
  font-size: 12px;
  letter-spacing: .08em;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(50px, 5.7vw, 82px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.065em;
}

.hero-line {
  display: inline-block;
  margin-top: 29px;
  padding: 9px 13px;
  color: var(--plum);
  background: var(--violet-pale);
  font-size: clamp(20px, 2.1vw, 29px);
  font-weight: 900;
  line-height: 1.35;
}

.hero-intro {
  max-width: 630px;
  margin-top: 20px;
  color: #d8d2dd;
  font-size: 15px;
  line-height: 1.86;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-tags span {
  padding: 6px 11px;
  color: #fff;
  border: 1px solid rgba(230,223,255,.4);
  font-size: 12px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 27px;
}

.main-button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  padding: 0 23px;
  color: #fff;
  background: var(--violet-deep);
  border: 1px solid var(--violet-deep);
  font-size: 14px;
  font-weight: 900;
}

.main-button:hover {
  color: var(--plum);
  background: var(--violet-pale);
  border-color: var(--violet-pale);
}

.quiet-link {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.5);
  font-size: 14px;
  font-weight: 700;
}

.quiet-link span {
  color: var(--violet-pale);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  padding-top: 18px;
  color: #aaa2af;
  border-top: 1px solid rgba(230,223,255,.16);
  font-size: 12px;
}

.hero-folio {
  position: absolute;
  right: 28px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  writing-mode: vertical-rl;
}

.hero-folio span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.hero-folio strong {
  padding: 8px 6px;
  color: var(--plum);
  background: var(--violet-pale);
  font-size: 15px;
}

.section {
  padding: clamp(76px, 8vw, 112px) clamp(24px, 4vw, 58px);
}

.section-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
}

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

.section-label {
  margin-bottom: 11px;
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-heading h2,
.themes-intro h2,
.shelf-copy h2,
.faq-title h2,
.notes-layout h2 {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.bookmark-section {
  background: var(--paper);
}

.heading-ledger,
.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  align-items: end;
  gap: 46px;
}

.heading-ledger > p,
.gallery-heading > p {
  max-width: 440px;
  justify-self: end;
  color: var(--muted);
  font-size: 14px;
}

.ledger {
  display: grid;
  grid-template-columns: minmax(220px, .68fr) minmax(0, 1.82fr);
  border: 1px solid var(--plum);
  background: #fff;
}

.ledger-index {
  position: relative;
  min-height: 320px;
  padding: 38px 32px;
  overflow: hidden;
  color: #fff;
  background: var(--plum);
}

.ledger-index::after {
  position: absolute;
  right: -20px;
  bottom: -62px;
  color: rgba(230,223,255,.07);
  content: "02";
  font-size: 190px;
  font-weight: 950;
  line-height: 1;
}

.ledger-index span {
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
}

.ledger-index strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 54px;
  font-size: 31px;
}

.ledger-index p {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #bcb4c2;
  font-size: 13px;
}

.ledger-rows {
  display: grid;
}

.ledger-rows article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
}

.ledger-rows article:last-child {
  border-bottom: 0;
}

.ledger-rows b {
  color: var(--violet-deep);
  font-size: 13px;
}

.ledger-rows h3 {
  font-size: 18px;
}

.ledger-rows p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.ledger-rows article > span {
  color: #99909f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

.mood-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 21px;
}

.mood-strip figure {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--plum);
}

.mood-strip figure > div {
  height: clamp(240px, 22vw, 315px);
  overflow: hidden;
  background: #f0edf5;
}

.mood-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.76) contrast(.96);
}

.mood-strip figcaption {
  position: relative;
  min-height: 72px;
  padding: 11px 13px 10px 42px;
  border-top: 1px solid var(--plum);
}

.mood-strip figcaption > span {
  position: absolute;
  top: 14px;
  left: 12px;
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 900;
}

.mood-strip figcaption strong,
.mood-strip figcaption small {
  display: block;
}

.mood-strip figcaption strong {
  font-size: 15px;
}

.mood-strip figcaption small {
  color: var(--muted);
  font-size: 12px;
}

.themes-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--plum);
}

.themes-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .38;
  background-image: radial-gradient(circle at 1px 1px, rgba(230,223,255,.34) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, transparent);
}

.themes-layout {
  position: relative;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(52px, 8vw, 112px);
}

.themes-intro > p:last-child {
  max-width: 500px;
  margin-top: 24px;
  color: #bbb3c1;
  font-size: 14px;
}

.theme-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #51465d;
  border-left: 1px solid #51465d;
}

.theme-cards article {
  min-height: 205px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 12px;
  padding: 27px 22px;
  border-right: 1px solid #51465d;
  border-bottom: 1px solid #51465d;
}

.theme-cards article > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--plum);
  background: var(--violet-pale);
  font-size: 12px;
  font-weight: 900;
}

.theme-cards h3 {
  margin-top: 1px;
  font-size: 22px;
}

.theme-cards p {
  margin-top: 9px;
  color: #bcb4c2;
  font-size: 13px;
}

.shelf-section {
  color: var(--ink);
  background-color: var(--paper-lilac);
  background-image: linear-gradient(rgba(90,72,116,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(90,72,116,.045) 1px, transparent 1px);
  background-size: 30px 30px;
}

.shelf-layout {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.shelf-visual {
  position: relative;
  width: min(100%, 390px);
  padding: 0 0 15px 15px;
}

.shelf-visual::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% - 15px);
  height: calc(100% - 15px);
  content: "";
  border: 2px solid var(--violet);
}

.shelf-visual > div {
  position: relative;
  height: min(37vw, 390px);
  min-height: 300px;
  overflow: hidden;
  background: #eee;
  border: 1px solid var(--plum);
}

.shelf-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.shelf-visual figcaption {
  position: relative;
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--plum);
}

.shelf-visual figcaption span {
  color: var(--violet-pale);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}

.shelf-visual figcaption strong {
  font-size: 13px;
}

.shelf-lead {
  max-width: 650px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}

.shelf-list {
  margin-top: 34px;
  border-top: 1px solid var(--plum);
}

.shelf-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.shelf-list span {
  color: var(--violet-deep);
  font-size: 16px;
  font-weight: 900;
}

.shelf-list p {
  color: var(--muted);
  font-size: 13px;
}

.reading-section {
  background: #fff;
}

.reading-heading {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.reading-heading > p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.reading-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--plum);
  border-bottom: 1px solid var(--plum);
}

.reading-path li {
  position: relative;
  min-height: 250px;
  padding: 27px 23px;
  border-right: 1px solid var(--line);
}

.reading-path li:last-child {
  border-right: 0;
}

.reading-path li > span {
  display: inline-block;
  color: var(--violet-deep);
  font-size: 13px;
  font-weight: 900;
}

.reading-path li div {
  margin-top: 47px;
}

.reading-path small {
  color: #99909f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.reading-path h3 {
  margin-top: 6px;
  font-size: 19px;
}

.reading-path p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.faq-section {
  color: #fff;
  background: var(--plum-soft);
}

.faq-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(50px, 8vw, 110px);
}

.faq-title > p:not(.section-label) {
  margin-top: 22px;
  color: #c1b9c7;
  font-size: 14px;
}

.official-site {
  margin-top: 33px;
  padding: 17px 18px;
  background: #211b2a;
  border-left: 3px solid var(--violet);
}

.official-site span {
  display: block;
  color: #9d93a5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

.official-site a {
  display: inline-block;
  margin-top: 5px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.faq-list {
  border-top: 1px solid #62566c;
}

.faq-item {
  border-bottom: 1px solid #62566c;
}

.faq-item h3 {
  font-size: inherit;
}

.faq-item button {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.faq-item button span {
  font-size: 15px;
  font-weight: 800;
}

.faq-item button i {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-pale);
  border: 1px solid #6f6379;
  font-size: 20px;
  font-style: normal;
  line-height: 1;
}

.faq-item button[aria-expanded="true"] i {
  color: var(--plum);
  background: var(--violet-pale);
  border-color: var(--violet-pale);
  transform: rotate(45deg);
}

.faq-panel {
  padding: 0 50px 22px 0;
}

.faq-panel p {
  color: #c2bac8;
  font-size: 13px;
}

.gallery-section {
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid figure {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--plum);
}

.gallery-grid figure > div {
  height: clamp(240px, 22vw, 320px);
  overflow: hidden;
  background: #f0edf4;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(.82);
}

.gallery-grid figcaption {
  min-height: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  border-top: 1px solid var(--plum);
}

.gallery-grid figcaption span {
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 900;
}

.gallery-grid figcaption strong {
  font-size: 14px;
}

.margin-notes {
  background: #fff;
}

.notes-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(52px, 8vw, 110px);
}

.note-items {
  border-top: 2px solid var(--plum);
}

.note-items article {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.note-items span {
  color: var(--violet-deep);
  font-size: 14px;
  font-weight: 900;
}

.note-items p {
  color: var(--muted);
  font-size: 13px;
}

.letters-section {
  color: #fff;
  background: var(--plum);
}

.letters-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 8px 32px;
}

.letters-heading .section-label {
  grid-column: 1 / -1;
}

.letters-heading > p:last-child {
  justify-self: end;
  color: #aaa1b1;
  font-size: 14px;
}

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

.comment-card {
  min-width: 0;
  padding: 22px;
  background: #2b2434;
  border: 1px solid #51455e;
}

.comment-card header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  background: var(--violet-pale);
  font-size: 15px;
  font-weight: 900;
}

.comment-card header div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.comment-card header strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating {
  margin-top: 2px;
  color: #b6a7ff;
  font-size: 12px;
  letter-spacing: .04em;
}

.comment-card time {
  padding-top: 2px;
  color: #93899b;
  font-size: 12px;
  white-space: nowrap;
}

.comment-card > p {
  margin-top: 18px;
  color: #cec8d2;
  font-size: 13px;
  line-height: 1.86;
}

.download-section {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 74px 24px;
  color: var(--plum);
  background: var(--violet-pale);
  text-align: center;
}

.download-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .34;
  background-image: linear-gradient(rgba(104,87,199,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(104,87,199,.22) 1px, transparent 1px);
  background-size: 46px 46px;
}

.download-ornament {
  position: absolute;
  top: -95px;
  left: 6%;
  color: rgba(104,87,199,.12);
  font-family: Georgia, serif;
  font-size: 350px;
  line-height: 1;
}

.download-copy {
  position: relative;
  z-index: 1;
}

.download-copy > p {
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
}

.download-copy h2 {
  max-width: 900px;
  margin-top: 12px;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 950;
  line-height: 1.16;
  letter-spacing: -.045em;
}

.download-copy > span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

.download-copy a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  margin-top: 27px;
  padding: 0 26px;
  color: #fff;
  background: var(--plum);
  border: 1px solid var(--plum);
  font-size: 14px;
  font-weight: 900;
}

.download-copy a:hover {
  color: var(--plum);
  background: #fff;
}

.site-footer {
  padding: 42px clamp(24px, 4vw, 58px) 24px;
  color: #d6d0da;
  background: #17131c;
}

.footer-inner {
  width: min(100%, var(--content));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  color: #fff;
  font-size: 17px;
}

.footer-brand span {
  margin-top: 3px;
  color: #948b9a;
  font-size: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.footer-nav a {
  color: #c8c1cc;
  font-size: 12px;
}

.footer-nav a:hover {
  color: var(--violet-pale);
}

.copyright {
  width: min(100%, var(--content));
  margin: 28px auto 0;
  padding-top: 20px;
  color: #827987;
  border-top: 1px solid #3a323f;
  font-size: 12px;
  text-align: center;
}

.back-to-top {
  position: fixed;
  z-index: 850;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--violet-deep);
  border: 1px solid #fff;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  transform: translateY(12px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .comment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mood-strip,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mood-strip figure > div,
  .gallery-grid figure > div {
    height: clamp(240px, 34vw, 330px);
  }
}

@media (max-width: 900px) {
  :root {
    --top-h: 64px;
  }

  .story-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .story-topbar::after {
    left: 0;
  }

  .story-brand {
    min-width: 0;
    padding: 0 14px;
    background: #fff;
    border-right: 0;
  }

  .story-brand img {
    width: 38px;
    height: 38px;
  }

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

  .topbar-note {
    display: none;
  }

  .topbar-actions {
    padding-right: 10px;
  }

  .topbar-download {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .story-rail {
    width: min(82vw, 290px);
    transform: translateX(-103%);
    transition: transform .2s ease;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .story-rail {
    transform: translateX(0);
  }

  .rail-backdrop {
    position: fixed;
    z-index: 850;
    inset: var(--top-h) 0 0 0;
    display: block;
    visibility: hidden;
    padding: 0;
    background: rgba(28,23,36,.62);
    border: 0;
    opacity: 0;
    pointer-events: none;
  }

  body.nav-open .rail-backdrop {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .page-shell {
    margin-left: 0;
  }

  .hero {
    min-height: 670px;
    background-position: 58% 30%;
  }

  .hero-copy {
    width: min(670px, calc(100% - 44px));
    margin: 44px 22px;
    padding: 34px;
  }

  .hero-folio {
    display: none;
  }

  .heading-ledger,
  .gallery-heading,
  .themes-layout,
  .shelf-layout,
  .faq-layout,
  .notes-layout {
    grid-template-columns: 1fr;
  }

  .heading-ledger > p,
  .gallery-heading > p,
  .letters-heading > p:last-child {
    max-width: 640px;
    justify-self: start;
  }

  .ledger {
    grid-template-columns: 1fr;
  }

  .ledger-index {
    min-height: 220px;
  }

  .ledger-index strong {
    margin-top: 35px;
  }

  .shelf-visual {
    width: min(100%, 390px);
    justify-self: center;
  }

  .shelf-copy {
    order: -1;
  }

  .reading-path {
    grid-template-columns: repeat(2, 1fr);
  }

  .reading-path li:nth-child(2) {
    border-right: 0;
  }

  .reading-path li:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .footer-inner,
  .footer-brand {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    gap: 9px;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 64px 18px;
  }

  .story-brand small {
    display: none;
  }

  .hero {
    min-height: 720px;
    align-items: flex-end;
    background-image: linear-gradient(180deg, rgba(27,22,34,.32) 0%, rgba(27,22,34,.9) 47%, rgba(27,22,34,.98) 100%), var(--hero-bg);
    background-position: 55% 20%;
  }

  .hero-copy {
    width: calc(100% - 28px);
    margin: 72px 14px 24px;
    padding: 27px 20px 24px;
    box-shadow: none;
  }

  .eyebrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 63px);
  }

  .hero-line {
    margin-top: 24px;
    padding: 8px 10px;
    font-size: 20px;
  }

  .hero-intro {
    font-size: 14px;
    line-height: 1.78;
  }

  .hero-actions {
    gap: 18px;
  }

  .hero-meta {
    display: grid;
  }

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

  .section-heading h2,
  .themes-intro h2,
  .shelf-copy h2,
  .faq-title h2,
  .notes-layout h2 {
    font-size: 34px;
  }

  .ledger-index {
    min-height: 205px;
    padding: 27px 23px;
  }

  .ledger-rows article {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 11px;
    padding: 16px;
  }

  .ledger-rows article > span {
    display: none;
  }

  .mood-strip,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .mood-strip figure > div,
  .gallery-grid figure > div {
    height: clamp(180px, 51vw, 250px);
  }

  .mood-strip figcaption {
    min-height: 78px;
    padding-left: 36px;
  }

  .gallery-grid figcaption {
    min-height: 65px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding: 8px 10px;
  }

  .theme-cards {
    grid-template-columns: 1fr;
  }

  .theme-cards article {
    min-height: auto;
  }

  .shelf-visual {
    width: min(100%, 350px);
  }

  .shelf-visual > div {
    height: min(90vw, 350px);
    min-height: 260px;
  }

  .reading-path {
    grid-template-columns: 1fr;
  }

  .reading-path li {
    min-height: auto;
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 16px;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reading-path li:last-child {
    border-bottom: 0;
  }

  .reading-path li div {
    margin-top: 0;
  }

  .faq-layout {
    gap: 42px;
  }

  .faq-item button {
    min-height: 64px;
  }

  .note-items article {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .letters-heading {
    display: block;
  }

  .letters-heading > p:last-child {
    margin-top: 10px;
  }

  .comment-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .comment-card {
    padding: 18px;
  }

  .comment-card header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .comment-card time {
    justify-self: end;
    text-align: right;
  }

  .download-section {
    min-height: 360px;
    padding: 64px 18px;
  }

  .site-footer {
    padding: 38px 18px 22px;
  }
}

@media (max-width: 390px) {
  .story-brand {
    gap: 8px;
    padding-right: 5px;
  }

  .story-brand img {
    width: 34px;
    height: 34px;
  }

  .story-brand strong {
    max-width: 88px;
    font-size: 14px;
  }

  .topbar-actions {
    gap: 6px;
    padding-right: 7px;
  }

  .topbar-download {
    padding: 0 9px;
  }

  .hero-copy {
    padding-right: 17px;
    padding-left: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .mood-strip figcaption strong,
  .gallery-grid figcaption strong {
    font-size: 13px;
  }

  .comment-card {
    padding: 16px;
  }

  .comment-card header {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .comment-avatar {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
