:root {
  --ink: #1f2724;
  --paper: #f6f1e5;
  --red: #cb3d29;
  --line: #c5c1b4;
  --mono: "Courier Prime", ui-monospace, "SFMono-Regular", monospace;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 10px 16px;
  border-radius: 3px;
  font-weight: 650;
}
button:hover,
.textlink:hover {
  background: #e5e1d2;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #2581ab;
  outline-offset: 4px;
}
header,
main,
footer {
  max-width: 1328px;
  margin: auto;
}
header {
  height: 82px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand,
.tools,
.dialogtop,
.playhead,
.heading,
.filmline,
figcaption,
.cue,
.endbuttons {
  display: flex;
  align-items: center;
}
.brand {
  gap: 12px;
}
.brand strong {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -1px;
}
.brand small,
small,
.eyebrow,
.filmline span,
.details,
.heading > span,
.next,
footer {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
}
.logo {
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--paper);
  width: 35px;
  height: 30px;
  border-radius: 5px;
  font-size: 17px;
  box-shadow: inset 0 4px 0 #1f2724;
}
.brand small {
  border-left: 1px solid var(--line);
  padding-left: 13px;
  font-size: 11px;
  font-weight: 800;
}
.tools {
  gap: 7px;
}
.tools button {
  font-size: 13px;
  border-color: #9b9d91;
}
.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  align-items: center;
  gap: 5%;
  padding: 48px 0 43px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}
