.detail-page {
  background: #f7f5f1;
  color: #211d19;
  overflow-x: clip;
}

.detail-page .site-header { background: #fff; }

.detail-breadcrumb {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #66564a;
  font-size: .8125rem;
}

.detail-breadcrumb a { color: inherit; }
.detail-breadcrumb a:hover { color: #211d19; }
.detail-breadcrumb svg { width: 17px; height: 17px; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

.article-header {
  max-width: 1120px;
  padding-top: 52px;
  padding-bottom: 66px;
  text-align: center;
}

.article-category { color: #80685a; font-size: .75rem; letter-spacing: .16em; }
.article-header h1 { max-width: 1020px; margin: 19px auto 25px; font-size: clamp(2.5rem, 4.2vw, 4.5rem); line-height: 1.12; font-weight: 400; letter-spacing: -.035em; }
.article-intro { max-width: 850px; margin: 0 auto; color: #665f59; font-size: 1.0625rem; line-height: 1.8; }
.detail-meta { margin-top: 30px; display: flex; justify-content: center; gap: 21px; color: #80685a; font-size: .8125rem; }
.detail-meta span + span::before { content: "•"; margin-right: 21px; color: #b6aaa1; }

.article-hero-wrap { max-width: 1440px; }
.article-hero { display: block; width: 100%; max-height: 720px; object-fit: cover; }

.article-layout { max-width: 1120px; display: grid; grid-template-columns: 80px minmax(0, 850px); gap: 90px; align-items: start; padding-top: 96px; padding-bottom: 112px; }
.share-rail { position: sticky; top: 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; color: #80685a; font-size: .6875rem; letter-spacing: .12em; }
.share-rail::before { content: ""; width: 1px; height: 62px; background: #cfc4bb; }
.share-rail button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #cfc4bb; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: .2s ease; }
.share-rail button:hover, .share-rail button:focus-visible, .share-rail button.copied { background: #655043; border-color: #655043; color: #fff; }
.share-rail svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

.article-body { min-width: 0; }
.article-body p { margin: 0 0 28px; color: #4f4944; font-size: 1rem; line-height: 1.9; }
.article-body .lead { margin-bottom: 52px; color: #2a2521; font-size: 1.3rem; line-height: 1.75; }
.article-body h2 { margin: 64px 0 22px; color: #211d19; font-size: clamp(1.75rem, 2.6vw, 2.45rem); line-height: 1.3; font-weight: 400; letter-spacing: -.02em; }
.article-body figure { margin: 64px 0; }
.article-body figure img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.article-body figcaption { margin-top: 13px; color: #7c746d; font-size: .75rem; line-height: 1.5; }
.article-body blockquote { margin: 58px 0; padding: 10px 0 10px 34px; border-left: 2px solid #80685a; color: #3c342e; font-family: Georgia, serif; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.55; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 70px; padding-top: 24px; border-top: 1px solid #d9d1ca; color: #80685a; font-size: .6875rem; letter-spacing: .08em; }
.article-tags span { margin-right: 7px; }
.article-tags a { padding: 8px 12px; border: 1px solid #d9d1ca; color: inherit; transition: .2s ease; }
.article-tags a:hover { background: #655043; border-color: #655043; color: #fff; }

.article-navigation { max-width: 1440px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #d8d0c8; border-bottom: 1px solid #d8d0c8; }
.article-navigation a { min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 30px 56px; color: #211d19; }
.article-navigation a + a { align-items: flex-end; text-align: right; border-left: 1px solid #d8d0c8; }
.article-navigation span { color: #80685a; font-size: .6875rem; letter-spacing: .12em; }
.article-navigation strong { font-size: 1.125rem; font-weight: 400; }
.article-navigation a:hover strong { color: #80685a; }

.related-section { padding: 112px 0 128px; background: #fff; }
.related-heading { text-align: center; margin-bottom: 54px; }
.related-heading span { color: #80685a; font-size: .75rem; letter-spacing: .16em; }
.related-heading h2 { margin: 14px 0 0; font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.related-grid a { color: #211d19; }
.related-grid img { display: block; width: 100%; aspect-ratio: 517 / 303; object-fit: cover; transition: transform .45s ease; }
.related-grid a:hover img { transform: translateY(-5px); }
.related-grid h3 { margin: 20px 0 12px; font-size: 1.25rem; font-weight: 400; line-height: 1.4; }
.related-grid span { color: #80685a; font-size: .75rem; }
.back-to-blog { width: 220px; height: 50px; display: flex; align-items: center; justify-content: center; margin: 62px auto 0; background: #655043; color: #fff; font-size: .75rem; transition: .2s ease; }
.back-to-blog:hover { background: #80685a; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 54px minmax(0, 1fr); gap: 42px; }
  .related-grid { gap: 24px; }
}

@media (max-width: 760px) {
  .detail-breadcrumb { min-height: 82px; white-space: nowrap; overflow: hidden; }
  .detail-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .article-header { padding-top: 32px; padding-bottom: 44px; text-align: left; }
  .article-header h1 { font-size: 2.25rem; }
  .article-intro { font-size: 1rem; }
  .detail-meta { justify-content: flex-start; flex-wrap: wrap; gap: 8px 14px; }
  .detail-meta span + span::before { margin-right: 14px; }
  .article-hero-wrap { padding: 0; }
  .article-hero { aspect-ratio: 4 / 3; }
  .article-layout { display: block; padding-top: 58px; padding-bottom: 78px; }
  .share-rail { position: static; flex-direction: row; justify-content: flex-start; margin-bottom: 42px; }
  .share-rail::before { width: 45px; height: 1px; }
  .article-body .lead { font-size: 1.125rem; }
  .article-body h2 { margin-top: 48px; }
  .article-body figure, .article-body blockquote { margin: 44px 0; }
  .article-navigation { grid-template-columns: 1fr; }
  .article-navigation a { min-height: 130px; padding: 26px 24px; }
  .article-navigation a + a { align-items: flex-start; text-align: left; border-left: 0; border-top: 1px solid #d8d0c8; }
  .related-section { padding: 76px 0 88px; }
  .related-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .related-grid img { transition: none; }
}
