.stories-page {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  padding-block: clamp(40px, 7vw, 92px) clamp(56px, 8vw, 100px);
}

.stories-intro {
  margin-bottom: clamp(34px, 6vw, 70px);
}

.stories-intro h1 {
  font-size: clamp(3.6rem, 10vw, 8rem);
}

.stories-intro > p:not(.eyebrow) {
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.stories-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stories-section {
  scroll-margin-top: 125px;
}

.stories-section + .stories-section {
  margin-top: clamp(36px, 6vw, 70px);
}

.stories-section > p {
  max-width: 42rem;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(16px, 3.5vw, 42px);
  padding: clamp(14px, 2.8vw, 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.story-card + .story-card {
  margin-top: 18px;
}

.story-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  background: var(--paper);
}

.story-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-art--festa img {
  object-position: 23% center;
}

.story-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: .98;
}

.story-copy > p:last-child {
  margin-bottom: 0;
}

.story-source {
  color: var(--gold);
  text-underline-offset: .2em;
}

@media (max-width: 700px) {
  .story-card {
    grid-template-columns: 1fr;
  }
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.legend-card {
  display: flex;
  min-width: 0;
}

.legend-card > a {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  text-decoration: none;
}

.legend-card > a:hover {
  border-color: var(--gold);
}

.legend-card > a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.legend-card img,
.legend-illustration {
  display: block;
  width: 100%;
  height: auto;
}

.legend-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(10px, 1.7vw, 20px);
}

.legend-card-copy .eyebrow {
  margin-bottom: 8px;
}

.legend-card-copy h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1;
}

.legend-card-copy p[lang="mt"] {
  font-size: .9rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

.legend-read {
  margin-top: auto;
  color: var(--gold);
  font-size: .9rem;
  font-weight: 700;
}

.legend-back {
  display: inline-block;
  margin-bottom: 28px;
}

.legend-intro {
  margin-bottom: clamp(24px, 4vw, 44px);
}

.legend-intro h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.legend-maltese-title {
  font-size: 1.15rem;
}

.legend-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
}

.legend-illustration {
  border-radius: 9px;
}

.legend-version {
  scroll-margin-top: 125px;
}

.legend-version + .legend-version {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 24px;
}

.legend-version h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.legend-version li + li {
  margin-top: 9px;
}

.legend-version a {
  overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
  .legend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .legend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legend-reading-layout {
    grid-template-columns: 1fr;
  }

  .legend-illustration {
    max-width: 430px;
    margin-inline: auto;
  }
}
