.ipp-post-layout {
  --post-border: #dfe3dc;
  --post-muted: #626a64;
  width: min(1100px, calc(100% - 48px));
  min-height: 45vh;
  margin-inline: auto;
  padding-block: 32px 72px;
  display: grid;
  grid-template-columns: minmax(0, 728px);
  justify-content: center;
  align-items: start;
  color: #282936;
}

.ipp-post-column {
  min-width: 0;
}

.ipp-post-heading {
  margin-bottom: 24px;
}

.ipp-post-kicker {
  display: block;
  margin: 0 0 12px;
  color: #277940;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.125em;
  text-transform: uppercase;
}

a.ipp-post-kicker {
  width: fit-content;
  text-decoration: none;
}

a.ipp-post-kicker:hover {
  text-decoration: underline;
}

.ipp-post-heading h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.027em;
  overflow-wrap: anywhere;
}

.ipp-post-deck {
  margin: 0 0 18px;
  color: var(--post-muted);
  font-size: 18px;
  line-height: 1.6;
}

.ipp-post-meta {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
  margin: 0;
  color: var(--post-muted);
  font-size: 12px;
}

.ipp-post-meta > :not(:first-child)::before {
  content: "·";
  margin-inline: 5px;
}

.ipp-post-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.ipp-post-breadcrumb {
  margin: 18px 0 24px;
  color: var(--post-muted);
  font-size: 11px;
  line-height: 1.7;
}

.ipp-post-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ipp-post-breadcrumb li {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ipp-post-breadcrumb li + li::before {
  content: "/";
  margin-inline: 5px;
}

.ipp-post-breadcrumb a {
  text-decoration: none;
}

.ipp-post-breadcrumb a:hover {
  text-decoration: underline;
}

.ipp-post-content {
  color: #565d57;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  display: flow-root;
}

.ipp-post-content > :first-child {
  margin-top: 0;
}

.ipp-post-content p,
.ipp-post-content :where(ul, ol) {
  margin-block: 0 20px;
}

.ipp-post-content :where(h2, h3, h4, h5, h6) {
  margin: 34px 0 16px;
  color: #282936;
  line-height: 1.25;
}

.ipp-post-content h2,
.ipp-post-related h2 {
  font-size: 27px;
  letter-spacing: -0.02em;
}

.ipp-post-content a {
  text-underline-offset: 3px;
}

.ipp-post-content table,
.ipp-post-content pre {
  max-width: 100%;
}

.ipp-post-content pre,
.ipp-post-content table:not(.wp-block-table table) {
  overflow-x: auto;
}

.ipp-post-content figure {
  max-width: 100%;
  margin-inline: 0;
}

.ipp-post-content :where(.wp-block-video, .wp-block-embed) {
  margin-block: 0 28px;
}

.ipp-post-content video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 10px;
  background: #15151c;
}

.ipp-post-content iframe {
  max-width: 100%;
}

.ipp-post-content .is-type-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px;
}

.ipp-post-content figcaption {
  color: var(--post-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ipp-post-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-inline-start: 4px solid var(--green);
  background: #eaf0e8;
  color: #282936;
  font-size: 20px;
  line-height: 1.6;
}

.ipp-post-content blockquote > :last-child {
  margin-bottom: 0;
}

.ipp-post-content blockquote cite {
  color: var(--post-muted);
  font-size: 14px;
}

.ipp-post-author {
  margin: 36px 0;
  padding: 24px;
  border: 1px solid var(--post-border);
  border-radius: 10px;
  background: var(--white);
  font-size: 14px;
}

.ipp-post-author span {
  display: block;
  margin-bottom: 6px;
  color: var(--post-muted);
  font-size: 12px;
}

.ipp-post-related {
  border-top: 1px solid var(--post-border);
  padding-top: 12px;
}

.ipp-post-related h2 {
  margin: 30px 0 16px;
  line-height: 1.25;
}

.ipp-post-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ipp-post-related-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--post-border);
  border-radius: 10px;
  background: var(--white);
  color: #282936;
  text-decoration: none;
}

.ipp-post-related-card:hover strong {
  text-decoration: underline;
}

.ipp-post-related-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ipp-post-related-card strong {
  display: block;
  padding: 16px;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ipp-post-layout .wp-comments :where(input, textarea) {
  max-width: 100%;
}

@media (max-width: 600px) {
  .ipp-post-layout {
    width: calc(100% - 32px);
    padding-block: 24px 48px;
  }

  .ipp-post-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ipp-post-content blockquote {
    padding-inline: 16px;
  }
}
