:root {
  --paper: #f4efe5;
  --paper-strong: #ebe2d1;
  --ink: #1d2a27;
  --ink-soft: #43534f;
  --forest: #25453d;
  --sage: #82947d;
  --clay: #aa623f;
  --gold: #caa56a;
  --line: rgba(29, 42, 39, 0.13);
  --shadow: 0 24px 60px rgba(29, 42, 39, 0.14);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(202, 165, 106, 0.22), transparent 22%),
    radial-gradient(circle at 100% 12%, rgba(170, 98, 63, 0.14), transparent 18%),
    linear-gradient(180deg, #f8f3ea 0%, var(--paper) 32%, #f6f0e7 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.is-hidden {
  display: none !important;
}

.hero,
.section,
.footer {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1.18fr 0.92fr;
  align-items: start;
  gap: 22px;
  min-height: 0;
  padding: clamp(22px, 2.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 8px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    linear-gradient(180deg, rgba(202, 165, 106, 0.1), rgba(37, 69, 61, 0.06));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 69, 61, 0.1), transparent 70%);
}

.hero-copy,
.hero-panel,
.map-copy,
.closing-copy,
.stage-copy,
.stage-media {
  min-width: 0;
  align-self: start;
}

.hero-copy,
.map-copy,
.closing-copy,
.stage-copy,
.overview-card,
.base-card,
.hero-note,
.highlight-note {
  max-inline-size: 68ch;
}

.hero-copy {
  align-self: center;
  padding-right: 24px;
}

.hero-visual,
.gallery-lead {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hero-visual {
  min-height: 420px;
  grid-template-columns: 1.1fr 0.9fr;
  align-self: stretch;
  align-items: stretch;
}

.gallery-lead {
  grid-template-columns: 1.05fr 0.95fr;
  margin-bottom: 18px;
}

.hero-visual figure,
.gallery-lead figure {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(29, 42, 39, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-visual img,
.gallery-lead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.hero-visual img[src*="abbaye-mont-saint-michel.jpg"],
.gallery-lead img[src*="abbaye-mont-saint-michel.jpg"],
.stage-image[src*="abbaye-mont-saint-michel.jpg"],
.gallery-grid img[src*="abbaye-mont-saint-michel.jpg"],
.popup-media img[src*="abbaye-mont-saint-michel.jpg"] {
  aspect-ratio: 5 / 6;
  object-position: center 28%;
}

.hero-visual img[src*="dol-cathedrale.jpg"],
.gallery-lead img[src*="dol-cathedrale.jpg"],
.stage-image[src*="dol-cathedrale.jpg"],
.gallery-grid img[src*="dol-cathedrale.jpg"],
.popup-media img[src*="dol-cathedrale.jpg"] {
  aspect-ratio: 4 / 5;
  object-position: center 35%;
}

.hero-visual img[src*="combourg-chateau.jpg"],
.gallery-lead img[src*="combourg-chateau.jpg"],
.stage-image[src*="combourg-chateau.jpg"],
.gallery-grid img[src*="combourg-chateau.jpg"],
.popup-media img[src*="combourg-chateau.jpg"] {
  aspect-ratio: 4 / 3;
  object-position: center 48%;
}

.hero-visual figure:first-child,
.gallery-lead figure:first-child {
  grid-row: span 2;
}

.hero-kicker {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 8px;
  display: block;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.7rem);
  max-inline-size: 10ch;
  line-height: 0.92;
  text-wrap: balance;
  hyphens: auto;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.44rem;
  margin-bottom: 10px;
}

p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.microcopy,
.travel-microcopy,
.route-note,
.route-duration,
.map-hint {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.travel-microcopy,
.route-note,
.route-duration {
  display: block;
  max-width: 34ch;
}

.route-duration {
  margin-top: 6px;
  color: var(--forest);
  font-weight: 700;
}

.map-hint {
  display: inline-block;
  padding-top: 2px;
}

.hero-lead {
  max-width: 56ch;
  font-size: 1.08rem;
  margin-top: 18px;
}

.hero-meta,
.meta-row,
.stage-links,
.lodging-links,
.thumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-top: 24px;
}

.hero-meta span,
.meta-chip,
.link-chip,
.stay-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(40, 67, 61, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: var(--forest);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.stage-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(40, 67, 61, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.stage-links a:hover,
.stage-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(168, 95, 66, 0.34);
  background: #fff;
  color: var(--forest);
  outline: none;
}

.link-chip:hover,
.link-chip:focus-visible,
.stay-chip:hover,
.stay-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(168, 95, 66, 0.42);
  background: #fff;
  outline: none;
}

.hero-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.cover-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
  min-height: 420px;
}

.cover-card,
.stage-card,
.overview-card,
.base-card,
.map-card,
.closing-section,
.hero-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.cover-card {
  overflow: hidden;
  min-height: 200px;
}

.cover-card.tall {
  grid-row: span 2;
}

.cover-card img,
.stage-main-image,
.closing-figure img,
.gallery-grid img,
.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-position-center {
  object-position: center center;
}

.image-position-top {
  object-position: center top;
}

.image-position-bottom {
  object-position: center bottom;
}

.image-position-left {
  object-position: left center;
}

.image-position-right {
  object-position: right center;
}

.hero-note {
  padding: 18px 20px;
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--forest);
}

