.garage-story {
  width: min(1200px, calc(100% - clamp(36px, 8vw, 112px)));
  margin-inline: auto;
  font: 400 1rem/1.6 GarageInter, Arial, sans-serif;
}
.garage-story :is(h1, h2) { text-wrap: balance; }
.garage-story p { text-wrap: pretty; }
.story-picker {
  padding: clamp(20px, 3vw, 36px) 0 clamp(18px, 2.5vw, 30px);
  border-bottom: 1px solid var(--line);
}
.story-picker > p { margin: 0 0 10px; font-weight: 700; }
.story-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.story-options a {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--subtle);
  text-decoration: none;
  line-height: 1.2;
}
.story-options a[aria-current] {
  border-color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--accent-text);
}
.story-options img {
  width: clamp(54px, 5.5vw, 80px);
  aspect-ratio: 1.4;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}
.story-options span { min-width: 0; }
.story-options :is(small, strong) { display: block; }
.story-options small { margin-bottom: 3px; color: var(--muted); font-size: .75rem; }
.story-options strong { font-size: .94rem; }
.story-hero {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding-block: clamp(32px, 4.8vw, 76px) clamp(24px, 3vw, 44px);
}
.story-intro h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3.5rem, 6.2vw, 6rem);
  line-height: .97;
}
.story-intro > p {
  max-width: 43ch;
  margin: clamp(16px, 2vw, 24px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.65;
}
.story-jump, .story-end > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--control-radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.story-jump { margin-top: 22px; }
.story-cover {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--subtle);
}
.story-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.53;
  object-fit: cover;
}
.story-cover figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 40px clamp(16px, 2vw, 28px) 16px;
  background: linear-gradient(transparent, rgb(7 13 19 / 85%));
  color: var(--photo-text);
  font-size: .8rem;
  line-height: 1.5;
}

.story-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 4px 0;
  border-block: 1px solid var(--line);
}
.story-index a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 5px;
  gap: 8px;
  font-weight: 700;
  font-size: .94rem;
  text-decoration: none;
}
.story-index a + a { border-left: 1px solid var(--line); }
.story-index a:focus-visible { outline-offset: -3px; }

.story-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  padding: clamp(36px, 5vw, 72px) clamp(0px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
}
.chapter-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent-text);
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .045em;
}
.chapter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font: normal 20px/1 GarageFeather;
}
.chapter-prose h2 {
  max-width: 21ch;
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 3.4vw, 3.5rem);
  line-height: 1.02;
}
.chapter-prose > p:not(.chapter-section) {
  max-width: 54ch;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.chapter-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  margin-right: 14px;
  color: var(--teal);
  font-size: .9rem;
  font-weight: 700;
}
.chapter-record {
  min-width: 0;
  padding: clamp(18px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-top: 3px solid color-mix(in srgb, var(--teal) 65%, var(--line));
  border-radius: 10px;
  background: var(--subtle);
}
.record-label {
  display: block;
  margin: 0 0 4px;
  color: var(--teal);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.record-title {
  display: block;
  font: 700 clamp(1.55rem, 2vw, 1.95rem)/1.12 Barlow, Arial, sans-serif;
}
.chapter-record dl { margin: 16px 0 0; }
.chapter-record dl > div {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: baseline;
  gap: 12px;
  padding-block: 9px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chapter-record dl > div:last-child { padding-bottom: 0; }
.chapter-record dt { color: var(--muted); }
.chapter-record dd { margin: 0; font-weight: 600; text-align: right; }
.story-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(36px, 5.5vw, 80px) clamp(0px, 2vw, 28px);
}
.story-end h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.4vw, 3.5rem);
  line-height: 1.04;
}
.story-end > a { flex: none; }
@media (hover: hover) {
  .story-options a:hover { border-color: var(--accent-text); }
  .story-index a:hover { background: var(--subtle); color: var(--accent-text); }
  .story-jump:hover, .story-end > a:hover { background: var(--accent-hover); }
  .chapter-link:hover { color: var(--text); }
}
@media (max-width: 880px) {
  .story-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .garage-story { width: calc(100% - 36px); max-width: 640px; }
  .story-hero, .story-chapter { grid-template-columns: minmax(0, 1fr); }
  .story-hero { gap: 22px; padding-top: 30px; }
  .story-intro h1 { max-width: 16ch; font-size: clamp(3rem, 9vw, 4.4rem); }
  .story-cover img { aspect-ratio: 1.86; }
  .story-chapter { gap: 18px; padding: 34px 0; }
  .chapter-section { margin-bottom: 10px; }
  .story-end { flex-direction: column; align-items: start; padding-inline: 0; }
}
@media (max-width: 480px) {
  .story-options a { min-height: 54px; gap: 7px; }
  .story-options img { width: clamp(38px, 12vw, 56px); }
  .story-options strong { font-size: .83rem; }
  .story-options small { font-size: .72rem; }
  .story-index a { font-size: .82rem; }
  .story-cover figcaption { padding-bottom: 12px; }
  .chapter-record { padding: 16px; }
  .chapter-record dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .chapter-record dd { text-align: left; }
}
