/* before_you_visit.css — layout, then type, then colour, then motion */
.byv_opening{ display:grid; grid-template-columns:1fr; gap:var(--s5); padding-block:var(--s5) var(--s6); align-items:center; }
.byv_head{ display:flex; flex-direction:column; align-items:flex-start; }
.byv_mark{ margin-bottom:var(--s2); }
.byv_prompts,.byv_line,.byv_dryer,.byv_handoff{ padding-block:var(--s6); }
.byv_blob{ padding:var(--s5) 0; }

/* the opening print: picture and caption share one column and one width */
.byv_paws{ display:flex; flex-direction:column; align-items:stretch; }
.byv_paws_frame{ display:block; width:100%; }
.byv_paws .print_caption{ max-width:100%; }

/* the note: one flowing piece of advice, not three placed lines */
.byv_note{ margin:0; max-width:34em; }

/* the spoken paragraph: reading size, a normal measure */
.byv_sentence{ margin:0; max-width:40em; }
.byv_line h2{ max-width:24ch; margin-bottom:var(--s3); }

.byv_dryer{ display:grid; grid-template-columns:1fr; gap:var(--s5); align-items:start; }
.byv_comb{ max-width:26rem; }
.byv_handoff{ display:flex; flex-direction:column; align-items:flex-start; }
.byv_acts{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--s3) var(--s5); }
.byv_go,.byv_call{ min-height:2.75rem; display:inline-flex; align-items:center; }
@media (min-width:720px){
  .byv_opening{ grid-template-columns:repeat(6,1fr); column-gap:var(--s4); min-height:calc(100svh - 5.5rem); }
  .byv_paws{ grid-column:1/4; }
  .byv_head{ grid-column:4/7; }
  .byv_blob{ display:grid; grid-template-columns:repeat(6,1fr); column-gap:var(--s4); align-items:start; padding:var(--s5) var(--s5) var(--s5) var(--s4); }
  .byv_blob h2{ grid-column:1/3; margin-bottom:0; }
  .byv_note{ grid-column:3/7; max-width:38em; }
  .byv_line{ display:block; }
  .byv_line h2{ max-width:22ch; }
  .byv_dryer{ grid-template-columns:repeat(6,1fr); column-gap:var(--s4); }
  .byv_text{ grid-column:1/5; }
  .byv_comb{ grid-column:5/7; }
}
.byv_head h1{ font-size:clamp(2.125rem,3.6vw,2.625rem); }
.byv_note{ font-family:var(--f1); font-size:clamp(1.1875rem,1.55vw,1.5rem); line-height:1.55; }
.byv_sentence{ font-family:var(--f1); font-size:clamp(1.1875rem,1.6vw,1.375rem); line-height:1.6; }
.byv_prompts h2{ margin-bottom:var(--s4); }
.byv_mark_small{ width:2.6em; height:1.87em; color:var(--c2); margin-bottom:var(--s2); }
.byv_arc{ stroke-dasharray:1; stroke-dashoffset:0; }
.js [data-byv-word]{ color:rgba(40,23,67,.7); }
.js [data-byv-word].cbl-lit-on{ color:var(--c2); }
.byv_dot{ opacity:1; }
@media (prefers-reduced-motion:no-preference){
  .byv_arc{ animation:byv_draw 450ms var(--tuck) both; }
  .byv_dot{ animation:byv_land 160ms linear 450ms both; }
  [data-byv-word]{ transition:color 240ms var(--tuck); }
}
@keyframes byv_draw{ from{ stroke-dashoffset:1; } to{ stroke-dashoffset:0; } }
@keyframes byv_land{ from{ opacity:0; } to{ opacity:1; } }
@media (prefers-reduced-motion:reduce){
  .js [data-byv-word]{ color:var(--c2); }
}
