@font-face {
  font-family: Studio;
  src: url('/serif.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Studio;
  src: url('/italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url('/archivo.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #10100f;
  --paper: #f0efea;
  --edge: clamp(24px, 4.8vw, 96px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Archivo, Arial, sans-serif; }
.theatre { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.mast, .player { padding-inline: var(--edge); }
.mast {
  min-height: clamp(64px, 9svh, 100px);
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mark { width: 37px; height: 37px; }
.release, .transport { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .19em; }
.release { display: flex; align-items: center; gap: 13px; }
.release::before { content: ''; width: 28px; height: 1px; background: #aaa9a4; }
.frame {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 360px;
  background: #131313;
}
.screen, .screen img, .screen video, .frame::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen img, .screen video { display: block; object-fit: cover; object-position: 61% 46%; }
.screen video { opacity: 0; transition: opacity .45s ease-out; }
.screen video.ready { opacity: 1; }
.frame::after {
  content: '';
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5,5,5,.76), rgba(5,5,5,.25) 38%, transparent 67%),
              linear-gradient(0deg, rgba(5,5,5,.48), transparent 33%);
}
.titles {
  z-index: 1;
  padding: 38px var(--edge) clamp(34px, 6svh, 84px);
}
h1 {
  margin: 0 0 22px -.045em;
  font: 400 clamp(92px, 10.45vw, 206px)/.82 Studio, Georgia, serif;
  letter-spacing: -.042em;
}
h1 span, h1 em { display: block; }
h1 em { font-weight: 400; margin-left: .29em; }
.titles p { margin: 0; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.5; color: #e0dfda; }
.player {
  min-height: clamp(62px, 8.3svh, 90px);
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  align-items: center;
}
.transport { display: flex; align-items: center; gap: clamp(15px, 2.7vw, 52px); }
.transport[hidden] { display: none; }
#play {
  flex: none;
  min-height: 44px;
  min-width: 105px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
#play:focus-visible { outline: 2px solid #deded8; outline-offset: 4px; }
.glyph { width: 10px; height: 12px; display: inline-block; }
.glyph::after { content: ''; display: block; width: 0; height: 0; border: solid transparent; border-width: 6px 0 6px 9px; border-left-color: currentColor; }
.playing .glyph::after { width: 9px; height: 12px; border: solid currentColor; border-width: 0 3px; box-sizing: border-box; }
.track { position: relative; flex: 1; height: 2px; background: #494946; overflow: hidden; }
.track span { display: block; height: 100%; background: #d8d6ce; transform: scaleX(0); transform-origin: left; }
.clock { flex: none; color: #cac9c4; font-variant-numeric: tabular-nums; letter-spacing: .09em; }
.divider { padding-inline: .7em; color: #74746f; }
@media (prefers-reduced-motion: no-preference) {
  h1 span { animation: title-in 1.3s both cubic-bezier(.12,.69,.2,1); }
  h1 em { animation: title-in 1.5s .12s both cubic-bezier(.12,.69,.2,1); }
  .titles p { animation: title-in 1.3s .35s both cubic-bezier(.12,.69,.2,1); }
  @keyframes title-in { from { opacity: 0; transform: translateY(.21em); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 700px) and (orientation: portrait) {
  .mast { min-height: 68px; }
  .screen img, .screen video { object-position: 76% 40%; }
  .frame::after { background: linear-gradient(0deg, rgba(4,4,4,.94), rgba(4,4,4,.54) 26%, transparent 60%); }
  .titles { padding-bottom: clamp(26px, 4.4svh, 55px); }
  h1 { font-size: clamp(80px, 20.5vw, 126px); margin-bottom: 18px; }
  h1 em { margin-left: .22em; }
  .titles p { font-size: 14px; }
  .transport { gap: 16px; }
  #play { min-width: 91px; gap: 9px; }
  .release, .transport { font-size: 9px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .mast, .player { min-height: 44px; }
  .mark { width: 28px; height: 28px; }
  .frame { min-height: 190px; }
  .titles { padding-block: 15px; }
  h1 { font-size: clamp(55px, 14svh, 84px); margin-bottom: 12px; }
  .titles p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen video { transition: none; }
}
