/* ═══════════════════════════════════════════════
   depp-v-heard.css
   frontendneeded.com/case-chronicle/depp-v-heard/

   Everything in the Chronicle that is specific to this one case. Loaded
   after chronicle.css, which carries the structure and names no case.

   Two jobs: restate the side inks, and stand the two portraits under
   their cards in the masthead.
   ═══════════════════════════════════════════════ */

/* ── The two sides, in their own colours ──
   Sampled off the portraits rather than picked to match them, so the ink
   and the figure in the same corner are the same colour and not two
   attempts at one: the sash off the coat on the left, the suit off Mera
   on the right.

   The jobs do not move. Left is still the side that filed, right is still
   the side that answered, and the court is still sepia. Only the hues
   change.

   Both land where the defaults landed against the stock — 6.2:1 for the
   left against the old red's 5.3, 8.3:1 for the right against the old
   blue's 8.5 — so the page keeps the light/dark relationship it was
   built around, with the left ink the lighter of the two. That was luck,
   not design; a future case that samples worse should correct toward
   these ratios rather than keep a faithful colour. */

body[data-case="depp-v-heard"] {
  /* Depp — the sash, over the coat */
  --p: #84403e;
  --p-dim: #6f3634;
  --p-wash: rgba(132, 64, 62, 0.085);
  --p-edge: rgba(132, 64, 62, 0.4);

  /* Heard — the suit */
  --d: #1a4a3e;
  --d-dim: #2f5d51;
  --d-wash: rgba(26, 74, 62, 0.085);
  --d-edge: rgba(26, 74, 62, 0.4);

  /* Nothing more for the case flow or the chronology: both mix every
     tint they need from --p and --d. */
}

/* ── The portraits ──
   Flat vector figures, backgrounds keyed out, so what stands on the page
   is the figure and not a plate. That matters more than it sounds: the
   grounds these came on were a blue-grey sky and a dark bokeh, and either
   one laid over warm stock at any opacity reads as a stain rather than as
   printing. Cut out, they ink into the paper the way everything else on
   this page does.

   Each stands under its own side's card, in the column the shared sheet
   gives that side, so the page says who is on which side twice over: in
   words on the card and in the figure below it. They used to hang from
   the masthead's top corners behind the title, at a tenth of full
   strength so the title could be read through them. Nothing is set over
   them now, so they are printed properly.

   fig-stand is the window a figure is seen through. It takes whatever
   height the column has left under the card and runs on down through the
   masthead's bottom padding to the rule, and it is the stand that fades,
   at its foot, so a figure goes into the rule rather than being cut off
   by it however much of it the column has room for.

   Inert: aria-hidden in the markup, no pointer, no selection. */

.fig-stand { display: none; }

/* The shared sheet's own breakpoint for a column down each side. Below
   it the cards sit under the title, side by side or stacked, and there
   is no column for a figure to stand in. */
@media (width >= 1200px) {
  body[data-case="depp-v-heard"] .masthead-case .mh-side {
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  /* The title block is shorter than a card with a figure under it, so it
     is set to the middle of the height rather than left hanging from
     the top with the difference under it. */
  body[data-case="depp-v-heard"] .masthead-case .mh-main { align-self: center; }

  .fig-stand {
    /* A figure is four fifths of the column wide, and the pictures are
       two wide by three tall. */
    --fig-h: calc(var(--mh-side) * 0.8 * 1.5);

    display: block;
    position: relative;
    flex: 1 1 auto;

    /* Room for four fifths of a figure, counting the masthead's bottom
       padding, which the stand runs down through. */
    min-height: calc(var(--fig-h) * 0.8);
    margin: 10px 0 -84px;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;

    mask-image: linear-gradient(to bottom, #000 70%, transparent 99%);
  }

  /* Hung from the foot of the stand rather than from under the card. The
     two cards are not the same height, and this way the two figures
     still stand on one line. */
  .fig {
    position: absolute;
    bottom: calc(var(--fig-h) * -0.2);
    left: 10%;
    width: 80%;
    height: auto;
    opacity: 0.56;
    mix-blend-mode: multiply;
  }
}
