.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.back-link:hover {
  color: var(--ink);
}

.post-hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  margin-bottom: 24px;
  aspect-ratio: 16/9;
  background: #FBFAF6;
}

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

.post-header {
  margin-bottom: 28px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.post-category {
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-date {
  color: var(--ink-soft);
}

.post-header h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.post-content {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
}

.post-content h2 {
  font-size: 22px;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}

.post-content h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}

.post-content p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content a {
  color: var(--red);
  font-weight: 600;
}

.post-content figure {
  margin: 28px 0;
  width: 100%;
  max-width: 100%;
}

.post-content figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--paper-line);
}

.post-content figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.related-posts {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--paper-line);
}

.related-posts h2 {
  font-size: 24px;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

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

.related-card {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.related-card:hover {
  box-shadow: 0 8px 24px rgba(32, 40, 61, 0.08);
  transform: translateY(-2px);
}

.related-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.related-card-image {
  aspect-ratio: 16/10;
  background: #FBFAF6;
  border-bottom: 1px solid var(--paper-line);
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card-body {
  padding: 16px 18px 18px;
}

.related-category {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 8px;
}

.related-card h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.related-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.post-error {
  text-align: center;
  padding: 48px 24px;
}

.post-error h1 {
  font-size: 28px;
  margin: 0 0 10px;
}

.post-error p {
  color: var(--ink-soft);
  margin: 0 0 20px;
}

@media (max-width: 780px) {
  .post-header h1 {
    font-size: 30px;
  }

  .post-content {
    padding: 24px 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