.section {
  margin-top: 24px;
  padding: clamp(20px, 2.5vw, 32px);
  min-height: 0;
}

.section:has(> :only-child) {
  padding-block: clamp(18px, 2.2vw, 26px);
}

.section-heading {
  max-width: 60rem;
  margin-bottom: 22px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(280px, 1.4fr) minmax(180px, 0.9fr);
  gap: 18px;
  margin-bottom: 22px;
}

.story-grid:not(:has(.story-slot:not(:empty))) {
  display: none;
  margin: 0;
}

.story-slot {
  min-height: clamp(48px, 5vw, 88px);
}

.story-slot--microcopy {
  min-height: clamp(40px, 4vw, 72px);
}

.story-slot--main {
  min-height: clamp(72px, 9vw, 150px);
}

.story-slot--popups {
  min-height: clamp(56px, 6vw, 110px);
}

.overview-grid,
.base-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.overview-grid,
.base-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.overview-card,
.base-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-grid figure {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
  min-height: 0;
  min-width: 0;
  align-self: start;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(29, 42, 39, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.gallery-card {
  min-height: 0;
}

.gallery-grid img {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 0;
  object-fit: cover;
}

.gallery-grid figure:has(img[src*="combourg-chateau.jpg"]),
.stage-gallery .gallery-grid figure:has(img[src*="combourg-chateau.jpg"]) {
  max-width: 360px;
  justify-self: start;
}

.gallery-caption,
.stage-caption,
.thumb-note,
.closing-figure figcaption,
.map-hint {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.45;
}

.gallery-caption {
  padding: 8px 12px 12px;
}

.gallery-grid figure > figcaption,
.image-grid figure > figcaption,
.photo-grid figure > figcaption {
  padding: 8px 12px 12px;
  display: block;
  max-width: 38ch;
}

.featured-map {
  margin-top: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.map-frame {
  display: grid;
  gap: 8px;
}

.map-canvas {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(138, 156, 148, 0.22), rgba(255, 255, 255, 0.85)),
    linear-gradient(135deg, rgba(199, 171, 115, 0.2), rgba(255, 255, 255, 0.34));
  min-height: 360px;
}

.map-canvas--hero {
  min-height: 460px;
}

.map-canvas--stage {
  min-height: 320px;
}

.map-canvas .leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: transparent;
  font: inherit;
}

.leaflet-tile-pane {
  filter: saturate(0.86) contrast(1.02);
}

.leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  line-height: 34px;
  border: 1px solid rgba(40, 67, 61, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--forest);
}

.leaflet-control-zoom a:hover {
  background: #fff;
}

