:root {
  --ink: #17211b;
  --muted: #69726a;
  --paper: #f5efe2;
  --paper-2: #fff8ea;
  --coconut: #fffdf6;
  --sea: #0f7c7e;
  --deep-sea: #0a4f55;
  --coral: #e6533f;
  --sun: #f3b33e;
  --leaf: #6c8d45;
  --line: rgba(23, 33, 27, 0.16);
  --shadow: 0 30px 80px rgba(44, 58, 38, 0.16);
  --radius-xl: 34px;
  --radius-md: 20px;
  --sans: "Be Vietnam Pro", sans-serif;
  --serif: "Fraunces", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 12% 12%, rgba(243, 179, 62, 0.22), transparent 28rem),
    radial-gradient(circle at 90% 3%, rgba(15, 124, 126, 0.18), transparent 34rem),
    linear-gradient(135deg, #f7eedc 0%, #fff8ea 45%, #e7f0e9 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 33, 27, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 27, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  z-index: -2;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.23'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }

.hero {
  min-height: 100vh;
  padding: 28px clamp(18px, 4vw, 64px) 72px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: 4vh;
  width: 44vw;
  aspect-ratio: 1;
  border: 2px solid rgba(15, 124, 126, 0.22);
  border-radius: 46% 54% 66% 34% / 48% 38% 62% 52%;
  background: linear-gradient(135deg, rgba(15, 124, 126, 0.08), rgba(230, 83, 63, 0.08));
  z-index: -1;
  animation: floatBlob 12s ease-in-out infinite;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
}

.brand {
  display: inline-grid;
  place-items: center;
  min-width: 116px;
  padding: 12px 18px;
  color: var(--paper-2);
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 8px 8px 0 var(--sun);
}

.nav-links {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.72);
  backdrop-filter: blur(18px);
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--coconut);
  background: var(--sea);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8.8vw, 8.9rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.intro {
  max-width: 760px;
  color: #455147;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover { transform: translateY(-3px); }
.button.primary { color: var(--coconut); background: var(--coral); box-shadow: 7px 7px 0 var(--ink); }
.button.secondary { background: rgba(255, 253, 246, 0.74); }

.route-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 246, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transform: rotate(1.5deg);
}

.route-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 26px;
}

.route-top span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-top strong {
  font-family: var(--serif);
  color: var(--deep-sea);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.9;
  text-align: right;
}

.route-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.route-line span {
  height: 12px;
  border-radius: 99px;
  background: var(--sea);
}
.route-line span:nth-child(2) { background: var(--sun); }
.route-line span:nth-child(3) { background: var(--leaf); }
.route-line span:nth-child(4) { background: var(--coral); }

.route-card dl { display: grid; gap: 14px; margin: 0; }
.route-card div { padding: 16px; border-radius: 18px; background: rgba(245, 239, 226, 0.7); }
dt { color: var(--muted); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; }
dd { margin: 5px 0 0; font-weight: 800; }

main { padding: 0 clamp(18px, 4vw, 64px) 60px; }

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: -42px 0 84px;
}

.strip article, .cost-grid article {
  padding: 24px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 246, 0.78);
  box-shadow: 0 18px 45px rgba(44, 58, 38, 0.08);
}

.strip span, .cost-grid span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
}

.strip strong, .cost-grid strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
}

.strip p, .cost-grid p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }

.day-section {
  position: relative;
  display: grid;
  content-visibility: auto;
  contain-intrinsic-size: 920px;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  margin-bottom: 96px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 246, 0.56);
  box-shadow: var(--shadow);
}

.day-section.alt { background: rgba(231, 240, 233, 0.72); }
.day-section.deadline { background: rgba(255, 248, 234, 0.82); }

.day-title { position: sticky; top: 28px; align-self: start; }

.day-title h2, .cost-copy h2 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.day-title p:not(.eyebrow), .cost-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.schedule {
  position: relative;
  display: grid;
  gap: 14px;
}

.schedule::before {
  content: "";
  position: absolute;
  left: 116px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(var(--sea), var(--sun), var(--coral));
  opacity: 0.35;
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: stretch;
}

