:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #252220;
  --muted: #584d47;
  --line: #ded8d2;
  --accent: #eed7fc;
  --brand: #683649;
  --hero-fallback: #e4d5e6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 80px, 1260px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; transform: translateY(-130%); background: var(--paper); padding: .6rem 1rem; z-index: 2; }
.skip:focus { transform: translateY(0); }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 76px; }
.wordmark { display: inline-flex; gap: .52rem; align-items: center; font: bold 1.63rem var(--serif); letter-spacing: -.055em; text-decoration: none; }
.mark { color: var(--brand); font: 1.4rem/1 var(--sans); }
.top nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.top nav a { font-weight: 620; text-decoration: none; }
.top nav a:hover, .wordmark:hover { color: var(--brand); }
.hero { display: grid; grid-template-columns: 1fr 1.02fr; align-items: stretch; margin-top: 28px; min-height: 400px; background: var(--hero-fallback); overflow: hidden; border-radius: 6px; }
.hero-text-only { grid-template-columns: 1fr; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(2rem, 5vw, 4.6rem); background: var(--ink); color: var(--paper); }
.hero-copy :focus-visible { outline-color: var(--paper); }
.kicker { font-size: .74rem; font-weight: 720; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin-top: .8rem; max-width: var(--hero-heading-width, 9.5ch); font: 500 var(--hero-heading-size, clamp(3.2rem, 5.9vw, 6rem))/.98 var(--serif); letter-spacing: -.055em; text-wrap: balance; overflow-wrap: break-word; }
.intro { max-width: 34ch; margin-top: 1.25rem; font-size: 1.04rem; }
.primary { display: inline-flex; align-items: center; gap: 1.35rem; margin-top: 1.6rem; padding: .74rem 1rem; border-radius: 3px; background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none; }
.primary:hover { background: var(--paper); }
.hero-image { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.guide-intro { margin-top: clamp(1.35rem, 4vw, 3rem); border-left: 3px solid var(--brand); padding: .45rem 0 .45rem clamp(.9rem, 2vw, 1.5rem); }
.guide-intro p { max-width: 74ch; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.catalog { padding-block: 3.1rem 4.1rem; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.catalog h1, .catalog h2, .about h2 { font: 500 clamp(2rem, 4vw, 3.55rem)/1.05 var(--serif); letter-spacing: -.055em; }
.catalog-head p { color: var(--muted); margin-top: .55rem; }
.search { position: relative; width: min(100%, 325px); }
.search input { width: 100%; height: 48px; padding: .55rem 1rem .55rem 2.6rem; border: 1px solid var(--muted); border-radius: 4px; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--muted); opacity: 1; }
.lens { position: absolute; width: 13px; height: 13px; border: 1.75px solid; border-radius: 50%; inset: 16px auto auto 15px; pointer-events: none; }
.lens::after { content: ""; position: absolute; width: 6px; border-top: 1.75px solid; top: 10px; left: 9px; transform: rotate(45deg); transform-origin: left; }
.categories { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.categories a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 30px; font-size: .89rem; font-weight: 620; text-decoration: none; }
.categories a:hover { border-color: var(--brand); }
.categories a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.results { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); font-size: .86rem; margin-block: 1rem .65rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.4rem); margin: 0; padding: 0; list-style: none; }
.card { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.card article { height: 100%; display: flex; flex-direction: column; }
.card-image { position: relative; display: grid; place-items: center; aspect-ratio: 1.45; min-height: 156px; padding: .8rem; background: var(--stage); }
.card-image img { position: absolute; inset: .8rem; width: calc(100% - 1.6rem); height: calc(100% - 1.6rem); object-fit: contain; }
.image-credit { color: var(--muted); font-size: .72rem; padding: .35rem 1rem 0; }
.lilac { --stage: #e9d6fa; --cover: #57338d; --title: #fbf3ff; --motif: #9165bd; }
.mint { --stage: #c9e3d7; --cover: #174e41; --title: #f6edc9; --motif: #648c63; }
.peach { --stage: #f5d7c9; --cover: #a34730; --title: #fff2d5; --motif: #e98c62; }
.yellow { --stage: #f7e8aa; --cover: #533448; --title: #fff5d4; --motif: #a96282; }
.jacket { display: flex; position: relative; isolation: isolate; overflow: hidden; flex-direction: column; justify-content: space-between; width: min(62%, 118px); min-width: 98px; aspect-ratio: .72; padding: .75rem .45rem .6rem .65rem; color: var(--title); background: var(--cover); border-radius: 2px 4px 4px 2px; box-shadow: inset 3px 0 #ffffff35, 7px 9px 13px #35192d33; }
.jacket::before { content: ""; position: absolute; z-index: -1; width: 78%; aspect-ratio: 1; right: -28%; bottom: 10%; border: 12px double var(--motif); border-radius: 48%; transform: rotate(-22deg); }
.jacket span { font: 700 .76rem/1.1 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.jacket small { font-size: .55rem; line-height: 1.2; font-weight: 650; }
.card-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1rem; }
.tag { font-size: .7rem; font-weight: 720; color: var(--brand); }
.card h3 { margin-top: .35rem; font: 600 1.37rem/1.1 var(--serif); letter-spacing: -.035em; text-wrap: wrap; }
.byline, .summary { font-size: .86rem; margin-top: .35rem; color: var(--muted); }
.book-reason { margin-block: .75rem; }
.book-reason-label { font-size: .77rem; font-weight: 720; color: var(--ink); }
.book-reason .summary { margin: 0; }
.book-reason-label + .summary { margin-top: .23rem; }
.shop-link { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 730; font-size: .87rem; color: var(--brand); text-underline-offset: .22em; }
.shop-link:hover { color: var(--ink); }
.product-description { width: 100%; margin-top: auto; border-top: 1px solid var(--line); }
.product-description summary { color: var(--ink); padding-block: .65rem; cursor: pointer; font-size: .85rem; font-weight: 620; }
.product-description p { margin-bottom: .75rem; white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); font-size: .86rem; }
.product-description + .shop-link { margin-top: 0; }
.empty { padding-block: 1.25rem; }
.empty button { margin-top: .6rem; color: var(--ink); background: var(--accent); padding: .5rem .9rem; border: 0; border-radius: 3px; cursor: pointer; }
.about { padding-block: 2.5rem; background: var(--accent); }
.about h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.about p { max-width: 65ch; margin-top: .7rem; }
.about .fine, .footer small { color: var(--muted); font-size: .82rem; }
.footer-disclaimer { max-width: 60ch; padding-block: .75rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 1000px) {
  .hero { min-height: 360px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner, .footer { min-height: 64px; }
  .hero { grid-template-columns: 1fr; margin-top: 14px; }
  .hero-copy { padding: 2rem 1.35rem; }
  .hero h1 { font-size: var(--hero-heading-size-mobile, clamp(2.75rem, 10vw, 4.2rem)); }
  .top .wordmark { font-size: clamp(1.18rem, 4.8vw, 1.6rem); }
  .hero-image { aspect-ratio: 1.7; height: auto; }
  .catalog { padding-block: 2.25rem 3rem; }
  .catalog-head { align-items: start; flex-direction: column; }
  .search { width: 100%; }
}
@media (max-width: 440px) {
  .footer { flex-direction: column; align-items: flex-start; gap: .4rem; padding-block: .85rem; }
  .footer-disclaimer { padding-block: 0; }
  .jacket { min-width: 108px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

.top-picks { padding-top: 3rem; }
.top-picks h2 { font: 500 clamp(2rem, 4vw, 3.55rem)/1.05 var(--serif); letter-spacing: -.055em; }
.top-picks > p { color: var(--muted); margin-top: .55rem; }
.top-picks-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.top-picks-list a { display: flex; position: relative; height: 100%; padding: 1rem; flex-direction: column; align-items: center; gap: .65rem; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; text-decoration: none; }
.top-picks-list a:hover { border-color: var(--brand); }
.top-picks-list img { height: 130px; width: 100%; object-fit: contain; }
.top-pick-number { position: absolute; inset: .45rem auto auto .45rem; display: grid; place-items: center; min-width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .82rem; font-weight: 700; }
.top-pick-text { align-self: stretch; }
.top-pick-text strong, .top-pick-text small { display: block; overflow-wrap: anywhere; }
.top-pick-text small { color: var(--muted); }
.card article:target { outline: 2px solid var(--brand); outline-offset: -2px; }
.card article { scroll-margin-top: 1rem; }

@media (max-width: 680px) {
  .top-picks { padding-top: 2.25rem; }
  .top-picks-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .top-inner { gap: .5rem; }
  .top nav { flex-wrap: wrap; justify-content: flex-end; gap: .25rem .65rem; padding-block: .5rem; }
  .top nav a { font-size: .88rem; }
}

.cover-slideshow { min-width: 0; display: grid; grid-template-rows: 1fr auto auto; }
.cover-slides { display: grid; }
.cover-slide { display: grid; align-content: center; justify-items: center; gap: 1.15rem; margin: 0; padding: clamp(1.25rem, 4vw, 3rem) 1rem 1.2rem; background: var(--stage, var(--hero-fallback)); }
.cover-slide-image { display: block; width: fit-content; border-radius: 2px; box-shadow: 8px 12px 25px #35192d40; }
.cover-slide-image img { width: auto; height: clamp(230px, 29vw, 360px); max-width: min(65vw, 270px); object-fit: contain; }
.cover-slide figcaption { display: grid; gap: .15rem; min-height: 4.15rem; text-align: center; }
.cover-slide figcaption strong { font: 600 clamp(1.1rem, 2.05vw, 1.65rem)/1.15 var(--serif); overflow-wrap: anywhere; }
.cover-slide figcaption span, .cover-credit { font-size: .8rem; color: var(--muted); }
.cover-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; padding: .8rem 1rem .25rem; }
.cover-controls:last-child { padding-bottom: .8rem; }
.cover-controls button { display: grid; place-items: center; min-inline-size: 44px; min-block-size: 44px; padding: .2rem .7rem; border: 1px solid var(--brand); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.cover-controls button:hover { background: var(--accent); }
.cover-controls .cover-toggle { min-inline-size: 94px; margin-inline-start: .35rem; font-size: .88rem; font-weight: 650; }
.cover-position { min-inline-size: 2rem; text-align: center; font-size: .86rem; font-variant-numeric: tabular-nums; }
.cover-credit { padding: .25rem 1rem .85rem; text-align: center; }

@media (max-width: 680px) {
  .cover-slide-image img { height: clamp(166px, 52vw, 255px); }
  .cover-slide { padding-block: 1.35rem .65rem; gap: .8rem; }
  .cover-slide figcaption { min-height: 3.5rem; }
}
