/* Shared look for the itinerary pages (/day, /family, /us). Fonts and palette
   tokens come from styles.css, which each page links first. */
.itinerary {
  max-width: 36rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem;
}
.itinerary header { text-align: center; margin-bottom: 2rem; }
.itinerary .ornament { width: 72px; height: auto; opacity: .9; margin-bottom: .5rem; }
.itinerary .kicker {
  font-weight: 400; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .24em; color: var(--muted); margin: 0 0 .6rem;
}
.itinerary h1 {
  font-family: "Playfair Display", Georgia, serif; font-weight: 700;
  font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.1; margin: 0;
}
.itinerary .lede { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 28rem; margin: .8rem auto 0; }
.itinerary .rule { width: 46px; height: 1px; background: var(--line); border: 0; margin: 1.6rem auto; }

/* Day headings for the multi-day pages */
.day-heading {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: 1.6rem; margin: 2.2rem 0 .2rem;
}
.day-heading small { display: block; font-family: "EB Garamond", Georgia, serif; font-weight: 400; font-size: .85rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: .15rem; }

/* The timeline: time on the left, a thin rail with a dot, the event on the right */
.timeline { list-style: none; margin: 1rem 0 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 4.6rem 1.25rem 1fr; column-gap: .6rem;
  position: relative; padding-bottom: 1.4rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline time, .timeline .when {
  font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600;
  font-size: .95rem; line-height: 1.5; text-align: right; padding-top: .05rem;
}
.timeline .rail { position: relative; }
.timeline .rail::before {
  content: ""; position: absolute; left: 50%; top: .55rem; bottom: -1.4rem;
  width: 1px; background: var(--line); transform: translateX(-50%);
}
.timeline li:last-child .rail::before { display: none; }
.timeline .rail::after {
  content: ""; position: absolute; left: 50%; top: .3rem; width: 9px; height: 9px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--accent);
  transform: translateX(-50%);
}
.timeline li.tbc .rail::after { border-style: dashed; border-color: var(--muted); }
.timeline h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.25rem; margin: 0 0 .15rem; line-height: 1.3; }
.timeline p { color: var(--muted); font-size: .95rem; line-height: 1.55; margin: 0 0 .25rem; }
.timeline p:last-child { margin-bottom: 0; }
.timeline a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(122, 92, 110, .4); text-underline-offset: 3px; }
.timeline a:hover { text-decoration-color: var(--accent); }

/* Unconfirmed details: an honest little tag, not a guess */
.tbc-tag {
  display: inline-block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: .1rem .5rem; vertical-align: middle; margin-left: .3rem;
}

/* Plain sections under the timeline (getting there, addresses, still-to-lock) */
.notes { margin-top: 2.4rem; }
.notes h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.5rem; margin: 0 0 .5rem; }
.notes p, .notes li { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.notes ul { padding-left: 1.2rem; margin: .3rem 0; }
.notes a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(122, 92, 110, .4); text-underline-offset: 3px; }
.places { list-style: none; padding: 0; margin: .5rem 0 0; }
.places li { padding: .7rem 0; border-top: 1px solid var(--line); }
.places li:last-child { border-bottom: 1px solid var(--line); }
.places strong { display: block; color: var(--ink); font-weight: 600; }

.back { display: inline-block; margin-top: 3rem; font-size: .9rem; color: var(--muted); }
.back:hover { color: var(--accent); }

@media (max-width: 420px) {
  .timeline li { grid-template-columns: 3.6rem 1rem 1fr; column-gap: .45rem; }
  .timeline time, .timeline .when { font-size: .85rem; }
}

/* Map links sit after an address as a quiet small-caps word; the embed is toned to the paper
   so Google's saturated tiles don't shout over the page. */
.places .map, .timeline .map {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  text-decoration: none; margin-left: .5rem; white-space: nowrap;
}
.places .map:hover, .timeline .map:hover { text-decoration: underline; text-underline-offset: 3px; }
.map-embed { margin: 1.4rem 0 0; }
.map-embed iframe {
  display: block; width: 100%; height: 340px; border: 1px solid var(--line); border-radius: 12px;
  filter: grayscale(.45) sepia(.18) saturate(.9) contrast(.95);
}
.map-embed figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.map-embed figcaption a { color: var(--accent); }
