:root {
  --board: #1e3a2f;      /* mandi chalkboard */
  --board-deep: #16302a;
  --chalk: #f3f5ee;
  --haldi: #e9a21a;      /* turmeric: rates and the main action */
  --wall: #eef2ec;       /* limewash wall */
  --ink: #15261e;
  --ink-soft: #4a5b52;
  --teak: #6e4a2c;       /* board frame */
  --rule: #cdd6cf;
  --display: 'Yatra One', 'Mukta', system-ui, sans-serif;
  --body: 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 1.125rem/1.65 var(--body); }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; flex-wrap: wrap; }
.brand { font: 400 1.6rem/1 var(--display); text-decoration: none; color: var(--board); }
.langs { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.langs a { display: block; padding: 0.35rem 0.8rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.langs a[aria-current='page'] { background: var(--board); color: var(--chalk); }
.langs a:hover { color: var(--ink); }
.langs a[aria-current='page']:hover { color: var(--chalk); }

/* Hero: words on the left, the rate board on the right */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero h1 { font: 400 clamp(2.4rem, 5.6vw, 4.1rem)/1.12 var(--display); margin: 0 0 1.25rem; color: var(--board); max-width: 14ch; }
:lang(hi) .hero h1, :lang(mr) .hero h1 { line-height: 1.3; max-width: 16ch; }
.lead { font-size: 1.25rem; max-width: 36rem; margin: 0 0 2rem; color: var(--ink-soft); }
.action { display: inline-block; background: var(--haldi); color: var(--ink); font-weight: 700; font-size: 1.15rem; padding: 0.85rem 1.6rem; border-radius: 10px; text-decoration: none; }
.action:hover { background: #f2b136; }
.note { margin: 0.9rem 0 0; font-size: 1rem; color: var(--ink-soft); }

.board { background: var(--board); color: var(--chalk); border: 14px solid var(--teak); border-radius: 6px; padding: 1.5rem 1.75rem 1.25rem;
  box-shadow: inset 0 0 0 2px #2c4c3f, inset 0 0 60px rgba(0, 0, 0, 0.25); }
.board h2 { font: 400 1.7rem/1.2 var(--display); margin: 0 0 1rem; color: var(--chalk); }
.board ul { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.55rem 0; border-bottom: 2px dashed rgba(243, 245, 238, 0.22); }
.board li:last-child { border-bottom: 0; }
.crop { font-size: 1.35rem; font-weight: 600; }
.rate { font: 400 2.1rem/1 var(--display); color: var(--haldi); white-space: nowrap; }
.rate small { font: 500 0.95rem var(--body); color: rgba(243, 245, 238, 0.75); margin-left: 0.35rem; }
.board p { margin: 1rem 0 0; font-size: 0.95rem; color: rgba(243, 245, 238, 0.78); }

/* Sections */
section.part { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
section.part h2 { font: 400 clamp(1.8rem, 3.6vw, 2.5rem)/1.2 var(--display); color: var(--board); margin: 0 0 2rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 400 2.6rem/1 var(--display); color: var(--haldi); margin-bottom: 0.5rem; }
.steps h3, .roles dt { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.35rem; }
.steps p, .roles dd { margin: 0; color: var(--ink-soft); }

.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; margin: 0; }
.roles div { border-left: 4px solid var(--board); padding-left: 1rem; }
.roles dd { margin: 0; }

.safe { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.safe p { margin: 0; max-width: 34rem; color: var(--ink-soft); font-size: 1.2rem; }
.slip { width: 100%; border-collapse: collapse; background: #fbfcf9; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; font-size: 1.05rem; }
.slip th, .slip td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.slip th { font-weight: 600; color: var(--ink-soft); width: 42%; }
.slip tr:last-child th, .slip tr:last-child td { border-bottom: 0; }
.slip tr.paid td { font-weight: 700; color: var(--board); }

.band { background: var(--board); color: var(--chalk); padding-block: clamp(2.5rem, 6vw, 4rem); }
.band h2 { font: 400 clamp(1.7rem, 3.4vw, 2.3rem)/1.25 var(--display); margin: 0 0 1.5rem; max-width: 30ch; }
.band .note { color: rgba(243, 245, 238, 0.8); }

footer { padding-block: 2rem 3rem; font-size: 1rem; color: var(--ink-soft); }
footer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }

/* Legal pages */
.legal { max-width: 46rem; padding-block: 2rem 4rem; }
.legal h1 { font: 400 2.4rem/1.2 var(--display); color: var(--board); margin: 0 0 0.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink); }

@media (max-width: 860px) {
  .hero, .safe { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .steps, .roles { grid-template-columns: 1fr; }
  .board { border-width: 10px; padding: 1.25rem; }
  .rate { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .board li { animation: chalk 0.5s ease-out both; }
  .board li:nth-child(2) { animation-delay: 0.12s; }
  .board li:nth-child(3) { animation-delay: 0.24s; }
  .board li:nth-child(4) { animation-delay: 0.36s; }
  @keyframes chalk { from { opacity: 0; transform: translateX(-6px); } }
}
