/* The wheel on the home page (#spin): the same wheel and the same script as
   /spin/, set into the home page under the hero. Loaded after mm.css and
   spin.css, and only by the home page. */

/* mm.css calls its border shorthand --border. The home page's own stylesheet
   (assets/css/styles.css) uses that name for a colour, on every element.
   So the home page keeps its meaning, and the wheel's section gets mm.css's
   back for itself. tests/spin/home.test.js checks both lines are here. */
:root { --border: var(--ink); }
.spin-home { --border: 3px solid var(--ink); }

/* What body.mm gives the wheel's own page. */
.spin-home { background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; border-bottom: 2px solid var(--ink); padding-top: 40px; padding-bottom: 60px; scroll-margin-top: 72px; }
/* The home page takes the underline off every link; here a link in a line
   of text has to look like one. */
.spin-home a:not(.mm-btn) { text-decoration: underline; text-underline-offset: 3px; }
.spin-home .spin-sound { margin-top: 16px; }

/* The page's floating hat flies onto the wheel and lands where the wheel's
   own hat sits (site.js). Until it has landed, and once it has lifted off
   again, the wheel's hat is not shown, so there is only ever one hat. */
.mm-hat-off-wheel .spin-home .spin-hat { visibility: hidden; }

@media (min-width: 768px) {
  /* In line with the home page's own sections: 1400px wide, 40px gutters. */
  .spin-home { padding: 64px max(40px, (100% - 1320px) / 2) 80px; }
}
@media (min-width: 960px) {
  .spin-home { column-gap: 72px; }
}