.leaflet-control-zoom,
.leaflet-popup-content-wrapper,
.leaflet-bar {
  box-shadow: 0 14px 28px rgba(29, 42, 39, 0.12);
}

.leaflet-popup-content-wrapper {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  max-width: min(300px, calc(100vw - 28px));
}

.leaflet-popup-content {
  margin: 7px 8px 8px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.24;
  max-width: 24ch;
}

.leaflet-popup-content strong {
  display: block;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.08;
  margin-bottom: 1px;
}

.leaflet-popup-content a {
  color: var(--clay);
  font-weight: 700;
  text-decoration: none;
}

.map-popup {
  display: grid;
  gap: 5px;
}

.popup-media {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(23, 35, 31, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.popup-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.popup-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.popup-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(40, 67, 61, 0.08);
  border: 1px solid rgba(40, 67, 61, 0.1);
  color: var(--forest);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.leaflet-popup-content .popup-brief,
.leaflet-popup-content .popup-angle,
.leaflet-popup-content .popup-microcopy {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.22;
}

.leaflet-popup-content .popup-angle {
  color: var(--forest);
  font-weight: 600;
}

.leaflet-popup-content .popup-brief {
  max-width: 24ch;
}

.popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0;
}

.popup-link {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(40, 67, 61, 0.14);
  background: rgba(40, 67, 61, 0.04);
  color: var(--forest);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.leaflet-tooltip {
  max-width: 24ch;
  white-space: normal;
  text-align: left;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.32;
}

.leaflet-popup-content a:hover {
  text-decoration: underline;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.84);
  border-top-left-radius: 12px;
  border-top: 1px solid rgba(29, 42, 39, 0.08);
  border-left: 1px solid rgba(29, 42, 39, 0.08);
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 2px 8px;
  max-width: calc(100% - 12px);
  backdrop-filter: blur(10px);
}

.leaflet-control-attribution a {
  color: var(--ink-soft);
}

.map-marker {
  display: grid;
  place-items: center;
}

.map-marker span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(29, 42, 39, 0.18);
}

.map-marker-base span {
  background: var(--forest);
}

.map-marker-poi span {
  background: var(--gold);
}

.leaflet-container:focus {
  outline: 2px solid rgba(168, 95, 66, 0.35);
  outline-offset: 2px;
}

.stages {
  display: grid;
  gap: 20px;
}

.stage-card {
  overflow: hidden;
}

.stage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  align-items: start;
  gap: 20px;
  padding: 22px;
}

