:root {
  --ink: #17201c;
  --paper: #f7f6ef;
  --mist: #e6ece8;
  --green: #28634d;
  --sky: #387ca3;
  --clay: #c66b42;
  --muted: #65706b;
  --line: #d8ded8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
img.image-fallback {
  background:
    linear-gradient(135deg, rgba(40, 99, 77, .88), rgba(56, 124, 163, .84), rgba(198, 107, 66, .78)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .18) 0 14px, transparent 14px 28px);
}
.header {
  position: fixed;
  inset: .75rem clamp(.75rem, 2vw, 1.5rem) auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(23, 32, 28, .72);
  color: #ffffff;
  box-shadow: 0 12px 34px rgba(23, 32, 28, .18);
  backdrop-filter: blur(14px);
}
.brand { font-weight: 950; font-size: 1.35rem; }
nav { display: flex; gap: 1rem; font-weight: 850; }
nav a, .brand {
  text-shadow: 0 1px 10px rgba(0, 0, 0, .42);
}
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: clamp(1rem, 4vw, 4rem);
  color: white;
}
.hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  filter: brightness(.68) saturate(1.05);
}
.hero-content {
  position: relative;
  padding-bottom: 7vh;
  max-width: 760px;
}
.hero-content p, .heading p, .builder p {
  margin: 0 0 .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 900;
  color: #bfe8db;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.02; }
h1 { font-size: clamp(3.2rem, 9vw, 8rem); max-width: 10ch; }
.section { padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem); }
.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.heading h2, .builder h2 { font-size: clamp(2rem, 5vw, 4.8rem); max-width: 12ch; }
.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.trip-card, .builder-form, .journal article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 38px rgba(23, 32, 28, .08);
}
.trip-card { overflow: hidden; }
.trip-media {
  aspect-ratio: 4 / 3;
  background:
    var(--trip-fallback, linear-gradient(135deg, rgba(40, 99, 77, .88), rgba(56, 124, 163, .84), rgba(198, 107, 66, .78))),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .18) 0 14px, transparent 14px 28px);
}
.trip-card[data-route="fjord"] .trip-media {
  --trip-fallback: linear-gradient(135deg, #2f675b 0%, #6aa2ba 48%, #d7e7ed 100%);
}
.trip-card[data-route="desert"] .trip-media {
  --trip-fallback: linear-gradient(135deg, #7d5a37 0%, #df8b55 54%, #67b7d5 100%);
}
.trip-card[data-route="forest"] .trip-media {
  --trip-fallback: linear-gradient(135deg, #1f4e38 0%, #5d8d55 48%, #c8d982 100%);
}
.trip-media img {
  height: 100%;
  border-radius: 8px 8px 0 0;
}
.trip-media img.image-fallback { opacity: 0; }
.trip-card div { padding: 1rem; }
.trip-card h3 { font-size: 1.45rem; }
.trip-card p, .journal p { color: var(--muted); line-height: 1.62; }
.trip-card strong { color: var(--clay); }
.builder {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(280px, 1.2fr);
  gap: clamp(1rem, 5vw, 5rem);
  background: var(--mist);
}
.builder-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}
label { display: grid; gap: .45rem; color: var(--muted); font-weight: 850; }
input, select, output {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .75rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
output {
  grid-column: 1 / -1;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 950;
}
.journal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.journal img { aspect-ratio: 16 / 10; border-radius: 8px 8px 0 0; }
.journal h2, .journal p { padding-inline: 1rem; }
.journal h2 { padding-top: 1rem; font-size: 1.6rem; }
.journal p { padding-bottom: 1rem; }
footer { padding: 1.5rem; color: var(--muted); text-align: center; }
@media (max-width: 780px) {
  .header { position: absolute; align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; }
  .hero { min-height: 82vh; }
  .heading { display: block; }
  .trip-grid, .builder, .builder-form, .journal { grid-template-columns: 1fr; }
}
