
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-wrap: break-word;
}

body {
  margin: 0;
  color: #222;
  background: #fff;
  font-family: Georgia, "Songti TC", "Noto Serif CJK TC", "Times New Roman", serif;
  line-height: 1.72;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

/* Shared site navigation, intentionally close to the minimal homepage style. */
.site-header {
  border-bottom: 1px solid #ddd;
}

.site-nav {
  width: min(900px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

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

.trip-report {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 2.1rem;
  color: #777;
  font-size: 0.88rem;
}

.breadcrumb a {
  color: inherit;
}

.trip-title {
  margin: 0 0 10px;
  font-size: clamp(2.35rem, 6vw, 4.2rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.byline {
  margin: 0.15rem 0;
  color: #666;
  font-size: 0.98rem;
}

.byline + h2 { margin-top: 3.4rem; }

h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 400;
}

h2 {
  margin: 3.6rem 0 1rem;
  padding-top: 0.2rem;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
}

h3 {
  margin: 2.6rem 0 0.8rem;
  font-size: 1.45rem;
}

h4 {
  margin: 2rem 0 0.65rem;
  font-size: 1.18rem;
  font-weight: 600;
}

h5, h6 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0.9rem 0;
}

ul, ol {
  margin: 0.85rem 0 1rem 1.25rem;
  padding-left: 1.25rem;
}

li {
  margin: 0.3rem 0;
}

.list-level-2 { margin-left: 2.8rem; }
.list-level-3 { margin-left: 4.3rem; }
.indent-1 { margin-left: 1.6rem; }
.indent-2 { margin-left: 3.2rem; }
.indent-3 { margin-left: 4.8rem; }

.centered { text-align: center; }

.photo-row {
  margin: 1.9rem 0 0.35rem;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.photo-row a {
  text-decoration: none;
}

.photo-row img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.photo-row.single-image img {
  width: auto;
  max-height: 78vh;
}

.photo-row.multi-image {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.photo-row.multi-image a {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-row.multi-image img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.photo-row.multi-image a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.caption {
  max-width: 760px;
  margin: 0.35rem auto 1.9rem;
  color: #666;
  text-align: center;
  font-size: 0.91rem;
  line-height: 1.55;
}

strong { font-weight: 700; }
em { font-style: italic; }

.site-footer {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 48px;
  border-top: 1px solid #ddd;
  color: #777;
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
  }

  .site-links {
    gap: 16px;
  }

  .trip-report {
    width: min(100% - 28px, 900px);
    padding-top: 32px;
  }

  .photo-row.multi-image {
    grid-template-columns: 1fr;
  }

  .photo-row.multi-image a:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .list-level-2, .list-level-3,
  .indent-1, .indent-2, .indent-3 {
    margin-left: 1.25rem;
  }
}