.stage-copy {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stage-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.stage-number {
  color: var(--clay);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.stage-duration {
  color: var(--forest);
  font-weight: 700;
}

.stage-summary {
  margin-top: 10px;
  font-size: 1.03rem;
  max-width: 62ch;
}

.route-microcopy {
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
}

.time-microcopy {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stage-summary,
.hero-lead,
.section-heading,
.highlight-note p {
  text-wrap: balance;
}

.section-heading .eyebrow,
.hero-copy .eyebrow,
.map-title .eyebrow,
.stage-copy .eyebrow,
.base-card .eyebrow {
  margin-bottom: 6px;
}

.stage-links,
.lodging-links {
  margin-top: 12px;
}

.stage-details-wrap {
  padding: 0 22px 0;
}

.stage-summary a,
.stage-details a {
  color: var(--clay);
  font-weight: 700;
  text-decoration: none;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.stage-summary a:hover,
.stage-summary a:focus-visible,
.stage-details a:hover,
.stage-details a:focus-visible {
  text-decoration: underline;
}

.stage-details {
  margin-top: 0;
  border: 1px solid rgba(29, 42, 39, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(243, 239, 231, 0.88), rgba(255, 255, 255, 0.96));
  overflow: hidden;
}

.stage-details:not([open]) > .stage-details-grid {
  display: grid !important;
}

.stage-details[open] {
  box-shadow: 0 14px 28px rgba(29, 42, 39, 0.08);
}

.stage-details summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  list-style: none;
  cursor: default;
  padding: 14px 16px 10px;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stage-details summary::-webkit-details-marker {
  display: none;
}

.stage-details summary::after {
  content: "";
  display: none;
}

.stage-details-grid {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.stage-detail {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(29, 42, 39, 0.08);
}

.stage-detail h4 {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

.stage-detail p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.56;
  color: var(--ink-soft);
}

.highlight-note {
  margin-top: 16px;
  padding: 13px 14px;
  border-left: 4px solid var(--clay);
  background: rgba(168, 95, 66, 0.08);
  border-radius: 14px;
}

.highlight-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--forest);
}

.map-block {
  margin-top: 0;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(235, 226, 209, 0.42), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(29, 42, 39, 0.08);
}

.stage-map-column {
  min-width: 0;
  padding: 0;
  align-self: start;
}

.map-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.map-title h3 {
  font-size: 1.08rem;
  margin-bottom: 0;
}

.map-title .eyebrow {
  margin-bottom: 4px;
}

.map-title p:last-child {
  font-size: 0.84rem;
  line-height: 1.3;
  max-width: 28ch;
}

.stay-block {
  margin-top: 18px;
}

.stay-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
}

.stage-media {
  display: block;
  padding: 0;
  background: transparent;
  align-self: start;
}

.stage-media figure {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(29, 42, 39, 0.1);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 30px rgba(29, 42, 39, 0.12);
}

.stage-media figure img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.stage-media figure figcaption {
  padding: 9px 12px 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.stage-main-image {
  min-height: 280px;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 5 / 6;
  object-position: center center;
  background: linear-gradient(180deg, rgba(231, 223, 208, 0.35), rgba(255, 255, 255, 0.72));
}

.stage-image {
  width: 100%;
  min-height: 0;
  max-height: min(42vh, 420px);
  aspect-ratio: 5 / 3;
  object-fit: cover;
  background: linear-gradient(180deg, rgba(231, 223, 208, 0.36), rgba(255, 255, 255, 0.74));
}

.stage-visuals {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
  align-content: start;
}

.stage-gallery {
  padding: 0;
}

.stage-gallery .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: start;
}

.stage-gallery .gallery-grid > figure:only-child {
  max-width: 460px;
}

.image-position-center {
  object-position: center center;
}

.image-position-top {
  object-position: center top;
}

.image-position-bottom {
  object-position: center bottom;
}

.thumb-list {
  margin: 0;
}

.thumb-card {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  min-height: 88px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 14px 28px rgba(29, 42, 39, 0.1);
}

.thumb-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.closing-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
  padding: 24px;
}

.closing-figure {
  overflow: hidden;
  border-radius: 24px;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.72);
}

.closing-figure figcaption {
  padding: 12px 4px 0;
  max-width: 46ch;
}

.footer {
  margin-top: 26px;
  padding: 18px 24px 28px;
  color: var(--ink-soft);
}

