/* The V2 cover artwork opens the vertical V3 reading flow. */
.v3-edition {
  --v3-orange: #ff641f;
  --v3-lemon: #f5ed29;
  --v3-blue: #254bff;
  --v3-pink: #f0b9cf;
  --v3-black: #151713;
}

.v3-front-cover {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: clip;
  background: #272925;
  color: #efeee2;
}

.v3-cover-stage {
  display: grid;
  place-items: center;
  width: 100%;
  line-height: 0;
  background: #282a26 url('/assets/grain.svg');
}

.v3-cover-stage picture { display: block; width: 100%; }
.v3-cover-stage img {
  display: block;
  width: 100%;
  height: calc(100svh - var(--navh) - 140px);
  min-height: 360px;
  object-fit: contain;
  object-position: center;
}

.v3-cover-heading {
  width: 100%;
  margin: 0;
  padding: 16px var(--gutter);
  background: #171914;
  font: 800 clamp(18px, 2.4vw, 34px)/1.1 var(--sans);
  letter-spacing: -.025em;
  text-align: center;
  text-wrap: balance;
}

.v3-cover-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 7px var(--gutter);
  border-top: 1px solid #616255;
  background: #171914;
  font: 700 10px/1.45 var(--mono);
}

.v3-cover-caption b { color: var(--v3-orange); }
.v3-cover-tease { font: 650 13px/1.4 var(--sans); letter-spacing: .015em; }
.v3-cover-enter { display: flex; align-items: center; gap: 18px; min-height: 32px; }
.v3-cover-enter > span:last-child { font: 24px/1 var(--sans); transition: transform .2s; }
.v3-cover-enter:hover > span:last-child { transform: translateY(3px); }

/* The opening pairs a supplied ARMADA graphic with editable headlines. */
.v3-edition #cover { padding-top: clamp(40px, 5vw, 78px); background: #f2eae2; }
.v3-edition #cover .edline { border-top: 1px solid var(--v3-black); }
.v3-edition #cover .cover-sheet { background: var(--v3-pink); clip-path: none; }
.v3-edition #cover .cover-sheet::before { opacity: .09; filter: grayscale(1); mix-blend-mode: multiply; }
.v3-edition #cover .cover-copy { color: var(--v3-black); }
.v3-edition #cover .cover-deck { font-size: clamp(22px,2vw,32px); line-height: 1.5; letter-spacing: .015em; }
.v3-edition #cover .cover-deck > span { display: block; }
.v3-edition #cover .cover-deck > span + span { margin-top: 16px; font-size: clamp(14px,1.2vw,18px); line-height: 1.5; }
.v3-edition #cover .cover-count, .v3-edition #cover .cover-byline { color: var(--v3-black); }
.v3-edition #cover .read, .v3-edition #cover .stamp { background: var(--v3-orange); }
.v3-edition #cover .cover-colophon { border-bottom: 0; }

.v3-edition #backpage { background: #e5eaf5; }
.v3-edition #backpage > .wrap > .section-intro .display > span { color: var(--v3-blue); }
.v3-edition .v3-colophon { background: var(--v3-blue); color: #fffbed; }
.v3-edition .v3-colophon .credits, .v3-edition .v3-colophon .endline { border-color: #b9c5ff; }
.v3-edition .v3-colophon .rubric { color: var(--v3-lemon); }

@media (max-width: 760px) and (orientation: portrait) {
  .v3-cover-stage img { height: auto; min-height: 0; }
  .v3-cover-caption { font-size: 8px; gap: 8px; }
  .v3-cover-tease { font-size: 10px; }
  .v3-cover-fig { display: none; }
}

@media (max-width: 660px) {
  .v3-edition #cover { padding-top: 44px; }
  .v3-edition #cover .cover-art { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .v3-edition #cover .cover-picture { position: relative; inset: auto; z-index: auto; aspect-ratio: 5 / 4; }
  .v3-edition #cover .cover-picture > img { width: 100%; height: 100%; object-fit: cover; }
  .v3-edition #cover .cover-sheet { display: none; }
  .v3-edition #cover .cover-copy { position: relative; height: auto; padding: 24px 18px 28px; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto; gap: 18px; background: var(--v3-pink); }
  .v3-edition #cover .cover-count { grid-column: 1 / -1; grid-row: 1; }
  .v3-edition #cover .cover-deck { grid-column: 2; grid-row: 2; align-self: start; font-size: clamp(16px,4.5vw,22px); }
  .v3-edition #cover .cover-byline { display: block; grid-column: 1 / -1; grid-row: 3; margin: 0; }
  .v3-edition #cover .read { grid-column: 1 / -1; grid-row: 4; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-cover-enter > span:last-child { transition: none; }
}
