I'm trying to help out the founders of a new open access journal called Seeds of Science to translate their article template from Word to LaTex.
The top of every page should look like this: 
My rough attempt for now looks like this: 
The main problem is that the text should wrap around the logo in the upper right corner. This is what I have so far:
\documentclass{article}
\usepackage[a4paper,margin=2.2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{tikzpagenodes}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{lipsum}
\definecolor{sosgreen}{RGB}{56,118,29}
\renewcommand{\familydefault}{\sfdefault}
\AddToHook{shipout/background}[hook]{
\put (\paperwidth - 1 cm, -2.2cm){% relative to upper left corner
\begin{tikzpicture}[baseline=(current bounding box.north)]
\fill[sosgreen] (0,0) rectangle (1, 4.62);
\end{tikzpicture}}
\put (\paperwidth - 4.5 cm, -3.2cm){
\includegraphics[width=2.92 cm]{sos.png}}
}
\renewcommand{\footrulewidth}{0.4pt}
\fancyheadoffset[rh]{-27mm}
\pagestyle{fancy}
\fancyhf{}
\rhead{\LARGE \color{sosgreen}\textit{Seeds of Science}}
\lfoot{Author (Date)}
\rfoot{\thepage\ of \pageref{LastPage}}
\begin{document}
\lipsum[1-4]
\end{document}
Is there some way to change the length of the first few lines on each page or something like that? Or perhaps there is some solution using wrapfig? Any help would be much appreciated!
\everyparis executed early and has no idea of the final position of the paragraph, or even which page the paragraph is on, eg if a float is inserted on the page\everypar's idea of the current position will not match the actual output. – David Carlisle May 02 '22 at 12:58\everyparyou can make a rough guess that might work if there are no floats or footnotes, but to get any reliable answer requires\pdfsaveposand a multi-pass algorithm. – David Carlisle May 02 '22 at 13:17