:root{
  --ink:#201b17;
  --ink-soft:#4c4238;
  --paper:#e7ddca;
  --paper-light:#f3ecdf;
  --paper-deep:#c9bca5;
  --rust:#8c4f36;
  --olive:#77745a;
  --line:rgba(53,43,34,.20);
  --muted:rgba(41,34,28,.60);
  --content:min(1440px,calc(100vw - 88px));
  --sans:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --serif:Georgia,"Times New Roman","Songti SC","STSong",serif;
}

*{ box-sizing:border-box; }

html{
  min-width:960px;
  scroll-behavior:smooth;
  background:var(--paper);
}

body{
  margin:0;
  min-width:960px;
  color:var(--ink);
  background:
    radial-gradient(700px 460px at 78% 3%,rgba(140,79,54,.10),transparent 72%),
    var(--paper);
  font-family:var(--sans);
  overflow-x:hidden;
}

body:has(.bookDialog[open]){ overflow:hidden; }

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

.readingSkip{
  position:fixed;
  top:12px;
  left:12px;
  z-index:100;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(243,236,223,.94);
  transform:translateY(-160%);
  transition:transform .18s ease;
}

.readingSkip:focus{ transform:none; }

.readingNav{
  position:absolute;
  top:30px;
  left:50%;
  z-index:20;
  width:var(--content);
  height:44px;
  display:grid;
  grid-template-columns:auto minmax(200px,1fr);
  align-items:center;
  gap:24px;
  transform:translateX(-50%);
}

.readingNav__back{
  height:42px;
  padding:0 16px 0 13px;
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid rgba(53,43,34,.22);
  border-radius:999px;
  background:rgba(243,236,223,.48);
  box-shadow:0 14px 34px rgba(69,50,36,.08),inset 0 1px 0 rgba(255,255,255,.46);
  backdrop-filter:blur(16px) saturate(110%);
  -webkit-backdrop-filter:blur(16px) saturate(110%);
  font-size:12px;
  font-weight:750;
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}

.readingNav__back:hover,
.readingNav__back:focus-visible{
  border-color:rgba(53,43,34,.48);
  background:rgba(243,236,223,.74);
  outline:none;
  transform:translateX(-2px);
}

.readingNav__back span:first-child{
  font-size:18px;
  line-height:1;
}

.readingNav__brand{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:11px;
}

.readingNav__brand span{
  font-family:var(--serif);
  font-size:15px;
  letter-spacing:.4px;
}

.readingNav__brand small{
  color:var(--muted);
  font-size:9px;
  letter-spacing:1.2px;
  text-transform:uppercase;
}

.readingHero{
  position:relative;
  min-height:680px;
  height:88vh;
  overflow:hidden;
  isolation:isolate;
}

.readingHero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-3;
  background:
    linear-gradient(90deg,rgba(255,255,255,.24),transparent 42%,rgba(111,83,58,.06)),
    linear-gradient(135deg,#eee5d5,#d9cbb5 78%);
}

.readingHero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(180deg,transparent 72%,var(--paper) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(20% - 1px),
      rgba(65,50,39,.045) calc(20% - 1px),
      rgba(65,50,39,.045) 20%
    );
  pointer-events:none;
}

.readingHero__lines{
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 41px,
      rgba(65,50,39,.035) 42px
    );
  mask-image:linear-gradient(90deg,transparent 0,black 46%,black 100%);
}

.readingHero__page{
  position:absolute;
  top:15%;
  right:max(46px,calc((100vw - 1440px) / 2));
  width:42%;
  height:62%;
  padding:48px 54px;
  border:1px solid rgba(53,43,34,.16);
  background:rgba(249,243,232,.45);
  box-shadow:30px 35px 80px rgba(88,59,38,.10),inset 0 1px 0 rgba(255,255,255,.54);
  transform:rotate(1.4deg);
}

.readingHero__page::before{
  content:"";
  position:absolute;
  top:-1px;
  bottom:-1px;
  left:36px;
  width:1px;
  background:rgba(140,79,54,.30);
}

.readingHero__page > span{
  display:block;
  color:rgba(140,79,54,.72);
  font-family:var(--serif);
  font-size:112px;
  font-style:italic;
  line-height:1;
}

.readingHero__page i{
  width:72%;
  height:1px;
  margin-top:29px;
  display:block;
  background:rgba(53,43,34,.13);
}

