/* Quiet-luxury itinerary: menu-serif names, timetable mono details,
   matted photos, dotted walking-route spine. Light paper, wine accent. */

:root {
  --paper: #f3eee3;
  --card: #fcfaf4;
  --ink: #26211a;
  --muted: #6f6656;
  --faint: #a09681;
  --line: #ddd4c1;
  --line-soft: #e7dfd0;
  --wine: #6e3038;
  --wine-deep: #532127;
  --pad: 1.25rem;
  --max: 26.5rem;
  --serif-display: "Libre Caslon Display", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100svh;
}

a { color: inherit; text-decoration: none; }
a:active { opacity: 0.7; }

a:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 2px;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(2.25rem + env(safe-area-inset-top)) var(--pad) calc(3rem + env(safe-area-inset-bottom));
}

/* ---- Masthead ---- */

.mast {
  text-align: center;
  margin-bottom: 2rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.9rem;
}

.names {
  font-family: var(--serif-display);
  font-size: clamp(1.9rem, 8vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.12;
}

.names .amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72em;
  color: var(--muted);
}

.date {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.date::before,
.date::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--line);
}

/* ---- Route ---- */

.itinerary {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.leg.transit {
  text-align: center;
  padding: 0.25rem 0;
}

.leg.transit .label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wine);
}

.leg.transit .place {
  margin-top: 0.3rem;
  font-family: var(--serif-display);
  font-size: 1.3rem;
  line-height: 1.2;
}

.leg.transit .note {
  margin-top: 0.2rem;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted);
}

/* route bookends: small wine ring at start and end */
.leg.start .label::before,
.leg.end .place::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto;
  border: 1.5px solid var(--wine);
  border-radius: 50%;
}

.leg.start .label::before { margin-bottom: 0.8rem; }
.leg.end .place::after { margin-top: 0.9rem; }

/* ---- Walk connectors: dotted line = walking route ---- */

.leg.walk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0;
}

.walk-line {
  width: 2px;
  height: 22px;
  background-image: radial-gradient(circle, var(--faint) 1px, transparent 1.4px);
  background-size: 2px 7px;
  background-repeat: repeat-y;
  background-position: center top;
}

.walk-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: center;
}

/* ---- Cards: matted photo, hairline frame ---- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem;
  box-shadow:
    0 1px 2px rgba(38, 33, 26, 0.05),
    0 10px 28px -12px rgba(38, 33, 26, 0.14);
}

.photo {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 3px;
  overflow: hidden;
  background: #e2dbcc;
  box-shadow: inset 0 0 0 1px rgba(38, 33, 26, 0.08);
  -webkit-tap-highlight-color: transparent;
}

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

.body {
  padding: 1.1rem 0.4rem 0.55rem;
  text-align: center;
}

.time {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--wine);
}

h2 {
  margin-top: 0.4rem;
  font-family: var(--serif-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.15;
}

.meta {
  margin-top: 0.4rem;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.05rem;
}

.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border-radius: 3px;
  background: var(--wine);
  color: #f7f2e7;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.05s ease;
}

.btn:active {
  transform: scale(0.98);
  opacity: 1;
  background: var(--wine-deep);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.ghost:active { background: var(--line-soft); }

.conf {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.conf span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-right: 0.35em;
}

/* ---- Entrance: one quiet staggered rise ---- */

@media (prefers-reduced-motion: no-preference) {
  .mast,
  .itinerary > li {
    opacity: 0;
    animation: rise 0.65s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }
  .mast { animation-delay: 0.05s; }
  .itinerary > li:nth-child(1) { animation-delay: 0.16s; }
  .itinerary > li:nth-child(2) { animation-delay: 0.24s; }
  .itinerary > li:nth-child(3) { animation-delay: 0.32s; }
  .itinerary > li:nth-child(4) { animation-delay: 0.4s; }
  .itinerary > li:nth-child(5) { animation-delay: 0.48s; }
  .itinerary > li:nth-child(6) { animation-delay: 0.56s; }
  .itinerary > li:nth-child(7) { animation-delay: 0.64s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 480px) {
  .page { padding-top: 3.25rem; }
}
