:root {
  color-scheme: light;
  --paper: #fcfbf8;
  --ink: #182824;
  --muted: #4b5852;
  --pine: #164c43;
  --accent: #89502e;
  --line: #d0d6cb;
  --serif: "Baskervville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "DM Sans", "Inter", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; font: 1rem/1.55 var(--sans); color: var(--ink); background: var(--paper); }
body, input { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1, h2, h3, p, dd, a { overflow-wrap: break-word; }
a { color: var(--pine); text-underline-offset: .19em; text-decoration-thickness: 1px; }
a:hover { color: #6e4329; }
a:focus-visible, input:focus-visible { outline: 3px solid #ad5d2c; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(100% - clamp(2rem, 10vw, 9rem), 77rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .6rem 1rem; background: white; transform: translateY(-170%); }
.skip-link:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner, .section-heading, .site-nav, .actions { display: flex; align-items: center; }
.masthead-inner { min-height: 5.4rem; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; gap: .68rem; align-items: center; color: var(--ink); font: 600 clamp(1.45rem, 2.2vw, 1.95rem)/1.15 var(--serif); letter-spacing: -.056em; text-decoration: none; white-space: nowrap; }
.wordmark::before {
  content: ""; display: block; width: 1.4rem; height: 1.58rem; flex: none;
  background: linear-gradient(to right, var(--pine) 0 15%, transparent 15% 26%, var(--pine) 26% 41%, transparent 41% 53%, var(--pine) 53% 69%, transparent 69%),
              linear-gradient(79deg, transparent 0 73%, var(--pine) 74% 87%, transparent 88%);
}
.site-nav { gap: clamp(1rem, 3vw, 2.5rem); }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); text-decoration: none; font-weight: 550; font-size: .94rem; }
.site-nav a[aria-current], .site-nav a:hover { color: var(--pine); text-decoration: underline; text-underline-offset: .47em; }
.kicker { color: var(--accent); text-transform: uppercase; font-size: .875rem; font-weight: 660; letter-spacing: .115em; line-height: 1.5; }

.hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(2.75rem, 8vw, 8rem); align-items: center; padding-block: clamp(3rem, 5.5vw, 5.2rem) clamp(3.25rem, 6vw, 5.1rem); }
.hero-copy .kicker { display: flex; gap: .8rem; align-items: center; }
.hero-copy .kicker::before { content: ""; width: 2rem; border-top: 2px solid currentColor; }
.hero h1 { max-width: 11ch; margin: 1.05rem 0 1.3rem; font-size: clamp(4.1rem, 8.4vw, 7.25rem); line-height: .95; letter-spacing: -.062em; }
.intro { max-width: 36ch; margin-bottom: 1.55rem; font: 400 clamp(1.18rem, 1.7vw, 1.48rem)/1.48 var(--serif); color: #34423c; }
.button { min-height: 2.9rem; display: inline-flex; align-items: center; justify-content: center; padding: .62rem 1.15rem; border: 1px solid transparent; border-radius: 3px; font: 600 .95rem/1.4 var(--sans); text-decoration: none; }
.button-primary { background: var(--pine); color: #fff; }
.button-primary:hover { background: #0c382f; color: #fff; }
.button-secondary { background: transparent; border-color: #74867b; color: var(--pine); }
.button-secondary:hover { background: #edf1eb; color: var(--pine); }
.hero-feature { width: 100%; min-width: 0; }
.feature-art {
  isolation: isolate; display: grid; position: relative; place-items: center; overflow: hidden; padding: 1.1rem;
  min-height: 17rem; height: clamp(18.8rem, 27vw, 25.5rem);
  background: linear-gradient(128deg, #d9dfce 0%, #cad4bf 41%, #b7c5b1 75%, #aebea8 100%);
}
.feature-art::before {
  content: ""; z-index: -1; pointer-events: none; position: absolute; inset: 0;
  background: linear-gradient(117deg, transparent 0 29%, #f4f6ed40 29.2% 39%, transparent 39.3% 43%, #f7f9ee2b 43.2% 48%, transparent 48.3%);
}
.feature-art img {
  height: 85%; max-height: 21rem; width: auto; max-width: 67%; object-fit: contain;
  transform: perspective(72rem) rotateY(-11deg) rotateZ(-6deg);
  box-shadow: 1px 1px #ccc6b8, 2px 2px #f2ebd8, 3px 2px #716a57, 4px 3px #e1d7c3, 5px 3px #787560, 6px 4px #1c3027, 11px 14px 12px -5px #17281b50, 17px 22px 24px -6px #1d332550;
}
.feature-caption { display: flex; flex-direction: column; gap: .12rem; margin: .85rem 0 0; }
.feature-caption a { align-self: flex-start; color: var(--ink); font: 600 1.08rem/1.35 var(--serif); text-decoration: none; }
.feature-caption a:hover { text-decoration: underline; }
.feature-caption span { color: var(--muted); font-size: .875rem; line-height: 1.45; }

.shelf { border-top: 1px solid var(--line); padding-block: 2rem clamp(4rem, 7vw, 6rem); }
.section-heading { align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2, .edition h2 { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.14; letter-spacing: -.047em; }
.section-heading > a, .cite-box a { font-size: .95rem; font-weight: 600; }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.45rem clamp(.9rem, 2vw, 2rem); }
.book-card { min-width: 0; }
.book-card-link { display: block; height: 100%; text-decoration: none; color: inherit; }
.book-art { background: #dee3d7; aspect-ratio: 1.16; display: grid; place-items: center; padding: 8%; overflow: hidden; }
.book-card:nth-child(4n+2) .book-art { background: #e2ddd5; }
.book-card:nth-child(4n+3) .book-art { background: #e9dbcf; }
.book-card:nth-child(4n+4) .book-art { background: #dce3e4; }
.book-art img { width: auto; height: 100%; max-width: 85%; object-fit: contain; box-shadow: 1px 1px 1px #332d2422, 4px 5px 9px #332d243b; transition: transform .16s ease-out; }
.book-card-link:hover .book-art img { transform: translateY(-2px); }
.book-card-copy { padding-block: .85rem 0; }
.book-card h3 { font-size: clamp(1.26rem, 1.65vw, 1.56rem); line-height: 1.16; letter-spacing: -.025em; }
.book-card-link:hover h3 { color: var(--pine); text-decoration: underline; text-underline-offset: .17em; }
.book-card-copy p { margin-top: .45rem; font-size: .94rem; line-height: 1.48; color: var(--muted); }

.breadcrumbs { display: flex; padding-top: 1.65rem; }
.breadcrumbs a { font-size: .92rem; }
.detail { display: grid; grid-template-columns: minmax(13rem, .8fr) minmax(0, 1.65fr); align-items: start; gap: clamp(2.5rem, 5.8vw, 6rem); padding-block: 1.8rem clamp(3rem, 6vw, 5rem); }
.detail-figure { max-width: 27.5rem; }
.detail-figure .cover-art { width: 100%; height: auto; box-shadow: 1px 1px 2px #162b2233, 5px 7px 12px #162b2229; }
.detail-copy { max-width: 46rem; padding-top: .25rem; }
.detail h1 { margin: .55rem 0; font-size: clamp(2.55rem, 4.7vw, 4.3rem); letter-spacing: -.055em; line-height: 1.02; }
.subtitle { color: var(--muted); font: 400 clamp(1.2rem, 2vw, 1.65rem)/1.3 var(--serif); }
.byline { margin: 1rem 0; font-size: .96rem; line-height: 1.45; color: var(--pine); font-weight: 650; }
.abstract { color: #34423c; font-size: clamp(1rem, 1.22vw, 1.125rem); line-height: 1.62; max-width: 66ch; }
.actions { gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.edition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(2.5rem, 5.8vw, 6rem); padding-block: 2rem clamp(4rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.edition h2 { font-size: clamp(1.65rem, 2.4vw, 2.1rem); }
.edition-data, .cite-box p { margin-top: 1rem; }
.edition-data > div { display: grid; grid-template-columns: minmax(6.5rem, .7fr) minmax(0, 1.3fr); gap: .85rem; padding: .53rem 0; border-bottom: 1px solid var(--line); }
.edition-data dt { color: var(--muted); }
.cite-box { padding: 1.55rem; background: #edf0e8; border-inline-start: 3px solid #879779; }
.cite-box p { margin-bottom: .9rem; overflow-wrap: anywhere; }
.catalog-page { padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(4rem, 8vw, 7rem); }
.catalog-heading { margin: 0 0 1.25rem; }
.catalog-heading h1 { font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -.065em; margin: .55rem 0 1.5rem; }
.search-label { display: block; margin-bottom: .35rem; font-weight: 600; }
#book-search { width: min(100%, 34rem); min-height: 3rem; padding: .65rem .9rem; border: 1px solid #849589; border-radius: 3px; color: var(--ink); background: #fff; font: inherit; }
#book-search::placeholder { color: #606960; opacity: 1; }
#result-count { margin-top: 1rem; color: var(--muted); font-size: .94rem; }
.catalog-list { border-top: 1px solid var(--line); }
.catalog-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.25rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.catalog-title h2 { font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.15; letter-spacing: -.025em; text-wrap: pretty; }
.catalog-title h2 a { color: inherit; }
.catalog-title p { margin-top: .28rem; color: var(--muted); }
.catalog-title p.catalog-note { font-size: .875rem; }
.catalog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .3rem .85rem; max-width: 22rem; }
.catalog-actions a { display: inline-flex; align-items: center; min-height: 2.3rem; font-size: .94rem; }
.catalog-actions .pdf-link { font-weight: 650; }
#no-results { padding: 1.7rem 0; }
.site-footer { background: #eaf0e5; border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.6rem; justify-content: space-between; gap: .6rem 1.5rem; color: #394a3f; }
.footer-inner span { font: 500 1.1rem/1.4 var(--serif); }
.footer-inner a { font-size: .94rem; }

@media(max-width: 64rem) {
  .hero { gap: 2.5rem; }
  .hero h1 { font-size: clamp(3.8rem, 8vw, 5.3rem); }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media(max-width: 46rem) {
  .shell { width: calc(100% - 2.5rem); }
  .masthead-inner { min-height: 4.45rem; }
  .hero { grid-template-columns: 1fr; gap: 1.7rem; padding-block: 2.45rem; }
  .hero h1 { max-width: none; font-size: clamp(3.45rem, 10vw, 4.8rem); margin-block: .78rem .85rem; }
  .intro { margin-bottom: 1.15rem; }
  .hero-feature { max-width: 35rem; }
  .feature-art { min-height: 14.5rem; height: clamp(14.5rem, 50vw, 21rem); }
  .shelf { padding-top: 1.5rem; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .catalog-row { grid-template-columns: 1fr; gap: .45rem; }
  .catalog-actions { justify-content: flex-start; max-width: none; }
  .detail { gap: 1.75rem; grid-template-columns: minmax(0, 1fr); }
  .detail-copy { display: contents; }
  .detail .kicker { order: -5; }
  .detail h1 { order: -4; margin: -.95rem 0 -.45rem; }
  .detail .subtitle { order: -3; margin-top: -.35rem; }
  .detail .byline { order: -2; margin: -.65rem 0 -.5rem; }
  .detail-figure { width: min(52%, 11rem); order: -1; }
  .detail .actions { margin-top: -.45rem; }
  .edition { grid-template-columns: 1fr; gap: 1.7rem; }
  .footer-inner { min-height: 4.8rem; }
}
@media(max-width: 25rem) {
  .shell { width: calc(100% - 1.6rem); }
  .site-nav { gap: .73rem; }
  .site-nav a { font-size: .875rem; }
  .wordmark { gap: .42rem; }
  .wordmark::before { width: 1rem; height: 1.25rem; }
  .book-grid { column-gap: .73rem; }
  .footer-inner { flex-wrap: wrap; align-content: center; }
}
@media(prefers-reduced-motion: reduce) {
  .book-art img { transition: none; }
  .book-card-link:hover .book-art img { transform: none; }
}
@media print {
  body { background: white; color: #111; }
  .shell { width: 100%; }
  .site-nav, .skip-link, .site-footer, .breadcrumbs, .actions, #catalog-tools { display: none; }
  .hero, .detail, .edition, .catalog-page { padding-block: 1rem; }
  .detail { grid-template-columns: 1fr 2fr; gap: 1.5rem; }
  .detail-figure { max-width: 13rem; }
  .catalog-row, .book-card { break-inside: avoid; }
  .cite-box { border-color: #999; box-shadow: none; }
}
.edition-note, .detail-figure figcaption { color: var(--muted); font-size: .94rem; margin-top: .8rem; }
.book-editions { list-style: none; padding: 0; margin-top: 1.1rem; }
.record-edition { display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: space-between; align-items: baseline; padding: .85rem 0; border-top: 1px solid var(--line); }
.record-edition h3 { font: 600 1rem/1.4 var(--sans); margin-bottom: .3rem; }
.record-edition dl div { display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; }
.record-edition dt, .record-edition dd, .record-edition a { font-size: .94rem; }
.record-edition dt { color: var(--muted); }
.cover-wordmark { font: 600 1.2rem/1.3 var(--serif); color: var(--pine); }