.readingHero__page i:nth-of-type(2){ width:88%; }
.readingHero__page i:nth-of-type(3){ width:64%; }
.readingHero__page i:nth-of-type(4){ width:82%; }
.readingHero__page i:nth-of-type(5){ width:46%; }

.readingHero__copy{
  position:absolute;
  left:max(52px,calc((100vw - 1440px) / 2));
  bottom:112px;
  z-index:2;
}

.readingEyebrow{
  color:rgba(140,79,54,.78);
  font-size:9px;
  font-weight:800;
  letter-spacing:2px;
  text-transform:uppercase;
}

.readingHero h1{
  margin:17px 0 0;
  font-family:var(--serif);
  font-size:clamp(92px,11vw,166px);
  font-weight:400;
  letter-spacing:-9px;
  line-height:.84;
}

.readingHero__copy p{
  margin:34px 0 0;
  color:rgba(41,34,28,.72);
  font-family:var(--serif);
  font-size:20px;
  letter-spacing:1px;
}

.readingHero__note{
  position:absolute;
  top:23%;
  left:49%;
  z-index:3;
  width:300px;
  min-height:300px;
  padding:30px;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(53,43,34,.24);
  background:rgba(239,230,213,.76);
  box-shadow:0 26px 60px rgba(68,47,33,.13),inset 0 1px 0 rgba(255,255,255,.54);
  transform:rotate(-2deg);
}

.readingHero__note > span{
  color:rgba(140,79,54,.72);
  font-size:8px;
  font-weight:800;
  letter-spacing:1.6px;
  text-transform:uppercase;
}

.readingHero__note p{
  margin:48px 0 0;
  font-family:var(--serif);
  font-size:16px;
  line-height:2;
}

.readingHero__note > div{
  margin-top:auto;
  padding-top:14px;
  display:flex;
  justify-content:space-between;
  border-top:1px solid rgba(53,43,34,.14);
  color:var(--muted);
  font-size:8px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}

.readingHero__down{
  position:absolute;
  right:max(52px,calc((100vw - 1440px) / 2));
  bottom:56px;
  z-index:4;
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--muted);
  font-size:9px;
  font-weight:750;
  letter-spacing:1.4px;
  text-transform:uppercase;
}

.readingHero__down span:last-child{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(53,43,34,.20);
  border-radius:50%;
  transition:border-color .18s ease,transform .18s ease;
}

.readingHero__down:hover span:last-child,
.readingHero__down:focus-visible span:last-child{
  border-color:rgba(53,43,34,.54);
  transform:translateY(3px);
}

.readingHero__down:focus-visible{ outline:none; }

.readingCollection{
  width:var(--content);
  margin:0 auto;
  padding:100px 0 132px;
}

.readingCollection__head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:64px;
  margin-bottom:52px;
}

.readingCollection__head h2{
  margin:12px 0 0;
  font-family:var(--serif);
  font-size:64px;
  font-weight:400;
  letter-spacing:-3px;
  line-height:1;
}

.readingCollection__tools{
  display:grid;
  justify-items:end;
  gap:20px;
}

.readingCollection__tools > p{
  width:440px;
  margin:0;
  color:var(--muted);
  font-family:var(--serif);
  font-size:12px;
  line-height:1.8;
  text-align:right;
}

.readingFilters{
  display:flex;
  align-items:center;
  gap:6px;
}

.readingFilters button{
  min-width:60px;
  height:31px;
  padding:0 14px;
  border:1px solid rgba(53,43,34,.16);
  border-radius:999px;
  color:rgba(41,34,28,.52);
  background:transparent;
  cursor:pointer;
  font-size:9px;
  font-weight:700;
  letter-spacing:.6px;
  transition:color .18s ease,border-color .18s ease,background .18s ease;
}

.readingFilters button:hover,
.readingFilters button:focus-visible{
  color:var(--ink);
  border-color:rgba(53,43,34,.40);
  outline:none;
}

.readingFilters button[aria-pressed="true"]{
  color:var(--paper-light);
  border-color:var(--ink);
  background:var(--ink);
}

.readingGrid{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:48px 34px;
}

.readingGrid::after{
  content:"";
  position:absolute;
  right:0;
  bottom:-21px;
  left:0;
  height:16px;
  border-top:1px solid rgba(53,43,34,.24);
  background:linear-gradient(180deg,rgba(83,59,40,.10),transparent);
  box-shadow:0 16px 22px rgba(69,47,32,.08);
  pointer-events:none;
}