.eyebrow span {
  color: #949587;
}
.eyebrow i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}
h1,
h2,
p,
figure {
  margin: 0;
}
h1 {
  font-size: clamp(56px, 6.4vw, 94px);
  letter-spacing: -0.075em;
  font-weight: 950;
  line-height: 1.03;
  margin: 22px 0;
}
.intro h1 span {
  color: var(--red);
}
.intro p {
  max-width: 340px;
  font-size: 16px;
  line-height: 1.8;
  color: #4a5147;
  margin: 20px 0 27px;
}
.primary {
  background: var(--ink);
  color: var(--paper);
  padding: 15px 25px;
  border: 2px solid var(--ink);
  font-weight: 800;
}
.primary:hover {
  background: #384638;
}
.textlink {
  margin-left: 18px;
  font-size: 14px;
  text-underline-offset: 5px;
}
.details {
  margin-top: 16px;
  font-size: 11px;
  color: #60665a;
}
.poster,
.screen {
  border: 2px solid var(--ink);
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper);
}
.poster {
  box-shadow: 5px 5px 0 #d6d1c4;
}
.filmline {
  padding: 6px 14px;
  justify-content: space-between;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  letter-spacing: 1px;
}
.filmline span {
  font-size: 10px;
}
.poster canvas,
.picture canvas,
.card canvas {
  display: block;
  width: 100%;
  height: auto;
}
.poster canvas {
  aspect-ratio: 1.85;
}
figcaption {
  border-top: 2px solid var(--ink);
  padding: 11px 16px;
  justify-content: space-between;
}
figcaption small,
figcaption b {
  display: block;
}
figcaption small,
.heading small,
.playhead small,
#finish > small,
dialog small,
.cue small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
figcaption b {
  font-size: 20px;
}
figcaption button {
  font-size: 12px;
  padding: 7px 10px;
}
.heading,
.playhead {
  justify-content: space-between;
}
.heading {
  border-top: 2px solid var(--ink);
  padding: 20px 0 15px;
}
h2 {
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 900;
  letter-spacing: -0.05em;
}
.heading > span {
  font-size: 11px;
}
#cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: #fffcf4;
  border: 1.5px solid var(--ink);
  padding: 0;
  text-align: left;
  overflow: hidden;
}
.card:hover {
  background: #fffaf0;
  box-shadow: 3px 3px var(--ink);
  transform: translate(-1px, -1px);
}
.cardart {
  height: 97px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.cardart canvas {
  height: 100%;
  width: 100%;
}
.reel {
  position: absolute;
  top: 9px;
  left: 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 3px 7px;
  font: 700 10px var(--mono);
  letter-spacing: 1px;
}
.cardbody {
  padding: 13px 16px 15px;
}
.cardtitle {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 900;
}
.cardbody small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.cardbody .watched {
  color: var(--red);
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 16px 0 22px;
  font-size: 10px;
}
#play {
  max-width: 900px;
  margin: 22px auto;
}
.playhead {
  margin-bottom: 10px;
}
.screen {
  background: var(--ink);
}
.picture {
  display: flex;
  justify-content: center;
}
.picture canvas {
  max-height: 52vh;
  width: auto;
  max-width: 100%;
  aspect-ratio: 740/440;
  object-fit: contain;
}
.track {
  height: 5px;
  background: #555f54;
}
.track span {
  display: block;
  height: 100%;
  background: #ffc049;
}
.cue {
  justify-content: space-between;
  margin: 12px 0;
  gap: 12px;
}
.cue h2 {
  font-size: 36px;
}
.cue p,
.next {
  font-size: 14px;
}
.beats {
  display: flex;
  gap: 7px;
}
.beats i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--ink);
}
.beats i.on {
  background: var(--red);
}
.next {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: #595e54;
  letter-spacing: 0;
}
dialog {
  width: min(430px, 92vw);
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 26px;
  border-radius: 5px;
  box-shadow: 6px 6px var(--ink);
}
dialog::backdrop {
  background: #16201cdc;
}
dialog h2 {
  margin: 8px 0;
}
dialog p,
#summary {
  line-height: 1.75;
  color: #4b5349;
  font-size: 14px;
  margin: 12px 0;
}
.dialogtop {
  justify-content: space-between;
}
.dialogtop button {
  padding: 0 8px;
  font-size: 21px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
}
legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: bold;
}
#speeds {
  display: flex;
  gap: 5px;
}
#speeds button {
  flex: 1;
  font-size: 13px;
  padding: 9px 3px;
}
#speeds button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
dialog .primary {
  width: 100%;
  margin: 9px 0 4px;
}
#hold button {
  width: 100%;
  margin-top: 8px;
}
#finish {
  text-align: center;
  padding: 48px 0;
}
.seal {
  margin: 22px auto;
  background: #f7bc4e;
  color: var(--ink);
  border: 3px double var(--ink);
  border-radius: 50%;
  width: 95px;
  height: 95px;
  font-size: 68px;
}
#finish h1 {
  font-size: 55px;
}
.endbuttons {
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 25px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1420px) {
  header,
  main,
  footer {
    width: 90%;
  }
}
@media (max-width: 740px) {
  header {
    height: 61px;
  }
  .brand {
    gap: 6px;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand small {
    display: none;
  }
  .tools button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 29px 0;
  }
  .intro h1 {
    font-size: clamp(37px, 8vw, 58px);
    margin: 12px 0;
  }
  .intro h1 br {
    display: none;
  }
  .intro p {
    margin: 8px 0 16px;
    font-size: 14px;
    max-width: 32em;
  }
  .details {
    margin-top: 8px;
  }
  .poster canvas {
    aspect-ratio: 2;
  }
  .heading > span {
    letter-spacing: 0;
  }
  #cards {
    grid-template-columns: 1fr;
  }
  .card {
    display: grid;
    grid-template-columns: 34% 1fr;
  }
  .cardart {
    height: 100%;
    min-height: 75px;
    border: 0;
    border-right: 1px solid;
  }
  .cardbody {
    align-self: center;
  }
  .cardart canvas {
    position: absolute;
  }
  .cue h2 {
    font-size: 30px;
  }
  .beats {
    gap: 4px;
  }
  .beats i {
    width: 12px;
    height: 12px;
  }
  footer {
    letter-spacing: 0;
  }
  .eyebrow {
    font-size: 10px;
  }
  .picture canvas {
    width: 100%;
    max-height: 52vh;
  }
  #finish h1 {
    font-size: 43px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  body:has(#play:not([hidden])) header,
  body:has(#play:not([hidden])) footer {
    display: none;
  }
  #play {
    margin: 4px auto;
  }
  .playhead h2 {
    font-size: 18px;
  }
  .playhead {
    margin-bottom: 3px;
  }
  .picture canvas {
    max-height: 49vh;
  }
  .cue {
    margin: 4px 0;
  }
  .cue h2 {
    font-size: 21px;
  }
  .next {
    padding-top: 2px;
  }
}

/* In a living room the action and cue must stay readable from the sofa. */
@media (min-width: 750px) {
  :fullscreen body:has(#play:not([hidden])) main {
    width: 96%;
    max-width: none;
  }
  :fullscreen #play {
    max-width: min(1400px, 92vw);
    margin: 10px auto;
  }
  :fullscreen .picture canvas {
    width: auto;
    height: 60vh;
    max-height: 60vh;
  }
  :fullscreen .cue h2 {
    font-size: clamp(34px, 3vw, 58px);
  }
  :fullscreen .cue p {
    font-size: clamp(16px, 1.4vw, 23px);
  }
  :fullscreen body:has(#play:not([hidden])) footer {
    display: none;
  }
}