.stop time {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 10px;
  color: var(--coconut);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  border-radius: 20px;
  background: var(--ink);
  box-shadow: 5px 5px 0 rgba(15, 124, 126, 0.25);
}

.stop > div {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 246, 0.76);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.stop:hover > div {
  transform: translateX(8px);
  border-color: rgba(15, 124, 126, 0.4);
  background: var(--coconut);
}

.stop h3 { margin-bottom: 8px; font-size: 1.08rem; }
.stop p { margin: 0; color: var(--muted); line-height: 1.65; }
.stop b { color: var(--deep-sea); font-weight: 800; }
.food time { background: var(--coral); }
.scenic time { background: var(--sea); }
.rest time { background: var(--leaf); }
.deadline-stop time { background: #b22c21; animation: pulse 1.8s ease-in-out infinite; }

.deadline-banner {
  grid-column: 2;
  margin-bottom: 18px;
  padding: 18px 22px;
  color: var(--coconut);
  border-radius: 22px;
  background: linear-gradient(90deg, var(--ink), var(--deep-sea));
  box-shadow: 0 18px 40px rgba(10, 79, 85, 0.24);
}

.costs {
  display: grid;
  content-visibility: auto;
  contain-intrinsic-size: 430px;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: 34px;
  margin-bottom: 54px;
  padding: clamp(24px, 5vw, 54px);
  color: var(--coconut);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(243, 179, 62, 0.35), transparent 24rem),
    linear-gradient(135deg, #10211a, #0a4f55 58%, #17392e);
  box-shadow: var(--shadow);
}

.cost-copy p:not(.eyebrow) { color: rgba(255, 253, 246, 0.76); }
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cost-grid article { background: rgba(255, 253, 246, 0.1); border-color: rgba(255, 253, 246, 0.18); }
.cost-grid span { color: var(--sun); }
.cost-grid p { color: rgba(255, 253, 246, 0.72); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 64px) 42px;
  color: var(--muted);
}

footer p { margin: 0; }
footer a { font-weight: 800; color: var(--deep-sea); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}
.delay-1 { animation-delay: 0.18s; }
.delay-2 { animation-delay: 0.32s; }
.delay-3 { animation-delay: 0.46s; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { transform: scale(1.035); } }
@keyframes floatBlob { 50% { transform: translateY(-18px) rotate(7deg); border-radius: 58% 42% 34% 66% / 36% 58% 42% 64%; } }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  body::before { position: absolute; }
  .grain { display: none; }
  .nav { align-items: flex-start; margin-bottom: 48px; }
  .nav-links { max-width: 100%; overflow-x: auto; backdrop-filter: none; }
  .hero-grid, .day-section, .costs { grid-template-columns: 1fr; }
  .route-card { transform: none; }
  .strip, .cost-grid { grid-template-columns: 1fr; }
  .day-title { position: static; }
  .deadline-banner { grid-column: auto; }
}

@media (max-width: 640px) {
  :root { --shadow: 0 16px 34px rgba(44, 58, 38, 0.12); }
  html { scroll-behavior: auto; }
  body {
    background:
      radial-gradient(circle at 8% 4%, rgba(243, 179, 62, 0.16), transparent 18rem),
      linear-gradient(135deg, #f7eedc 0%, #fff8ea 56%, #e7f0e9 100%);
  }
  body::before { display: none; }
  .hero::after { display: none; }
  .hero { padding-top: 18px; }
  .nav { flex-direction: column; }
  .brand { box-shadow: 5px 5px 0 var(--sun); }
  h1 { font-size: clamp(3rem, 16vw, 4.9rem); }
  .hero-actions, footer { flex-direction: column; }
  .day-section { contain-intrinsic-size: 1080px; padding: 18px; border-radius: 26px; }
  .route-card, .day-section, .costs, .strip article, .cost-grid article { box-shadow: none; }
  .schedule::before { left: 17px; }
  .stop { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
  .stop::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 32px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--sun);
    border: 3px solid var(--coconut);
  }
  .stop time { justify-content: flex-start; min-height: auto; width: fit-content; padding: 10px 14px; }
  .stop:hover > div { transform: none; }
  .strip { margin-top: 0; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .deadline-stop time { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
