/* Phones: the "Good type is everywhere" heading, the showcase cards and their options. Loaded after the other landing styles.
   Desktop lays the three cards out in one tilted row (showcase-refresh.css). A phone is too narrow for
   three readable squares side by side, so here they make a small overlapping cluster of three squares
   of about the same size: the poster in the middle, tilted a little; the photo in front of it at the lower
   right; and the black type specimen behind on the left, tilted the other way. A phone on its side has the
   width but not the height, so it goes back to one row (the last block). The showcase offers three options at every
   width (showcase-motion.js), so the row fits without scrolling. If it ever overflows, the end with more
   options fades out (showcase-motion.js marks which end). */
@media(max-width:700px){
 .found-showcase{
  /* The page already keeps a gutter either side of the section, so it adds none of its own. */
  padding:96px 0 24px;
 }
 .found-showcase .found-center{margin-bottom:14px}
 .found-showcase .found-center h2{font-size:clamp(30px,8vw,36px)}
 /* "is everywhere." arrives together here: "is" alone would sit at the very edge of an empty second
    line (the words' ranges are set in showcase-refresh.css). */
 .found-heading-word:nth-of-type(2){animation-range:cover 12svh cover 26svh}
 .found-heading-word:nth-of-type(n+3){animation-range:cover 22svh cover 38svh}

 .showcase-line>*{margin:0}
 .line-card{padding:13px}
 .line-place{left:9px;bottom:9px;max-width:calc(100% - 18px);padding:5px 8px;font-size:9.5px}
 /* The page's markup holds Fantine's cards, which phones don't open on: keep the contents hidden until
    app.js has painted the first option (it marks the poster's words ready), so Fantine never flashes. */
 .found-showcase:not(:has(.line-text[data-ready])) :is(.line-photo>img,.line-place,.line-meta,.line-stage){visibility:hidden}
 .line-photo.is-photo-pending>img{visibility:hidden}

 .showcase-picker{flex-direction:column;gap:12px;width:100%;margin-top:4px}
 .showcase-segment{max-width:100%;-webkit-tap-highlight-color:transparent}
 .showcase-segment button{touch-action:manipulation}
 .showcase-segment.has-more-end{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent)}
 .showcase-segment.has-more-start{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px);mask-image:linear-gradient(90deg,transparent,#000 48px)}
 .showcase-segment.has-more-start.has-more-end{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent)}
}

/* Phones upright: the cluster. --cl is the cluster's width, and every card is placed in fractions of it:
   at most 350px, never wider than the page's column, and small enough on a short screen that the
   heading, the cluster and the options fit on the screen together. The cluster is a little shorter than
   it is wide (.96). */
@media(max-width:700px) and (min-height:481px){
 .found-showcase{--cl:min(350px,100vw - 40px,(100svh - var(--nav-h,76px) - 230px) / .96)}
 .showcase-line{
  position:relative;display:block;flex:none;
  width:var(--cl);height:calc(var(--cl) * .96);max-width:100%;margin:10px 0 18px;padding:0;
  overflow:visible;scroll-snap-type:none;
 }
 .showcase-line>*{
  position:absolute;--lift:0px;--shift:0px;
  box-shadow:0 1px 2px rgb(0 0 0 / .06),0 8px 20px -6px rgb(0 0 0 / .16),0 22px 44px -16px rgb(0 0 0 / .22);
 }
 .line-photo,.line-card{--line-radius:22px}
 /* Back: the specimen, mostly behind the poster, only its left side showing. */
 .line-card--ink{
  left:0;top:calc(var(--cl) * .1);width:calc(var(--cl) * .55);height:calc(var(--cl) * .55);
  --rot:-7deg;z-index:1;padding:16px 14px 14px;
 }
 /* Main: the poster, big and in the middle, its words in the top half, clear of the photo. */
 .line-card--poster{
  left:calc(var(--cl) * .2);top:calc(var(--cl) * .02);width:calc(var(--cl) * .56);height:calc(var(--cl) * .56);
  --rot:3deg;z-index:2;padding:18px 16px 14px;
 }
 /* Front: the photo, at the lower right over the poster's lower-right quarter. */
 .line-photo{
  left:calc(var(--cl) * .44);top:calc(var(--cl) * .38);width:calc(var(--cl) * .56);height:calc(var(--cl) * .56);
  --rot:-4deg;z-index:3;
 }

 /* The poster: words at the top of a stage that takes the top half of the card, and the font's name as a
    small label at the bottom left (the left part of the poster stays clear of the photo). */
 .line-card--poster .line-stage{flex:none;order:1;height:48%;margin-top:0}
 .line-card--poster .line-text{align-items:flex-start}
 .line-card--poster .line-meta{order:2;margin-top:auto;font-size:10px}
 .line-card--poster .line-meta>span+span{display:none}
 /* The specimen keeps only its guides: its heading and numbers would sit behind the poster. */
 .line-card--ink .line-meta,.line-card--ink .breakdown-specs{display:none}
 .line-card--ink .line-stage{margin-top:0}

}
/* Short phones (an iPhone SE with Safari's bars showing): a smaller heading and tighter gaps. */
@media(max-width:700px) and (max-height:620px) and (min-height:481px){
 .found-showcase{--cl:min(350px,100vw - 40px,(100svh - var(--nav-h,76px) - 200px) / .96)}
 .found-showcase .found-center h2{font-size:26px}
 .found-showcase .found-center{margin-bottom:8px}
 .showcase-line{margin:6px 0 12px}
}
/* A phone on its side has the width but not the height: one row, the photo and the poster as squares and
   the specimen card wider than them so its guide labels leave the letters room. */
@media(max-width:700px) and (max-height:480px){
 .found-showcase{--line-h:clamp(90px,100svh - var(--nav-h,76px) - 172px,200px);--line-ov:6px}
 .found-showcase .found-center h2{font-size:22px}
 .found-showcase .found-center{margin-bottom:4px}
 .showcase-line{
  display:grid;grid-template-columns:repeat(2,calc(var(--line-h) - var(--line-ov) * 2 / 3)) calc(var(--line-h) * 1.6 - var(--line-ov) * 2 / 3);
  justify-content:center;align-items:start;gap:0;
  width:auto;max-width:100%;margin:0;padding:6px 0 8px;overflow:visible;scroll-snap-type:none;
 }
 .line-photo{grid-area:1/1;justify-self:start;--rot:-5deg;--lift:4px;z-index:1}
 .line-card--poster{grid-area:1/2;justify-self:end;--rot:2deg;--lift:-2px;z-index:2}
 .line-card--ink{grid-area:1/3;justify-self:end;width:calc(var(--line-h) * 1.6);height:var(--line-h);--rot:3deg;--lift:6px;z-index:3;padding:13px 16px 14px}
 .line-card--ink .line-stage{margin-top:8px}
 .breakdown-specs{display:none}
}
