:root {
  --forest: #123128;
  --ivory: #f6f1e6;
  --sand: #e5d2b6;
  --saffron: #e0a15a;
  --saffron-ink: #8a4b22;
  --muted: #3d4a43;
  --line: rgba(18, 49, 40, 0.14);
  --line-light: rgba(246, 241, 230, 0.24);
  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --display: "Kurale", "Noto Serif Devanagari", serif;
  --sans: "Yantramanav", "Noto Sans Devanagari", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #f0d7b4;
  color: var(--forest);
}

:focus-visible {
  outline: 2px solid var(--saffron-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(--forest);
  color: var(--ivory);
  font-weight: 700;
  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(246, 241, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.mark {
  width: 1.85rem;
  height: 0.95rem;
  color: var(--saffron-ink);
  flex: none;
}

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

.nav a {
  color: var(--forest);
  font-weight: 500;
  text-decoration: none;
}

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

.frame {
  margin: clamp(1rem, 2.5vw, 1.75rem) var(--pad) 0;
  background: var(--sand);
  padding: 0.55rem;
  border-top: 3px solid var(--saffron);
  overflow: hidden;
}

.frame img {
  display: block;
  width: 100%;
  height: clamp(12rem, 36vh, 22rem);
  object-fit: cover;
  object-position: center 42%;
  animation: settle 1.15s ease both;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 44rem;
  padding: clamp(1.6rem, 4vh, 2.6rem) var(--pad) clamp(2.2rem, 6vh, 4rem);
}

.kicker {
  margin: 0;
  color: var(--saffron-ink);
  font-weight: 500;
}

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

h1 {
  color: var(--forest);
  font-size: clamp(2.55rem, 5.4vw, 4.6rem);
}

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

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

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

.lede {
  max-width: 40rem;
  color: var(--muted);
}

.cta {
  margin-top: 0.3rem;
  padding: 0.78rem 1.25rem;
  background: var(--forest);
  color: var(--ivory);
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.plan {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3.2rem, 8vw, 5.8rem) var(--pad);
  background: var(--sand);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--forest);
  font-weight: 500;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.notes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(18, 49, 40, 0.16);
}

.notes li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(18, 49, 40, 0.16);
}

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

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

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

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: clamp(3.2rem, 8vw, 5.8rem) var(--pad) clamp(3.6rem, 8vw, 6.2rem);
  background: var(--forest);
  color: var(--ivory);
}

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

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

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

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

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

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

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

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

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

.foot p {
  margin: 0;
  color: var(--forest);
}

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

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

@media (max-width: 800px) {
  .plan {
    grid-template-columns: 1fr;
  }

  .frame {
    margin-top: 0.85rem;
  }

  .frame img {
    height: 11.5rem;
  }

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

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

  .mark {
    width: 1.45rem;
  }

  .nav {
    gap: 0.9rem;
  }

  h1 {
    font-size: clamp(2.3rem, 11vw, 2.8rem);
  }
}

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

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