.home {
  --forest: #243c36;
}
.home main, .home .mast-inner, .home-foot > div {
  width: min(1320px, calc(100% - clamp(40px, 9vw, 144px)));
  margin-inline: auto;
}
.skip-link { position: absolute; left: 12px; top: 8px; padding: 8px 14px; background: var(--paper); transform: translateY(-160%); z-index: 2; }
.skip-link:focus { transform: none; }
.home nav a { font-size: 14px; }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(32px, 5vw, 86px);
  padding: clamp(38px, 4.1vw, 69px) 0 clamp(37px, 3.7vw, 60px);
}
.intro-copy { padding-bottom: 20px; }
.intro .eyebrow { font-size: 11px; }
.intro h1 {
  font: clamp(58px, 5.95vw, 91px)/.99 var(--serif);
  letter-spacing: -.052em;
  margin: 21px 0 22px -3px;
}
.intro h1 em {
  padding: 0; margin: 0; border: 0; color: var(--rust);
  font: italic 1em/1.05 "Spectral Italic", Georgia, serif;
  letter-spacing: -.055em;
}
.intro-copy p { max-width: 43ch; color: #566052; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.7; }
.catalog-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 23px;
  padding: 12px 19px; margin-top: 25px; border-radius: 4px;
  background: var(--rust); color: #fff9ec; font-size: 14px; font-weight: 550;
}
.catalog-button span, .card-action span { font-size: 19px; line-height: 1; }
.catalog-button:hover { background: #87391f; }
.exhibit { margin: 0; min-width: 0; }
.print {
  position: relative; isolation: isolate; padding: 7px 7px 0; background: #fffdf5;
  border: 1px solid #cec7b6; box-shadow: 0 7px 20px #5e503512;
}
.print::before {
  content: ''; z-index: -2; position: absolute; inset: 4px -3px -5px 4px;
  transform: rotate(1.25deg); border: 1px solid #d3ccba; background: #eae4d4;
}
.print::after { content: ''; position: absolute; inset: 0; z-index: -1; background: #fffdf5; }
.print-image { position: relative; aspect-ratio: 2.12; overflow: hidden; background: var(--forest); }
.print-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 43%; }
.print-image::after { content: ''; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent, #201d17a3); }
#sample-edition { position: absolute; z-index: 1; bottom: 12px; left: 16px; color: #fff5dd; font: italic 17px/1.2 "Spectral Italic", Georgia, serif; }
.sample-bond { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px clamp(7px, 1.25vw, 20px); }
.sample-person { display: flex; gap: 9px; align-items: center; color: var(--ink); font: clamp(15px, 1.29vw, 20px)/1.15 var(--serif); }
.sample-person:last-child { flex-direction: row-reverse; }
.sample-person img { width: 37px; height: 37px; object-fit: cover; border-radius: 50%; border: 2px solid #fff9ee; outline: 1px solid var(--thread); }
.sample-line { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; color: var(--thread); }
.sample-line::before, .sample-line::after { content: ''; min-width: 6px; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.sample-line span { white-space: nowrap; font: italic clamp(12px, 1vw, 16px)/1.2 "Spectral Italic", Georgia, serif; }
.exhibit figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 1px 0; }
#sample-link { display: inline-flex; gap: 7px; align-items: baseline; color: var(--muted); font-size: 13px; }
#sample-link:hover, .home-foot a:hover { color: var(--rust); }
.sample-controls { display: flex; align-items: center; gap: 10px; }
.sample-controls button { display: grid; place-items: center; min-width: 32px; min-height: 32px; border: 1px solid #c7c9bc; border-radius: 50%; padding: 0; color: #3c493e; font-size: 17px; }
.sample-controls button:hover { background: var(--soft); color: var(--rust); }
#sample-position { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

.catalog-section, .format-section { padding: 29px 0 37px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home h2 { font: clamp(32px, 3vw, 43px)/1.15 var(--serif); letter-spacing: -.04em; }
#catalog-count { font-size: 12px; color: var(--muted); }
.book-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 545px), 1fr)); gap: 20px; }
.book-card {
  display: grid; grid-template-columns: minmax(170px, 30%) 1fr; min-width: 0;
  background: #fcfbf6; border: 1px solid #d6d5c8; border-radius: 5px; overflow: hidden;
}
.book-card:hover { border-color: #a79c83; }
.cover-well {
  min-height: 240px; position: relative; isolation: isolate; display: grid; place-items: center;
  padding: 22px; overflow: hidden; border-right: 1px solid #c4c3b1;
  background: radial-gradient(ellipse at 36% 14%, #e2e1cf, transparent 67%), #c4c7af;
}
.cover-well::before { content: ''; position: absolute; inset: 0; opacity: .45; background-image: repeating-linear-gradient(108deg, transparent 0 3px, #9497802b 3px 4px); }
.book-cover {
  position: relative; width: 154px; height: 204px; transform: perspective(850px) rotateY(-8deg) rotate(-5deg);
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid #253b32; border-radius: 2px 4px 4px 2px;
  background: #273e33; color: #f8edcd;
  box-shadow: 2px 1px #adab92, 4px 2px #e4ddc4, 5px 3px #9e9f86, 7px 4px #3e5344, 11px 10px 14px #28382a56;
}
.book-cover::before { content: ''; position: absolute; z-index: 1; inset: 5px 5px 5px 11px; border: 1px solid #bfac768a; pointer-events: none; }
.book-cover::after { content: ''; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 8px; background: linear-gradient(90deg,#162c21,#506454,#293d30); border-right: 1px solid #152c2499; }
.cover-author { text-transform: uppercase; letter-spacing: 1.55px; font-size: 7.7px; margin: 17px 0 4px 5px; color: #dfd0a7; }
.cover-title { font: 21px/1.14 var(--serif); letter-spacing: -.75px; text-align: center; padding: 1px 8px 8px 13px; }
.cover-art { display: block; width: calc(100% - 27px); min-height: 0; flex: 1; margin-left: 5px; object-fit: cover; object-position: 64% center; border: 1px solid #b9a87a; }
.cover-volume { font: italic 11px/1.3 "Spectral Italic",Georgia,serif; color: #dfd0a7; margin: 5px 0 10px; }
.card-info { align-self: center; padding: 23px clamp(21px, 3.1vw, 49px); min-width: 0; }
.card-heading { font: clamp(31px, 2.75vw, 42px)/1.16 var(--serif); letter-spacing: -.04em; margin: 5px 0 6px; }
.card-heading em { display: inline-block; font: italic .64em/1.2 "Spectral Italic", Georgia, serif; color: #777c6b; margin-left: .5em; letter-spacing: -.035em; }
.card-facts { display: flex; flex-wrap: wrap; gap: 0 9px; margin: 0; padding: 0; list-style: none; font-size: 11px; letter-spacing: .15px; color: var(--muted); }
.card-facts li + li::before { content: '·'; margin-right: 9px; color: #878a78; }
.card-description { max-width: 65ch; font-size: 14px; color: #515b50; line-height: 1.65; margin-top: 12px; }
.card-action { display: inline-flex; gap: 12px; align-items: center; color: var(--rust); margin-top: 15px; font-size: 13px; font-weight: 600; }
.book-card:hover .card-action { text-decoration: underline; text-underline-offset: 4px; }
.reader-promo {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 16px clamp(18px, 2.1vw, 30px); padding: clamp(20px, 2.4vw, 34px);
  margin-bottom: 36px; border-radius: 5px; color: #faf4e7; background: var(--forest);
}
.reader-promo img { display: block; border-radius: 15px; }
.reader-promo h2 { font-size: clamp(28px, 2.5vw, 37px); }
.reader-copy p { margin-top: 5px; max-width: 63ch; color: #e0e4d8; line-height: 1.55; }
.reader-install {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 17px; border-radius: 4px; background: #efe4cc; color: #263c32; font-weight: 600;
}
.reader-install:hover { background: #fff6e6; }
.reader-install:focus-visible { outline-color: #fff6e6; }
.format-section { padding-bottom: 45px; }
.format-notes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 23px; }
.format-notes article { padding: 0 clamp(20px, 3vw, 50px); border-left: 1px solid var(--line); }
.format-notes article:first-child { border: 0; padding-left: 0; }
.format-notes article:last-child { padding-right: 0; }
.format-icon { color: var(--rust); display: inline-flex; }
.format-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.format-notes h3 { font: 24px/1.2 var(--serif); letter-spacing: -.6px; margin: 8px 0 7px; }
.format-notes p { max-width: 40ch; line-height: 1.65; color: var(--muted); }
.home-foot { border-top: 1px solid var(--line); background: #efeee5; }
.home-foot > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 19px; }
.reader-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.reader-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-foot .brand { font-size: 25px; gap: 7px; }
.home-foot .brand-mark { transform: scale(.76); transform-origin: left center; width: 23px; }
.home-foot > div > a:last-child { font-size: 12px; color: var(--muted); }

@media (max-width: 960px) and (min-width: 761px) {
  .intro { gap: 28px; grid-template-columns: .88fr 1.12fr; }
  .intro h1 { font-size: clamp(49px, 6.2vw, 60px); }
  .sample-bond { gap: 7px; }
  .sample-person { flex-direction: column; gap: 4px; text-align: center; }
  .sample-person:last-child { flex-direction: column; }
}
@media (max-width: 760px) {
  .reader-promo { grid-template-columns: auto minmax(0, 1fr); }
  .reader-install { grid-column: 2; justify-self: start; }
  .reader-links { order: 1; width: 100%; }
  .home main, .home .mast-inner, .home-foot > div { width: calc(100% - 36px); }
  .home nav a { font-size: 12px; }
  .intro { grid-template-columns: 1fr; gap: 28px; padding-block: 33px 26px; }
  .intro h1 { font-size: clamp(53px, 10vw, 74px); margin-block: 14px 16px; }
  .intro-copy { padding: 0; }
  .intro-copy p { max-width: 48ch; }
  .catalog-button { margin-top: 17px; }
  .print-image { aspect-ratio: 2.2; }
  .book-card { grid-template-columns: 30% 1fr; }
  .book-cover { width: 130px; height: 180px; }
  .format-notes { grid-template-columns: 1fr; gap: 16px; }
  .format-notes article, .format-notes article:first-child { padding: 0 0 0 37px; position: relative; border: 0; }
  .format-icon { position: absolute; left: 0; top: 2px; }
  .format-notes h3 { margin: 0 0 3px; }
  .format-notes p { max-width: 54ch; }
}
@media (max-width: 520px) {
  .reader-promo { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; margin-bottom: 26px; }
  .reader-promo img { width: 48px; height: 48px; border-radius: 10px; align-self: start; }
  .reader-copy { display: contents; }
  .reader-copy p { grid-column: 1 / -1; margin: 0; }
  .reader-install { grid-column: 1 / -1; justify-self: stretch; }
  .home main, .home .mast-inner, .home-foot > div { width: calc(100% - 32px); }
  .home nav { gap: 12px; }
  .home nav a { font-size: 11px; }
  .sample-person { flex-direction: column; gap: 5px; font-size: 14px; text-align: center; }
  .sample-person:last-child { flex-direction: column; }
  .sample-person img { width: 30px; height: 30px; }
  .sample-bond { padding: 10px 7px; gap: 5px; }
  .sample-controls { gap: 7px; }
  .exhibit figcaption { padding-top: 11px; }
  .book-card { grid-template-columns: 105px 1fr; }
  .cover-well { min-height: 0; padding: 8px; }
  .book-cover { width: 76px; height: 114px; }
  .book-cover::before { inset: 3px 2px 3px 6px; }
  .book-cover::after { width: 4px; }
  .cover-author { font-size: 5px; letter-spacing: .7px; margin-top: 9px; }
  .cover-title { font-size: 12px; padding: 0 3px 3px 6px; letter-spacing: -.35px; }
  .cover-art { width: calc(100% - 14px); }
  .cover-volume { font-size: 7px; margin: 3px 0 6px; }
  .card-info { padding: 16px 13px; }
  .card-heading { font-size: 28px; margin-top: 5px; }
  .card-heading em { display: block; margin: 0; font-size: 18px; }
  .card-description { line-height: 1.5; margin-top: 9px; font-size: 13px; }
  .card-facts { gap: 0 5px; font-size: 10px; }
  .card-facts li + li::before { margin-right: 5px; }
  .card-action { font-size: 12px; gap: 7px; margin-top: 12px; }
  .catalog-section, .format-section { padding: 22px 0 27px; }
}