.bookCard{ min-width:0; }

.bookCard__button{
  width:100%;
  padding:0;
  display:block;
  border:0;
  color:inherit;
  background:none;
  cursor:pointer;
  text-align:left;
}

.bookCover{
  --cover-a:#d2b56e;
  --cover-b:#392e24;
  --cover-c:#7c4730;
  position:relative;
  width:88%;
  aspect-ratio:2/3;
  margin:0 auto;
  overflow:hidden;
  border:1px solid rgba(35,29,24,.24);
  color:var(--cover-b);
  background:
    radial-gradient(circle at 72% 28%,rgba(255,255,255,.22),transparent 26%),
    linear-gradient(145deg,var(--cover-a),color-mix(in srgb,var(--cover-a) 72%,var(--cover-c)));
  box-shadow:
    -7px 8px 0 var(--cover-b),
    -13px 16px 26px rgba(61,43,31,.20);
  isolation:isolate;
  transform-origin:bottom center;
  transition:transform .32s cubic-bezier(.2,.7,.2,1),box-shadow .32s ease;
}

.bookCover::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(90deg,rgba(255,255,255,.18),transparent 11%),
    repeating-linear-gradient(0deg,transparent 0,transparent 37px,rgba(49,39,31,.06) 38px);
}

.bookCover::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:20px;
  width:1px;
  background:color-mix(in srgb,var(--cover-b) 34%,transparent);
  box-shadow:4px 0 9px rgba(36,27,20,.08);
}

.bookCard__button:hover .bookCover,
.bookCard__button:focus-visible .bookCover{
  box-shadow:
    -9px 10px 0 var(--cover-b),
    -18px 26px 38px rgba(61,43,31,.28);
  transform:translateY(-7px) rotate(-1deg);
}

.bookCard__button:focus-visible{ outline:none; }

.bookCover__catalogue{
  position:absolute;
  top:24px;
  left:40px;
  font-size:8px;
  font-weight:800;
  letter-spacing:1.5px;
}

.bookCover__catalogue::after{
  content:"";
  width:33px;
  height:1px;
  margin-top:10px;
  display:block;
  background:currentColor;
  opacity:.5;
}

.bookCover__mark{
  position:absolute;
  top:19%;
  right:10%;
  font-family:var(--serif);
  font-size:clamp(110px,12vw,180px);
  font-weight:400;
  line-height:1;
  opacity:.15;
}

.bookCover__title{
  position:absolute;
  right:26px;
  bottom:28px;
  left:40px;
  display:grid;
  gap:8px;
}

.bookCover__title strong{
  font-family:var(--serif);
  font-size:clamp(30px,3vw,46px);
  font-weight:400;
  letter-spacing:-2px;
  line-height:1.06;
}

