/*
This is in response to a question on r/css. This solution works, but is not very flexible for dynamic content. Read more in my comment here: https://www.reddit.com/r/css/comments/1ezua9s/comment/ljny8qa/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Ana Tudor has another SVG solution that is much more flexible: https://www.reddit.com/r/css/comments/1ezua9s/comment/ljo1swm/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Inverted border radius notches from: https://itnext.io/how-to-make-a-fancy-inverted-border-radius-in-css-5db048a53f95
*/
:root {
  --wrap-bg-color: #fff;
  --wrap-fg-color: #000;
  --wrap-accent-color: #e09d4d;
  --wrap-radius: 15px;
  --wrap-padding: 24px;
  --wrap-font-size: 25px;
  --wrap-line-height: 1.0;
}

body {
  background-color: #222;
  background-image: url(https://images.unsplash.com/photo-1426170042593-200f250dfdaf?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
  background-position: 50% 50%;
  background-size: cover;
  height: 100vh;
}

.wrap {
  align-items: center;
  border-left: var(--wrap-padding) solid var(--wrap-bg-color);
  display: flex;
  height: 100%;
}

p {
  align-items: flex-start;
  color: #000;
  display: flex;
  flex-direction: column;
  font-family: Playfair Display, serif;
  font-size: var(--wrap-font-size);
  line-height: var(--wrap-line-height);
}

em {
  color: var(--wrap-accent-color);
}

span {
  background-color: var(--wrap-bg-color);
  border-radius: 0 0 var(--wrap-radius) 0;
  padding-right: var(--wrap-padding);
  position: relative;
  white-space: nowrap;
}
span:after {
  background-color: transparent;
  border-top-left-radius: var(--wrap-radius);
  box-shadow: 0 calc(var(--wrap-radius) * -1) 0 0 var(--wrap-bg-color);
  content: "";
  height: calc(var(--wrap-radius) * 2);
  position: absolute;
  width: var(--wrap-radius);
  z-index: -1;
  right: calc(var(--wrap-radius) * -1);
  top: 0;
}
span:first-child {
  border-radius: 0 var(--wrap-radius) var(--wrap-radius) 0;
}
span:first-child:after {
  background-color: transparent;
  border-top-left-radius: var(--wrap-radius);
  box-shadow: 0 calc(var(--wrap-radius) * -1) 0 0 var(--wrap-bg-color);
  content: "";
  height: calc(var(--wrap-radius) * 2);
  position: absolute;
  transform-origin: 0% 50%;
  transform: rotate(-90deg);
  width: var(--wrap-radius);
  z-index: -1;
  left: var(--wrap-radius);
  top: calc(var(--wrap-radius) * -1);
}
span:last-child:before {
  background-color: transparent;
  border-top-left-radius: var(--wrap-radius);
  box-shadow: 0 calc(var(--wrap-radius) * -1) 0 0 var(--wrap-bg-color);
  content: "";
  height: calc(var(--wrap-radius) * 2);
  position: absolute;
  width: var(--wrap-radius);
  z-index: -1;
  left: 0;
  bottom: calc(var(--wrap-radius) * -2);
}
