/* C.L.B Bath & Blowouts — index.css, the home page only.
   keys  colour  --c1 ground · --c2 ink · --c3 deeper lilac · --c4 pink, decorative only
         space   --s1 hair · --s2 step · --s3 breath · --s4 gutter · --s5 block · --s6 section
         type    --t1 reading · --t2 lede · --t4 heading · --t6 slogan
         timing  --wait 450ms · --tuck easing */

/* ————————————————————————— layout ————————————————————————— */
.pause_mark{ grid-column:1/-1; width:clamp(3.25rem,6vw,4.25rem); height:auto; aspect-ratio:64/46; margin:0 0 var(--s1); }

.tell_pair,.visit_pair,.prep_pair,.heard_pair,.door_pair,.walk_pair{ container-type:inline-size; }

.tell_flow,.visit_flow,.prep_flow,.heard_flow,.door_flow,.walk_flow{
  display:grid; grid-template-columns:1fr; gap:var(--s5) var(--s4); align-items:start;
}

.tell_print .print_picture{ aspect-ratio:16/9; }
.visit_one .print_picture,.visit_two .print_picture{ aspect-ratio:4/5; }
.prep_print .print_picture{ aspect-ratio:3/2; }
.heard_print .print_picture{ aspect-ratio:1/1; }
.door_print .print_picture{ aspect-ratio:3/2; }

/* the blob keeps its paint bleed at the top, right and foot of the first print only,
   so nothing coloured sits under the caption's line of type */
.tell_print.paint_blob::before{ inset:-5% -4% -6% 0; }
.tell_print .print_caption{ margin-inline-start:0; }

.prep_say{ padding:var(--s5) var(--s4); }
.prep_list{ margin:0 0 var(--s4); padding:0; list-style:none; display:flex; flex-direction:column; gap:var(--s3); }
.prep_way{ margin:0; }

.door_where{ margin:0 0 var(--s3); }

.walk_flow{ gap:var(--s2) var(--s4); }
.walk_choice{ display:block; padding-block:var(--s3); text-decoration:none; }
.walk_name{ display:block; }
.walk_line{ display:block; margin-top:var(--s1); max-width:32ch; }

/* the page ends just behind its own content: the paired prints hand straight on to
   the sections under them, and the last hand-off sits close to the foot */
.visit_pair{ padding-block-end:var(--s5); }
.prep_pair{ padding-block-start:var(--s5); }
.walk_pair{ padding-block:var(--s5) var(--s2); }

/* nothing below the paired prints waits on the veil: those sections stand drawn at rest,
   so the page never runs on through a band of bare ground before its closing line */
.prep_pair,.heard_pair,.door_pair,.walk_pair,
.cbl-veil-on .prep_pair,.cbl-veil-on .heard_pair,
.cbl-veil-on .door_pair,.cbl-veil-on .walk_pair{ clip-path:none; }

@container (min-width:44rem){
  .tell_flow,.visit_flow,.prep_flow,.heard_flow,.door_flow,.walk_flow{ grid-template-columns:repeat(6,1fr); }
  .tell_print{ grid-column:1/4; }
  .tell_say{ grid-column:4/7; padding-inline-start:var(--s4); }
  .visit_say{ grid-column:1/3; grid-row:1/3; }
  /* the pair stands on one top line and one caption line: both prints share the flow's rows */
  .visit_one,.visit_two{ grid-row:1/3; display:grid; grid-template-rows:subgrid; row-gap:0; column-gap:0; align-content:start; }
  .visit_one{ grid-column:3/5; }
  .visit_two{ grid-column:5/7; }
  .prep_say{ grid-column:1/5; }
  .prep_print{ grid-column:5/7; }
  .heard_say{ grid-column:1/5; }
  .heard_print{ grid-column:5/7; }
  .door_say{ grid-column:1/4; }
  .door_print{ grid-column:4/7; }
  .walk_choice{ grid-column:1/4; }
  .walk_choice + .walk_choice{ grid-column:4/7; }
}

/* ————————————————————————— type ————————————————————————— */
.prep_line{ font-family:var(--f1); font-weight:400; font-size:var(--t2); line-height:1.35; }
.door_where{ font-family:var(--f1); font-weight:400; font-size:var(--t4); line-height:1.08; }
.walk_name{ font-family:var(--f1); font-weight:400; font-size:var(--t4); line-height:1.06; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.16em; }
.walk_line{ font-size:1.0625rem; line-height:1.5; }
.tell_say .page_reading,.heard_say .page_reading{ max-width:36em; }

/* ————————————————————————— colour ————————————————————————— */
.pause_mark{ color:var(--c2); }
.pause_dot{ fill:var(--c4); }
.prep_say{ color:var(--c2); }
.walk_choice{ color:var(--c2); }
.walk_choice:hover .walk_name,.walk_choice:focus-visible .walk_name{ text-decoration-thickness:2px; }
.walk_choice:focus-visible{ outline:2px solid var(--c2); outline-offset:4px; border-radius:.4rem; }

/* ————————————————————————— motion ————————————————————————— */
/* the fermata lands: the arc traces once on load, the dot arrives last, inside roughly 450 ms */
.pause_arc{ stroke-dasharray:100; stroke-dashoffset:100; animation:pause_trace 380ms var(--tuck) 40ms both; }
.pause_dot{ opacity:0; transform-box:fill-box; transform-origin:50% 50%; animation:pause_drop 140ms var(--tuck) 320ms both; }

@keyframes pause_trace{ to{ stroke-dashoffset:0; } }
@keyframes pause_drop{ from{ opacity:0; transform:scale(.4); } to{ opacity:1; transform:scale(1); } }

@media (prefers-reduced-motion:reduce){
  .pause_arc{ animation:none; stroke-dashoffset:0; }
  .pause_dot{ animation:none; opacity:1; transform:none; }
}
