:root {
  color-scheme: light;
  --paper: #fafaf7;
  --ink: #242622;
  --pencil: #54564f;
  --rule: #c9cbc1;
  --type: Bench, Arial, sans-serif;
  --print: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--type); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ol { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 3px solid #365769; outline-offset: 4px; }
.frame { width: min(1250px, calc(100% - clamp(40px, 8vw, 125px))); margin: auto; }
.skip-link { position: absolute; top: 0; left: 1rem; padding: .5rem .85rem; color: white; background: var(--ink); transform: translateY(-120%); }
.skip-link:focus { transform: none; }
.mast, footer, footer nav { display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.mast { min-height: 66px; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; font: bold clamp(21px, 2vw, 27px)/1 var(--print); letter-spacing: -.055em; }
.mark { width: 1.23em; height: 1.23em; }
.mast nav a, footer, .duration, .shelf-status, .footnote { font-size: .875rem; color: var(--pencil); }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: clamp(28px, 4vw, 57px) 0 clamp(24px, 3.1vw, 40px); }
.kicker, .release-time > span, .companion small { font: 600 .78rem/1.4 var(--type); letter-spacing: .1em; text-transform: uppercase; color: var(--pencil); }
h1 { margin: .3rem 0 .55rem; font: normal clamp(42px, 5.2vw, 80px)/1.03 var(--print); letter-spacing: -.067em; }
.lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: #42443e; }
.release-time { flex-shrink: 0; font-size: .94rem; border-left: 1px solid var(--rule); padding-left: 1.05rem; }
.release-time > span { display: block; margin-bottom: .15rem; }
.release-time strong { font-weight: 600; }
.intro { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(330px,.85fr); align-items:center; gap:clamp(25px,5vw,74px); }
.intro-copy .lead { max-width:45ch; }
.release-time { margin:.85rem 0 .75rem; padding:0; border:0; font-weight:600; }
.reel-link { display:inline-flex; align-items:center; gap:.45em; min-height:40px; font-size:.94rem; text-underline-offset:.2em; }
.reel-link span { font-size:.72em; }
#offerHome { min-width:0; }
#offerHome #signup { background:var(--ink); color:var(--paper); padding:clamp(20px,2.55vw,36px); border-radius:4px; }
#offerHome #offerState .fine { color:#dedfd8; }
#offerHome .primary { background:var(--paper); color:var(--ink); border-color:var(--paper); }
#offerHome .primary:hover { background:white; }
#offerHome .secondary { color:var(--paper); border-color:#a4a79d; }
#offerHome .secondary:hover { background:#3e423b; }
#offerHome :focus-visible { outline-color:#c2d9e1; }
#signup .primary { min-height:46px; padding:.68rem 1.1rem; font-size:1rem; }
#signup h2 { text-wrap:balance; }
#ownerTools { margin-bottom:1.25rem; }
html.preview-open { overflow:hidden; }
#previewDialog { inset:0; margin:auto; width:min(700px,calc(100% - 32px)); max-height:calc(100dvh - 24px); padding:0; color:var(--ink); background:var(--paper); border:1px solid #686b60; border-radius:6px; box-shadow:0 18px 70px #171a1660; overscroll-behavior:contain; }
#previewDialog::backdrop { background:#1d201ccc; }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; border-bottom:1px solid var(--rule); }
.dialog-head h2 { font:normal clamp(19px,2.4vw,26px)/1.14 var(--print); }
.close-dialog { display:grid; place-items:center; width:42px; height:42px; border:0; background:transparent; color:var(--ink); font:normal 1.8rem/1 Arial,sans-serif; }
.close-dialog:hover { background:#e9ebe4; border-radius:50%; }
.dialog-body { display:grid; grid-template-columns:minmax(135px,.72fr) minmax(0,1.28fr); gap:clamp(18px,3vw,36px); align-items:center; padding:clamp(16px,3vw,32px); }
.dialog-date { font-size:.88rem; font-weight:600; margin-bottom:.8rem; }
.dialog-body #signup { padding:0; }
.catalogue { border-top:1px solid #7e8075; padding: clamp(18px, 2vw, 30px) 0 24px; }
.shelf-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: clamp(20px, 2.2vw, 32px); }
.shelf-heading h2, #signup h2, #ownerTools h2 { font: normal clamp(28px, 2.8vw, 43px)/1.08 var(--print); letter-spacing: -.048em; }
.shelf-heading h2 { margin-top: .18rem; }
.shelf-status { padding-bottom: .2rem; text-align: right; }
.collection { display: grid; gap: clamp(20px, 2.7vw, 37px); }
.shelf { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: end; justify-items:center; gap:3.5%; list-style:none; padding:0 2% 10px; }
.shelf li { width:100%; max-width:195px; }
.shelf::before { content: ""; position: absolute; inset: auto 0 0; height: 9px; border: 1px solid #838579; border-radius: 1px 2px 2px 1px; background: linear-gradient(#c2c2b9, #e7e7df 40%, #b4b5ac); box-shadow: 0 5px 5px -4px #777970; }
.volume { --tilt: -.35deg; --face: #f6f6ef; position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; aspect-ratio: .73; padding: 15px 8% 12px 15%; color: inherit; text-decoration: none; background: linear-gradient(100deg, #c2c3b8 0, transparent 13%), var(--face); border: 1px solid #67695e; border-radius: 2px 3px 3px 2px; box-shadow: 1px 0 #e5e6dc, 2px 0 #929488, 3px 0 #eeeee7, 4px 1px #6d6e63, 5px 3px 3px #5c5c4f36; transform: rotate(var(--tilt)); transform-origin: center bottom; }
.volume .trial-action { align-self:flex-start; color:#fff; background:var(--ink); border-radius:3px; padding:.38em .6em; font:600 clamp(.72rem,1vw,.88rem)/1.25 var(--type); letter-spacing:0; text-transform:none; }
.n2, .n7 { --tilt: .55deg; --face: #f1f1eb; } .n3, .n5 { --tilt: -.55deg; } .n4 { --tilt: .18deg; }
.volume::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 6%; border-right: 1px solid #929384; background: repeating-linear-gradient(5deg, transparent 0 2px, #5c5e4d36 2px 3px, transparent 3px 4px), linear-gradient(90deg,#b5b6aa,#e1e1d8 55%,#a7a99b); }
.volume::after { content: ""; position: absolute; z-index: -1; inset: 0; background: url('/books/catalogue-assets/paper.png'); mix-blend-mode: multiply; opacity: .13; }
.volno { display: inline-flex; gap: .2rem; font: 600 .72rem/1.2 var(--type); letter-spacing: .07em; text-transform: uppercase; color: var(--pencil); }
.volume h3 { margin: .55rem 0 0; font: normal clamp(17px, 1.65vw, 24px)/1.045 var(--print); letter-spacing: -.038em; overflow-wrap: break-word; }
.coverart { display: block; position: relative; flex: 1; min-height: 20px; margin: .2rem -3%; }
.coverart img { position: absolute; width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.details { font: italic .8rem/1.1 var(--print); color: var(--pencil); }
.access-mark { position: absolute; right: 6px; }
.access-mark.free { top: -1px; padding: .21rem .38rem .48rem; clip-path: polygon(0 0,100% 0,100% 100%,50% 85%,0 100%); background: #353731; color: #fff; font: 600 .77rem/1 var(--type); }
.access-mark.paid { top: 6px; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #96978b; border-radius: 50%; color: var(--pencil); font: .85rem/1 var(--print); }
.volume[href]:hover h3, .companion[href]:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .volume[href] { transition: transform .16s; } .volume[href]:hover { transform: translateY(-5px); } }
.companion { display: flex; gap: 1rem; padding: 1rem .8rem; margin-top: 1.35rem; border-block: 1px solid var(--rule); align-items: center; color: inherit; text-decoration: none; }
.companion small, .companion strong, .deck-info { display: block; }
.companion strong { font: normal clamp(19px, 1.7vw, 25px)/1.3 var(--print); }
.deck-info { font-size: .875rem; color: var(--pencil); }
.little-deck { display: inline-block; position: relative; flex: 0 0 49px; height: 36px; }
.little-deck i { position: absolute; top: 4px; left: 3px; width: 34px; height: 26px; border: 1px solid #6c7063; border-radius: 3px; background: #e6dfe8; transform: rotate(-15deg); }
.little-deck i:nth-child(2) { left: 7px; transform: rotate(-3deg); background: #dce7df; }
.little-deck i:last-child { left: 12px; transform: rotate(8deg); background: #f2eadc; }
.little-deck i:last-child::after { content: ""; position: absolute; inset: 7px 5px; background: repeating-linear-gradient(0deg,transparent 0 4px,#888a7c 4px 5px); }
.footnote { margin-top: .6rem; font: italic .9rem/1.4 var(--print); }
.film-strip { text-align:center; }
#film { display:block; width:100%; max-height:54dvh; aspect-ratio:9/16; object-fit:contain; background:#252724; margin:auto; border:1px solid #a3a697; border-radius:2px; }
.film-strip figcaption { margin-top:.45rem; font:italic .85rem/1.25 var(--print); color:var(--pencil); }
#signup h2, #ownerTools h2 { font-size: clamp(26px, 2.25vw, 34px); }
#offerState p, #ownerTools p { margin: .65rem 0; overflow-wrap: anywhere; }
#offerState .fine, #ownerTools p, #ownerTools button { font-size: .875rem; color: var(--pencil); }
.actions, .test-buttons { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin: .9rem 0 .55rem; }
.primary, .secondary, .test-buttons button { display: inline-flex; align-items: center; min-height: 40px; padding: .52rem .8rem; border-radius: 3px; border: 1px solid #55584e; text-decoration: none; font: 600 .91rem/1.3 var(--type); }
.primary { color: white; background: #2c302d; } .primary:hover { background: #41463f; }
.secondary, .test-buttons button { color: var(--ink); background: transparent; }
.secondary:hover, .test-buttons button:hover { background: #ededdf; }
.ref-copy { width: 100%; padding: .4rem; border: 1px solid #92968b; background: white; font: .875rem var(--type); }
#ownerTools { border-top: 1px solid var(--rule); margin-top: 1.25rem; padding-top: 1.2rem; }
#ownerTools summary { cursor: pointer; font-weight: 600; }
footer { border-top: 1px solid var(--rule); padding: 1rem 0 1.35rem; flex-wrap: wrap; }
footer nav { flex-wrap: wrap; }
@media (min-width: 851px) and (max-width: 1030px) {
  .shelf { gap: 3%; padding-inline: .5%; }
  .volno .word { display: none; }
  .volume { aspect-ratio: .66; padding-block: 10px; }
  .volume h3 { font-size: 17px; }
}
@media (max-width: 850px) {
  .intro { gap:1.3rem; grid-template-columns:minmax(0,1fr) minmax(270px,.9fr); }
  .catalogue { padding:1.3rem 0; }
}
@media (max-width: 600px) {
  .frame { width: calc(100% - 32px); }
  .mast { min-height: 52px; }
  .intro { grid-template-columns:minmax(0,1fr); gap:1rem; padding-block:1.2rem; }
  .release-time { margin:.65rem 0 .2rem; }
  #offerHome #signup { padding:18px 20px; }
  .dialog-head { padding:5px 12px 5px 16px; }
  .dialog-body { display:flex; flex-direction:column; align-items:stretch; gap:.8rem; padding:14px 18px 18px; }
  .dialog-date { margin-bottom:.45rem; }
  .film-strip { flex:none; }
  #film { width:auto; max-width:100%; height:clamp(110px,25dvh,205px); max-height:none; }
  #offerSlot .fine { margin-bottom:0; }
  .shelf-heading { align-items: start; margin-bottom: 1.15rem; }
  .shelf-status { font-size: .81rem; max-width: 8rem; }
  .shelf { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 .4rem; gap: 1.1rem .95rem; }
  .shelf::before { display: none; }
  .volume { aspect-ratio: .86; min-height: 168px; padding-top: 10px; }
  .volume h3 { font-size: clamp(16px, 4.7vw, 22px); }
  .volno .word { display: none; }
  .collection { gap: 1.1rem; }
}
@media (min-width: 601px) and (max-width: 710px) { .volno .word { display: none; } }
@media (forced-colors: active) { .access-mark.free { clip-path: none; border: 1px solid CanvasText; } }
.consent { flex: 1 1 100%; display: flex; align-items: flex-start; gap: .45rem; font-size: .9rem; }
.consent input { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; margin: .12em 0 0; }
#sampleResult:not(:empty) { border-left: 2px solid #8c9488; padding: .5rem .7rem; margin-top: .6rem; font-size: .9rem; }
