@font-face {
  font-family: Manrope;
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Playfair;
  src: url("fonts/playfair-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Manrope, Arial, sans-serif;
  color: #f5f1e9;
  background: #101010;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #f4e5d4; outline-offset: 5px; }
::selection { background: #a84136; color: white; }

.landing {
  position: fixed;
  inset: 0;
  isolation: isolate;
  display: grid;
  align-items: center;
  justify-items: center;
  height: 100%;
  height: 100dvh;
  padding: max(30px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(85px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.backdrop, .poster, .shade { position: absolute; inset: 0; }
.backdrop { z-index: -1; overflow: hidden; background: #151513; }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; }

.film-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, calc(100vh * 1280 / 546));
  height: max(100vh, calc(100vw * 546 / 1280));
  width: max(100vw, calc(100dvh * 1280 / 546));
  height: max(100dvh, calc(100vw * 546 / 1280));
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 850ms ease;
}
.film-frame.is-playing { opacity: 1; }
.film-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.shade {
  background: linear-gradient(180deg, #06060645 0%, #09090978 40%, #0909098c 68%, #080808c7 100%), radial-gradient(ellipse at center, #06060629 18%, #00000063 100%);
}

.identity {
  width: min(100%, 720px);
  text-align: center;
  animation: reveal 1300ms ease 150ms backwards;
}

.wordmark { display: grid; justify-items: center; gap: 15px; margin: 0; }
.wordmark img { display: block; width: min(83%, 470px); height: auto; }
.wordmark span { padding-left: .54em; font-size: .78rem; font-weight: 700; letter-spacing: .54em; line-height: 1.2; text-transform: uppercase; }
.slogan { margin: 33px 0 0; font: italic 400 clamp(1.23rem, 2.5vw, 1.8rem)/1.4 Playfair, Georgia, serif; }

.actions { display: flex; align-items: stretch; justify-content: center; gap: 10px; margin-top: 44px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 19px;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.3;
  border: 1px solid #f5f1e96e;
  background: #10101027;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.button svg, .motion-button svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.button .dot { fill: currentColor; stroke: none; }
.button:hover { background: #f4efe8; color: #171614; border-color: #f4efe8; }
.book { background: #f4efe8; color: #171614; border-color: #f4efe8; }
.book:hover { background: #ded4c8; border-color: #ded4c8; }

.footer {
  position: absolute;
  inset-inline: max(28px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer p { margin: 0; color: #eee9e0c7; font-size: .58rem; font-weight: 600; letter-spacing: .10em; line-height: 1.8; text-transform: uppercase; }
.footer p span { display: block; color: #eee9e0a1; font-size: .55rem; }
.playback { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.watch-film { font-size: .67rem; color: #eee9e0d9; border-bottom: 1px solid #eee9e066; }
.motion-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #f5f1e95e; border-radius: 50%; background: #10101042; color: #f5f1e9; cursor: pointer; }
.motion-button:hover { background: #f4efe8; color: #171614; }
.motion-button .pause-icon { display: none; }
.motion-button.is-playing .play-icon { display: none; }
.motion-button.is-playing .pause-icon { display: block; }
.noscript-film { position: absolute; top: 20px; right: 24px; font-size: .75rem; text-decoration: underline; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .film-frame {
    width: max(100vw, calc(100vh * 9 / 16));
    height: max(100vh, calc(100vw * 16 / 9));
    width: max(100vw, calc(100dvh * 9 / 16));
    height: max(100dvh, calc(100vw * 16 / 9));
  }
}

@media (max-width: 560px) {
  .identity { max-width: 350px; }
  .wordmark { gap: 12px; }
  .wordmark img { width: 100%; }
  .wordmark span { font-size: .66rem; }
  .slogan { margin-top: 27px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 33px; }
  .book { grid-column: 1 / -1; }
  .button { padding-inline: 10px; gap: 7px; font-size: .66rem; }
  .button svg { width: 16px; height: 16px; }
  .footer { inset-inline: 23px; }
  .footer p { font-size: .49rem; max-width: 28ch; }
  .footer p span { font-size: .49rem; }
  .playback { gap: 8px; }
  .watch-film { max-width: 10ch; font-size: .58rem; }
}

@media (max-height: 460px) {
  .landing { padding-block: 18px 59px; }
  .wordmark { gap: 8px; }
  .wordmark img { width: min(65%, 270px); }
  .wordmark span { font-size: .57rem; }
  .slogan { font-size: 1.15rem; margin-top: 14px; }
  .actions { margin-top: 20px; }
  .footer { bottom: max(9px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
