:root {
  --ivory: #f7f2ea;
  --forest: #1e4638;
  --forest-soft: #2f5c4a;
  --terracotta: #b86a54;
  --charcoal: #1c1916;
  --muted: #4e4a44;
  --muted-light: #d9e3dc;
  --line: rgba(28, 25, 22, 0.14);
  --line-light: rgba(247, 242, 234, 0.18);
  --pad: clamp(1.35rem, 4.4vw, 4.75rem);
  --serif: "Sahitya", "Noto Serif Devanagari", serif;
  --sans: "Karma", "Noto Sans Devanagari", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #ead3cb;
  color: var(--charcoal);
}

:focus-visible {
  outline: 2px solid var(--forest);
  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;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: calc(1rem + env(safe-area-inset-top));
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

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

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

.nav a:hover,
.foot a:hover {
  color: var(--forest);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  min-height: calc(100svh - 4.4rem);
  align-items: stretch;
}

.frame {
  margin: 0;
  min-height: 320px;
  background: #e7d7cc;
  overflow: hidden;
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(2rem, 6vh, 4rem) var(--pad) clamp(2.2rem, 6vh, 4.2rem);
}

.kicker,
.eyebrow {
  margin: 0;
  color: var(--forest);
  font-size: 1.02rem;
  font-weight: 600;
}

.hero h1,
.search h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  text-wrap: balance;
}

.hero h1 {
  margin-top: 0.55rem;
  font-size: clamp(2.4rem, 4.2vw, 3.9rem);
  line-height: 1.3;
}

.line {
  display: block;
}

.line-rule {
  width: fit-content;
  max-width: 100%;
  background-image: linear-gradient(var(--terracotta), var(--terracotta));
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 3.2em 3px;
}

.lede,
.search-copy p,
.contact p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.lede {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1.12rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1.3rem;
  background: var(--forest);
  color: var(--ivory);
  font: inherit;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: var(--forest-soft);
  transform: translateY(-1px);
}

#search,
#contact {
  scroll-margin-top: 5rem;
}

.search,
.contact {
  padding-inline: var(--pad);
}

.search {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-top: clamp(4.2rem, 10vh, 7rem);
  padding-bottom: clamp(4.2rem, 10vh, 7rem);
  border-top: 1px solid var(--line);
}

.search h2,
.contact h2 {
  margin-top: 0.45rem;
  font-size: clamp(2.05rem, 3.8vw, 3.15rem);
  line-height: 1.35;
}

.search-copy p,
.contact p {
  margin-top: 0.85rem;
  max-width: 32rem;
  font-size: 1.12rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 1.1rem 0 1.2rem;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps h3 {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.35;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(4.2rem, 10vh, 6.5rem);
  padding-bottom: clamp(4.2rem, 10vh, 6.5rem);
  background: var(--forest);
  color: var(--ivory);
}

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

.contact p {
  color: var(--muted-light);
}

.cta-light {
  background: var(--ivory);
  color: var(--forest);
}

.cta-light:hover {
  background: #fff;
  color: var(--forest);
}

.mail {
  margin-top: 1.15rem;
  color: var(--ivory);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--ivory);
}

.mail:hover {
  color: var(--ivory);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.1rem var(--pad) calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

@media (min-width: 901px) {
  .frame img {
    position: absolute;
    inset: 0;
  }

  .frame {
    position: relative;
    min-height: 100%;
  }
}

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

  .hero {
    min-height: 0;
  }

  .frame {
    height: min(52vh, 420px);
  }

  .hero-copy {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .cta,
  .cta-light {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .nav {
    gap: 0.9rem;
  }

  .wordmark {
    letter-spacing: 0.08em;
    font-size: 0.78rem;
  }
}

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

  .cta,
  .frame img {
    transition: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy .kicker,
  .hero h1 .line,
  .lede,
  .hero .cta {
    animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero h1 .line:nth-child(2) {
    animation-delay: 0.08s;
  }

  .lede {
    animation-delay: 0.14s;
  }

  .hero .cta {
    animation-delay: 0.2s;
  }

  .frame img {
    animation: settle 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

  to {
    transform: scale(1);
  }
}
