:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5f6e69;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #dde2da;
  --accent: #d14f2f;
  --accent-2: #0d766f;
  --sun: #f3bd4a;
  --shadow: 0 18px 50px rgba(23, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  min-height: 72vh;
  display: flex;
  align-items: end;
  padding: 72px clamp(20px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68)),
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd56a;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
}

.button.light {
  color: var(--ink);
}

.button.primary.light {
  color: white;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px clamp(20px, 5vw, 48px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 38px;
  align-items: start;
}

.intro > p {
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  margin-bottom: 24px;
}

.trip-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trip-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.trip-card-body {
  padding: 36px;
}

.date {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.text-link {
  color: var(--accent-2);
  font-weight: 900;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rule-grid article,
.card-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.rule-grid p,
.trip-card p,
.post-section p,
.footer {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.post {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 48px) 80px;
}

.post-hero {
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trip-hero img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.compact-hero img {
  min-height: 360px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.post-title {
  padding: clamp(28px, 5vw, 54px);
}

.post-title h1 {
  color: var(--ink);
}

.post-title p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-size: 18px;
}

.open-hint {
  display: inline-flex;
  margin-top: 28px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.post-section {
  margin-top: 58px;
}

.mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mood-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-weight: 800;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-grid figure {
  overflow: hidden;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-grid figcaption {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.overview-panel {
  display: grid;
  gap: 20px;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.overview-panel h3 {
  max-width: 900px;
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.overview-panel p {
  max-width: 760px;
  margin-bottom: 0;
}

.route-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.route-chain span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 900;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.summary-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.summary-grid strong {
  display: block;
  margin-bottom: 8px;
}

.summary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.plan-layout {
  display: grid;
  gap: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(220px, 300px);
  gap: 16px;
  align-items: start;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline time {
  color: var(--accent);
  font-weight: 900;
}

.timeline h3 {
  margin-bottom: 4px;
}

.timeline p {
  margin-bottom: 0;
}

.daily-map-card {
  overflow: hidden;
  align-self: stretch;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.daily-route-map {
  width: 100%;
  min-height: 170px;
  border-bottom: 1px solid var(--line);
  background: #edf3ef;
}

.daily-map-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.daily-map-stops li {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.daily-map-stops li::before {
  color: var(--accent);
  content: counter(list-item) ".";
  font-weight: 900;
}

.daily-map-card .leaflet-tooltip {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(23, 33, 31, 0.12);
  color: var(--ink);
  font-weight: 800;
}

.day-route {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(13, 118, 111, 0.24);
  border-radius: 6px;
  background: rgba(13, 118, 111, 0.07);
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
}

.day-route strong {
  color: var(--ink);
}

.time-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.time-list li {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
}

.time-list span {
  display: inline-block;
  min-width: 92px;
  margin-right: 8px;
  color: var(--accent);
  font-weight: 900;
}

.day-photo {
  display: block;
  width: 100%;
  max-height: 260px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16 / 6.8;
}

.check-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.photo-spots-page .post-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.spot-grid {
  display: grid;
  gap: 14px;
}

.spot-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spot-card time {
  color: var(--accent);
  font-weight: 900;
}

.spot-card h3 {
  margin-bottom: 6px;
}

.spot-card p {
  margin-bottom: 14px;
}

.spot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spot-list li {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.spot-list strong,
.spot-list span {
  display: block;
}

.spot-list strong {
  color: var(--accent-2);
  font-size: 15px;
}

.spot-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.spot-note {
  display: inline-flex;
  margin: 14px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(209, 79, 47, 0.22);
  border-radius: 6px;
  background: rgba(209, 79, 47, 0.07);
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 820px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 76vh;
    padding-top: 96px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 66px);
  }

  .intro,
  .trip-card,
  .post-hero,
  .plan-layout,
  .photo-grid,
  .spot-card,
  .spot-list,
  .summary-grid,
  .rule-grid {
    grid-template-columns: 1fr;
  }

  .trip-card img,
  .trip-hero img {
    min-height: 260px;
  }

  .page-actions,
  .summary-link {
    width: 100%;
  }

  .page-actions .button,
  .summary-link {
    justify-content: center;
    width: 100%;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .daily-map-card {
    min-height: 0;
  }

  .daily-route-map {
    min-height: 240px;
  }

  .time-list {
    grid-template-columns: 1fr;
  }
}
