/* The first screen: the oblique sheet, lifted contours (hero A, planning/round-4/hero-a.md). Pairs with hero.js, which draws on two canvases inside .hero-art; colours come from the site's tokens. Loaded after style.css and sheet.css.
   The drawing is the background of the whole first screen at every width, the words over it; the hero spans the window on a wide screen (sheet.css), its words keeping their place on the sheet. */
.hero{display:block}
.hero .hero-art{position:absolute;inset:0;z-index:1}
.hero .hero-words{z-index:3}
.sh-host canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.sh-host .sh-static{z-index:1}
.sh-host .sh-motion{z-index:2}

/* the hero's sea is the chart's first water: the chart's strip of land above its own shoreline is that same sea, in the chart's first band, and the shore was crossed in the first screen, so the chart's own shoreline is hidden. The water near the top is at full strength from the start (it used to fade in as the pen passed the shore), so the hero's --w1 meets the chart's --w1 with no seam. */
.chart .land{fill:var(--w1)}
.chart .shoreline,.chart .wet,.chart .shorel{visibility:hidden}
.chart .water{opacity:1}

/* a tablet held upright below the wide breakpoint (round 6): the diagonal drawing, scaled with the width, and the words a little
   larger, their block capped as on a wide screen */
@media (min-width:600px) and (max-width:959px){
  .hero-words{padding:max(64px,9svh) 40px 0 44px;max-width:44rem}
  .hero h1{font-size:52px}
  .hero .lede{font-size:19px}
}

/* "out" in the headline is the route's ochre, in both themes, so the word matches the line it leads to */
.hero h1 .hero-out{color:var(--route)}
/* the title breaks deliberately after "the" (a <br> in index.html), at every width, never into a third line */
.hero h1{max-width:none}
@media (max-width:340px){.hero h1{font-size:36px}} /* 40 px fits at 360 */
/* the river's last stretch in SVG (hero.js riverSVG), over both canvases */
.sh-host .sh-river{position:absolute;left:0;top:0;z-index:2;pointer-events:none;overflow:visible;will-change:transform}
