/* ===== Tokens ===== */
:root {
  --navy: #123A5C;
  --navy-deep: #0B2740;
  --sea: #2E86AB;
  --coral: #F0562F;
  --sand: #F5B942;
  --teal: #1FA098;
  --paper: #FBF8F1;
  --ink: #16232E;
  --ink-soft: #4B5A66;
  --ink-faint: #7C8A94;

  --display: "Fraunces", serif;
  --hand: "Caveat", cursive;
  --body: "Lora", serif;
  --mono: "Courier Prime", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
img, svg { display: block; }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin: 0 0 0.7em;
}

/* ===== Nav ===== */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 6vw;
  font-family: var(--mono);
  font-size: 0.8rem;
  background: var(--navy);
  color: var(--paper);
}
.topnav .brand {
  font-family: var(--hand);
  font-size: 1.6rem;
  color: var(--sand);
}
.topnav ul { list-style: none; display: flex; gap: 1.8rem; margin: 0; padding: 0; flex-wrap: wrap; }
.topnav a { text-decoration: none; color: var(--paper); opacity: 0.85; transition: opacity 0.15s, color 0.15s; }
.topnav a:hover, .topnav a.active { opacity: 1; color: var(--sand); }

/* ===== Hero (home) ===== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
  padding: 5rem 6vw 6rem;
  overflow: hidden;
  text-align: center;
}
.hero .eyebrow { color: var(--sand); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); color: var(--paper); }
.hero h1 em { font-style: italic; color: var(--coral); }
.hero .dates {
  font-family: var(--mono);
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--paper);
  opacity: 0.85;
}
.hero .subtitle {
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--sand);
  margin-top: 1rem;
}
.wave {
  position: absolute;
  bottom: -2px; left: 0; width: 100%; height: 60px;
}

.crew {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.crew .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  color: var(--navy-deep);
  border: 2px solid var(--paper);
}

/* ===== Route section ===== */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.5rem 6vw 2rem;
}
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); position: relative; display: inline-block; }
.section-head h2::after {
  content: "";
  display: block;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--sand), var(--teal));
  margin: 0.6em auto 0;
  border-radius: 4px;
}
.section-sub { color: var(--ink-faint); font-style: italic; margin-top: 0.6rem; }

.day-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
}
.day-card {
  background: #fff;
  border: 1px solid #E9E1D0;
  border-top: 6px solid var(--sea);
  padding: 1.7rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 3px 5px 0 rgba(18,58,92,0.08);
  display: block;
}
.day-card:nth-child(2) { border-top-color: var(--coral); }
.day-card:nth-child(3) { border-top-color: var(--sand); }
.day-card:nth-child(4) { border-top-color: var(--teal); }
.day-card:hover { transform: translateY(-5px); box-shadow: 5px 9px 0 rgba(18,58,92,0.14); }
.day-card .day-num { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.day-card h3 { font-size: 1.3rem; margin: 0.5rem 0 0.6rem; }
.day-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.day-card .arrow { display: inline-block; margin-top: 1rem; font-family: var(--mono); font-size: 0.78rem; }

/* ===== Practical info ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem;
}
.info-card {
  background: #fff;
  border: 1px solid #E9E1D0;
  padding: 1.5rem 1.4rem;
}
.info-card .icon { width: 34px; height: 34px; color: var(--sea); margin-bottom: 0.8rem; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 2.4rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: var(--navy);
}
.site-footer p { color: var(--paper); opacity: 0.7; margin: 0; }

/* ===== Day page ===== */
.day-hero {
  position: relative;
  padding: 4rem 6vw 4.5rem;
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}
.day-hero .day-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.18);
  padding: 0.4em 0.9em;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.day-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--paper); }
.day-hero .day-sub { font-family: var(--hand); font-size: 1.4rem; margin-top: 0.8rem; color: var(--sand); }
.day-hero svg.icon-deco { width: 70px; height: 70px; margin: 0 auto 1rem; opacity: 0.9; }

.day-body { max-width: 760px; margin: 0 auto; padding: 4rem 6vw 5rem; }
.stop-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.stop-list li {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px dashed #DCD0B4;
}
.stop-list li:last-child { border-bottom: none; }
.stop-time { font-family: var(--mono); font-size: 0.82rem; color: var(--coral); min-width: 70px; }
.stop-body h4 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 0.3rem; }
.stop-body p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.tip-box {
  background: #FFF3E3;
  border-left: 4px solid var(--sand);
  padding: 1.2rem 1.4rem;
  font-size: 0.92rem;
  margin-bottom: 2.4rem;
}
.tip-box strong { font-family: var(--hand); font-size: 1.15rem; color: var(--coral); }

.van-box {
  background: #E7F3F6;
  border-left: 4px solid var(--sea);
  padding: 1.2rem 1.4rem;
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}
.van-box strong { font-family: var(--hand); font-size: 1.15rem; color: var(--sea); }

.day-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid #E9E1D0;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.day-nav a { text-decoration: none; border-bottom: 1px solid var(--ink-faint); padding-bottom: 2px; }
.day-nav a:hover { color: var(--coral); border-color: var(--coral); }

/* Photo placeholders */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin: 2.4rem 0;
}
.photo-grid .ph {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.photo-grid svg { width: 40%; height: 40%; opacity: 0.85; }

/* ===== Slideshow ===== */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 260px;
  overflow: hidden;
  margin: 2.4rem 0;
  box-shadow: 4px 6px 0 rgba(18,58,92,0.1);
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.slideshow .slide.active { opacity: 1; pointer-events: auto; }
.slideshow .slide svg { width: 32%; height: 32%; opacity: 0.9; }
.slideshow .slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.slide-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 2;
  background: rgba(11, 39, 64, 0.45);
  color: #FBF8F1;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 12px;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 39, 64, 0.45);
  color: #FBF8F1;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.slide-btn:hover { background: rgba(11, 39, 64, 0.75); }
.slide-btn.prev { left: 12px; }
.slide-btn.next { right: 12px; }

.recit p { font-size: 1.02rem; margin-bottom: 1.3rem; color: var(--ink); }
.recit p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 3rem;
  float: left;
  line-height: 0.85;
  padding-right: 0.15em;
  color: var(--coral);
}

@media (max-width: 760px) {
  .topnav { flex-direction: column; gap: 1rem; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-btn { width: 48px; height: 48px; font-size: 1.6rem; }
  .slide-btn.prev { left: 8px; }
  .slide-btn.next { right: 8px; }
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
