.story-page {
  width:min(100% - 40px, 1000px);
  margin-inline:auto;
  padding-block:32px 64px;
  color:#352219;
}
.story-page a {text-underline-offset:4px}
.story-detail-page {
  --story-inset:clamp(24px,5vw,44px);
  width:min(100% - 40px, 800px);
}
.story-breadcrumb {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin-block-end:20px;font-size:14px}
.story-article {
  padding:var(--story-inset);
  border:1px solid #d8ba85;
  border-radius:20px;
  background:#fff6e6;
}
.story-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(180px,35%);
  align-items:start;
  gap:clamp(20px,5vw,36px);
}
.story-hero h1,.story-index-head h1 {margin:8px 0 14px;font-size:clamp(30px,5vw,52px);line-height:1.08}
.story-hero h1 {font-size:clamp(30px,4.5vw,48px);text-wrap:balance}
.story-identity,.story-hero figcaption {margin:0;color:#6a4a32;font-size:14px}
.story-description,.story-index-head p {margin:0;max-width:55ch;font-size:18px;line-height:1.55;color:#5e4635}
.story-hero figure {margin:0;text-align:center}
.story-hero figure img {display:block;width:100%;height:auto;aspect-ratio:1;border:1px solid #a97043;border-radius:13px}
.story-hero figcaption {margin-top:8px}
.story-copy {
  margin-block-start:clamp(22px,4vw,32px);
  padding-block-start:clamp(22px,4vw,32px);
  border-block-start:1px solid #e0c9a7;
  font-size:17px;
  line-height:1.7;
}
.story-copy section {max-inline-size:68ch}
.story-copy section+section {margin-block-start:28px}
.story-copy h2,.story-related h2 {margin:0 0 8px;font-size:clamp(22px,3vw,29px);line-height:1.2}
.story-copy p {margin:0}
.story-copy p+p {margin-block-start:10px}
.story-chapter {scroll-margin-block-start:88px}
.story-chapter:target h2 {text-decoration:underline;text-decoration-color:#a26424;text-decoration-thickness:2px;text-underline-offset:5px}
.story-chapter-link {display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-block-start:6px;color:#793122;font-size:15px;font-weight:650}
.story-actions {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 24px;margin-top:26px}
.story-actions a {display:inline-flex;align-items:center;min-height:44px}
.story-article .story-actions {justify-content:flex-start;margin-block-start:30px}
.story-index-head {margin-bottom:24px}
.story-related {margin-block-start:32px;padding-inline:var(--story-inset)}
.story-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:14px 0 0}
.story-links a {display:grid;grid-template-columns:60px minmax(0,1fr) auto;align-items:center;gap:12px;height:100%;padding:10px;border:1px solid #d8ba85;border-radius:12px;background:#fff6e6;color:#793122;font-weight:650}
.story-links a:hover {background:#f9ebd0}
.story-links img {display:block;width:60px;height:60px;border-radius:7px}
@media(max-width:640px) {
  .story-page {width:calc(100% - 28px);padding-block:20px 40px}
  .story-detail-page {--story-inset:clamp(16px,4.6vw,24px)}
  .story-hero {grid-template-columns:minmax(0,1fr);gap:18px}
  .story-hero figure {width:min(100%,220px);justify-self:center}
  .story-description,.story-index-head p {font-size:16px}
  .story-links {grid-template-columns:minmax(0,1fr)}
}
