@font-face {
  font-family: "Cormorant SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/cormorant-sc-bold.woff2") format("woff2");
}

:root {
  --ink: #500000;
  --paper: #FFFFFF;
  --screen: #000000;
  --theatre: #5C5C5C;
  --matte-pad-x: clamp(16px, 4vw, 48px);
  --matte-pad-y: clamp(8px, 1.5vw, 16px);
  --matte-w: min(100vw, calc(100dvh * 16 / 9 + 2 * var(--matte-pad-x)));
  --matte-h: calc(2 * var(--matte-pad-y) + (var(--matte-w) - 2 * var(--matte-pad-x)) * 9 / 16);
  --screen-share: 0.80;
  --pause: 3s;
  --mono-fade: 5s;
  --line-fade: 3s;
}

@media (max-width: 600px) {
  :root {
    --screen-share: 0.86;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--theatre);
  color: var(--ink);
  height: 100%;
  overflow: hidden;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theatre);
}

.theatre {
  background: var(--theatre);
  width: var(--matte-w);
  height: var(--matte-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  aspect-ratio: 16 / 9;
  width: calc(var(--matte-w) * var(--screen-share));
  background: var(--screen);
  display: flex;
  align-items: center;
  justify-content: center;
}

.picture {
  container-type: inline-size;
  aspect-ratio: 2.39 / 1;
  width: 100%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90%;
}

.monogram {
  display: block;
  height: 17cqi;
  width: auto;
  opacity: 1;
  animation: fade-in var(--mono-fade) linear var(--pause) 1 both;
}

.lines {
  margin: 0.35em 0 0;
  padding: 0;
  font-family: "Cormorant SC", serif;
  font-weight: 700;
  font-style: normal;
  font-size: max(12px, 3.6185cqi);
  line-height: 1.08;
  color: var(--ink);
  text-align: left;
}

.line {
  display: block;
  opacity: 1;
}

.line-1 {
  animation: fade-in var(--line-fade) linear calc(var(--pause) + var(--mono-fade)) 1 both;
}

.line-2 {
  padding-left: 1.5em;
  animation: fade-in var(--line-fade) linear calc(var(--pause) + var(--mono-fade) + var(--line-fade)) 1 both;
}

.line-3 {
  padding-left: 3em;
  animation: fade-in var(--line-fade) linear calc(var(--pause) + var(--mono-fade) + (var(--line-fade) * 2)) 1 both;
}

.foot {
  width: 100%;
  min-height: max(1.25em, 6cqi);
  margin: 0;
  padding: 0;
  border: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .monogram,
  .line-1,
  .line-2,
  .line-3 {
    animation: none;
    opacity: 1;
  }
}
