/* screen.css: the screen page, on top of site.css.
   Key: clesh screen head, clexp exploded detail, clewf window-frame strip, clegp gap photograph (cropped),
        clewk working notes row, clenl note list, cleni one note, clecn corner-of-a-screen drawing,
        clems mesh strokes, clehf hand-off, cleac action row. */

/* clesh (screen head): the h1 and its notes beside the tall screen photograph */
.clesh { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5) var(--s7); padding-block: var(--s4) var(--s8); }
.clesh > .clefl { flex: 1 1 24rem; }
.clesh > .clepic { flex: 0 1 clamp(15rem, 28vw, 24rem); }
.clesh > .clepic > img { aspect-ratio: 4 / 5; }
.clesh h1 { font-size: clamp(1.8125rem, 1.1rem + 2.9vw, 3.5rem); line-height: 1.3; }
.clesh .clefl > p { font-size: var(--t3); line-height: 1.4; }
.clesh .clefl > .clepl { align-self: flex-start; font-size: var(--t2); line-height: 1.45; }

/* clexp (exploded): window frame strip, gap photograph, screen edge with its three notes, in one row */
.clexp { display: flex; align-items: stretch; gap: var(--s6); }

/* clewf (window frame): the drawn frame edge, filling the height of the photograph beside it */
.clewf { position: relative; flex: 0 0 5rem; }
.clewf svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }

/* clegp (gap photograph): the screen photograph cropped in to its lower corner */
.clexp > .clepic { flex: 0 0 clamp(16rem, 28vw, 23rem); align-self: flex-start; }
.clegp { overflow: hidden; aspect-ratio: 4 / 5; background: var(--c5); }
.clegp img { inline-size: 100%; block-size: 100%; object-fit: cover; transform: scale(1.55); transform-origin: 35% 90%; }

/* the screen edge: notes spread from its top to its bottom, a release point on the edge at each */
.clexp > .clesp { flex: 1 1 0; min-inline-size: 0; justify-content: space-between; }
.clexp .clent p { align-self: flex-start; max-inline-size: 28rem; }
.clexp .clent h3 { line-height: 1.2; }
.clexp .clent button { display: block; min-block-size: 2.75rem; text-align: start; text-underline-offset: .2em; }
.clexp .clent button:hover { text-decoration: underline; text-decoration-thickness: .125rem; }
.clexp .clent:is(:hover, :has(button:focus-visible))::before,
.clexp .clent:is(:hover, :has(button:focus-visible))::after { background: var(--c4); }
.clexp .clent:has(button:focus-visible)::before { transform: none; }

/* clewk (working notes): the corner drawing, then notes that run the width beside it */
.clewk { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s6) var(--s7); }
.clewk > .clecn { flex: 0 1 17rem; }
.clecn svg { inline-size: 100%; }
.clems { fill: none; stroke: var(--c5); stroke-width: 1; }
.clenl { flex: 1 1 28rem; display: flex; flex-direction: column; gap: var(--s6); min-inline-size: 0; }
.cleni { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s3) var(--s5); }
.cleni h3 { flex: 0 0 13rem; line-height: 1.25; }
.cleni p { flex: 1 1 20rem; }

/* clehf (hand-off): next stage, with its photograph, and the action row */
.clehf .clepic > img { block-size: clamp(12rem, 32vh, 20rem); }
.cleac { display: flex; flex-wrap: wrap; gap: var(--s5); padding-block-start: var(--s2); }

@media (max-width: 47.99rem) {
  .clexp { flex-direction: column; }
  .clewf { display: none; }
  .clexp > .clepic { flex: none; inline-size: min(100%, 22rem); }
  .clexp > .clesp { flex: none; justify-content: flex-start; }
  .cleni h3 { flex-basis: 100%; }
}
