.single-post .site-main {
  padding: 40px 0 64px;
}

.post-single {
  color: var(--black);
}

.post-single__container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.post-single__reading {
  width: min(46rem, 100%);
  margin-inline: auto;
}

.post-single__header {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.post-single__category {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid rgba(60, 60, 59, 0.2);
  border-radius: 999px;
  background: var(--gray);
  color: var(--black);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-single__category:hover,
.post-single__category:focus-visible {
  background: var(--green);
  color: var(--white);
}

.post-single__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: var(--black);
}

.post-single__meta {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(60, 60, 59, 0.78);
}

.post-single__hero {
  margin: 0 auto;
}

.post-single__hero-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray);
}

.post-single__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-single__hero-caption {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(60, 60, 59, 0.75);
}

.post-single__lead {
  margin-top: 24px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
  font-weight: 400;
  color: rgba(60, 60, 59, 0.9);
}

.post-single__lead p {
  margin: 0;
}

.post-single__toc {
  margin-top: 32px;
  border: 1px solid rgba(60, 60, 59, 0.2);
  border-radius: var(--radius-md);
  background: var(--gray);
}

.post-single__toc-summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.post-single__toc-nav {
  padding: 0 16px 14px;
}

.post-single__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.post-single__toc-item a {
  color: var(--black);
  text-decoration: none;
}

.post-single__toc-item a:hover,
.post-single__toc-item a:focus-visible {
  color: var(--green);
}

.post-single__toc-item.is-h3 {
  padding-left: 12px;
  font-size: 0.95em;
}

.post-single__content {
  margin-top: 40px;
  color: var(--black);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
}

.post-single__content > * {
  margin-top: 0;
  margin-bottom: 24px;
}

.post-single__content p,
.post-single__content li,
.post-single__content td,
.post-single__content th,
.post-single__content figcaption,
.post-single__content cite {
  font-weight: 400;
}

.post-single__content h2,
.post-single__content .wp-block-heading h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
}

.post-single__content h3,
.post-single__content .wp-block-heading h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.25;
  font-weight: 700;
}

.post-single__content p,
.post-single__content ul,
.post-single__content ol,
.post-single__content blockquote,
.post-single__content table,
.post-single__content pre,
.post-single__content figure {
  margin-top: 0;
  margin-bottom: 24px;
}

.post-single__content ul,
.post-single__content ol {
  padding-left: 1.3rem;
}

.post-single__content li + li {
  margin-top: 8px;
}

.post-single__content strong,
.post-single__content b {
  font-weight: 700;
}

.post-single__content img,
.post-single__content video,
.post-single__content iframe {
  max-width: 100%;
  height: auto;
}

.post-single__content .wp-block-image img,
.post-single__content .wp-block-gallery img {
  border-radius: var(--radius-md);
}

.post-single__content .wp-block-quote {
  margin: 32px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--green);
  background: var(--gray);
}

.post-single__content .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}

.post-single__content .wp-block-table th,
.post-single__content .wp-block-table td {
  border: 1px solid rgba(60, 60, 59, 0.2);
  padding: 8px 10px;
}

.post-single__content .wp-block-button__link,
.post-single__content .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.post-single__content .wp-block-button__link:visited,
.post-single__content .wp-element-button:visited {
  color: var(--white);
}

.post-single__content .wp-block-button__link:hover,
.post-single__content .wp-block-button__link:focus-visible,
.post-single__content .wp-element-button:hover,
.post-single__content .wp-element-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.95);
  color: var(--black);
}

