/* The buyer's homepage of editions (one per purchase; another brand listed plainly), the way back to it, and the
   staff-view ribbon. */
/* ---- the buyer's homepage: one edition per purchase ---- */
#home { z-index: 25; background: var(--canvas); overflow-y: auto; -webkit-overflow-scrolling: touch; }
#home .wrap { max-width: 1080px; margin: 0 auto; padding: max(7vh, calc(env(safe-area-inset-top) + 28px)) 6vw 9vh; }
#home .mast { width: min(46vw, 230px); display: block; margin-bottom: 7vh; }
#home .eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-1); margin-bottom: 18px; }
#home h1 { font-family: 'Silver Editorial', Didot, serif; font-weight: 400; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; letter-spacing: .02em; }
#home h1 em { font-style: italic; }
#home .lede { margin-top: 26px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.55; color: var(--ink-sub); max-width: 46ch; }
#home .cards { margin-top: 6vh; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.ed-card { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(216,184,151,.35); background: rgba(234,226,212,.04); }
.ed-card .ed-art { aspect-ratio: 16 / 10; background: url('../media/cover-art-2.jpg') center 35% / cover no-repeat; position: relative; }
.ed-card .ed-art .ai-cap { right: 10px; bottom: 8px; }
.ed-card .ed-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ed-card .ed-k { font-size: 11.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-1); }
.ed-card .ed-title { font-family: 'Silver Editorial', Didot, serif; font-size: 24px; line-height: 1.15; }
.ed-card .ed-line { font-size: 14.5px; line-height: 1.45; color: var(--ink-sub); }
.ed-card .ed-stage { margin-top: 2px; font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.ed-card .codebtn { align-self: flex-start; margin-top: auto; font-size: 12px; padding: 12px 26px 10px 30px; }
.ed-card .ed-open { margin-top: 12px; }
/* another brand's purchase: listed plainly, with none of ELLE's type, colour or imagery */
.other-card { border: 1px solid #5d5d5d; background: #1d1d1d; color: #e6e6e6; padding: 22px 24px; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; }
.other-card .o-title { font-size: 19px; font-weight: 600; letter-spacing: 0; }
.other-card .o-line { margin-top: 8px; font-size: 14px; line-height: 1.45; color: #bdbdbd; }
.other-card .o-open { margin-top: 14px; display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #fff; border: 1px solid #bdbdbd; padding: 8px 12px; text-decoration: none; }
.other-card .o-open:hover, .other-card .o-open:focus-visible { background: #2c2c2c; }
.other-card .o-soon { margin-top: 14px; display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #e6e6e6; border: 1px solid #7a7a7a; padding: 6px 10px; }
.backhome { position: fixed; z-index: 12; left: max(14px, env(safe-area-inset-left)); top: max(14px, env(safe-area-inset-top)); -webkit-appearance: none; appearance: none;
  background: rgba(11,11,11,.55); border: 1px solid rgba(216,184,151,.45); color: var(--ink); cursor: pointer; font-family: 'ELLE Nova C', sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; padding: 11px 16px 9px; }

/* ---- sample and staff-view marks ---- */
.ribbon { position: fixed; z-index: 75; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); max-width: min(78vw, 360px);
  background: rgba(11,11,11,.86); border: 1px solid rgba(216,184,151,.6); color: #fff; padding: 9px 12px 8px; font-family: 'ELLE Nova C', sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; pointer-events: none; }
#reader.on ~ .ribbon, body:has(#reader.on) .ribbon { bottom: auto; top: max(12px, env(safe-area-inset-top)); right: auto; left: 50%; transform: translateX(-50%); }
