/* Option 13 at the extremes of window size (bian-responsive-perf, 2 October 2026). Layout only: what the
   other option 13 stylesheets draw is unchanged; this file keeps it usable on phones and very wide screens. */

/* The two top corners belong to the studio's header (Home at the left, Data & Privacy at the right),
   which is added at publication: the page's own wordmark stands in the middle of the top edge. */
.site-header{justify-content:center}

/* Every link and button can be hit with a finger: 44 px at least, without moving what is drawn. */
.site-header .wordmark{display:inline-block;padding:14px 12px;margin:-14px -12px}
.wardrobe-copy .chapter-source a{display:inline-block;padding:12px 0;margin:-12px 0}
.film-consent a{display:inline-block;padding:12px 0;margin:-12px 0}

/* A source link stands alone on its line: known by its place, so no underline at rest; a hairline
   hangs clear of the words on hover and keyboard focus (phase B, T7). Links are at least 14 px (T3). */
.wardrobe-copy .chapter-source{font-size:15px}
.wardrobe-copy .chapter-source a{text-decoration:none}
.wardrobe-copy .chapter-source a:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
@media (hover:hover){.wardrobe-copy .chapter-source a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}}

/* On a phone or a tablet (any touch screen, upright or on its side) and in any narrow window no running
   text is smaller than 16 px. */
@media (max-width:760px),(pointer:coarse){
  .site-header .wordmark{font-size:16px}
  .wardrobe-copy .chapter-source{font-size:16px;line-height:1.6}
  .film-consent,.film-credit{font-size:16px;line-height:1.45}
}
/* (Load film is 17 px on a tablet already: only phones raise it.) */
@media (max-width:760px),(max-height:500px) and (pointer:coarse){
  .film-start .load-film{font-size:16px}
}

/* Beyond 1920 × 1080 the words grow with the window's shorter side, on one unit with the reading
   column, the opening round it and the study faces (wardrobe.js and mask-procession.js grow those by
   the same factor, min(width / 1920, height / 1080)): at 3440 × 1440 everything is 4/3 of its 1920
   size, and a line holds the same words (phase B, S1). Each value is its 1920 size × that factor. */
@media (min-width:1921px) and (min-height:1081px){
  .site-header .wordmark{font-size:min(.78125vw,1.38889vh)}
  .wardrobe-copy{max-width:min(25vw,44.4444vh)}
  .wardrobe-copy h2{font-size:min(3.33333vw,5.92593vh);margin-bottom:min(1.45833vw,2.59259vh)}
  .wardrobe-copy p{font-size:min(.98958vw,1.75926vh);margin-bottom:min(1.14583vw,2.03704vh)}
  .wardrobe-copy .chapter-source{font-size:min(.78125vw,1.38889vh);margin-top:min(1.45833vw,2.59259vh)}
  .film-start .load-film{font-size:min(.88542vw,1.57407vh)}
  .film-consent,.film-credit{font-size:min(.72917vw,1.2963vh)}
  /* the camera invitation under the face: its card, words, buttons and gaps (phase B, round 2) */
  #camera-dialog{width:min(21.3542vw,37.963vh);padding:min(1.5625vw,2.77778vh) min(1.45833vw,2.59259vh) min(1.14583vw,2.03704vh)}
  #camera-dialog h2{font-size:min(1.77083vw,3.14815vh);margin-bottom:min(.72917vw,1.2963vh);padding-right:min(1.35417vw,2.40741vh)}
  #camera-dialog #gesture-instruction{font-size:min(.83333vw,1.48148vh);margin-bottom:min(.625vw,1.11111vh)}
  #camera-dialog #camera-note,#camera-dialog .interaction-status{font-size:min(.67708vw,1.2037vh)}
  #camera-dialog #camera-note,#camera-dialog .interaction-status:not(:empty){margin-bottom:min(1.14583vw,2.03704vh)}
  #camera-dialog .mode-controls{gap:min(.52083vw,.92593vh)}
  #camera-dialog .camera-button,#camera-dialog .text-button{font-size:min(.78125vw,1.38889vh)}
  #camera-dialog .camera-button{min-height:min(2.29167vw,4.07407vh)}
  #camera-dialog .text-button{min-height:min(1.875vw,3.33333vh)}
  #camera-dialog .dialog-close{width:min(2.29167vw,4.07407vh);height:min(2.29167vw,4.07407vh);min-width:0;top:min(.3125vw,.55556vh);right:min(.3125vw,.55556vh);font-size:min(1.66667vw,2.96296vh)}
}
/* the moving study faces only (the still ones of reduced motion and no JavaScript keep their box) */
@media (min-width:1921px) and (min-height:1081px) and (prefers-reduced-motion:no-preference) and (scripting:enabled){
  .wardrobe-faces{height:clamp(460px,70svh,min(41.6667vw,74.0741vh))}
}

/* A phone on its side: the face fills the height of the window. The two round buttons stand beside it,
   not on its chin, and the wordmark keeps clear of the cut-out letters. */
@media (max-height:500px) and (min-aspect-ratio:3/2){
  .site-header{padding-top:12px}
  .hero-copy{left:calc(50% + 57svh);bottom:auto;top:54svh;transform:translateY(-50%);flex-direction:column}
}
