/* The homepage on a desktop or laptop: the booklet turned on its side.

   The 9 Nov desktop (../2026-11-09-site/wide.css) put the phone's parts in
   two columns inside a 1180px strip, at a phone's type sizes. This one
   treats each screen as one landscape page of the booklet:
   - the page fills the screen (48px margins), not a strip in the middle;
   - everything is sized in one unit, --u, so a page is the same picture on
     a small laptop and a big monitor, and the type is big;
   - each page reads left to right, top to bottom, in the phone's order.

   Phones never match these rules (900px+ and wider than tall only), so
   the phone layout is exactly the screens' own templates. Upright tablets
   keep the 9 Nov "big phone" layout, copied unchanged at the bottom. */

/* the rule row's arrows and dots (rows.js): not shown on a phone or an
   upright tablet, where the cards swipe */
.t .rprev,.t .rnext,.t .rdots{display:none}
.t .rprev,.t .rnext{place-items:center;padding:0;border:var(--line);border-radius:50%;background:#fff;color:var(--ink);box-shadow:2px 2px 0 var(--ink);cursor:pointer}
.t .rprev svg,.t .rnext svg{width:44%;height:44%}
.t .rprev:focus-visible,.t .rnext:focus-visible{outline:3px solid var(--ink);outline-offset:2px}

@media (min-width:900px) and (orientation:landscape){
  /* the page unit: a page is 106 units wide between its margins and
     about 62 tall. The unit follows the width, or the height on a short,
     wide screen, so a page is the same picture at every size and always
     fits in one screen */
  :root{--edge:48px;--pagew:106;--u:min(calc((100vw - var(--edge)*2)/var(--pagew)),1.6svh,18px)}
  /* body text, shared by the pages */
  :root{--body:max(17px,calc(var(--u)*1.75))}

  /* ============================================================ cover:
     the scene edge to edge (a wide screen is the shape of the TV room),
     the logo on the wall top left, the cover's panel along the bottom */
  .cover{height:100svh;min-height:560px;max-height:none}
  #hero{--frame:desk}
  .logo{left:0;right:auto;margin:0;width:calc(var(--u)*30);max-width:none;padding:calc(var(--u)*2.6) 0 0 var(--edge)}
  .cover .bottom{grid-template-columns:1fr auto;align-items:center;gap:calc(var(--u)*3);padding:calc(var(--u)*2.1) var(--edge) calc(var(--u)*2.3)}
  .tagline{font-size:calc(var(--u)*3.5);line-height:1.1;letter-spacing:-.01em}
  .cover .bottom .row{min-width:calc(var(--u)*34);gap:calc(var(--u)*1.4)}

  /* The way on (the cover's own styles say why): on a desktop the yellow
     See how it works button is a pill in the middle of the screen, just
     above the panel's line, and Get the toolkit, the quiet white button,
     stays in the panel beside the tagline. */
  .cover .bottom{position:relative}
  .cover .bottom .row{min-width:calc(var(--u)*28)}
  .cover .down{position:absolute;z-index:3;left:50%;bottom:calc(100% + var(--u)*1.4);flex:none;gap:calc(var(--u)*1);padding:calc(var(--u)*1.1) calc(var(--u)*1.7) calc(var(--u)*1.1) calc(var(--u)*2.3);border-radius:999px;font-size:calc(var(--u)*2.2);transform:translate3d(-50%,0,0)}
  .cover .down svg{width:calc(var(--u)*2.5);height:calc(var(--u)*2.5)}
  .cover .cta{flex:1;font-size:calc(var(--u)*1.9);padding:calc(var(--u)*1) calc(var(--u)*1.8)}

  /* the footer: the page's width, as on the rulebook and About pages
     (pages.css) */
  .sitefoot .in{max-width:calc(var(--u)*var(--pagew) + var(--edge)*2);padding:calc(var(--u)*2.6) var(--edge);gap:8px calc(var(--u)*3.4)}
  .sitefoot .name{width:max(170px,calc(var(--u)*14.5))}
  .sitefoot ul{gap:0 calc(var(--u)*2.8)}
  .sitefoot a{font-size:max(16px,calc(var(--u)*1.45))}
  .sitefoot p{font-size:max(14px,calc(var(--u)*1.15))}

  /* ====================================================== the question:
     two questions down the left, their answers down the right.
        the big question      | it doesn't yet have an answer
        the boy's question    | YES
     Read across and down, it's the phone's order, word for word. */
  .q{padding:calc(var(--u)*4.2) var(--edge) calc(var(--u)*2.2)}
  .q .in{max-width:calc(var(--u)*var(--pagew));margin:0 auto calc(var(--u)*2);display:grid;grid-template-columns:minmax(0,58fr) minmax(0,48fr);column-gap:calc(var(--u)*5.5);row-gap:calc(var(--u)*4.4);align-items:start}
  .q .q1{display:contents}
  .q .big{margin:0;font-size:calc(var(--u)*4.25);line-height:1.02;padding:calc(var(--u)*2.4) calc(var(--u)*2.8) calc(var(--u)*2.8);box-shadow:6px 6px 0 var(--ink)}
  .q .say{font-size:calc(var(--u)*2.7);line-height:1.25}
  .q .q1 .say{align-self:center;max-width:calc(var(--u)*32);text-wrap:balance}
  .q .q2{display:flex;flex-direction:column;gap:calc(var(--u)*1.6)}
  .q .st img{height:calc(var(--u)*23);margin-left:calc(var(--u)*1.2)}
  .q .st p{font-size:calc(var(--u)*4.1);line-height:1.08;padding:calc(var(--u)*2) calc(var(--u)*3) calc(var(--u)*2.4) calc(var(--u)*2.2)}
  .q .ans{margin:0}
  .q .yes{max-width:none;width:100%;margin-top:calc(var(--u)*1.2);font-size:calc(var(--u)*14)}
  .q .down{width:calc(var(--u)*5);height:calc(var(--u)*5);min-width:56px;min-height:56px}

  /* ======================================================= the toolkit:
     the words on the left, the cartoon beside them in a parts panel, and
     the rule cards in a row under both: three across the page and a
     sliver of the fourth past the page's edge, as on a phone, so you can
     tell there are more. A round arrow on the edge of the last card steps
     through them. The way on is at the bottom of the screen, in the
     middle, where the question screen's is (on a phone it sits on the
     cartoon's table, because there the cartoon is the bottom). */
  .t{--gut:max(var(--edge),calc((100vw - var(--u)*var(--pagew))/2));display:grid;grid-template-columns:var(--gut) minmax(0,47fr) calc(var(--u)*5) minmax(0,54fr) var(--gut);grid-template-rows:1fr auto auto auto 1fr auto;row-gap:0;padding:calc(var(--u)*1.8) 0 calc(var(--u)*1.5)}
  .t .in{display:contents}
  .t .t1{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:calc(var(--u)*1.5)}
  .t .big{font-size:calc(var(--u)*3.7);line-height:1.06;margin-bottom:calc(var(--u)*.6)}
  .t p{font-size:var(--body);line-height:1.4}
  .t .foot{grid-column:2;grid-row:3;font-size:max(14px,calc(var(--u)*1.25));margin-top:calc(var(--u)*1.6)}
  .t .scene{grid-column:4;grid-row:2/4;align-self:center;margin:0;padding-top:calc(var(--u)*1.4 + 19%);border:var(--line);border-radius:8px;background:var(--panel);overflow:hidden}
  .t .tstage .down{display:none}
  .t > .down{display:grid;grid-column:1/-1;grid-row:6;justify-self:center;margin-top:calc(var(--u)*1.1);width:calc(var(--u)*4.6);height:calc(var(--u)*4.6);min-width:50px;min-height:50px}
  .t .rules{--peek:min(var(--gut),calc(var(--u)*4.4));grid-column:2/6;grid-row:4;margin:calc(var(--u)*1.5) calc(var(--gut) - var(--peek)) 0 0;padding:0 var(--peek) 5px 0;gap:calc(var(--u)*2);scroll-padding-inline:0;scroll-behavior:smooth}
  .t .rules li{flex:0 0 calc((100% - var(--u)*4)/3);font-size:max(16px,calc(var(--u)*1.6));line-height:1.22;padding:calc(var(--u)*1.6) calc(var(--u)*1.9) calc(var(--u)*1.9);box-shadow:4px 4px 0 var(--ink)}
  .t .rid{font-size:max(14px,calc(var(--u)*1.15));margin-bottom:calc(var(--u)*1)}
  /* the row's arrows: the booklet's round arrow, on its side, over the
     ends of the row. An arrow with nowhere to go isn't shown. */
  .t .rprev,.t .rnext{display:grid;grid-row:4;align-self:center;z-index:2;margin-top:calc(var(--u)*1.5);width:calc(var(--u)*4.6);height:calc(var(--u)*4.6);min-width:50px;min-height:50px}
  /* each sits mostly in the margin, lapping a little over the end card */
  .t .rprev,.t .rnext{--lap:calc(var(--u)*1.1 - max(var(--u)*4.6,50px))}
  .t .rprev{grid-column:2;justify-self:start;margin-left:var(--lap)}
  .t .rnext{grid-column:4;justify-self:end;margin-right:var(--lap)}
  .t .rprev:disabled,.t .rnext:disabled{visibility:hidden}
  /* rows.js needs its dots laid out to work; they aren't shown */
  .t .rdots{display:flex;position:absolute;visibility:hidden;pointer-events:none}

  /* ================================================== getting started:
     the heading and the switch, then the steps as a booklet spread: the
     four things to set up on the left, the one thing to paste on the right */
  .g{display:flex;flex-direction:column;justify-content:center;padding:calc(var(--u)*3) var(--edge) calc(var(--u)*2.6)}
  .g .in{max-width:calc(var(--u)*var(--pagew));padding:0;gap:calc(var(--u)*2.2)}
  .g h2{font-size:calc(var(--u)*4.6)}
  .g .seg label{font-size:max(17px,calc(var(--u)*1.6));padding:calc(var(--u)*1.1) calc(var(--u)*2)}
  .g ol{display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);column-gap:calc(var(--u)*6);row-gap:calc(var(--u)*2.7);align-items:start;margin-top:calc(var(--u)*1.6)}
  .g p,.g ol > li{font-size:max(18px,calc(var(--u)*1.95));line-height:1.32}
  .g ol > li{grid-column:1;padding-left:calc(var(--u)*5.4);min-height:calc(var(--u)*3.8)}
  .g ol > li::before{width:calc(var(--u)*3.8);height:calc(var(--u)*3.8);top:calc(var(--u)*-.55);font-size:calc(var(--u)*2.1);box-shadow:3px 3px 0 var(--ink)}
  .g ol > li:nth-child(5){grid-column:2;grid-row:1/span 4}
  .g .prompt{margin-top:calc(var(--u)*1.8);padding:calc(var(--u)*2) calc(var(--u)*2.2) calc(var(--u)*2.2);box-shadow:5px 5px 0 var(--ink)}
  .g .prompt code{font-size:calc(var(--u)*2.15);line-height:1.4}
  .g .copy{margin-top:calc(var(--u)*1.8);font-size:max(17px,calc(var(--u)*1.8));padding:calc(var(--u)*1.1) calc(var(--u)*2.6);box-shadow:3px 3px 0 var(--ink)}
  .g .after{margin-top:calc(var(--u)*1.8)}
  .g .more{font-size:max(18px,calc(var(--u)*2));margin-top:calc(var(--u)*1)}
}

