/* Work with me, set like a page of the same travel book as the home page: one centre line, one measure.
   The title in spaced capitals with the swelled pen rule under it, "Advising" as a hand label with the Quest Log's
   purple underline, a small painted plate (a door standing open in a clearing, its light on the path), and the one
   paragraph under it, like the intro under the home page's camp.
   The plate is plain HTML: a painted wash and its ink for the clearing, the same for the door. So it is all there
   with the script blocked. js/work-with-me.js adds the hiker walking up the path and, where there is WebGL2, stands
   the door up as a paper cutout.
   Everything here is scoped to main.wk, and overrides the older Work with me rules in style.css. */

/* ---------------------------------------------------------------------------------------------- the measure
     --M  the measure, as the home page counts it: a little over half the room beside the menu, held to what the
          window's height can show. The title is set at the size of the home page's name (--N), so the two pages
          open on the same line of type. */
main.wk { --vh: 1vh; --M: clamp(400px, min((100vw - 220px) * .52, 69 * var(--vh) - 99px), 760px); --ls: .3em;
  --N: calc(var(--M) / 15.464); --rh: calc(var(--N) * .4);
  --pa: calc(500 / 206); --dl: 46.8%; --dw: 21.6%; }                /* the plate's sheet, and where the door stands on it */
@supports (height: 1svh) { main.wk { --vh: 1svh; } }
@media (max-width: 1179px) { main.wk { --M: clamp(400px, min(30vw + 220px, 69 * var(--vh) - 141px), 540px); } }
@media (max-width: 650px) { main.wk { --M: min(100vw - 48px, 420px); --pa: calc(420 / 206); --dl: 44.286%; --dw: 25.714%; } }

/* ---------------------------------------------------------------------------------------------- the column */
main.wk { display: flex; flex-direction: column; justify-content: center; min-height: 0; }    /* (the body's column fills the window; style.css's own min-height here made the page 4px too tall) */
main.wk .c-work { padding: clamp(28px, 7vh, 90px) 20px clamp(28px, 6vh, 72px); }
main.wk.pg .c-in { padding-left: 0; padding-right: 0; }   /* (doubled class: style.css's .pg:not(.pg-trail) .c-in gutters pushed the column off the centre) */
main.wk .work-grid { display: block; max-width: none; }
main.wk .work-t { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 100%; margin: 0 auto; }
/* Centred on the window, not on the space beside the menu, as the home page is */
@media (min-width: 1180px) { main.wk .c-work, main.wk ~ .foot { padding-right: calc(20px + 220px); } }

/* the title: the home page's name, in the same face, size and spacing. (A spaced line carries its last gap after
   its last letter; that gap is taken back so the letters themselves stand on the centre line.) */
main.wk h1 { font-size: var(--N); line-height: 1.3; letter-spacing: var(--ls); text-transform: uppercase; white-space: nowrap;
  margin: 0 calc(var(--ls) * -1) 0 0; padding: 0; }
/* the swelled rule, drawn with the plates' pen (the same rule as under the name on the home page) */
main.wk h1::after { content: ''; display: block; width: calc(var(--M) * .31); height: var(--rh); margin: calc(var(--N) * .42) auto 0; position: relative; left: calc(var(--ls) * -.5);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 20' preserveAspectRatio='none'%3E%3Cpath fill='%231B242C' fill-rule='evenodd' d='M238 9.68l-32.71-1.35-13.11-0.74-19.62-0.48-13.08 0.33-6.52 0.36-10.9 0.31-4.36 0.49-2.19 0.41-0.02 2.07 2.17 0.57 4.36 0.69 6.54 0.06 17.47-0.44 8.73-0.06 19.64 0.31 32.69-1.21 6.55-0.42 4.36-0.4zM2 10.24l10.9 0.8 10.92 0.28 61.06 1.1 6.53 0.1 6.52-0.02 4.4-0.67 2.18-0.62-0.01-2.18-2.19-0.39-4.34-0.48-6.56-0.23-17.45-0.48-13.07 0.19-13.1-0.25-6.54 0.11-8.73 0.32-19.62 1.34-10.89 0.58zM119.81 17.94l8.09-7.92-8.02-7.85-7.93 7.56z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* "Advising": a hand label, as the Quest Log's scrolls label "What I do", with the same purple stroke under it */
main.wk .role { display: block; margin: calc(var(--N) * .62) 0 0; }
main.wk .rn { font-family: var(--label); font-weight: 700; font-size: clamp(21px, calc(var(--M) * .046), 27px); line-height: 1.2; }
main.wk .rn .ul__m { bottom: -.26em; }

/* ---------------------------------------------------------------------------------------------- the plate
   A measure wide, its height kept by the sheet's own proportions, so nothing moves when the pictures arrive. The
   painted pieces are laid over each other: the clearing's wash, its ink, then the door (wash, ink) at its place. */
main.wk .wk-plate { position: relative; width: min(100%, var(--M) * 1.36); aspect-ratio: var(--pa); margin: clamp(10px, 3.2vh, 34px) 0 0; pointer-events: none; user-select: none; }
main.wk .wk-plate img, main.wk .wk-plate picture { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; -webkit-user-drag: none; }
main.wk .wk-door { position: absolute; left: var(--dl); top: 24.272%; width: var(--dw); height: 57.282%; }
/* the door standing as a paper cutout (js/work-with-me.js): the flat drawing steps aside once the card is drawn */
main.wk .wk-door.is-card { visibility: hidden; }
main.wk .wk-gl { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
main.wk .wk-ink { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
main.wk .wk-ink .hk-ink { fill: var(--ink); }

/* ---------------------------------------------------------------------------------------------- the paragraph */
main.wk .lead { max-width: min(var(--M), 100%); margin: clamp(14px, 3vh, 30px) 0 0; font-size: clamp(19px, calc(var(--M) * .039), 22px); line-height: 1.55; text-wrap: balance; }

/* the links at the foot, centred under the page as on the home page */
main.wk ~ .foot { max-width: none; justify-content: center; padding-left: 20px; padding-right: 20px; }
@media (min-width: 1180px) { main.wk ~ .foot { padding-right: calc(20px + 220px); } }

@media (max-width: 650px) {
  main.wk .c-work { padding-left: 12px; padding-right: 12px; }
  main.wk .lead { font-size: 19px; }
  main.wk .wk-plate { width: 100%; }
}
/* (comment mode: the picture takes the click itself, so a note on it lands on it and not on what lies under it) */
html.rv-commenting main.wk .wk-plate { pointer-events: auto; }