.footer code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .featured-map,
  .stage-layout,
  .closing-section,
  .overview-grid,
  .base-grid,
  .gallery-grid,
  .story-grid,
  .hero-visual,
  .gallery-lead {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure {
    height: auto;
  }

  .gallery-grid figure:has(img[src*="combourg-chateau.jpg"]),
  .stage-gallery .gallery-grid figure:has(img[src*="combourg-chateau.jpg"]) {
    max-width: none;
    justify-self: stretch;
  }

  .page-shell {
    width: min(100vw - 18px, 1200px);
  }

  .hero,
  .section {
    padding: 20px;
  }

  .cover-grid {
    min-height: 0;
  }

  .cover-card.tall {
    grid-row: span 1;
  }

  .hero-visual figure:first-child,
  .gallery-lead figure:first-child {
    grid-row: auto;
  }

  .stage-media {
    padding: 0;
  }

  .stage-layout {
    gap: 16px;
    padding: 18px 18px 0;
  }

  .stage-visuals {
    padding: 0 18px 18px;
  }

  .stage-details-wrap {
    padding: 0 18px;
  }

  .stage-main-image {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .stage-gallery {
    padding: 0;
  }

  .stage-map-column,
  .stage-visuals {
    padding: 0 12px 12px;
  }

  .map-canvas--hero {
    min-height: 380px;
  }

  .map-canvas--stage {
    min-height: 300px;
  }

  .leaflet-popup-content {
    max-width: 30ch;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    max-inline-size: none;
  }

  .hero-meta span,
  .meta-chip {
    width: 100%;
    justify-content: center;
  }

  .stage-copy {
    padding: 18px 16px 16px;
  }

  .stage-details-wrap {
    padding: 0 16px;
  }

  .stage-map-column,
  .stage-visuals {
    padding: 0 16px 16px;
  }

  .map-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
  }

  .thumb-card {
    min-height: 88px;
  }

  .map-canvas--hero {
    min-height: 340px;
  }

  .map-canvas--stage {
    min-height: 280px;
  }

  .leaflet-popup-content-wrapper {
    max-width: calc(100vw - 28px);
  }

  .leaflet-popup-content {
    max-width: calc(100vw - 60px);
  }

  .gallery-grid,
  .image-grid,
  .photo-grid {
    gap: 12px;
  }

  .gallery-grid img {
    min-height: 168px;
  }

  .hero-visual img[src*="abbaye-mont-saint-michel.jpg"],
  .gallery-lead img[src*="abbaye-mont-saint-michel.jpg"],
  .stage-image[src*="abbaye-mont-saint-michel.jpg"],
  .gallery-grid img[src*="abbaye-mont-saint-michel.jpg"],
  .popup-media img[src*="abbaye-mont-saint-michel.jpg"],
  .hero-visual img[src*="dol-cathedrale.jpg"],
  .gallery-lead img[src*="dol-cathedrale.jpg"],
  .stage-image[src*="dol-cathedrale.jpg"],
  .gallery-grid img[src*="dol-cathedrale.jpg"],
  .popup-media img[src*="dol-cathedrale.jpg"] {
    aspect-ratio: 4 / 5;
    object-position: center 30%;
  }

  .gallery-caption,
  .gallery-grid figure > figcaption,
  .image-grid figure > figcaption,
  .photo-grid figure > figcaption {
    padding: 8px 10px 11px;
  }

  .stage-topline {
    margin-bottom: 8px;
  }

  .stage-summary {
    margin-top: 8px;
    font-size: 1rem;
  }

  .route-microcopy {
    margin-top: 8px;
    font-size: 0.9rem;
  }

  .time-microcopy {
    font-size: 0.76rem;
  }

  .highlight-note {
    margin-top: 14px;
    padding: 12px 12px 11px;
  }

  .stage-links,
  .lodging-links,
  .meta-row,
  .thumb-list {
    gap: 8px;
  }

  .eyebrow {
    margin-bottom: 6px;
  }

  .section-heading .eyebrow,
  .hero-copy .eyebrow,
  .map-title .eyebrow,
  .stage-copy .eyebrow,
  .base-card .eyebrow {
    margin-bottom: 5px;
  }

  .stage-links a {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 0.82rem;
  }

  .map-title h3 {
    font-size: 1rem;
  }

  .map-title p:last-child {
    font-size: 0.8rem;
    max-width: none;
  }

  .stage-main-image,
  .stage-image {
    min-height: 240px;
    aspect-ratio: 4 / 5;
  }

  .gallery-grid figure:has(img[src*="combourg-chateau.jpg"]),
  .stage-gallery .gallery-grid figure:has(img[src*="combourg-chateau.jpg"]) {
    max-width: none;
  }

  .hero-copy,
  .map-copy,
  .closing-copy,
  .stage-copy,
  .overview-card,
  .base-card,
  .hero-note,
  .highlight-note,
  .closing-figure figcaption {
    max-inline-size: none;
  }
}
