/* E-book covers. Used on the e-book page AND as page 1 of each PDF, so both always match.
   Markup: <div class="ebc ebc--navy"> ... </div>  (see ebook.html / ebook-sources) */

.ebc{
  --c1:#1B2A5C; --c2:#0E1738; --ac:#FFC93C;
  position:relative; aspect-ratio:2/3; width:100%; overflow:hidden; isolation:isolate;
  border-radius:3px 8px 8px 3px; color:#F7F1E3;
  background:
    radial-gradient(120% 70% at 85% 0%, color-mix(in srgb, var(--ac) 26%, transparent) 0%, transparent 55%),
    linear-gradient(165deg, var(--c1) 0%, var(--c2) 100%);
  font-family:'Noto Sans Bengali','Nirmala UI','Lato',sans-serif;
  container-type:inline-size;
}
.ebc--navy  { --c1:#24367A; --c2:#0E1738; --ac:#FFC93C; }
.ebc--teal  { --c1:#13625A; --c2:#06302C; --ac:#F2C46D; }
.ebc--wine  { --c1:#7A2337; --c2:#3A0C18; --ac:#FFC93C; }
.ebc--plum  { --c1:#4E3489; --c2:#1F1240; --ac:#FFD27A; }

/* fine gold frame */
.ebc::before{content:"";position:absolute;inset:4.5cqw 4.5cqw 4.5cqw 7.5cqw;border:.5cqw solid color-mix(in srgb, var(--ac) 70%, transparent);border-radius:1.5cqw;z-index:-1}
/* spine shading */
.ebc::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.35) 0,rgba(255,255,255,.16) 2.2%,rgba(0,0,0,.08) 4.5%,transparent 9%)}

/* cover picture uploaded in the admin */
.ebc--img{background:#0E1738}
.ebc--img::before{display:none}
.ebc--img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}

/* subtle pattern */
.ebc .ebc-pat{position:absolute;inset:0;z-index:-1;opacity:.09;
  background-image:radial-gradient(circle at 1px 1px,#fff 1px,transparent 1.4px);background-size:5cqw 5cqw}

.ebc .ebc-in{position:absolute;inset:9cqw 9cqw 9.5cqw 12cqw;display:flex;flex-direction:column}
.ebc .ebc-series{font-family:'Lato','Segoe UI',sans-serif;font-weight:900;font-size:3.1cqw;letter-spacing:.32em;text-transform:uppercase;color:var(--ac)}
.ebc .ebc-rule{width:14cqw;height:.7cqw;background:var(--ac);border-radius:1cqw;margin:3cqw 0 0}

/* the big emblem */
.ebc .ebc-art{flex:1;display:grid;place-items:center;margin:2cqw 0}
.ebc .ebc-art svg{width:56cqw;height:auto;filter:drop-shadow(0 2cqw 3cqw rgba(0,0,0,.35))}

.ebc .ebc-kick{font-size:3.6cqw;font-weight:700;color:var(--ac);margin:0 0 1.5cqw}
.ebc .ebc-title{font-size:9.6cqw;line-height:1.22;font-weight:700;margin:0;color:#fff;text-wrap:balance}
.ebc .ebc-title.en{font-family:'Montserrat','Lato','Segoe UI',sans-serif;font-weight:800;font-size:8.4cqw;line-height:1.12;letter-spacing:-.01em}
.ebc .ebc-sub{font-size:3.8cqw;line-height:1.5;margin:2.5cqw 0 0;color:color-mix(in srgb,#fff 78%,transparent)}
.ebc .ebc-foot{display:flex;align-items:center;justify-content:space-between;margin-top:5cqw;padding-top:3cqw;border-top:.35cqw solid color-mix(in srgb,#fff 22%,transparent)}
.ebc .ebc-brand{display:flex;align-items:center;gap:1.6cqw;font-family:'Lato','Segoe UI',sans-serif;font-weight:900;font-size:3.4cqw;letter-spacing:.04em}
.ebc .ebc-brand svg{width:5.4cqw;height:auto}
.ebc .ebc-badge{font-size:3.1cqw;font-weight:700;color:var(--c2);background:var(--ac);border-radius:10cqw;padding:.6cqw 2.6cqw}
