/* Our Merchandise page (class prefix: om-) */

/* Heavy italic face for the page and book titles (the original used Archivo 900 italic) */
@font-face { font-family: "Helvetica Neue GP"; src: local("Helvetica Neue Black Italic"), local("HelveticaNeue-BlackItalic"), url("../assets/fonts/HelveticaNeueBlackItalic.otf") format("opentype"); font-weight: 900; font-style: italic; font-display: swap; }

/* ---------- Title band ---------- */
/* The original page leaves an empty white band between the menu and the texture; margin-top keeps it. */
.om-hero { margin-top: 270px; padding: 140px 40px 0; background: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.1)), url("../assets/img/merch-hero-texture.webp") center / cover no-repeat; }
.om-hero-box { max-width: 1200px; margin: 0 auto; padding: 40px; background: var(--white); text-align: center; }
.om-hero h1 { font-size: 56px; font-weight: 900; font-style: italic; line-height: 1.2; text-transform: uppercase; color: #0c1115; }

/* ---------- Book list ---------- */
.om-list { padding: 160px 40px 0; }
.om-book { max-width: 1200px; margin: 0 auto 150px; padding: 1px 80px 80px; background: #eaf2f9; display: grid; grid-template-columns: 500fr 500fr; column-gap: 40px; }
.om-book:last-child { margin-bottom: 140px; }
.om-book--spark { grid-template-columns: 457fr 543fr; }
.om-book--present { grid-template-columns: 370fr 630fr; }

.om-cover { position: relative; width: 370px; max-width: 100%; height: 500px; margin: -60px auto 0; border-radius: 0 3px 3px 0; overflow: hidden; box-shadow: 0 8px 11px rgba(0,0,0,.27); background: #e6e6e6; }
.om-book--tall .om-cover { height: 522px; }
.om-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.om-book--tall .om-cover img { object-position: 50% 100%; }
/* book spine */
.om-cover::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 13px; background: linear-gradient(90deg, rgb(0,0,0) 0%, rgba(255,255,255,.45) 24%, rgba(0,0,0,.61) 85%, rgba(255,255,255,.15) 94%); }

.om-copy { align-self: center; padding-top: 40px; min-width: 0; }
.om-copy h2 { font-size: 22px; font-weight: 900; font-style: italic; line-height: 1.2; text-transform: uppercase; color: #0c1115; }
.om-lead { font-size: 23px; line-height: 1.22; color: var(--blue); text-align: justify; margin-top: 40px; }
.om-desc { font-size: 16px; line-height: 1.4; color: #0c1115; text-align: justify; margin-top: 2px; }
.om-book--spark .om-desc, .om-book--present .om-desc { color: #5b6670; }
.om-more { display: block; margin: 6px 0 0 auto; padding: 4px 20px; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; color: #000; background: none; border: 0; border-radius: 18px; cursor: pointer; }
.om-more:hover, .om-more:focus-visible { color: var(--blue); text-decoration: underline; }

/* ---------- Book details pop-up ---------- */
html:has(.om-pop[open]) { overflow: hidden; }
.om-pop { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 0; background: var(--white); color: #000; box-shadow: 0 0 40px rgba(0,0,0,.4); overflow-y: auto; overscroll-behavior: contain; }
.om-pop::backdrop { background: rgba(0,0,0,.8); }
.om-pop[open] { animation: om-zoom .35s ease-out; }
@keyframes om-zoom { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.om-pop-close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; width: 32px; height: 32px; font: inherit; font-size: 20px; line-height: 1; color: #000; background: var(--white); border: 0; border-radius: 50%; cursor: pointer; z-index: 1; }
.om-pop-close:hover { background: #eee; }
.om-pop-body { padding: 44px 48px 48px; font-size: 16px; line-height: 1.5; }
.om-pop-img { height: auto; margin: 0 auto 34px; }
.om-pop-title { font-size: 28px; font-weight: 700; line-height: 1.2; }
.om-pop-lead { font-size: 18px; line-height: 1.35; margin-top: 12px; }
.om-pop-body p { margin-top: 16px; }
.om-pop-body h3 { font-size: 24px; font-weight: 700; margin-top: 44px; }
.om-pop-body h4 { font-size: 18px; font-weight: 700; margin: 22px 0 0; }
.om-pop-body h3 + h4 { margin-top: 14px; }
.om-pop-body ul { list-style: disc; margin: 16px 0 0; padding-left: 22px; }
.om-pop-body li { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .om-pop[open] { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .om-hero { margin-top: 120px; padding-top: 80px; }
  .om-hero h1 { font-size: 44px; }
  .om-list { padding-top: 120px; }
  .om-book { padding: 1px 30px 50px; margin-bottom: 110px; column-gap: 30px; }
  .om-cover { width: 300px; height: 405px; }
  .om-book--tall .om-cover { height: 423px; }
}
@media (max-width: 820px) {
  .om-hero { margin-top: 0; padding: 40px 20px 0; }
  .om-hero-box { padding: 18px 10px; }
  .om-hero h1 { font-size: 30px; }
  .om-list { padding: 70px 20px 0; }
  .om-book, .om-book--spark, .om-book--present { grid-template-columns: 1fr; padding: 1px 15px 24px; margin-bottom: 70px; }
  .om-book:last-child { margin-bottom: 60px; }
  .om-cover, .om-book--tall .om-cover { width: 200px; height: 270px; margin-top: -30px; box-shadow: 7px -3px 11px rgba(0,0,0,.27); }
  .om-book--tall .om-cover { height: 282px; }
  .om-cover::after { width: 9px; }
  .om-copy { padding-top: 26px; }
  .om-copy h2 { font-size: 20px; text-align: center; }
  .om-copy h2 br { display: none; }
  .om-lead { font-size: 20px; text-align: left; margin-top: 18px; }
  .om-desc { text-align: left; margin-top: 8px; }
  .om-more { padding: 14px 18px; margin-top: 0; }
  .om-pop-body { padding: 40px 20px 28px; }
  .om-pop-title { font-size: 22px; }
  .om-pop-body h3 { font-size: 20px; }
}
