﻿:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --ink: #202c22;
  --muted: #505e50;
  --line: #d5d9ce;
  --sage: #e3ebdc;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #316652; outline-offset: 4px; }
img { display: block; width: 100%; object-fit: cover; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .brand, .footer strong { font-family: Georgia, serif; font-weight: 400; }
.wrap { width: min(90%, 76rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: .5rem; transform: translateY(-200%); background: white; padding: .5rem; z-index: 2; }
.skip:focus { transform: none; }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.4rem; }
.brand { display: flex; gap: .55rem; align-items: center; font-size: clamp(1.1rem, 3vw, 1.55rem); text-decoration: none; }
.brand-mark { color: #376047; }
nav { display: flex; gap: clamp(.8rem, 3vw, 2.3rem); }
nav a { font-size: .9rem; text-decoration: none; }
nav a:hover, .back:hover { text-decoration: underline; }

.eyebrow, .card-meta span { letter-spacing: .13em; text-transform: uppercase; font-weight: 650; font-size: .875rem; }

.journal { padding-block: clamp(3rem, 6vw, 5rem); scroll-margin-top: 1rem; }
.journal h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.04em; margin-bottom: 1.4rem; }
.travel-map { padding-block: 1rem 0; }
.world-map {
  position: relative;
  isolation: isolate;
  background: #e9f0ed;
  box-shadow: 0 0 0 1px var(--line);
}
.world-map img { height: auto; }
.map-pin {
  position: absolute;
  top: clamp(0.625rem, var(--pin-y), calc(100% - 0.625rem));
  left: clamp(0.625rem, var(--pin-x), calc(100% - 0.625rem));
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  transform: translate(-50%, -50%);
  text-decoration: none;
  border-radius: 50%;
}
.map-pin::before {
  content: '';
  width: .85rem;
  height: .85rem;
  background: #a33c25;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #a33c2533;
}
.map-pin span {
  position: absolute;
  bottom: 100%;
  right: 0;
  padding: .25rem .5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .875rem;
  white-space: nowrap;
  visibility: hidden;
  pointer-events: none;
}
.map-pin--west span { right: auto; left: 0; }
.map-pin:hover, .map-pin:focus-visible { z-index: 1; }
.map-pin:hover span, .map-pin:focus-visible span { visibility: visible; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card a { display: block; text-decoration: none; }
.card a:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.card img { aspect-ratio: 3 / 2; background: var(--sage); }
.card-meta { display: flex; flex-wrap: wrap; gap: .35rem .85rem; justify-content: space-between; align-items: baseline; color: var(--muted); margin-block: .95rem .5rem; }
.card-meta time { font-size: .875rem; }
.card h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.12; }
.card p { margin-top: .5rem; color: var(--muted); line-height: 1.55; }
.footer { border-top: 1px solid var(--line); padding-block: 1.7rem 2.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.footer strong { font-size: 1.25rem; }
.footer p { color: var(--muted); }

.entry { padding-block: 1.5rem 4rem; }
.back { text-underline-offset: .22em; }
.entry-header { max-width: 46rem; margin: 2.5rem auto; text-align: center; }
.entry-header h1 { margin-block: .8rem; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.05em; }
.entry-header > p:last-child { color: var(--muted); font-size: 1.15rem; line-height: 1.5; }
.entry figure { max-width: 60rem; margin-inline: auto; }
.entry figure img { aspect-ratio: 16 / 8; }
figcaption { color: var(--muted); margin-top: .5rem; font-size: .875rem; }
.prose { width: min(100%, 67ch); margin: 2.5rem auto 0; font-size: 1.1rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.9rem; line-height: 1.2; margin-top: 1.5em; }
.prose .itinerary-day { border-top: 1px solid var(--line); }
.itinerary-day summary { padding-block: .9rem; cursor: pointer; }
.itinerary-day summary:focus-visible { outline: 3px solid #316652; outline-offset: 4px; }
.prose .itinerary-day summary h2 { display: inline; margin: 0; font-size: clamp(1.25rem, 3.5vw, 1.65rem); }
.itinerary-day > :not(summary) + * { margin-top: 1em; }
.prose pre { overflow-x: auto; padding: 1rem; background: var(--sage); }

@media (max-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .cards { grid-template-columns: 1fr; gap: 2rem; }
  .masthead { min-height: 4.5rem; }
  .entry figure img { aspect-ratio: 4 / 3; }
}

