/* ==========================================================================
   Seasonal event on the home page: "The Great Book Hall" (theme-event.js)
   Burgundy & gold, the brand's own colours and fonts (Playfair Display + Plus Jakarta Sans).
   ========================================================================== */
.eh-band { margin: 0 0 8px; }
.eh-hero { height: clamp(560px, 76vh, 720px); background: #1a060b; color: #fbf1df; }
.eh-hero.over-shelf { cursor: pointer; }
.eh-hero::after { background: linear-gradient(90deg, rgba(20, 4, 9, .94) 0%, rgba(20, 4, 9, .86) 28%, rgba(20, 4, 9, .5) 46%, rgba(20, 4, 9, 0) 62%); }
.eh-hero .rt-fade { background: linear-gradient(rgba(26, 6, 11, 0), rgba(26, 6, 11, .55) 55%, var(--canvas)); }

/* words */
.eh-eyebrow { font: 700 12px/1.3 var(--sans); letter-spacing: .28em; color: #f0cf7a; }
.eh-eyebrow .ms { font-size: 17px; }
.eh-eyebrow .pulse { background: #f0cf7a; }
.eh-title { font-family: var(--serif) !important; /* the shop's heading font = the logo's wordmark (Montserrat) */ font-style: normal; font-weight: 700 !important; letter-spacing: -.025em !important;
  font-size: clamp(46px, 6.2vw, 92px) !important; line-height: 1.1 !important; margin: 14px 0 0 !important;
  padding: 0 .06em .16em 0; margin-bottom: -.16em !important; /* room for the g's tail: the gold fill stops at the box edge */
  background: linear-gradient(180deg, #fff6dc 0%, #f6dc9a 38%, #e2b24e 62%, #c8922e 100%); background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(40, 8, 14, .85)) drop-shadow(0 8px 24px rgba(0, 0, 0, .5));
  animation: rt-rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.eh-rule { display: flex; align-items: center; gap: 12px; width: min(340px, 70%); margin: 14px 0 12px; color: #e6bd5c; animation: rt-in 1s .5s both; }
.eh-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(230, 189, 92, 0), #e6bd5c); }
.eh-rule i:last-child { background: linear-gradient(90deg, #e6bd5c, rgba(230, 189, 92, 0)); }
.eh-rule b { font-size: 13px; font-weight: 400; line-height: 1; }
@keyframes eh-foil { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.eh-lede { font: 500 clamp(18px, 1.7vw, 22px)/1.4 var(--serif) !important; font-style: normal !important; color: #f6e8cf; }
.eh-lede b { color: #ffe2a0; font-weight: 800; }
.eh-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font: 600 13px/1.3 var(--sans); color: #ead9bd; animation: rt-in 1s .6s both; }
.eh-perks > span { display: inline-flex; align-items: center; gap: 6px; }
.eh-perks .ms { font-size: 18px; color: #e6bd5c; }

/* the countdown on a brass plaque */
.eh-plaque { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 20px; padding: 10px 16px 12px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(58, 16, 24, .92), rgba(30, 7, 12, .92)); border: 1.5px solid #c59b27;
  box-shadow: inset 0 0 0 3px rgba(197, 155, 39, .18), 0 12px 28px rgba(0, 0, 0, .45); animation: rt-in 1s .7s both; }
.eh-plaque-l { font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #f0cf7a; }
.eh-plaque .timer .u { background: rgba(255, 236, 190, .08); border: 1px solid rgba(240, 207, 122, .35); border-radius: 6px; min-width: 52px; }
.eh-plaque .timer .u b { font: 700 26px/1.1 var(--serif); color: #fff3d6; }
.eh-plaque .timer .u small { color: #d9c49a; }
.eh-hero .rt-btn { background: linear-gradient(180deg, #fff0c0, #e6bd5c 55%, #b0862a); color: #3a0d16; border-color: #fff0c0; }
.eh-hero .rt-btn-ghost { color: #fbf1df; background: rgba(40, 10, 16, .55); border-color: rgba(240, 207, 122, .6); }
.eh-hint { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1.3 var(--sans); color: rgba(246, 232, 207, .7); animation: rt-in 1s 1s both; }
.eh-hint .ms { font-size: 17px; }

/* the hall */
.eh-glass { animation: eh-glow 7s ease-in-out infinite; }
@keyframes eh-glow { 50% { opacity: .86; } }
.eh-beam { mix-blend-mode: screen; animation: eh-beam 8s var(--d, 0s) ease-in-out infinite; }
@keyframes eh-beam { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.eh-lampglow { animation: eh-lamp 5s ease-in-out infinite; }
@keyframes eh-lamp { 50% { opacity: .75; } }
.eh-page { transform-box: fill-box; transform-origin: 0 100%; animation: eh-page 6s ease-in-out infinite; }
@keyframes eh-page { 0%, 70%, 100% { transform: rotate(0); } 82% { transform: rotate(-24deg); } }
.eh-tag { transform-box: fill-box; transform-origin: 0 0; animation: eh-tag 5s ease-in-out infinite; }
@keyframes eh-tag { 50% { transform: rotate(3deg); } }
.eh-sp { transform-box: fill-box; }
.eh-sp.out { animation: eh-out 1.6s cubic-bezier(.2, .8, .2, 1); }
@keyframes eh-out { 0% { transform: none; } 30%, 60% { transform: translateY(-22%); filter: brightness(1.35); } 100% { transform: none; } }
.deal-pop.eh-pop { border: 2px solid #c59b27; background: #fffaf0; box-shadow: 0 14px 34px rgba(30, 6, 12, .45); }
.deal-pop.eh-pop .dp-pct { background: #7a1f2e; }

/* the All books page: a shorter hall above the books */
.eh-compact { margin-bottom: 18px; }
.eh-hero.is-compact { height: clamp(400px, 52vh, 480px); }
.eh-hero.is-compact .rt-content { padding-bottom: 70px; }
.eh-hero.is-compact .eh-title { font-size: clamp(44px, 6vw, 84px) !important; }
.eh-hero.is-compact .eh-plaque { margin-top: 14px; }
.eh-hero.is-compact .rt-cta { margin-top: 18px; }

/* phones: words up top, the hall drawn smaller along the bottom, showing the windows and the table */
@media (max-width: 760px) {
  .eh-hero { height: 700px; }
  .eh-hero .rt-layer > svg { top: auto; bottom: 0; height: 52%; width: 832px; min-width: 0; aspect-ratio: auto; transform: translateX(-71%); }
  .eh-hero::after { background: radial-gradient(ellipse 90% 46% at 50% 30%, rgba(20, 4, 9, .86), rgba(20, 4, 9, .3) 70%, transparent 85%); }
  .eh-perks { justify-content: center; }
  .eh-rule { margin-left: auto; margin-right: auto; }
  .eh-glass, .eh-beam:not(:first-child), .eh-page { animation: none; }
  .eh-hint { display: none; }
  .eh-hero.is-compact { height: 600px; }
  .eh-hero.is-compact .rt-layer > svg { height: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .eh-title, .eh-glass, .eh-beam, .eh-lampglow, .eh-page, .eh-tag, .eh-sp.out { animation: none !important; }
}

/* ---------- the rest of the home page during the event ---------- */
/* the value strip: the perks strip dressed in the hall's burgundy & gold, tucked up under the hall */
.ev-strip { position: relative; z-index: 2; margin: -34px 0 4px; }
.ev-strip .perks { background: linear-gradient(180deg, #3a0d16, #26070d); border: 1.5px solid #c59b27; box-shadow: inset 0 0 0 3px rgba(197, 155, 39, .14), 0 14px 32px rgba(30, 6, 12, .28); }
.ev-strip .perks > div + div { border-left-color: rgba(197, 155, 39, .28); }
.ev-strip .perks .ms { background: linear-gradient(180deg, #fff0c0, #e6bd5c 55%, #b0862a); color: #3a0d16; }
.ev-strip .perks b { color: #fff3d6; }
.ev-strip .perks small { color: #d9c49a; }
.ev-strip .perks > div:first-child b { color: #ffe2a0; font-size: 15px; }
/* the most wanted books */
.ev-wanted .section-head h2 { margin-top: 4px; }
.ev-eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--burgundy, #7a1f2e); }
.ev-eyebrow .ms { font-size: 18px; color: #c9502a; }
#newsletter-wrap.ev-off { display: none; }
@media (max-width: 760px) {
  .ev-strip { margin-top: -20px; }
}
@media (max-width: 1023px) {
  .ev-strip .perks > div { border-color: rgba(197, 155, 39, .28) !important; }
  .ev-strip .perks.n5 > div:first-child, .ev-strip .perks.n3 > div:first-child { grid-column: 1 / -1; justify-content: center; } /* odd count: the −20% line gets the whole first row */
  .ev-strip .perks.n5 > div:nth-child(2), .ev-strip .perks.n3 > div:nth-child(2) { border-left: 0; border-top: 1px solid; }
  .ev-strip .perks.n5 > div:nth-child(odd):not(:first-child), .ev-strip .perks.n3 > div:nth-child(odd):not(:first-child) { border-left: 1px solid; }
  .ev-strip .perks.n5 > div:nth-child(even), .ev-strip .perks.n3 > div:nth-child(even) { border-left: 0; }
}

/* the build-a-bundle showcase: the real ladder + a sample box of the most wanted books */
.evb { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; overflow: hidden;
  padding: clamp(26px, 4vw, 48px); border-radius: 18px; color: #fbf1df;
  background: radial-gradient(ellipse 60% 80% at 78% 60%, rgba(230, 189, 92, .22), transparent 70%), linear-gradient(135deg, #2e0a12, #4a1521 55%, #2a0810);
  border: 1.5px solid #c59b27; box-shadow: inset 0 0 0 4px rgba(197, 155, 39, .12), 0 18px 40px rgba(30, 6, 12, .25); }
.evb-eyebrow { color: #f0cf7a; letter-spacing: .2em; }
.evb h2 { font: 700 clamp(28px, 3.2vw, 42px)/1.12 var(--serif); color: #fff3d6; margin: 8px 0 10px; letter-spacing: -.01em; }
.evb-copy > p { color: #e8d6b8; font-size: 15.5px; line-height: 1.55; max-width: 460px; margin: 0; }
.evb-steps { display: flex; align-items: center; gap: 8px; margin: 22px 0 24px; flex-wrap: wrap; }
.evb-step { min-width: 92px; padding: 12px 14px 10px; border-radius: 12px; text-align: center; background: rgba(255, 236, 190, .07); border: 1px solid rgba(240, 207, 122, .4); }
.evb-step b { display: block; font: 700 26px/1 var(--serif); color: #ffe2a0; }
.evb-step small { display: block; margin-top: 5px; font: 600 12px/1.2 var(--sans); color: #d9c49a; text-transform: uppercase; letter-spacing: .08em; }
.evb-step.top { background: linear-gradient(180deg, #fff0c0, #e6bd5c 55%, #b0862a); border-color: #fff0c0; box-shadow: 0 8px 22px rgba(230, 189, 92, .35); }
.evb-step.top b, .evb-step.top small { color: #3a0d16; }
.evb-arrow .ms { color: #c59b27; font-size: 18px; }
.evb-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.evb-cta .link { color: #f0cf7a; font-weight: 600; }
/* the box */
.evb-art { position: relative; height: 360px; }
.evb-fan { position: absolute; left: 50%; bottom: 118px; width: 0; height: 0; }
.evb-c { position: absolute; left: -58px; bottom: 0; width: 116px; transform-origin: 50% 170%;
  transform: rotate(calc(var(--k) * 13deg)) translateY(calc(var(--k) * var(--k) * 4px)); animation: evb-bob 5s var(--d) ease-in-out infinite; }
.evb-c > * { width: 100%; border-radius: 4px; box-shadow: 0 10px 22px rgba(0, 0, 0, .45); }
@keyframes evb-bob { 50% { translate: 0 -6px; } }
.evb-box { position: absolute; left: 50%; bottom: 30px; width: 360px; height: 118px; transform: translateX(-50%); border-radius: 6px;
  background: linear-gradient(180deg, #d9ac72, #a7783f); box-shadow: 0 16px 30px rgba(0, 0, 0, .4), inset 0 6px 0 rgba(255, 255, 255, .15); }
.evb-box::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; transform: translateX(-50%); background: linear-gradient(90deg, #8b1a2b, #d23a50, #8b1a2b); }
.evb-box span { position: absolute; left: 14px; bottom: 12px; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #3a1a0a; opacity: .7; }
.evb-price { position: absolute; right: -6px; bottom: -8px; z-index: 3; display: grid; justify-items: end; gap: 2px; padding: 16px 22px 16px 26px; border-radius: 14px; transform: rotate(-4deg); overflow: hidden;
  background: linear-gradient(180deg, #fffdf6, #fbefd4); color: #3a0d16; border: 2.5px solid #c59b27; text-align: right;
  box-shadow: 0 0 0 5px rgba(255, 226, 160, .18), 0 0 46px rgba(255, 207, 122, .45), 0 18px 34px rgba(0, 0, 0, .45);
  animation: evb-tag 4.5s ease-in-out infinite; }
.evb-price::after { content: ''; position: absolute; inset: -40% auto -40% -60%; width: 40%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); animation: evb-shine 4.5s 1s ease-in-out infinite; }
@keyframes evb-tag { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-2deg) translateY(-3px); } }
@keyframes evb-shine { 0%, 55% { left: -60%; } 80%, 100% { left: 130%; } }
.evb-price > small { font: 700 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8a6a3a; }
/* the anchor: the old price, struck through in red */
.evb-price > s { position: relative; text-decoration: none; font: 600 20px/1.1 var(--sans); color: #8a7a6a; margin-top: 2px; }
.evb-price > s::after { content: ''; position: absolute; left: -4px; right: -4px; top: 52%; height: 2.5px; border-radius: 2px; background: #d23a3a; transform: rotate(-9deg); }
/* the price */
.evb-price > b { font: 800 clamp(44px, 4.4vw, 58px)/.95 var(--serif); letter-spacing: -.03em; color: #7a1f2e; text-shadow: 0 2px 0 rgba(197, 155, 39, .35); }
.evb-price > em { margin-top: 6px; padding: 4px 10px; border-radius: 999px; font: 700 12.5px/1.2 var(--sans); font-style: normal; color: #fff; background: #2d6a4a; }
/* the savings sticker on the corner */
.evb-burst { position: absolute; left: -14px; top: -14px; width: 92px; height: 92px; display: grid; place-content: center; text-align: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5a5a, #c41e2e 70%); color: #fff; transform: rotate(-10deg);
  box-shadow: 0 6px 16px rgba(196, 30, 46, .45), inset 0 0 0 3px rgba(255, 255, 255, .35); animation: evb-pop 2.4s ease-in-out infinite; }
.evb-burst small { font: 800 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding-top: 10px; }
.evb-burst b { font: 800 19px/1.05 var(--sans); letter-spacing: -.02em; }
@keyframes evb-pop { 0%, 100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(-10deg) scale(1.07); } }
.evb-price { padding-left: 84px; } /* room for the sticker */
.evb-cta-pct { font-weight: 800; color: #7a1f2e; }
@media (max-width: 900px) {
  .evb { grid-template-columns: 1fr; text-align: center; }
  .evb-copy > p { margin: 0 auto; }
  .evb-steps, .evb-cta { justify-content: center; }
  .evb-art { height: 280px; order: -1; }
  .evb-c { width: 78px; left: -39px; }
  .evb-fan { bottom: 96px; }
  .evb-box { width: 250px; height: 96px; }
  .evb-price { right: 2px; bottom: -6px; }
  .evb-price > b { font-size: 42px; }
}
@media (max-width: 480px) {
  .evb-steps { gap: 4px; }
  .evb-step { min-width: 0; flex: 1; padding: 10px 6px 8px; }
  .evb-step b { font-size: 21px; }
  .evb-arrow { display: none; }
  .evb-price { padding: 12px 14px 12px 70px; }
  .evb-price > b { font-size: 36px; }
  .evb-price > s { font-size: 16px; }
  .evb-burst { width: 74px; height: 74px; left: -10px; top: -10px; }
  .evb-burst b { font-size: 15px; }
  .evb-art { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .evb-c, .evb-price, .evb-price::after, .evb-burst { animation: none; } }
/* the box steps left so the price tag sits beside it, not on it */
.evb-fan, .evb-box { left: 36%; }
.evb-hint { display: none; }
.evb-cta .btn { white-space: nowrap; }
@media (max-width: 900px) { .evb-fan, .evb-box { left: 38%; } }
@media (max-width: 480px) {
  .evb-fan, .evb-box { left: 34%; }
  .evb-box { width: 220px; }
  .evb-cta .btn { width: 100%; justify-content: center; font-size: 13px; padding-left: 12px; padding-right: 12px; letter-spacing: .04em; }
}
