:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, sans-serif;
  color: #f4efe7;
  background: #131517;
  --line: #ffffff23;
  --muted: #bcb7ab;
  --yellow: #ffc67f;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 56px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); }
.site-inner { min-height: 57px; display: flex; align-items: center; justify-content: space-between; }
.site-inner .brand-mark { width: 19px; background: var(--yellow); }
.site-inner .brand-period { color: var(--yellow); }
.site-inner .back { color: var(--muted); padding: 9px 0; font-size: 14px; text-underline-offset: 5px; }
main { padding: 23px 0 28px; }
.introduction { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 0 0 15px; }
h1 { margin: 0; font-size: clamp(1.45rem, 3.1vw, 2.4rem); line-height: 1.17; letter-spacing: -.062em; }
.introduction p { margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.screen { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16/9; border-radius: 11px; background: #a97d77; }
.screen canvas { position: absolute; width: 100%; height: 100%; inset: 0; }
.frame-copy { position: absolute; top: 12.5%; left: 7.7%; right: 7.7%; color: var(--chapter-ink, #201924); }
.daytime { display: flex; align-items: center; gap: .55em; margin: 0 0 .9em; font: 700 clamp(.67rem, 1.18vw, .94rem) ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.daytime span { opacity: .62; }
.frame-title { margin: 0; font-size: clamp(2rem, 8.45vw, 7.5rem); font-weight: 850; line-height: .97; letter-spacing: -.095em; }
.frame-title span { display: block; width: fit-content; transform-origin: 0 50%; }
.screen[data-scene="day"] .frame-title { letter-spacing: -.077em; }
.screen[data-scene="dusk"] .frame-copy { top: 13.6%; }
.screen-edge { position: absolute; z-index: 1; inset: 13px; border: 1px solid #fff7; border-radius: 3px; pointer-events: none; }
.screen-edge::before, .screen-edge::after { position: absolute; content: ''; width: 10px; height: 10px; border: solid #fffa; }
.screen-edge::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.screen-edge::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.controls { padding: 13px 0 0; }
.transport { display: grid; grid-template-columns: auto auto minmax(32px, 1fr) auto; align-items: center; gap: 9px; }
.transport button, .chapters button { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #232527; color: #f4efe7; cursor: pointer; }
.transport button:hover, .chapters button:hover { background: #343437; }
.transport .play { min-width: 90px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #26201a; background: var(--yellow); border-color: var(--yellow); font-weight: 750; }
.transport .play:hover { background: #ffd8a8; }
#play-icon { font-size: 12px; min-width: 12px; text-align: center; }
.replay { width: 42px; padding: 0; font-size: 22px; line-height: 1; }
.scrub { display: flex; align-items: center; padding: 0 7px; }
#seek { width: 100%; height: 28px; margin: 0; accent-color: var(--yellow); cursor: pointer; }
#time { color: var(--muted); white-space: nowrap; font: 650 13px ui-monospace, monospace; }
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 9px; }
.chapters button { min-height: 37px; font-size: 13px; }
.chapters button[aria-pressed="true"] { color: var(--yellow); border-color: #c29155; background: #29241f; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .shell { width: calc(100% - 24px); }
  .site-inner { min-height: 50px; }
  main { padding-top: 19px; }
  .introduction { flex-wrap: wrap; margin-bottom: 12px; }
  .introduction p { font-size: 12px; }
  .screen { aspect-ratio: 4/3; }
  .frame-copy, .screen[data-scene="dusk"] .frame-copy { top: 12%; left: 8%; }
  .frame-title { font-size: clamp(1.75rem, 9.6vw, 3.5rem); }
  .screen-edge { inset: 7px; }
  .transport { gap: 6px; }
  .transport .play { min-width: 65px; padding: 0 6px; font-size: 13px; }
  .replay { width: 37px; }
  .scrub { padding-inline: 2px; }
  #time { font-size: 11px; }
}
