.estante {
  --shelf-paper: var(--campaign-paper, #f4f2ed);
  --shelf-ink: var(--campaign-ink, #252321);
  --shelf-accent: var(--campaign-accent, #753749);
  --shelf-muted: color-mix(in srgb, var(--shelf-ink) 73%, var(--shelf-paper));
  --shelf-line: color-mix(in srgb, var(--shelf-ink) 23%, var(--shelf-paper));
  background: var(--shelf-paper);
  color: var(--shelf-ink);
  padding-block: clamp(3.2rem, 7vw, 7rem);
}
.estante [hidden] { display: none !important; }
.estante-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  margin-bottom: clamp(1.6rem, 3.5vw, 3rem);
}
.estante .estante-head h2 { margin: 0; font-size: clamp(2.4rem, 4.8vw, 4.7rem); }
.estante-lead { color: var(--shelf-muted); margin-top: .65rem; }
.estante-search { width: min(100%, 18rem); flex-shrink: 0; }
.estante-search label { display: block; margin-bottom: .32rem; font-weight: 600; font-size: .9rem; }
.estante-field {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding-inline: .8rem .4rem;
  border: 1px solid var(--shelf-line);
  background: color-mix(in srgb, var(--shelf-paper) 45%, white);
}
.estante-field:focus-within { border-color: var(--shelf-accent); }
.estante-field input { flex: 1; min-width: 0; padding: .45rem 0; border: 0; background: transparent; color: var(--shelf-ink); font: inherit; }
.estante-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.estante-field input::placeholder { color: var(--shelf-muted); }
.estante-clear { padding: .4rem; border: 0; background: transparent; color: var(--shelf-accent); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; }
.estante .estante-status { margin-top: .2rem; color: var(--shelf-muted); font-size: .875rem; }
.estante .estante-books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.25rem, 4vw, 4rem) clamp(1.1rem, 2.3vw, 2.4rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.estante-books > li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  --jacket: #dfccbb;
  scroll-margin-top: 1.5rem;
}
.estante-books > li:nth-child(2), .estante-books > li:nth-child(7) { --jacket: #dddac7; }
.estante-books > li:nth-child(3), .estante-books > li:nth-child(8) { --jacket: #d7c5b9; }
.estante-books > li:nth-child(4), .estante-books > li:nth-child(6) { --jacket: #c8d3c4; }
.estante-books > li:nth-child(5), .estante-books > li:nth-child(9) { --jacket: #d6c6ca; }
.estante .estante-book {
  display: block;
  color: var(--shelf-ink);
  margin: 0;
  text-decoration: none;
}
.estante-art {
  display: grid;
  position: relative;
  isolation: isolate;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1.85;
  background: radial-gradient(ellipse at 32% 12%, #fff8 0, transparent 75%), var(--jacket);
}
.estante-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  height: 79%;
  width: auto;
  max-width: 68%;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(-4deg);
  box-shadow: 1px 1px #e5d8c4, 2px 2px #ae9b85, .25rem .48rem .6rem #2718113d;
}
.estante-inside {
  position: absolute;
  z-index: -1;
  left: 48%;
  height: 68%;
  width: auto;
  transform: rotate(7deg);
  box-shadow: .1rem .22rem .35rem #33221e3d;
}
.estante-feature .estante-cover { transform: translate(-67%, -50%) rotate(-5deg); }
.estante-caption { position: relative; padding: 1.05rem 0 .85rem; }
.estante .estante-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .13rem .55rem;
  align-items: center;
  color: var(--shelf-muted);
  font-size: .81rem;
  margin: 0;
}
.estante-meta span + span { border-left: 1px solid var(--shelf-line); padding-left: .55rem; }
.estante-books .estante-book h3 { font-size: clamp(1.45rem, 2.2vw, 2.35rem); line-height: 1.17; letter-spacing: -.045em; margin: .28rem 0 .32rem; }
.estante-read { font-size: .91rem; font-weight: 600; color: var(--shelf-accent); text-decoration: underline; text-underline-offset: .2em; }
.estante-book:hover .estante-read { text-decoration-thickness: 2px; }
.book-offers { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: auto; }
.book-offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 3.3rem;
  padding: .5rem .65rem;
  background: #eee5dc;
  border: 1px solid #cbb8ac;
  border-radius: .15rem;
  color: #522c29;
  text-decoration: none;
  line-height: 1.22;
}
.book-offer span { font-weight: 650; font-size: .9rem; }
.book-offer small { margin-top: .14rem; font-size: .78rem; }
.book-offer[data-online] { color: #fff6ec; background: #5a2829; border-color: #5a2829; }
.book-offer:hover { background: #e4d5c7; border-color: currentColor; }
.book-offer[data-online]:hover { background: #3c171a; }
.estante :is(a, input, button):focus-visible { outline: 3px solid var(--shelf-accent); outline-offset: 2px; }
.estante-empty { padding: 1rem 0; border-top: 1px solid var(--shelf-line); }
@media (max-width: 54rem) {
  .estante .estante-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 41rem) {
  .estante-head { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .estante-search { width: 100%; }
  .estante .estante-books { grid-template-columns: 1fr; gap: 1.25rem; }
  .estante-books > li { display: grid; grid-template-columns: minmax(5.2rem, .58fr) minmax(0, 1.42fr); column-gap: .85rem; border-top: 1px solid var(--shelf-line); padding-top: 1.25rem; }
  .estante .estante-book { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(5.2rem, .58fr) minmax(0, 1.42fr); align-items: start; column-gap: .85rem; }
  .estante-art { aspect-ratio: .82; }
  .estante-cover { height: auto; width: 68%; }
  .estante-feature .estante-inside { display: none; }
  .estante-feature .estante-cover { transform: translate(-50%, -50%) rotate(-4deg); }
  .estante-caption { padding: 0; }
  .estante-books .estante-book h3 { font-size: clamp(1.42rem, 5vw, 2rem); }
  .book-offers { grid-column: 1 / -1; margin-top: .65rem; }
  .book-offer { min-height: 2.8rem; flex-direction: row; align-items: center; justify-content: space-between; gap: .3rem; }
  .book-offer small { margin: 0; }
}
@media (max-width: 26rem) {
  .book-offer { flex-direction: column; align-items: flex-start; gap: .1rem; }
}
