.journal-index,
.journal-story {
  padding-top: clamp(1.8rem, 3.7vw, 3.8rem);
  padding-bottom: clamp(3.6rem, 6.8vw, 6.6rem);
}

.journal-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: clamp(1.7rem, 3.3vw, 3.35rem);
}
.journal-heading h1 {
  font-size: clamp(2.7rem, 6vw, 6.3rem);
  line-height: 1;
}
.journal-heading h1 em { color: var(--red); }
.journal-heading p {
  max-width: 27rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.journal-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.3rem, 4vw, 4.5rem) clamp(1.2rem, 2.5vw, 2.8rem);
}
.journal-card > a { display: block; height: 100%; }
.journal-image {
  overflow: hidden;
  aspect-ratio: 1.5;
  border-radius: 0.95rem;
  background: #e7e6d9;
}
.journal-image img,
.story-cover img,
.story-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-card-copy { padding-top: 1rem; }
.read-time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.journal-card h2,
.journal-related h3 {
  font-family: var(--body);
  font-weight: 670;
  letter-spacing: -0.045em;
  line-height: 1.13;
  text-wrap: balance;
}
.journal-card h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.46rem, 2.1vw, 2.15rem);
}
.journal-card p { margin-top: 0.62rem; }
.journal-card > a:is(:hover, :focus-visible) h2,
.journal-related li a:is(:hover, :focus-visible) h3 {
  color: var(--red-dark);
  text-decoration: underline;
  text-decoration-thickness: 0.065em;
  text-underline-offset: 0.14em;
}

