* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: hsl(0, 0%, 15%);
}

.postcard {
  position: relative;
  width: 600px;
  height: 400px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(59, 59, 59, 0.5);
}

.sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 65%;
  background: #6ac6eb;
  background: linear-gradient(90deg, rgba(106, 198, 235, 1) 0%, rgba(88, 127, 219, 1) 100%, rgba(78, 207, 149, 1) 100%, rgba(87, 199, 133, 1) 100%, rgba(237, 221, 83, 1) 100%);
}

.sun {
  position: absolute;
  top: 60px;
  right: 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: hsl(55 96.1% 50.1%);
  box-shadow: -4px 14px 74px 44px rgba(253,213,0,0.66);
}

.hills {
  position: absolute;
  bottom: 30%;
  left: -10%;
  width: 120%;
  height: 45%;
  background: radial-gradient(
    ellipse 120% 60% at 50% 100%,
    hsl(120, 50%, 35%),
    hsl(120, 40%, 25%)
  );
  border-radius: 50% 50% 0 0;
}

.water {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32%;
  background: #00d4ff;
  background: linear-gradient(180deg,rgba(0, 212, 255, 1) 0%, rgba(16, 62, 99, 1) 100%);
}

.text-overlay {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  color: rgb(255, 179, 0);
  text-shadow: 4px 4px 2px rgba(0,0,0,0.6);
  /* TODO: text color experiment */
}

/* HTML: <div class="ribbon">Your text content</div> */
.ribbon {
  font-size: 10px;
  font-weight: bold;
  color: #fff;
}
.ribbon {
  --s: 1.4em; /* the ribbon size */
  --d: .8em;  /* the depth */
  --c: .8em;  /* the cutout part */
  
  padding: 0 calc(var(--s) + .5em) var(--d);
  line-height: 1.8;
  background:
    conic-gradient(at left  var(--s) bottom var(--d),
     #0000 25%,#0008 0 37.5%,#0004 0) 0   /50% 100% no-repeat,
    conic-gradient(at right var(--s) bottom var(--d),
     #0004 62.5%,#0008 0 75%,#0000 0) 100%/50% 100% no-repeat;
  clip-path: polygon(0 var(--d), var(--s) var(--d),var(--s) 0,calc(100% - var(--s)) 0,calc(100% - var(--s)) var(--d),100% var(--d),calc(100% - var(--c)) calc(50% + var(--d)/2),100% 100%,calc(100% - var(--s) - var(--d)) 100%,calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),calc(var(--s) + var(--d)) calc(100% - var(--d)),calc(var(--s) + var(--d)) 100%,0 100%,var(--c) calc(50% + var(--d)/2));
  background-color: #CC333F; /* the main color */
  width: fit-content;
}