/* Class — student page. Modernist B/W; the stage shows the teacher's content full frame. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-latin-700-normal.woff2) format("woff2"); }
:root {
  --bg: #f5f5f3; --bg-alt: #ebebe8; --raised: #fafaf9; --hover: #e3e3df; --ink: #1a1a1a; --ink-muted: #5a5a58;
  --line-control: #85857f; --inverse: #1a1a1a; --on-inverse: #f5f5f3; --inverse-hover: #333333; --focus: #1a1a1a;
  --stage: #161616;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161616; --bg-alt: #202020; --raised: #1c1c1c; --hover: #2a2a2a; --ink: #ededeb; --ink-muted: #a6a6a3; --line-control: #767673; --inverse: #ededeb; --on-inverse: #161616; --inverse-hover: #cfcfcc; --focus: #ededeb; }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: var(--bg); color: var(--ink); font: 400 16px/24px "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.stage { position: fixed; inset: 0; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fafaf9; }
.stage.is-slides, .stage.is-mobile { background: var(--stage); }
.stage.is-mobile iframe { right: auto; bottom: auto; border-radius: 24px; }
.stage .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: var(--stage); }
.stage video.slide { pointer-events: none; }

.msg { position: fixed; inset: 0; display: grid; place-content: center; padding: 32px; text-align: left; pointer-events: none; }
.msg[hidden] { display: none; }
.msg__title { margin: 0 0 8px; font-size: 32px; line-height: 40px; font-weight: 600; max-width: 24ch; }
.msg__text { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 48ch; }
.msg.is-small { inset: auto 16px 16px auto; place-content: end; padding: 8px 12px; background: var(--inverse); color: var(--on-inverse); border-radius: 4px; }
.msg.is-small .msg__title { font-size: 14px; line-height: 24px; margin: 0; }
.msg.is-small .msg__text { display: none; }

.ctrl { position: fixed; right: 16px; bottom: 16px; display: flex; z-index: 10; transition: opacity 200ms cubic-bezier(0, 0, .2, 1); }
.ctrl.is-idle { opacity: 0; pointer-events: none; }
/* sound and full screen: two square icon buttons joined into one control */
.ctrl__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-control); border-radius: 4px; background: var(--inverse); color: var(--on-inverse); cursor: pointer; }
.ctrl__btn:not([hidden]) + .ctrl__btn:not([hidden]) { border-left-width: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ctrl__btn:not([hidden]):has(+ .ctrl__btn:not([hidden])) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ctrl__btn:hover { background: var(--inverse-hover); }
.ctrl__btn:focus-visible { position: relative; z-index: 1; }
.ctrl__btn svg { width: 20px; height: 20px; flex: none; }
.ctrl__btn .if-off { display: none; }
.ctrl__btn.is-off .if-on { display: none; }
.ctrl__btn.is-off .if-off { display: block; }
.ctrl__btn:disabled { cursor: default; }
.ctrl__btn:disabled svg { opacity: .5; }
/* the browser blocked sound until a click: the sound button stands out until then */
.ctrl__btn.is-prompt { position: relative; z-index: 1; animation: ct-call 1.6s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes ct-call { 0% { box-shadow: 0 0 0 0 var(--inverse); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .ctrl__btn.is-prompt { animation: none; } }

.join { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: var(--bg); border-top: 8px solid var(--ink); }
.join__box { width: min(440px, 100%); display: grid; gap: 24px; }
.join__label { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.join__title { margin: -16px 0 0; font-size: 56px; line-height: 64px; font-weight: 700; letter-spacing: -0.02em; }
.join__field { display: grid; gap: 8px; }
.join__field label { font-size: 14px; line-height: 16px; font-weight: 600; }
.join__field input { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line-control); border-radius: 4px; background: var(--raised); color: var(--ink); font: inherit; font-size: 16px; }
.join__field input:hover { border-color: var(--ink); }
.join__field input:focus { outline: 0; border: 2px solid var(--focus); padding: 7px 11px; }
.join__btn { justify-self: start; min-height: 48px; padding: 0 24px; border: 1px solid var(--inverse); border-radius: 4px; background: var(--inverse); color: var(--on-inverse); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.join__btn:hover { background: var(--inverse-hover); }
@media (max-width: 480px) { .join__title { font-size: 40px; line-height: 48px; } .msg__title { font-size: 24px; line-height: 32px; } }
/* the teacher's drawings over the slide */
.stage .ink { position: absolute; z-index: 1; pointer-events: none; overflow: visible; }