/* ======================================================== upright tablets:
   a big phone (9 Nov, unchanged from ../2026-11-09-site/wide.css) */
@media (min-width:700px) and (orientation:portrait){
  .cover{height:100svh;max-height:none}
  .logo{max-width:min(720px,84vw);padding-top:20px}
  .cover .bottom{padding:22px 40px 26px;gap:16px}
  .tagline{font-size:clamp(28px,4.4vw,44px)}
  .cover .row{gap:14px}
  .cover .down{font-size:clamp(24px,3.2vw,32px);padding:16px 18px;gap:12px}
  .cover .down svg{width:28px;height:28px}
  .cover .cta{font-size:clamp(19px,2.5vw,25px);padding:18px 18px}
  #hero{--frame:tall}

  .q{--s:min(.75vw,.5svh,7px);padding-left:48px;padding-right:48px}
  .q .in{max-width:none;margin:auto}
  .q .say{font-size:calc(var(--s)*5)}

  .t{--s:min(.75vw,.44svh,7px)}
  .t .in{max-width:none;padding-left:48px;padding-right:48px}
  .t p{font-size:19px}
  .t .foot{font-size:16px}
  .t .rules{margin-left:-48px;margin-right:-48px;padding-left:48px;padding-right:48px;scroll-padding-inline:48px}
  .t .rules li{flex-basis:44%;font-size:18px}
  .t .rid{font-size:16px}
  .t .scene{padding-top:calc(var(--s)*4 + 19%)}

  .g{display:flex;flex-direction:column;justify-content:center;padding-block:48px}
  .g .in{max-width:none;padding-left:48px;padding-right:48px;gap:24px}
  .g h2{font-size:40px}
  .g p,.g ol > li{font-size:19px}
  .g ol{gap:28px}
  .g ol > li{padding-left:58px;min-height:40px}
  .g ol > li::before{width:40px;height:40px;font-size:22px}
  .g .seg label{font-size:20px;padding:14px 26px}
  .g .prompt{padding:16px 18px}
  .g .prompt code{font-size:19px}
  .g .copy{font-size:20px;padding:14px 28px}
  .g .more{font-size:19px}
}


