:root {
  --midnight: #102033;
  --ivory: #f7f3eb;
  --sand: #e6d7c3;
  --amber: #c4924a;
  --amber-ink: #8a6230;
  --muted: #3d4a5c;
  --line: rgba(16, 32, 51, 0.12);
  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --display: "Halant", "Noto Serif Devanagari", serif;
  --sans: "Mukta Vaani", "Noto Sans Devanagari", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--midnight);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: #ead9c0;
  color: var(--midnight);
}

:focus-visible {
  outline: 2px solid var(--amber-ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  z-index: 30;
  left: var(--pad);
  top: 0.8rem;
  transform: translateY(-160%);
  padding: 0.65rem 1rem;
  background: var(--midnight);
  color: var(--ivory);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

main:focus {
  outline: none;
}

#yatra,
#contact {
  scroll-margin-top: 4.75rem;
}

.top,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-inline: var(--pad);
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: calc(0.9rem + env(safe-area-inset-top));
  padding-bottom: 0.9rem;
  background: rgba(247, 243, 235, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--midnight);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.mark {
  width: 1.7rem;
  height: 1.15rem;
  color: var(--midnight);
  flex: none;
}

.nav {
  display: flex;
  gap: 1.35rem;
}

.nav a,
.foot p {
  color: var(--midnight);
  font-weight: 500;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--amber-ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: calc(100svh - 4rem);
  background: var(--ivory);
}

.frame {
  margin: 0;
  min-height: 18rem;
  background: var(--sand);
  overflow: hidden;
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  animation: settle 1.15s ease both;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.85rem;
  padding: clamp(2rem, 5vw, 4rem) var(--pad);
  background: var(--sand);
}

.route {
  width: min(100%, 13.5rem);
  height: auto;
}

.route path {
  fill: none;
  stroke: var(--midnight);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: forth 7s ease-in-out infinite;
}

.route circle:first-of-type {
  fill: var(--amber);
}

.route circle:last-of-type {
  fill: var(--midnight);
}

.kicker,
.eyebrow {
  margin: 0;
  color: var(--amber-ink);
  font-weight: 600;
}

.hero-copy .kicker {
  color: var(--midnight);
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
}

h1 {
  color: var(--midnight);
  font-size: clamp(2.7rem, 4.8vw, 4.6rem);
}

.line {
  display: block;
  animation: rise 0.75s ease both;
}

.line + .line {
  animation-delay: 0.1s;
}

.lede,
.journey p,
.contact p {
  margin: 0;
}

.lede {
  max-width: 36rem;
  color: var(--midnight);
}

.cta {
  margin-top: 0.35rem;
  padding: 0.8rem 1.3rem;
  background: var(--midnight);
  color: var(--ivory);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta:hover {
  background: #1a314d;
  transform: translateY(-1px);
}

.journey {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3.4rem, 8vw, 6.2rem) var(--pad);
  background: var(--ivory);
}

.eyebrow {
  margin-bottom: 0.5rem;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
}

.notes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.notes li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.15rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.notes span {
  grid-row: span 2;
  padding-top: 0.25rem;
  color: var(--amber-ink);
  font-family: var(--display);
  font-size: 1.25rem;
}

.notes h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
}

.notes p {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: clamp(3.4rem, 8vw, 6rem) var(--pad) clamp(3.8rem, 8vw, 6.5rem);
  background: var(--midnight);
  color: var(--ivory);
}

.contact .eyebrow,
.contact h2,
.contact p {
  color: var(--ivory);
}

.contact .eyebrow {
  color: var(--sand);
}

.contact p {
  max-width: 34rem;
  color: var(--sand);
}

.contact .cta {
  background: var(--sand);
  color: var(--midnight);
}

.contact .cta:hover {
  background: #f3e7d6;
}

.contact .cta:focus-visible,
.contact .mail:focus-visible {
  outline-color: var(--sand);
}

.mail {
  color: var(--sand);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail:hover {
  text-decoration: underline;
}

.foot {
  padding-top: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  background: var(--ivory);
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
  font-weight: 500;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  from {
    transform: scale(1.04);
  }
  to {
    transform: none;
  }
}

@keyframes forth {
  0%,
  100% {
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dashoffset: -72;
  }
}

@media (max-width: 860px) {
  .hero,
  .journey {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .frame {
    height: 10.5rem;
    min-height: 0;
    order: -1;
  }

  .hero-copy {
    gap: 0.6rem;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 420px) {
  .wordmark {
    font-size: 0.7rem;
    letter-spacing: 0.07em;
  }

  .mark {
    width: 1.35rem;
  }

  .nav {
    gap: 0.85rem;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 2.9rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
