/* ============================================================
   YATS SAINT-TROPEZ — Inner detail + hub/index archetypes.
   Reuses tokens, base, chrome, and most home section styles.
   ============================================================ */

/* ---- Page hero (shorter than home cinematic) --------------------------- */
.page-hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--deep);
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media image-slot { width: 100%; height: 100%; }
.page-hero__media::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,24,47,0.5) 0%, rgba(6,24,47,0.05) 35%, rgba(6,24,47,0.0) 55%, rgba(6,24,47,0.7) 100%),
    linear-gradient(90deg, rgba(6,24,47,0.55) 0%, rgba(6,24,47,0) 65%);
}
.page-hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding: var(--gutter);
  padding-top: calc(var(--nav-h) + var(--space-4));
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
}
.crumb {
  display: flex; align-items: center; gap: 0.7em;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: var(--space-3);
}
.crumb a { color: var(--paper-dim); transition: color var(--dur-fast) var(--ease); }
.crumb a:hover { color: var(--brass); }
.crumb .sep { color: var(--brass); }
.page-hero h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: var(--lh-tight);
  max-width: 16ch;
}
.page-hero h1 em { color: var(--brass); }
.page-hero__lede { margin-top: var(--space-3); max-width: 50ch; color: var(--paper-dim); }

/* ---- Intro (editorial two-column) -------------------------------------- */
.intro__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.intro__grid h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.1;
}
.intro__grid h2 em { color: var(--brass); }
.intro__body p { margin-bottom: var(--space-2); opacity: 0.85; }
.intro__body p:last-child { margin-bottom: 0; }
.intro__body .lead { opacity: 1; margin-bottom: var(--space-3); }
@media (max-width: 800px) {
  .intro__grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ---- Spec / itinerary row (serif numerals) ----------------------------- */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-paper);
}
.section-sand .specs { border-top-color: var(--rule-ink); }
.spec {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-right: 1px solid var(--rule-paper);
}
.section-sand .spec { border-right-color: var(--rule-ink); }
.spec:last-child { border-right: 0; }
.spec__n {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.spec__n .u { font-size: 0.4em; color: var(--brass); margin-left: 0.2em; letter-spacing: 0.05em; }
.spec__l {
  margin-top: 0.7em;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--paper-dim);
}
.section-sand .spec__l { color: var(--ink-dim); }
@media (max-width: 720px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(1), .spec:nth-child(2) { border-bottom: 1px solid var(--rule-paper); }
  .section-sand .spec:nth-child(1), .section-sand .spec:nth-child(2) { border-bottom-color: var(--rule-ink); }
}

/* ---- Inclusions / highlights ------------------------------------------- */
.incl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(2rem, 6vw, 5rem);
}
.incl__item {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--rule-ink);
}
.section-deep .incl__item, .section-navy .incl__item { border-top-color: var(--rule-paper); }
.incl__item .mk {
  font-family: var(--display);
  color: var(--brass);
  font-size: 1.2rem;
  line-height: 1.3;
  flex: none;
}
.incl__item h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.3em; }
.incl__item p { font-size: var(--fs-small); opacity: 0.78; }
@media (max-width: 700px) { .incl { grid-template-columns: 1fr; gap: 0; } }

/* ---- Gallery ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--space-2);
}
.gallery image-slot { width: 100%; height: 100%; }
.gallery__cell { position: relative; aspect-ratio: 1; overflow: hidden; }
.gallery__cell.wide { grid-column: span 2; aspect-ratio: 2; }
.gallery__cell.tall { grid-row: span 2; aspect-ratio: 1 / 2; }
@media (max-width: 800px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__cell.tall { grid-row: span 1; aspect-ratio: 1; }
  .gallery__cell.wide { aspect-ratio: 2; }
}

/* ---- Hub card grid ------------------------------------------------------ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  border: 1px solid var(--rule-paper);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.section-sand .hub-card { background: #fff; border-color: var(--rule-ink); }
.hub-card:hover { border-color: var(--brass); transform: translateY(-4px); }
.hub-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.hub-card__media image-slot { width: 100%; height: 100%; }
.hub-card__body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.hub-card__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-1);
}
.hub-card h3 { font-size: var(--fs-h3); font-weight: 500; margin-bottom: 0.4em; }
.hub-card p { font-size: var(--fs-small); opacity: 0.78; margin-bottom: var(--space-3); flex: 1; }
.hub-card .link { font-size: 0.76rem; align-self: flex-start; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }

/* ---- Related ------------------------------------------------------------ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

/* ── Journal article prose (markdown body) ── */
.article-prose { max-width: 760px; }
.article-prose > p { font-family: var(--body); font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--paper-dim); margin: 0 0 1.4rem; }
.article-prose > p:first-child { color: var(--paper); font-size: 1.32rem; }
.article-prose h2, .article-prose h3, .article-prose h4 { font-family: var(--display); font-weight: 500; font-size: var(--fs-h3); color: var(--paper); margin: 2.6rem 0 0.9rem; line-height: var(--lh-snug); }
.article-prose strong { color: var(--paper); font-weight: 600; }
.article-prose a { color: var(--brass); text-decoration: none; border-bottom: 1px solid rgba(201,162,75,0.4); transition: border-color .2s; }
.article-prose a:hover { border-color: var(--brass-bright); }
.article-prose ul { margin: 0 0 1.4rem 1.2rem; color: var(--paper-dim); }
.article-prose li { margin-bottom: .5rem; line-height: var(--lh-body); }