.post-single__content .alignwide {
  width: min(64rem, calc(100vw - 32px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-single__content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-single__content .wp-block-embed,
.post-single__content .wp-block-embed__wrapper {
  max-width: 100%;
}

.post-single__section,
.post-single__related {
  margin-top: 40px;
}

.post-single__section-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-single__tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-single__tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(60, 60, 59, 0.2);
  border-radius: 999px;
  color: var(--black);
  background: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
}

.post-single__tag:hover,
.post-single__tag:focus-visible {
  background: var(--green);
  color: var(--white);
}

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

.post-single__related-card,
.post-single__adjacent-card {
  border: 1px solid rgba(60, 60, 59, 0.15);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.post-single__related-link,
.post-single__adjacent-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  column-gap: 10px;
  align-items: stretch;
  height: 100%;
  color: inherit;
  text-decoration: none;
  min-height: 148px;
  padding: 10px;
}

.post-single__related-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-single__related-title,
.post-single__related-date {
  padding-inline: 0;
}

.post-single__related-title {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

.post-single__related-date {
  display: block;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(60, 60, 59, 0.75);
}

.post-single__related-excerpt,
.post-single__adjacent-excerpt {
  margin: 0 0 8px;
  grid-column: 1;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(60, 60, 59, 0.85);
}

.post-single__adjacent {
  margin-top: 40px;
}

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

.post-single__adjacent-label {
  display: inline-block;
  margin: 0 0 8px;
  grid-column: 1;
  align-self: start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
}

.post-single__related-image-wrap,
.post-single__adjacent-image-wrap {
  margin: 0;
  background: var(--gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
  grid-column: 2;
  grid-row: 1 / span 3;
  aspect-ratio: 1 / 1;
  align-self: start;
  width: 100%;
}

.post-single__adjacent-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-single__adjacent-title {
  margin: 0 0 6px;
  grid-column: 1;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--black);
}

.post-single__adjacent-date {
  display: block;
  margin: 0;
  grid-column: 1;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(60, 60, 59, 0.75);
}

.post-single__related-link:focus-visible,
.post-single__adjacent-link:focus-visible,
.post-single__related-link:hover,
.post-single__adjacent-link:hover {
  background: var(--black);
  color: var(--white);
}

.post-single__related-link:hover .post-single__related-title,
.post-single__related-link:hover .post-single__related-date,
.post-single__related-link:hover .post-single__related-excerpt,
.post-single__related-link:focus-visible .post-single__related-title,
.post-single__related-link:focus-visible .post-single__related-date,
.post-single__related-link:focus-visible .post-single__related-excerpt,
.post-single__adjacent-link:hover .post-single__adjacent-title,
.post-single__adjacent-link:hover .post-single__adjacent-date,
.post-single__adjacent-link:hover .post-single__adjacent-excerpt,
.post-single__adjacent-link:focus-visible .post-single__adjacent-title,
.post-single__adjacent-link:focus-visible .post-single__adjacent-date,
.post-single__adjacent-link:focus-visible .post-single__adjacent-excerpt {
  color: var(--white);
}

.post-single__adjacent-link:hover .post-single__adjacent-label,
.post-single__adjacent-link:focus-visible .post-single__adjacent-label {
  color: var(--green);
}

@media (max-width: 1024px) {
  .single-post .site-main {
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .post-single__adjacent-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .post-single__container {
    width: calc(100% - 24px);
  }

  .post-single__header {
    gap: 12px;
    margin-bottom: 24px;
  }

  .post-single__hero,
  .post-single__lead,
  .post-single__toc,
  .post-single__content,
  .post-single__section,
  .post-single__related {
    margin-top: 24px;
  }

  .post-single__toc {
    border-radius: var(--radius-sm);
  }

  .post-single__toc[open] .post-single__toc-nav {
    border-top: 1px solid rgba(60, 60, 59, 0.15);
  }

  .post-single__content h2,
  .post-single__content .wp-block-heading h2 {
    margin-top: 40px;
  }

  .post-single__content h3,
  .post-single__content .wp-block-heading h3 {
    margin-top: 24px;
  }

  .post-single__related-grid {
    grid-template-columns: 1fr;
  }

  .post-single__related-link,
  .post-single__adjacent-link {
    grid-template-columns: minmax(0, 1fr) 112px;
    min-height: 120px;
    padding: 8px;
    column-gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-single *,
  .post-single *::before,
  .post-single *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
