JSFiddle - React, Tailwind, and code Playground
HTML
<div class="thing"></div>
CSS
.thing {
width: 400px;
height: 200px;
position: relative;
overflow: hidden;
}
.thing::before,
.thing::after {
content: '';
z-index: 1;
position: absolute;
}
.thing::before {
border-top: 2px solid black;
left: 0;
right: 0;
top: 0;
height: 2px;
}
.thing::after {
border-radius: 60%;
left: 20px;
right: 20px;
height: 300px;
border: 2px solid black;
top: -234px;
background-color: white;
}
html { margin: 3em; }