/* Home opening: the rendered film. The rig sets itself up as the page scrolls (rain, snow, hot sun, sunset),
   and stays in the middle of the picture. Frames are drawn by js/main.js onto the canvas. */
:root { --ink-film: #1d130d; }

.hero { height: 380vh; }
.stage { background: #171210; }
#film { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: none; mask-image: none; }
.stage.tall #film { -webkit-mask-image: none; mask-image: none; }
/* rain and snow fall on their own, whether or not the page is being scrolled */
#weather { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* the film is in daylight: dark type with a light halo, and the menu bar stays solid */
.top { background: rgba(23, 18, 16, 0.92); }
.line { color: var(--ink-film); text-shadow: 0 1px 18px rgba(255, 246, 232, 0.8), 0 0 4px rgba(255, 246, 232, 0.5); }
.line-open { top: 17vh; max-width: 12ch; font-size: clamp(2rem, 4.2vw, 4.2rem); }
/* the machine stands in the middle at the end: the name sits in the sky to its left */
.line-land { top: 20vh; left: var(--pad); right: auto; max-width: 27vw; }
.line-land h1 { font-size: clamp(2.2rem, 4.4vw, 4.6rem); }
.facts { color: #6b3406; font-weight: 600; }
.cue { color: var(--ink-film); text-shadow: 0 1px 12px rgba(255, 246, 232, 0.85); }

/* what is happening on the machine, one note at a time; a dark plate keeps it readable over any sky */
.note {
  position: absolute; right: var(--pad); top: 17vh; margin: 0; max-width: 21ch; opacity: 0;
  padding: 0.75rem 1rem 0.8rem; border-right: 3px solid var(--yellow); text-align: right;
  background: rgba(23, 18, 16, 0.72); color: var(--sand);
  font-size: clamp(1.05rem, 1.6vw, 1.5rem); line-height: 1.25; font-variation-settings: "wdth" 112; font-weight: 550;
}
.note small { display: block; margin-top: 0.4rem; font-size: 0.64em; font-weight: 400; opacity: 0.85; }

.no-film .line-land { opacity: 1; }
.no-film .note { display: none; }

@media (max-aspect-ratio: 1/1) {
  .line { color: var(--sand); text-shadow: 0 1px 14px #000; }
  .facts { color: #f6c487; }
  .cue { color: var(--sand); text-shadow: 0 1px 10px #000; }
  .line-open { top: 11vh; }
  .line-land { top: 9vh; left: var(--pad); max-width: none; }
  .line-land h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .line-land .kind, .line-land .facts { text-shadow: 0 1px 10px #000, 0 0 3px #000; }
  .note { top: auto; bottom: 13vh; max-width: 22ch; }
}

/* phones: the lines over the film start clear of the menu bar */
@media (max-width: 820px) { .line-open { top: max(11vh, 5.6rem); } .line-land { top: max(9vh, 5.4rem); } }

/* the slogan in the wide lettering of the magazine cover (Michroma), capitals as there */
.line-open { font-family: "Michroma", "Archivo", sans-serif; font-weight: 400; font-variation-settings: normal; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.45; max-width: 19ch; font-size: clamp(1.2rem, 2.35vw, 2.5rem); }
@media (max-aspect-ratio: 1/1) { .line-open { font-size: clamp(1.05rem, 5.2vw, 1.6rem); max-width: 16ch; } }
.line-open { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 0 3px rgba(0, 0, 0, 0.8); }