.journal-cover { grid-column: 1 / -1; }
.journal-cover > a {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: stretch;
  background: var(--mint);
  border-radius: 1.5rem;
}
.journal-cover .journal-image {
  border-radius: 1.5rem 0 24% 1.5rem / 1.5rem 0 30% 1.5rem;
  aspect-ratio: auto;
  min-height: clamp(18rem, 26vw, 26rem);
  position: relative;
}
.journal-cover .journal-image img { position: absolute; inset: 0; }
.journal-cover .journal-card-copy {
  align-self: center;
  padding: clamp(1.7rem, 4vw, 4.8rem);
}
.journal-cover h2 {
  max-width: 14em;
  margin-top: 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.1vw, 3.65rem);
  letter-spacing: -0.065em;
  line-height: 1.16;
}
.journal-cover p {
  max-width: 40ch;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
}
.cover-link {
  display: inline-block;
  margin-top: clamp(1rem, 2.2vw, 2rem);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.story-head {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 4.8rem);
  padding-bottom: clamp(2rem, 4.6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.story-intro h1 {
  margin-top: 0.65rem;
  font-size: clamp(2rem, 4.25vw, 4.8rem);
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.story-intro p {
  max-width: 49ch;
  margin-top: clamp(1rem, 2vw, 1.75rem);
  font-size: clamp(1.08rem, 1.45vw, 1.4rem);
  line-height: 1.49;
}
.story-cover img {
  aspect-ratio: 1.4;
  height: auto;
  border-radius: 28% 1rem 1rem 1rem / 35% 1rem 1rem 1rem;
}
.story-cover figcaption, .story-figure figcaption {
  margin-top: 0.62rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.story-reading {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 45rem);
  justify-content: center;
  align-items: start;
  gap: clamp(2.5rem, 7.5vw, 8rem);
  margin-top: clamp(2.4rem, 4.5vw, 4.8rem);
}
.story-contents { border-inline-start: 2px solid var(--red); padding-inline-start: 1rem; }
.story-contents p { margin-bottom: 0.35rem; font-weight: 680; }
.story-contents ul,
.story-models ul,
.journal-related ul,
.story-sources ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-contents a {
  display: block;
  width: fit-content;
  padding: 0.51rem 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.37;
}
.story-contents a:is(:hover, :focus-visible),
.story-sources a:is(:hover, :focus-visible) { color: var(--red-dark); }

.story-body { min-width: 0; }
.story-body h2 {
  font-size: clamp(1.58rem, 2.3vw, 2.65rem);
  line-height: 1.21;
  letter-spacing: -0.055em;
  text-wrap: balance;
  scroll-margin-top: 1rem;
}
.story-body > * + * { margin-top: clamp(2.8rem, 4.9vw, 5rem); }
.story-chapter p,
.story-chapter li,
.story-faq dd {
  font-size: clamp(1.03rem, 1.18vw, 1.17rem);
  line-height: 1.65;
}
.story-chapter p,
.story-chapter ul { margin-top: 0.86rem; }
.story-chapter ul { padding-inline-start: 1.4rem; margin-bottom: 0; }
.story-chapter li { padding-inline-start: 0.2rem; }
.story-chapter li + li { margin-top: 0.42rem; }
.story-chapter li::marker { color: var(--red-dark); }
.story-figure, .story-table { margin-top: clamp(1.35rem, 2.3vw, 2.3rem); }
.story-figure img {
  height: auto;
  max-height: 36rem;
  object-fit: contain;
  border-radius: 0.9rem;
  background: #eeede2;
}
.story-cover[data-photo$="-side"] img,
.journal-image[data-photo$="-side"] img { object-fit: contain; background: #f2f0e5; }
.story-cover[data-photo="ride-portrait"] img,
.journal-image[data-photo="ride-portrait"] img { object-position: 50% 32%; }
.story-cover[data-photo="capy-on-bars"] img,
.journal-image[data-photo="capy-on-bars"] img { object-position: 50% 23%; }
.story-cover[data-photo="grass-bike"] img,
.journal-image[data-photo="grass-bike"] img { object-position: 50% 67%; }
.story-table { max-width: 100%; overflow-x: auto; }
.story-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: clamp(0.9rem, 1.1vw, 1.04rem);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.story-table :is(td, th) { padding: 0.75rem 0.62rem; text-align: start; border-bottom: 1px solid var(--line); }
.story-table thead { background: var(--mint); }
.story-table th { font-weight: 650; }
.story-table .short-value { white-space: nowrap; }
.story-faq dl { margin-top: 1.2rem; }
.story-faq dl > div { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.story-faq dt { font-size: 1.1rem; font-weight: 660; }
.story-faq dd { margin-top: 0.4rem; }
.story-models { padding: clamp(1.2rem, 2.45vw, 2.3rem); background: var(--cream); border-radius: 1.15rem; }
.story-models h2, .story-sources h2 { font-size: clamp(1.35rem, 1.85vw, 1.85rem); }
.story-models ul { margin-top: 0.8rem; }
.story-models li a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 1rem;
  min-height: 44px;
  padding-block: 0.65rem;
  border-top: 1px solid #cdbf9c;
}
.story-models a > span { color: var(--muted); font-size: 0.91rem; }
.story-models a strong,
.story-sources a { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.story-models a:is(:hover, :focus-visible) strong { color: var(--red-dark); }
.story-fit { margin-top: 0.45rem; }
.story-sources ul { margin-top: 0.65rem; }
.story-sources li + li { margin-top: 0.2rem; }
.story-sources a { display: inline-block; padding-block: 0.25rem; overflow-wrap: anywhere; }

.journal-related { background: var(--mint); padding-block: clamp(2.4rem, 4.5vw, 4.8rem); }
.journal-related-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; }
.journal-related-title h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.journal-related ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 3.5rem;
  margin-top: 1.35rem;
}
.journal-related li a {
  display: grid;
  grid-template-columns: clamp(4.5rem, 7.5vw, 7.2rem) 1fr;
  align-items: center;
  gap: clamp(0.8rem, 1.7vw, 1.55rem);
  min-height: 44px;
}
.journal-related .journal-image { border-radius: 0.6rem; aspect-ratio: 1.28; }
.journal-related h3 { font-size: clamp(1.05rem, 1.45vw, 1.43rem); }
.journal-related .read-time { margin-top: 0.3rem; }

@media (min-width: 58rem) and (min-height: 43rem) {
  .story-contents { position: sticky; top: 6.5rem; }
}
@media (max-width: 64rem) {
  .journal-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-related ul { gap: 1.1rem 2rem; }
}
@media (max-width: 53rem) {
  .story-reading { grid-template-columns: minmax(0, 45rem); gap: 2.4rem; }
  .story-contents { border-inline-start: 0; border-block-end: 1px solid var(--line); padding: 0 0 1.2rem; }
  .story-contents a { padding-block: 0.55rem; }
  .story-contents a, .story-sources a { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 45rem) {
  .journal-heading { display: grid; gap: 0.8rem; }
  .journal-heading p { max-width: 39rem; }
  .journal-cover > a { grid-template-columns: 1fr; border-radius: 1rem; }
  .journal-cover .journal-image { min-height: 0; aspect-ratio: 1.67; border-radius: 1rem 1rem 16% 0 / 1rem 1rem 22% 0; }
  .journal-cover .journal-card-copy { padding: 1.35rem; }
  .journal-cover h2 { margin-top: 0.38rem; }
  .journal-cover p { max-width: 50ch; }
  .story-head { grid-template-columns: 1fr; gap: 1.4rem; }
  .story-cover img { aspect-ratio: 1.58; border-radius: 17% 0.8rem 0.8rem 0.8rem / 27% 0.8rem 0.8rem 0.8rem; }
  .journal-related ul { grid-template-columns: 1fr; }
}
@media (max-width: 33rem) {
  .journal-shelf { grid-template-columns: 1fr; }
  .journal-card h2, .story-body h2, .journal-related-title h2 { overflow-wrap: anywhere; }
  .story-table :is(td, th) { padding-inline: 0.33rem; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .journal-image img { transition: transform 240ms ease-out; }
  .journal-card > a:hover .journal-image:not([data-photo$="-side"]) img { transform: scale(1.025); }
}
