:root { color-scheme: dark; font-family: Georgia, serif; color: rgb(248, 233, 210); background: rgb(8, 13, 32); }
* { box-sizing: border-box; }
body { margin: 0px; overflow: hidden; }
.viewer { height: 100dvh; display: grid; grid-template-rows: auto minmax(0px, 1fr) auto; background: radial-gradient(at center bottom, rgb(33, 29, 56), rgb(8, 13, 32) 65%); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left)); min-height: 58px; border-bottom: 1px solid rgba(211, 180, 122, 0.208); }
a { color: rgb(245, 216, 155); text-underline-offset: 4px; }
.toolbar a { text-decoration: none; font-size: 15px; }
.brand { font-size: 16px; color: rgb(216, 196, 161); text-align: center; }
button { font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 15px; border: 1px solid rgba(211, 180, 122, 0.533); border-radius: 28px; background: rgba(203, 166, 100, 0.07); color: rgb(245, 216, 155); padding: 9px 16px; cursor: pointer; }
button:hover { background: rgba(203, 166, 100, 0.19); }
a:focus-visible, button:focus-visible, audio:focus-visible { outline: rgb(255, 227, 167) solid 2px; outline-offset: 4px; }
[hidden] { display: none !important; }
.artwork { margin: 0px; min-height: 0px; min-width: 0px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgb(5, 9, 22); }
.artwork img { display: block; width: 100%; height: 100%; object-fit: contain; }
.artwork p { max-width: 34em; padding: 24px; line-height: 1.7; }
.listening { padding: 12px max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); text-align: center; }
h1 { font-size: 18px; line-height: 1.4; font-weight: normal; margin: 0px 0px 8px; color: rgb(255, 228, 174); }
audio { display: block; width: min(100%, 740px); height: 44px; margin: 0px auto; accent-color: rgb(230, 195, 138); }
.feedback { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; line-height: 1.4; min-height: 24px; margin-top: 7px; color: rgb(216, 196, 161); }
.feedback p { margin: 0px; }
.feedback p:empty { display: none; }
.feedback a { font-size: 12px; }
.feedback button { font-size: 13px; padding: 5px 12px; }
@media (max-width: 650px) {
  .brand { display: none; }
  .toolbar { gap: 10px; }
  .toolbar a, button { font-size: 14px; }
  h1 { font-size: 16px; }
  .listening { padding-top: 10px; }
}
@media (max-height: 500px) {
  .toolbar { min-height: 40px; padding-top: 5px; padding-bottom: 5px; }
  .brand { display: none; }
  .toolbar button { padding: 5px 12px; }
  .listening { padding-top: 5px; padding-bottom: 5px; }
  h1 { display: none; }
  audio { height: 36px; }
  .feedback { margin-top: 3px; font-size: 11px; min-height: 16px; }
  .feedback a { font-size: 11px; }
}
.viewer.immersive { position: fixed; inset: 0px; z-index: 1000; width: 100vw; height: 100dvh; max-width: none; display: block; background: rgb(5, 9, 22); }
.viewer.immersive .artwork { position: absolute; inset: 0px; width: 100%; height: 100%; }
.viewer.immersive .toolbar, .viewer.immersive .listening { position: absolute; left: 0px; right: 0px; z-index: 2; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.viewer.immersive .toolbar { top: 0px; min-height: 48px; border: 0px; background: linear-gradient(rgba(5, 9, 22, 0.93), rgba(5, 9, 22, 0.5), transparent); }
.viewer.immersive .listening { bottom: 0px; padding: 24px max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); background: linear-gradient(transparent, rgba(5, 9, 22, 0.85)); }
.viewer.immersive.controls-visible .toolbar, .viewer.immersive.controls-visible .listening, .viewer.immersive .toolbar:focus-within, .viewer.immersive .listening:focus-within { opacity: 1; pointer-events: auto; }
.viewer.immersive .listening h1, .viewer.immersive .footer-privacy, .viewer.immersive .footer-signatures { display: none; }
@media (prefers-reduced-motion: reduce) {
  .viewer.immersive .toolbar, .viewer.immersive .listening { transition: none; }
}
@media (orientation: landscape) and (max-height: 600px), (orientation: landscape) and (any-pointer: coarse) {
  body { overflow: hidden auto; }
  .viewer:not(.immersive) { height: auto; min-height: 100dvh; grid-template-rows: auto auto auto; }
  .viewer:not(.immersive) .artwork { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .viewer:not(.immersive) .artwork img { width: 100%; height: 100%; object-fit: contain; }
  body:has(.viewer.immersive) { overflow: hidden; }
}

/* Keep the page scrollable when controls and language choices need more room. */
body{overflow-x:hidden;overflow-y:auto}
@media (max-width:800px), (max-height:700px), (any-pointer:coarse){
 .viewer:not(.immersive){height:auto;min-height:100vh;min-height:100dvh;grid-template-rows:auto auto 1fr}
 .viewer:not(.immersive) .artwork{position:relative;display:block;align-self:start;width:100%;height:auto;min-height:0;aspect-ratio:16/9}
 .viewer:not(.immersive) .artwork>img,.viewer:not(.immersive) .artwork>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
 .viewer:not(.immersive) .listening{min-width:0}
}
body:has(.viewer.immersive){overflow:hidden}
