:root {
  --forest: #1b3f32;
  --ivory: #f6f1e6;
  --sand: #e7d4b8;
  --gold: #c4a36a;
  --gold-ink: #6f5430;
  --muted: #3c4a42;
  --line: rgba(27, 63, 50, 0.14);
  --line-light: rgba(246, 241, 230, 0.28);
  --pad: clamp(1.25rem, 4.2vw, 4.75rem);
  --display: "Sura", "Noto Serif Devanagari", serif;
  --sans: "Hind Madurai", "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.125rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

:focus-visible {
  outline: 2px solid var(--gold-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: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

main:focus {
  outline: none;
}

#yojana,
#prerana,
#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.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.mark {
  width: 1.8rem;
  height: 0.95rem;
  color: var(--forest);
  flex: none;
}

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

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

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

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 46rem;
  padding: clamp(2.4rem, 7vh, 5.5rem) var(--pad) clamp(1.8rem, 4vh, 3rem);
}

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

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

h1 {
  color: var(--forest);
  font-size: clamp(2.8rem, 6.4vw, 5.5rem);
  font-weight: 700;
}

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

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

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

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

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

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

.frame {
  margin: 0;
  height: clamp(13rem, 38vh, 26rem);
  background: var(--forest);
  overflow: hidden;
}

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

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

.eyebrow {
  margin-bottom: 0.45rem;
}

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

.notes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(27, 63, 50, 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(27, 63, 50, 0.16);
}

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

.notes h3,
.ways h3 {
  font-size: 1.55rem;
  line-height: 1.25;
}

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

.inspire {
  padding: clamp(3.4rem, 8vw, 6rem) var(--pad);
  background: var(--forest);
  color: var(--ivory);
}

.inspire .eyebrow,
.inspire h2,
.inspire-lede {
  color: var(--ivory);
}

.inspire .eyebrow {
  color: var(--gold);
}

.inspire-lede {
  max-width: 36rem;
}

.ways {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.2rem 0 0;
  padding: 0;
}

.ways li {
  padding: 1.35rem 1.2rem 1.5rem;
  background: rgba(246, 241, 230, 0.06);
  border-top: 2px solid var(--gold);
}

.ways h3 {
  margin-bottom: 0.4rem;
  color: var(--sand);
}

.ways p {
  margin: 0;
  color: var(--ivory);
}

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

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

.mail {
  color: var(--gold-ink);
  font-weight: 600;
  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(--forest);
  color: var(--sand);
  border-top: 1px solid var(--line-light);
}

.foot .wordmark {
  color: var(--ivory);
}

.foot p {
  margin: 0;
}

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

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

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

  .frame {
    height: 13rem;
  }

  .hero-copy {
    padding-top: 1.6rem;
    padding-bottom: 1.4rem;
  }
}

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

  .mark {
    width: 1.4rem;
  }

  .nav {
    gap: 0.7rem;
  }

  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;
  }
}
