:root {
  color-scheme: light dark;
  --paper: #f8f7f2;
  --canvas: #eeece4;
  --soft-paper: #ffffff;
  --ink: #182019;
  --muted: #626960;
  --border: rgba(24, 32, 25, 0.16);
  --sage: #435e4a;
  --sage-strong: #304738;
  --gold: #a8754a;
  --on-media: #ffffff;
  --shadow: 0 22px 70px rgba(32, 41, 33, 0.12);
  --control-radius: 12px;
  --compact-radius: 18px;
  --content-radius: 30px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 3%, rgba(168, 117, 74, 0.1), transparent 26rem),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header,
main,
footer {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.93rem;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--sage-strong);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand-mark.large {
  font-size: 1.9rem;
  height: 64px;
  margin-inline: auto;
  width: 64px;
}

.quiet-action,
.map-action {
  color: var(--sage);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.journey {
  display: grid;
  gap: 48px;
}

.hero {
  background: var(--canvas);
  border-radius: var(--content-radius);
  box-shadow: var(--shadow);
  color: var(--on-media);
  min-height: clamp(430px, 65vw, 680px);
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-placeholder,
.hero-scrim {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-placeholder {
  background:
    radial-gradient(circle at 68% 24%, rgba(205, 175, 133, 0.48), transparent 25%),
    linear-gradient(145deg, #667d68 0%, #344d3d 45%, #17241c 100%);
}

.hero-placeholder::after {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  content: "";
  height: 48%;
  left: 46%;
  position: absolute;
  top: 18%;
  transform: rotate(-24deg);
  width: 34%;
}

.hero-scrim {
  background: linear-gradient(180deg, rgba(5, 10, 7, 0.02) 24%, rgba(7, 14, 10, 0.82) 100%);
}

.hero-copy {
  bottom: 0;
  max-width: 780px;
  padding: clamp(24px, 5vw, 60px);
  position: absolute;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.9;
  margin-bottom: 18px;
  max-width: 10ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  margin-bottom: 10px;
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.05;
  margin-bottom: 10px;
}

.overline,
.eyebrow {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overline {
  color: var(--gold);
  margin-bottom: 12px;
}

.hero .overline {
  color: #dec39f;
}

.hero-meta {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 0;
}

.introduction {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-inline: auto;
  max-width: 850px;
  width: calc(100% - 40px);
}

.introduction p:last-child {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.link-expiration {
  color: var(--gold) !important;
  font-size: 0.82rem;
  font-weight: 650;
  margin-top: 8px;
}

.traveler-avatar {
  align-items: center;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--sage);
  display: flex;
  font-weight: 750;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.eyebrow {
  color: var(--sage);
  margin-bottom: 6px;
}

.share-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
}

.share-button[hidden] {
  display: none;
}

.share-status {
  grid-column: 2 / -1;
  margin: -8px 0 0;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.82rem;
}

.route-card,
.app-promotion {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--content-radius);
  padding: clamp(22px, 4vw, 42px);
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.route-heading > p {
  color: var(--muted);
  font-size: 0.85rem;
}

.route-map {
  display: block;
  filter: drop-shadow(0 14px 25px rgba(24, 32, 25, 0.07));
  max-height: 520px;
  width: 100%;
}

.route-field {
  fill: var(--soft-paper);
  stroke: var(--border);
  stroke-width: 0.35;
}

.route-grid {
  fill: none;
  stroke: var(--border);
  stroke-width: 0.18;
}

.route-shadow,
.route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-shadow {
  stroke: var(--paper);
  stroke-width: 4;
}

.route-line {
  stroke: var(--sage);
  stroke-width: 1.6;
}

.route-marker circle {
  fill: var(--gold);
  stroke: var(--soft-paper);
  stroke-width: 1;
}

.route-marker text {
  fill: #fff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 3.2px;
  font-weight: 800;
  text-anchor: middle;
}

.places {
  padding-inline: clamp(0px, 2vw, 22px);
}

.place-list {
  display: grid;
  gap: 22px;
}

.place-card {
  background: var(--soft-paper);
  border: 1px solid var(--border);
  border-radius: var(--content-radius);
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  min-height: 260px;
  overflow: hidden;
}

.place-card:nth-child(even) {
  grid-template-columns: minmax(280px, 1.15fr) minmax(220px, 0.85fr);
}

.place-card:nth-child(even) .place-media {
  grid-column: 2;
  grid-row: 1;
}

.place-media {
  min-height: 250px;
  overflow: hidden;
  position: relative;
}

.place-media img,
.place-placeholder {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.place-placeholder {
  background:
    linear-gradient(140deg, rgba(168, 117, 74, 0.2), transparent 50%),
    var(--canvas);
}

.stop-number {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(24, 32, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 0.8rem;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  left: 16px;
  position: absolute;
  top: 16px;
  width: 34px;
}

.place-copy {
  align-self: center;
  padding: clamp(24px, 5vw, 50px);
}

.place-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
}

.recommendation {
  border-left: 3px solid var(--gold);
  margin: 16px 0 18px;
  padding-left: 16px;
}

.recommendation p {
  margin-bottom: 7px;
}

.recommendation-verdict {
  color: var(--sage);
  font-weight: 750;
}

.recommendation-duration,
.recommendation-tip,
.recommendation-caveats,
.place-address {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.recommendation-caveats {
  margin: 8px 0 0;
  padding-left: 18px;
}

.place-address {
  font-style: normal;
  margin-bottom: 6px !important;
}

.map-action {
  display: inline-block;
  margin-top: 8px;
}

.app-promotion {
  align-items: center;
  background:
    radial-gradient(circle at 95% 0, rgba(168, 117, 74, 0.22), transparent 46%),
    var(--sage-strong);
  border-color: transparent;
  color: #fff;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-top: 56px;
}

.app-promotion h2 {
  margin-bottom: 8px;
}

.app-promotion p:last-child {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.promotion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.secondary-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  white-space: nowrap;
}

.primary-action {
  background: #fff;
  color: #203025;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: #fff;
}

footer {
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  justify-content: space-between;
  padding-block: 46px max(46px, env(safe-area-inset-bottom));
}

.unavailable-page {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.unavailable-shell {
  background: var(--soft-paper);
  border: 1px solid var(--border);
  border-radius: var(--content-radius);
  box-shadow: var(--shadow);
  max-width: 620px;
  padding: clamp(34px, 8vw, 76px);
  text-align: center;
  width: 100%;
}

.unavailable-shell h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.94;
  margin: 18px auto 24px;
  max-width: 9ch;
}

.unavailable-message {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 auto 28px;
  max-width: 46ch;
}

.unavailable-shell .primary-action {
  background: var(--sage-strong);
  color: #fff;
}

.unavailable-shell .secondary-action {
  border-color: var(--border);
  color: var(--ink);
}

.centered {
  justify-content: center;
}

.privacy-note {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 28px 0 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 66px;
  }

  .quiet-action {
    font-size: 0.82rem;
  }

  .journey {
    gap: 34px;
  }

  .hero {
    border-radius: var(--compact-radius);
    min-height: 62svh;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-meta span {
    display: block;
    height: 5px;
    visibility: hidden;
  }

  .introduction {
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
  }

  .share-button {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .share-status {
    grid-column: 1 / -1;
    text-align: center;
  }

  .route-card,
  .app-promotion {
    border-radius: var(--compact-radius);
  }

  .route-heading {
    align-items: start;
    display: block;
  }

  .route-heading > p {
    margin-top: 8px;
  }

  .place-card,
  .place-card:nth-child(even) {
    display: block;
    min-height: 0;
  }

  .place-card:nth-child(even) .place-media {
    display: block;
  }

  .place-media {
    min-height: 220px;
  }

  .place-copy {
    padding: 24px;
  }

  .app-promotion {
    align-items: stretch;
    display: block;
  }

  .promotion-actions {
    margin-top: 24px;
  }

  .promotion-actions a {
    flex: 1;
  }

  footer {
    display: grid;
    gap: 8px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121512;
    --canvas: #1c211c;
    --soft-paper: #202620;
    --ink: #f0f2ed;
    --muted: #adb5ac;
    --border: rgba(240, 242, 237, 0.16);
    --sage: #8aad8f;
    --sage-strong: #395142;
    --gold: #d1ad82;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: currentColor;
    --muted: var(--ink);
  }

  .route-line {
    stroke-width: 2.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .share-button,
  .app-promotion,
  footer {
    display: none !important;
  }

  body,
  .route-card,
  .place-card {
    background: #fff;
    color: #111;
  }

  .hero {
    min-height: 480px;
  }
}

.apple-route-map { width: 100%; height: 360px; border-radius: 20px; }
.apple-route-map[hidden] { display: none; }

/* One shared place: the message reads as the traveler's own words, and the photos after the
   hero sit in a simple grid with the captions their coordinates support. */
.place-share-message {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0.5rem 0 0;
}

.place-share-photos {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin: 1.5rem 0;
}

.place-share-photo {
  margin: 0;
}

.place-share-photo img {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.place-share-photo figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* Privacy and support: a readable column, nothing more. */
.document {
  line-height: 1.6;
  margin: 0 auto;
  max-width: 44rem;
  padding: 1.5rem 1.25rem 3rem;
}

.document h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}
