.post-page {
  margin-top: 95px;
}

body:has(header .ribbon) .post-page {
  margin-top: 139px;
}

@media (max-width: 750px) {
  body:has(header .ribbon) .post-page {
    margin-top: 158px;
  }
}
/*

Hero

*/
.post-page .section-hero {
  position: relative;
  padding: 4rem 0;
  display: flex;
  align-items: center;
  min-height: 400px;
}
.post-page .section-hero .background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
}
.post-page .section-hero .background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.post-page .section-hero .background:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(130deg, rgba(var(--primary-bright-rgb), 0.75), rgba(var(--secondary-bright-rgb), 0.75));
}
.post-page .section-hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
}
.post-page .section-hero .container .content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  text-align: center;
}
.post-page .section-hero .container .content p.label {
  background-color: rgba(var(--primary-rgb), 0.75);
  color: var(--white);
}
.post-page .section-hero .container .content :is(h1, h2) {
  font-size: 2.75em;
  margin: 0;
  overflow-wrap: break-word;
}
.post-page .section-hero .container .image {
  width: 675px;
  position: absolute;
  bottom: 0;
  right: 0;
}

/*

Post Content

*/
.post-page .section-post-content {
  margin: 4rem 0;
}
.post-page .section-post-content .container {
  display: flex;
  align-items: flex-start;
  grid-gap: 50px;
}
.post-page .section-post-content .container .sidebar {
  width: 225px;
  text-align: right;
}
.post-page .section-post-content .container .sidebar p.author span {
  font-weight: 600;
}
.post-page .section-post-content .container .sidebar a.back {
  display: flex;
  grid-gap: 8px;
  align-items: center;
  justify-content: flex-end;
  font-weight: 400;
  color: var(--black);
}
.post-page .section-post-content .container .sidebar a.back svg {
  width: 12px;
}
.post-page .section-post-content .container .sidebar a.back:hover {
  text-decoration: underline;
}
.post-page .section-post-content .container .sidebar .social-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  grid-gap: 6px;
  margin-top: 50px;
}
.post-page .section-post-content .container .sidebar .social-links p {
  margin: 0 6px 0 0;
  font-size: 0.7em;
  text-transform: uppercase;
  font-weight: 600;
}
.post-page .section-post-content .container .sidebar .social-links a {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f2f2f2;
  border-radius: 3px;
  transition: all 0.1s;
}
.post-page .section-post-content .container .sidebar .social-links a svg {
  opacity: 0.75;
}
.post-page .section-post-content .container .sidebar .social-links a:hover {
  background-color: var(--primary);
}
.post-page .section-post-content .container .sidebar .social-links a:hover svg {
  opacity: 1;
}
.post-page .section-post-content .container .sidebar .social-links a:hover svg path {
  fill: var(--white);
}
.post-page .section-post-content .container .main-content {
  flex: 1;
}
.post-page .section-post-content .container .main-content *:not(li) {
  margin-bottom: 1.5em;
}
.post-page .section-post-content .container .main-content h1, .post-page .section-post-content .container .main-content h2, .post-page .section-post-content .container .main-content h3, .post-page .section-post-content .container .main-content h4, .post-page .section-post-content .container .main-content h5, .post-page .section-post-content .container .main-content h6 {
  margin: 1em 0 0.5em;
}
.post-page .section-post-content .container .main-content h1 {
  font-size: 3em;
}
.post-page .section-post-content .container .main-content h2 {
  font-size: 2.5em;
}
.post-page .section-post-content .container .main-content h3 {
  font-size: 2em;
}
.post-page .section-post-content .container .main-content h4 {
  font-size: 1.75em;
}
.post-page .section-post-content .container .main-content h5 {
  font-size: 1.5em;
}
.post-page .section-post-content .container .main-content h6 {
  font-size: 1.25em;
}
.post-page .section-post-content .container .main-content *:first-child {
  margin-top: 0;
}