:root { color-scheme: dark; --paper: #f4e9d8; --glow: #ffc98a; --edge: max(22px, env(safe-area-inset-left)); --dial: 196px; }
* { box-sizing: border-box; }
html { background: #000; }
body { margin: 0; overflow: hidden; touch-action: none; overscroll-behavior: none; color: var(--paper); font: 300 18px/1.35 'Barlow Condensed', 'DIN Condensed', sans-serif; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; }
#picture { position: fixed; inset: 0; width: 100vw; height: 100dvh; }
#shade { position: fixed; inset: auto 0 0; height: 480px; pointer-events: none; background: linear-gradient(transparent, #0008 40%, #000c 66%, #000 92%); transition: opacity 1.6s; }
header { position: fixed; z-index: 3; inset: 0 0 auto; padding: max(14px, env(safe-area-inset-top)) var(--edge) 0; display: flex; justify-content: space-between; align-items: center; text-shadow: 0 0 18px #000; }
h1 { margin: 0; font-weight: 300; font-size: 20px; }
a, button { color: inherit; font: inherit; text-decoration: none; background: none; border: 0; padding: 12px 0; min-height: 44px; cursor: pointer; transition: color .25s; }
a:hover, button:hover { color: var(--glow); }
nav { display: flex; gap: 24px; }
header a:not([hidden]) { display: inline-block; }
#hint { position: fixed; z-index: 4; inset: 0; margin: auto; width: 260px; height: 80px; font-size: clamp(24px, 2.4vw, 34px); text-shadow: 0 0 30px #000, 0 0 8px #000; transition: opacity 1s; }
#song { position: fixed; z-index: 4; left: var(--edge); right: var(--edge); bottom: calc(var(--dial) + 6px); opacity: 0; visibility: hidden; pointer-events: none; }
#song.on { visibility: visible; }
#stay { width: min(460px, 100vw - 32px); max-width: none; padding: 26px 28px 14px; color: var(--paper); background: #0b0806f2; border: 1px solid #ffc98a40; border-radius: 3px; box-shadow: 0 0 120px #ff963e2e, 0 30px 90px #000; }
#stay::backdrop { background: #0006; }
#stay h2 { font-size: 46px; outline: none; }
#stay p { margin: 10px 0 14px; color: #f4e9d8cc; font-size: 19px; }
#stayrow { display: flex; border-bottom: 1px solid #ffc98a80; }
#stayrow[hidden] { display: none; }
#email { flex: 1; min-width: 0; min-height: 48px; padding: 0; border: 0; outline: 0; background: none; color: inherit; font: inherit; font-size: 21px; user-select: text; -webkit-user-select: text; }
#email::placeholder { color: #f4e9d880; }
#stayrow:focus-within { border-color: var(--glow); box-shadow: 0 1px 0 var(--glow); }
#staysend { color: var(--glow); padding-inline: 14px 0; }
#website { position: absolute; left: -9999px; }
#stay #staysaid { min-height: 1.4em; margin: 10px 0 0; font-size: 17px; }
#stayclose { color: #f4e9d8b0; }
#song.on button, #song.on a { pointer-events: auto; }
h2 { margin: 0; font-weight: 200; font-size: clamp(44px, 7.6vw, 112px); line-height: .94; letter-spacing: -.01em; text-wrap: balance; }
#line { margin: 10px 0 0; font-size: clamp(18px, 1.7vw, 23px); color: #f4e9d8cc; max-width: 34em; }
#controls { display: flex; flex-wrap: wrap; gap: 0 26px; align-items: center; margin-top: 6px; color: #f4e9d8b8; }
#links { display: contents; }
#time { margin-left: auto; font-variant-numeric: tabular-nums; color: #f4e9d890; }
#same { display: flex; gap: 20px; pointer-events: auto; }
#same[hidden] { display: none; }
#same button { color: #f4e9d878; }
#same button[aria-pressed=true] { color: var(--glow); }
#said { position: fixed; z-index: 5; top: 64px; left: var(--edge); margin: 0; opacity: 0; transition: opacity .4s; text-shadow: 0 0 14px #000; }
#said.on { opacity: 1; }
#dial { position: fixed; z-index: 3; left: 0; bottom: 0; width: 100vw; height: var(--dial); cursor: grab; transition: opacity 1.6s; outline: none; }
#dial:active { cursor: grabbing; }
#dial:focus-visible { box-shadow: inset 0 1px 0 var(--glow); }
button:focus-visible, a:focus-visible { outline: 1px solid var(--glow); outline-offset: 4px; }
/* Left alone, everything but the film steps back. */
header, #song { transition: opacity 1.6s; }
body.alone { cursor: none; }
body.alone header, body.alone #song { opacity: 0 !important; }
body.alone #dial, body.alone #shade { opacity: 0; }
noscript { position: fixed; inset: 0; display: grid; place-content: center; }
@media (max-width: 560px) { :root { --dial: 178px; } #controls { gap: 0 20px; } }
@media (max-height: 520px) { :root { --dial: 150px; } h2 { font-size: 44px; } #line { display: none; } #hint { inset: 0 0 110px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
#controls button, #controls a, #same button { padding-inline: 10px; margin-inline: -10px; }
