/* Home. The contents panel is the page; every board below it changes proportion. */

.open{padding-block:clamp(.6rem,1.5vh,1.05rem) 0}
.home .open h1{max-width:34ch}
.open__sub{font-size:var(--fs-1);line-height:1.35;margin-top:.4rem;max-width:44ch}
.open__note{font-size:var(--fs-0);margin-top:.4rem;max-width:54ch}
.open__note b{font-weight:600}

/* the five linked rows — the bay, the title, the arrow. The bay takes two to five of the
   eleven measuring columns, so the still lifes carry each row and no row ends in a dead
   middle. Titles stand on one indent, arrows hang off the right edge. One tap per line. */
.rows{display:block;border-top:var(--edge);margin-top:clamp(.7rem,1.7vh,1.1rem)}
.rows .row{border-bottom:var(--edge)}
.row__a{display:grid;grid-template-columns:repeat(11,1fr) auto;column-gap:clamp(.7rem,1.4vw,1.15rem);align-items:center;min-height:44px;padding-block:.35rem;color:var(--ink);text-decoration:none}
.row__bay{display:block;min-width:0;line-height:0}
.row__img{display:block;width:100%;height:clamp(7.5rem,13vh,8.75rem);object-fit:cover}
.row--b2 .row__bay{grid-column:span 2}
.row--b2 .row__t{grid-column:span 9}
.row--b3 .row__bay{grid-column:span 3}
.row--b3 .row__t{grid-column:span 8}
.row--b4 .row__bay{grid-column:span 4}
.row--b4 .row__t{grid-column:span 7}
.row--b5 .row__bay{grid-column:span 5}
.row--b5 .row__t{grid-column:span 6}
.row--b3 .row__img{height:clamp(8.5rem,15.5vh,10rem)}
.row--b4 .row__img{height:clamp(9.25rem,17vh,11.25rem)}
.row--b5 .row__img{height:clamp(10rem,19vh,12.5rem)}
/* the tools still life carries two printed labels at its left edge; the crop keeps the
   pencil and the two graphite marks and loses the lettering */
.row__img--tools{object-position:84% 56%}
.row__t{font-family:'Martian Mono',ui-monospace,monospace;font-weight:650;font-size:clamp(1.05rem,.85vw + .85rem,1.3rem);line-height:1.15;transition:color var(--t-color) var(--ease)}
.row__arw{display:flex;align-items:center;justify-content:flex-end}
.row__arw svg{width:clamp(1.15rem,1.9vw,1.5rem);height:auto;color:var(--blue);transition:transform var(--t-color) var(--ease)}
.row__a:hover .row__t,.row__a:focus-visible .row__t{color:var(--blue)}
.row__a:hover .row__arw svg{transform:translateX(.25rem)}
.row__a:focus-visible{outline:3px solid var(--blue);outline-offset:2px}

/* the sapphire band at the foot of the first screen — wipes once, then stays */
.open__go{margin-top:clamp(.8rem,1.8vh,1.1rem)}
.castband{background:var(--blue);color:var(--pink);padding:.9rem var(--pad);margin-top:clamp(.9rem,2vh,1.3rem);font-family:'Martian Mono',ui-monospace,monospace;font-size:var(--fs-sm);line-height:1.4}
.castband p{max-width:74ch}
html.js .castband{clip-path:inset(0 100% 0 0)}
html.js .castband.is-in{clip-path:inset(0 0 0 0);transition:clip-path var(--t-wipe) linear}

/* section heads sit above their boards with room to breathe */
.sect > h2{margin-bottom:var(--gap);color:var(--blue)}
.sect__lede{max-width:62ch;margin-bottom:.55rem}
.tile > * + *{margin-top:.55rem}
.tile p{max-width:52ch}
.fig__cap{color:var(--ink)}

/* the faculty fact reads in the action colour, on the same ruled panel */
.factline p:first-child{color:var(--blue);font-size:var(--fs-1);line-height:1.4}

/* the two pressed prompts — whole tile is the target */
.prompt{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.7rem;color:var(--ink);text-decoration:none;transition:color var(--t-color) var(--ease)}
.prompt:hover,.prompt:focus-visible{color:var(--blue)}
.prompt__q{font-family:'Martian Mono',ui-monospace,monospace;font-weight:650;font-size:var(--fs-1);line-height:1.2}
.prompt__s{display:block;font-family:'Bricolage Grotesque',system-ui,sans-serif;font-weight:400;font-size:var(--fs-sm);line-height:1.4;margin-top:.4rem}
.prompt .arrow{color:var(--blue);transition:transform var(--t-color) var(--ease)}
.prompt:hover .arrow{transform:translateX(.2rem)}

/* the loose line under the two prompts sits in its own row of the board, so the tiles
   themselves run the full height of the picture and the board closes as a rectangle */
.cap--under{grid-column:8/13;align-self:start}

/* the mounted photograph beside a stack of answers — a cut that hides the mount's own lettering */
.r-32{aspect-ratio:3/2}
.r-32 img{object-position:50% 100%}

/* hours and the hand-off to the directions */
.unit{display:grid;border-top:var(--edge)}
.unit__r{display:grid;grid-template-columns:1fr auto;gap:.9rem;align-items:baseline;padding-block:.5rem;border-bottom:var(--edge)}
.unit__r dt{font-size:var(--fs-sm);line-height:1.35}
.unit__r dd{margin:0;font-family:'Martian Mono',ui-monospace,monospace;font-size:var(--fs-1);line-height:1.2;color:var(--blue)}
.visit__intro{display:grid;gap:.7rem;align-content:start}
.visit__intro p{max-width:44ch}
.addr{font-family:'Martian Mono',ui-monospace,monospace;font-size:var(--fs-1);line-height:1.5}
.handoff__go .btn{min-width:9rem}

/* the board takes its unequal proportions on a desk screen only, and every answer tile
   stretches to the height of its picture so each board closes as one full rectangle */
@media (min-width:861px){
  .c3{grid-column:span 3}
  .c4{grid-column:span 4}
  .c5{grid-column:span 5}
  .c7{grid-column:span 7}
  .c8{grid-column:span 8}
  .c12{grid-column:span 12}
  .board{align-items:stretch}
  .board > .tile{display:flex;flex-direction:column;justify-content:center}
  .board > .stack{display:flex;flex-direction:column;gap:var(--gap)}
  .board > .stack > .tile{flex:1 1 0;min-height:0;justify-content:center}
  .board > .stack > .cap{flex:0 0 auto}
  .tile--break{margin-inline-end:calc(-1 * var(--gap))}
}

@media (max-width:860px){
  .rows .row__bay{grid-column:span 3}
  .rows .row__t{grid-column:span 8}
  .rows .row__img{height:clamp(6.5rem,12vh,7.5rem)}
  .row__t{font-size:1.05rem}
  .tile p{max-width:none}
  .visit__intro p{max-width:none}
  .cap--under{grid-column:1/-1}
}

@media (prefers-reduced-motion:reduce){
  html.js .castband{clip-path:none;transition:none}
}
