:root {
  --bg: #f6f7f8;
  --text: #1f2933;
  --accent: #2f7d32;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: var(--accent);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hike {
  background: var(--card);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hike h2 {
  margin-top: 0;
}

.meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* 120 × 1.5 */
  gap: 1.125rem;            /* 0.75 × 1.5 */
  margin-top: 1.5rem;       /* 1 × 1.5 */
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 15px;      /* 10 × 1.5 */
  max-width: clamp(150px, 30vw, 240px); /* 100–160 × 1.5 */
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: #666;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.4;
}

.gpx-download {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  margin-top: 1.25rem;
  padding: 0.75rem 1rem;

  background: var(--card);
  border: 1px solid #e3e6e8;
  border-radius: 14px;

  text-decoration: none;
  color: var(--text);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gpx-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.gpx-icon {
  font-size: 1.5rem;
}

.gpx-text strong {
  display: block;
  font-size: 0.95rem;
}

.gpx-text small {
  display: block;
  font-size: 0.8rem;
  color: #666;
}

.span-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: var(--card);
  border: 1px solid #e3e6e8;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}