.bookCover__title span{
  padding-top:10px;
  border-top:1px solid color-mix(in srgb,var(--cover-b) 28%,transparent);
  overflow:hidden;
  font-family:var(--serif);
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.bookCard__meta{
  width:88%;
  margin:0 auto;
  padding:20px 0 0;
  display:grid;
  gap:11px;
}

.bookCard__year{
  padding-bottom:9px;
  display:flex;
  align-items:baseline;
  gap:20px;
}

.bookCard__year::before{
  content:"";
  height:1px;
  flex:1;
  background:rgba(53,43,34,.13);
}

.bookCard__year strong{
  color:rgba(41,34,28,.52);
  font-size:9px;
  font-weight:700;
  letter-spacing:1px;
}

.bookCard__meta p{
  margin:0;
  color:var(--muted);
  font-family:var(--serif);
  font-size:13px;
  line-height:1.75;
}

.bookCard__meta p::before{
  content:"“";
  margin-right:3px;
  color:rgba(140,79,54,.56);
}

.bookCard__tags{
  display:flex;
  gap:5px;
}

.bookCard__tags span{
  padding:5px 8px;
  border:1px solid rgba(53,43,34,.13);
  border-radius:999px;
  color:rgba(41,34,28,.45);
  font-size:8px;
  letter-spacing:.5px;
}

.readingEmpty{
  margin:60px 0;
  color:var(--muted);
  font-family:var(--serif);
  font-size:20px;
  text-align:center;
}

.readingColophon{
  width:var(--content);
  min-height:420px;
  margin:0 auto 120px;
  padding:70px;
  display:grid;
  place-items:center;
  align-content:center;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  text-align:center;
}

.readingColophon > span{
  color:rgba(140,79,54,.72);
  font-size:8px;
  font-weight:800;
  letter-spacing:2px;
  text-transform:uppercase;
}

.readingColophon blockquote{
  margin:31px 0 0;
  font-family:var(--serif);
  font-size:clamp(33px,4.3vw,62px);
  letter-spacing:-2.5px;
  line-height:1.35;
}

.readingColophon a{
  margin-top:38px;
  padding-bottom:7px;
  border-bottom:1px solid rgba(53,43,34,.28);
  color:var(--muted);
  font-size:9px;
  letter-spacing:1px;
}

.readingFooter{
  width:var(--content);
  margin:0 auto;
  padding:30px 0 46px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  border-top:1px solid rgba(53,43,34,.12);
}

.readingFooter > div{
  display:grid;
  gap:6px;
}

.readingFooter strong{
  font-family:var(--serif);
  font-size:16px;
  font-weight:400;
}

.readingFooter span,
.readingFooter a{
  color:var(--muted);
  font-size:9px;
  letter-spacing:1px;
}

.readingFooter a{
  padding-bottom:5px;
  border-bottom:1px solid rgba(53,43,34,.24);
}

.bookDialog{
  width:100vw;
  max-width:none;
  height:100vh;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  color:var(--ink);
  background:rgba(34,28,23,.72);
  overflow:hidden;
}

.bookDialog::backdrop{
  background:rgba(30,24,20,.68);
  backdrop-filter:blur(16px) saturate(75%);
  -webkit-backdrop-filter:blur(16px) saturate(75%);
}

.bookDialog[open]{
  display:grid;
  place-items:center;
}

.bookDialog__shell{
  width:min(1320px,calc(100vw - 72px));
  height:min(850px,calc(100vh - 52px));
  display:grid;
  grid-template-rows:68px minmax(0,1fr) 66px;
  border:1px solid rgba(53,43,34,.28);
  background:
    repeating-linear-gradient(0deg,transparent 0,transparent 39px,rgba(67,52,41,.025) 40px),
    var(--paper-light);
  box-shadow:0 40px 110px rgba(25,18,14,.46);
}

.bookDialog__bar{
  padding:0 20px 0 27px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(53,43,34,.14);
}

.bookDialog__bar > div{
  display:flex;
  align-items:baseline;
  gap:14px;
}

.bookDialog__bar span{
  color:rgba(140,79,54,.72);
  font-size:8px;
  font-weight:800;
  letter-spacing:1.5px;
}

.bookDialog__bar strong{
  font-family:var(--serif);
  font-size:14px;
  font-weight:400;
}

.bookDialog__close{
  position:relative;
  width:38px;
  height:38px;
  border:1px solid rgba(53,43,34,.20);
  border-radius:50%;
  background:transparent;
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}

.bookDialog__close span::before,
.bookDialog__close span::after{
  content:"";
  position:absolute;
  top:18px;
  left:11px;
  width:16px;
  height:1px;
  background:var(--ink);
}

.bookDialog__close span::before{ transform:rotate(45deg); }
.bookDialog__close span::after{ transform:rotate(-45deg); }

.bookDialog__close:hover,
.bookDialog__close:focus-visible{
  border-color:rgba(53,43,34,.56);
  background:rgba(53,43,34,.05);
  outline:none;
  transform:rotate(4deg);
}

.bookDialog__body{
  min-height:0;
  padding:30px 38px;
  display:grid;
  grid-template-columns:minmax(280px,390px) minmax(0,1fr);
  gap:58px;
  overflow:hidden;
}

.bookCover--detail{
  width:auto;
  height:100%;
  max-height:650px;
  margin:0;
  align-self:center;
  aspect-ratio:2/3;
  box-shadow:
    -9px 10px 0 var(--cover-b),
    -18px 26px 38px rgba(61,43,31,.26);
}

.bookCover--detail .bookCover__mark{ font-size:150px; }
.bookCover--detail .bookCover__title strong{ font-size:42px; }

.bookDialog__content{
  min-width:0;
  padding:18px 22px 24px 0;
  overflow:auto;
  scrollbar-color:rgba(53,43,34,.24) transparent;
  scrollbar-width:thin;
}

.bookDialog__heading{
  display:flex;
  justify-content:space-between;
  gap:30px;
}

.bookDialog__heading > div > span{
  color:rgba(41,34,28,.46);
  font-family:var(--serif);
  font-size:12px;
  letter-spacing:.4px;
}

.bookDialog__heading h2{
  margin:9px 0 0;
  font-family:var(--serif);
  font-size:clamp(48px,5vw,72px);
  font-weight:400;
  letter-spacing:-4px;
  line-height:1;
}

.bookDialog__heading p{
  margin:12px 0 0;
  color:var(--muted);
  font-family:var(--serif);
  font-size:14px;
}

.bookDialog__sample{
  height:max-content;
  padding:6px 9px;
  border:1px solid rgba(140,79,54,.28);
  border-radius:999px;
  color:rgba(140,79,54,.82);
  font-size:8px;
  font-weight:750;
  letter-spacing:.8px;
  white-space:nowrap;
}

.bookDialog__meta{
  margin:28px 0 0;
  padding:17px 0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid rgba(53,43,34,.13);
  border-bottom:1px solid rgba(53,43,34,.13);
}

.bookDialog__meta div{
  min-width:0;
  padding:0 14px;
  border-right:1px solid rgba(53,43,34,.11);
}

.bookDialog__meta div:first-child{ padding-left:0; }
.bookDialog__meta div:last-child{ border-right:0; }

.bookDialog__meta dt{
  color:rgba(41,34,28,.38);
  font-size:8px;
  font-weight:750;
  letter-spacing:1px;
}

.bookDialog__meta dd{
  margin:8px 0 0;
  overflow:hidden;
  font-family:var(--serif);
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.bookDialog__observation{
  margin:35px 0 0;
  padding:16px 22px 16px 30px;
  border-left:2px solid rgba(140,79,54,.56);
  background:rgba(140,79,54,.045);
  font-family:var(--serif);
  font-size:clamp(22px,2.3vw,32px);
  letter-spacing:-.8px;
  line-height:1.55;
}

.bookDialog__introduction,
.bookDialog__note{
  margin-top:32px;
}

.bookDialog__introduction > span,
.bookDialog__note > span{
  color:rgba(140,79,54,.70);
  font-size:8px;
  font-weight:800;
  letter-spacing:1.4px;
  text-transform:uppercase;
}

.bookDialog__introduction p,
.bookDialog__note p{
  margin:10px 0 0;
  color:var(--muted);
  font-family:var(--serif);
  font-size:13px;
  line-height:1.95;
}

.bookDialog__note{
  position:relative;
  padding:27px 30px 30px;
  border:1px solid rgba(53,43,34,.14);
  background:rgba(255,255,255,.20);
}

.bookDialog__note::before{
  content:"";
  position:absolute;
  top:-1px;
  bottom:-1px;
  left:16px;
  width:1px;
  background:rgba(140,79,54,.18);
}

.bookDialog__note h3{
  margin:12px 0 0;
  font-family:var(--serif);
  font-size:20px;
  font-weight:400;
}

.bookDialog__footer{
  padding:0 24px;
  display:grid;
  grid-template-columns:auto minmax(140px,1fr) auto auto;
  align-items:center;
  gap:18px;
  border-top:1px solid rgba(53,43,34,.14);
}

.bookDialog__footer button{
  height:34px;
  padding:0 13px;
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid rgba(53,43,34,.16);
  border-radius:999px;
  color:rgba(41,34,28,.66);
  background:transparent;
  cursor:pointer;
  font-size:9px;
  letter-spacing:.5px;
  transition:border-color .18s ease,color .18s ease,background .18s ease;
}

.bookDialog__footer button:hover,
.bookDialog__footer button:focus-visible{
  border-color:rgba(53,43,34,.48);
  color:var(--ink);
  background:rgba(53,43,34,.045);
  outline:none;
}

#bookDialogShare{
  width:max-content;
  justify-self:end;
}

#bookDialogPosition{
  color:rgba(41,34,28,.38);
  font-family:var(--serif);
  font-size:11px;
  letter-spacing:1px;
}

@media (max-height:760px){
  .readingHero__copy{ bottom:80px; }
  .bookDialog__shell{ height:calc(100vh - 28px); }
  .bookDialog__body{ padding:22px 34px; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .readingNav__back,
  .readingHero__down span:last-child,
  .bookCover,
  .bookDialog__close{
    transition:none;
  }
}
