.motion-page {
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 0, #171717 0, #0b0b0d 44rem);
  color: #e9e9e9;
}

.motion-header {
  position: absolute;
  top: max(1.1rem, env(safe-area-inset-top));
  left: clamp(1.2rem, 2.4vw, 3.25rem);
  display: grid;
  justify-items: start;
  gap: .55rem;
}

.motion-brand {
  font: 400 clamp(1.6rem, 2.45vw, 2.65rem)/1.15 "Vujahday Script", cursive;
  color: #d9d9d9;
}

.motion-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.15rem;
  padding-inline-start: .15rem;
}

.motion-header nav, .motion-share {
  font: 300 1.05rem/1 "Alumni Sans SC", sans-serif;
  letter-spacing: .08em;
  color: #d0d0d0;
}

.motion-header nav a:hover, .motion-post h2 a:hover { color: white; }
.motion-page :is(a, button, input):focus-visible { outline: 2px solid #e9e9e9; outline-offset: 4px; }

.motion-feed {
  width: min(36rem, 100% - 3rem);
  margin-inline: auto;
  padding-block: 1.6rem 4rem;
}

.motion-feed h1 {
  margin: 0 0 1.45rem;
  text-align: center;
  font: 400 clamp(3.15rem, 5.5vw, 5.7rem)/1.12 "Vujahday Script", cursive;
  color: #d9d9d9;
}

.motion-post { border-top: 1px solid #383839; padding-block: .5rem 1.8rem; }
.motion-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-block-end: .55rem;
}

.motion-post h2 {
  margin: 0;
  font: italic 900 clamp(1.65rem, 3vw, 2.1rem)/.98 "Alumni Sans SC", sans-serif;
}

.motion-post-header p {
  margin: .2rem 0 0;
  color: #aaa;
  font: 300 1.05rem/1.05 "Alumni Sans SC", sans-serif;
  letter-spacing: .12em;
}

.motion-share {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 7.1rem;
  min-height: 2.15rem;
  padding: .25rem .48rem;
  border: 1px solid #565656;
  border-radius: 2px;
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.motion-share:hover { border-color: #a0a0a0; background: #ffffff0b; }
.motion-share svg { width: 1.15rem; height: 1.15rem; }
.motion-media {
  position: relative;
  margin-inline: auto;
  background: #050506;
  box-shadow: 0 0 0 1px #ffffff0b;
}
.motion-media--portrait {
  max-width: calc(min(54svh, 28rem) * var(--portrait-ratio));
}
.motion-media video { display: block; width: 100%; height: auto; }

.motion-play {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: clamp(3rem, 10vw, 4.4rem);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  background: #050506b5;
  transition: background-color 160ms ease;
}

.motion-play:hover { background: #050506e6; }
.motion-play::after {
  content: "";
  width: 33%;
  height: 40%;
  margin-left: 8%;
  background: #f2f2f2;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.motion-copy-fallback { display: grid; gap: .35rem; margin-top: .75rem; font-size: .9rem; }
.motion-copy-fallback input { width: 100%; padding: .5rem; border: 1px solid #565656; }
.motion-page [hidden] { display: none; }

@media (max-width: 1180px) {
  .motion-header { position: static; padding: max(1rem, env(safe-area-inset-top)) 1.5rem 0; }
  .motion-feed { padding-top: 1rem; }
}

@media (max-width: 560px) {
  .motion-header { padding-inline: 1rem; }
  .motion-feed { width: calc(100% - 2rem); padding-top: 1.4rem; }
  .motion-feed h1 { margin-bottom: 1rem; }
  .motion-post { padding-bottom: 1.4rem; }
  .motion-share { min-height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-play, .motion-share { transition: none; }
}
