:root {
  --navy: #0c1830;
  --ivory: #f6f1e6;
  --amber: #e3a23a;
  --amber-ink: #7a3e12;
  --ink: #142033;
  --muted: #3c4a5e;
  --warm: #e8c9a2;
  --line: rgba(246, 241, 230, 0.22);
  --line-dark: rgba(12, 24, 48, 0.14);
  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --display: "Khand", "Noto Sans Devanagari", sans-serif;
  --sans: "Cambay", "Noto Sans Devanagari", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #f3d7a4;
  color: var(--navy);
}

: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(--navy);
  color: var(--ivory);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

main:focus {
  outline: none;
}

#sahayata,
#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.95rem + env(safe-area-inset-top));
  padding-bottom: 0.95rem;
  background: rgba(246, 241, 230, 0.94);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(12px);
}

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

.mark {
  width: 1.45rem;
  height: 1.45rem;
  color: var(--navy);
  flex: none;
}

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

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

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

.frame {
  margin: 0;
  height: clamp(13.5rem, 36vh, 22rem);
  background: var(--navy);
  overflow: hidden;
}

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

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(2.2rem, 5vw, 4rem) var(--pad) clamp(2.6rem, 6vw, 4.5rem);
  background: var(--navy);
  color: var(--ivory);
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--amber);
}

.kicker {
  margin: 0.35rem 0 0;
  color: var(--amber);
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

h1 {
  max-width: 16ch;
  color: var(--ivory);
  font-size: clamp(2.7rem, 5.2vw, 4.8rem);
}

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

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

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

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

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

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

.aid {
  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.25rem) var(--pad);
  background: var(--ivory);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--amber-ink);
  font-weight: 700;
}

h2 {
  margin-bottom: 0.8rem;
  color: var(--navy);
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
}

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

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

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

.notes h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.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(--navy);
  color: var(--ivory);
}

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

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

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

.contact .cta:focus-visible {
  outline-color: var(--ivory);
}

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

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

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

.foot p {
  margin: 0;
}

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

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

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

  h1 {
    max-width: none;
  }

  .frame {
    height: 12.5rem;
  }

  .hero-copy {
    gap: 0.7rem;
    padding-top: 1.55rem;
    padding-bottom: 1.7rem;
  }
}

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

  .nav {
    gap: 0.95rem;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.2rem);
  }
}

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

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