/* The page a viewer sees (pages.mjs watch()): the maker's video on Scenlit's ink, quiet. The front page's look, held
   back: blue-black ground, paper type in Funnel Display and Funnel Sans, times in Fragment Mono. The maker's colour is
   only on their mark and their button (--brand, set on .viewer); yellow is the step now playing. */
@font-face { font-family: "Funnel Display"; src: url(/fonts/funnel-display.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url(/fonts/funnel-sans.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url(/fonts/fragment-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }
:root {
  --ink-bg: #0d1117; --deep: #0a0d12; --paper: #ecebe6; --soft: #8b93a3; --dim: #5d6472; --rule: #1c2230; --line: #2a3140; --lit: #ffd23f;
  --display: "Funnel Display", system-ui, sans-serif; --sans: "Funnel Sans", system-ui, -apple-system, sans-serif; --mono: "Fragment Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink-bg); color: var(--paper); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, 4vw); padding-right: max(16px, 4vw); }

/* the maker's own bar: what only they see on their video's page */
.mine { background: var(--deep); border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--soft); }
.mine .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-block: 10px; }
.mine .wrap > span:last-child { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mine a { margin-right: 8px; color: var(--paper); font-weight: 600; text-decoration: underline; text-decoration-color: rgb(236 235 230 / .35); text-underline-offset: .3em; }
.mine a:hover { text-decoration-color: var(--paper); }
.mine .btn { border: 1.5px solid var(--line); background: none; border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 14px; color: var(--paper); }
.mine .btn:hover { border-color: var(--soft); }

/* the video, its name and its steps */
.viewer { max-width: 1120px; margin: 0 auto; padding: 26px max(16px, 4vw) 48px; }
.viewer.vertical, .viewer.square { max-width: 760px; }
.vtop { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.maker { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); letter-spacing: -.02em; }
.maker i { width: 24px; height: 24px; border-radius: 7px; background: var(--brand); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.cta { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.cta:hover { filter: brightness(1.08); }
.vid { margin-top: 20px; }
.vid iframe { display: block; width: 100%; border: 0; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px var(--rule), 0 50px 110px -40px rgb(0 0 0 / .9); }
.viewer.vertical .vid iframe, .viewer.square .vid iframe { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; }
.viewer h1 { margin-top: 30px; font: 800 clamp(28px, 3.4vw, 44px)/1.08 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.vsteps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.vsteps button { display: inline-flex; align-items: baseline; gap: 10px; border: 1.5px solid var(--line); background: none; border-radius: 999px; padding: 6px 16px 6px 14px; text-align: left; font-size: 15px; color: var(--paper); }
.vsteps button:hover { border-color: var(--soft); }
.vsteps b { font-weight: 400; font-size: 13px; color: var(--dim); }
.vsteps button.now { background: var(--paper); border-color: var(--paper); color: var(--ink-bg); }
.vsteps .now b { color: #6b5a12; }
.vfoot { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--soft); }
.vfoot a { text-decoration: none; }
.vfoot a:hover { color: var(--paper); }
.vfoot form { display: inline; }
