.stories { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.sechead { border-bottom: 1px solid var(--rule); padding-bottom: 8px; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px clamp(18px, 3vw, 36px); margin-top: 16px; }
.tab { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 0 7px; border-bottom: 2px solid transparent; text-align: left; transition: border-color .2s, color .2s; }
.tab__y { font: 500 13.5px/1.3 var(--sans); }
.tab__p { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.tab[aria-current="page"] { border-color: var(--accent); }

.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: clamp(40px, 5vw, 64px); font: 400 clamp(23px, 2.4vw, 30px)/1.2 var(--serif); letter-spacing: .05em; text-transform: uppercase; text-align: center; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.divider span { font-weight: 600; white-space: nowrap; }
.divider b { font-weight: 400; }
.divider span::after { content: '—'; margin-left: 14px; font-weight: 300; }

/* The trip's introduction, above its stories */
.tripintro { max-width: 780px; margin: clamp(24px, 3vw, 40px) auto 0; text-align: center; font: 400 clamp(18px, 1.75vw, 22px)/1.6 var(--read); color: var(--ink); text-wrap: pretty; }
.tripintro a { color: var(--accent); border-bottom: 1px solid currentColor; transition: background .2s; }
.tripintro a:hover { background: var(--yellow); }

/* Every story is the same card: photo, headline, short excerpt */
.storygrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(18px, 2.4vw, 32px); margin-top: clamp(36px, 4.5vw, 60px); }
.gridcard { display: flex; flex-direction: column; }
.gridcard__img { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 16px; }
.gridcard img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gridcard:hover img { transform: scale(1.025); }
.gridcard h2 { font: 500 clamp(24px, 2.4vw, 31px)/1.14 var(--serif); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; transition: color .2s; }
.gridcard p { margin-top: 8px; font-size: 13.5px; line-height: 1.65; color: var(--soft); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

@media (max-width: 860px) {
  .storygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .divider span::after { margin-left: 8px; }
}
@media (max-width: 560px) {
  .storygrid { grid-template-columns: minmax(0, 1fr); }
  .divider { flex-wrap: wrap; gap: 4px 10px; }
  .divider::before, .divider::after { display: none; }
}
