/* RythuBadi website.
   Palette "Deccan harvest" (user, 2026-11-14, replaced the green theme): black cotton soil, turmeric, rice white.
   Light page by default: farmers read their phones outdoors in bright sun. */
@font-face { font-family: "Denmark"; src: url("../fonts/denmark.ttf") format("truetype"); font-display: swap; }

:root {
  --soil: #1F1A14;      /* text, dark sections */
  --bark: #3B2C1E;
  --clay: #6A4527;
  --ochre: #9C5A14;
  --turmeric: #F2B21A;  /* the bold colour: main buttons, highlights */
  --haldi: #FBE3A1;     /* soft turmeric */
  --rice: #FCFAF5;      /* page */
  --white: #FFFFFF;
  --sky: #1F5FA8;       /* keyboard focus only */
  --font: "Anek Telugu", "Noto Sans Telugu", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --r: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out for UI (Emil Kowalski's rule) */
  /* section scheme, light by default */
  --bg: var(--rice); --fg: var(--soil); --fg2: rgba(31, 26, 20, .72); --line: rgba(31, 26, 20, .14); --hi: var(--ochre);
}
.dark { --bg: var(--soil); --fg: var(--rice); --fg2: rgba(252, 250, 245, .74); --line: rgba(252, 250, 245, .16); --hi: var(--turmeric); }
.sun  { --bg: var(--turmeric); --fg: var(--soil); --fg2: rgba(31, 26, 20, .78); --line: rgba(31, 26, 20, .2); --hi: var(--soil); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0; background: var(--rice); color: var(--soil);
  font-family: var(--font); font-size: 18px; line-height: 1.6; overflow-x: hidden;
}
section, footer { background: var(--bg); color: var(--fg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--turmeric); }

/* one language at a time */
html[data-lang="te"] [lang="en"], html[data-lang="en"] [lang="te"] { display: none !important; }
html[data-lang="te"] body { line-height: 1.7; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--soil); color: var(--rice); padding: 10px 16px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* header */
.head {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gut); background: rgba(252, 250, 245, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 26, 20, .1);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--soil); }
.brand-mark { width: 40px; height: auto; }
.brand-word { font-family: "Denmark", var(--font); font-size: 19px; letter-spacing: .02em; line-height: 1; padding-top: 3px; }
.head-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid rgba(31, 26, 20, .18); border-radius: var(--r); padding: 3px; }
.lang button {
  font: inherit; font-size: 15px; font-weight: 600; color: rgba(31, 26, 20, .7); background: none; border: 0; border-radius: var(--r);
  padding: 6px 12px; min-height: 36px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--soil); color: var(--rice); }
.head-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid rgba(31, 26, 20, .18); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--soil);
}
.head-btn svg { font-size: 17px; }
.head-btn { transition: transform 160ms var(--ease-out); }
.head-mine { background: var(--turmeric); border-color: var(--turmeric); }
@media (max-width: 640px) {
  .brand-word { display: none; }
  .head-mine { padding: 0; width: 44px; justify-content: center; }
  .head-mine span { display: none; }
  .lang button { padding: 6px 10px; }
}

/* hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
  padding: 28px max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))) 56px; min-height: calc(100svh - 64px);
}
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 1.05fr; gap: 64px; padding-top: 48px; } }
/* one sun, rising behind the tiles */
.glow {
  position: absolute; z-index: -1; width: 64vmax; height: 64vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 178, 26, .55) 0%, rgba(242, 178, 26, .22) 45%, rgba(242, 178, 26, 0) 100%);
}
.glow-a { right: -18vmax; top: -12vmax; }
.glow-b { display: none; }
.hero-title { font-size: clamp(38px, 8.6vw, 92px); font-weight: 760; letter-spacing: -.01em; max-width: 11ch; text-wrap: balance; }
html[data-lang="te"] .hero-title { line-height: 1.25; }
.hero-lead { margin-top: 18px; font-size: clamp(18px, 2vw, 22px); color: var(--fg2); max-width: 34ch; }

/* the six tiles: soil to harvest, one shade each */
.stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 960px) { .stack { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.cap {
  --cb: var(--soil); --cf: var(--rice); --cs: rgba(252, 250, 245, .74);
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 132px; padding: 16px 16px 18px; border-radius: 24px;
  text-decoration: none; color: var(--cf); background: var(--cb);
  box-shadow: 0 14px 30px -20px rgba(31, 26, 20, .55);
  transition: transform 200ms var(--ease-out);
}
@media (min-width: 960px) { .cap { min-height: 188px; padding: 22px 20px 22px; border-radius: 28px; } }
.cap svg { font-size: 28px; }
@media (min-width: 960px) { .cap svg { font-size: 34px; } }
.cap-text { display: flex; flex-direction: column; min-width: 0; }
.cap b { font-size: 21px; font-weight: 700; line-height: 1.2; }
@media (min-width: 960px) { .cap b { font-size: 25px; } }
.cap small { font-size: 15px; color: var(--cs); line-height: 1.35; margin-top: 4px; }
.cap:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .cap:hover { transform: translateY(-4px); } }
.c2 { --cb: var(--bark); }
.c3 { --cb: var(--clay); }
.c4 { --cb: var(--ochre); }
.c5 { --cb: var(--turmeric); --cf: var(--soil); --cs: rgba(31, 26, 20, .78); }
.c6 { --cb: var(--haldi); --cf: var(--soil); --cs: rgba(31, 26, 20, .74); }

/* big word: turmeric letters on soil */
.word { padding: clamp(40px, 10vw, 140px) var(--gut); text-align: center; overflow: hidden; }
.word-big { font-size: clamp(64px, 22vw, 330px); font-weight: 800; line-height: 1.15; white-space: nowrap; color: var(--turmeric); }
.word-big .w { display: inline-block; }
.word-line { margin-top: 10px; font-size: clamp(18px, 2.4vw, 26px); color: var(--fg2); }

/* shared */
section { scroll-margin-top: 72px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: var(--max); margin: 0 auto 22px; padding: 0 var(--gut); }
.sec-head h2, .show h2, .mission h2, .mag h2, .sponsor h2 { font-size: clamp(30px, 4.6vw, 54px); }
.more { color: var(--fg); font-weight: 600; text-decoration-color: var(--hi); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: var(--r);
  text-decoration: none; font-size: 19px; font-weight: 700; transition: transform 160ms var(--ease-out);
}
.btn:active, .head-btn:active, .fab:active, .plans a:active { transform: scale(.97); }
.btn-main { background: var(--turmeric); color: var(--soil); }
.sun .btn-main { background: var(--soil); color: var(--rice); }
.btn-line { border: 1.5px solid currentColor; color: var(--fg); }
.row-actions, .show-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Agrishow, on turmeric */
.show-pin { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gut); }
@media (min-width: 960px) {
  .show-pin { display: grid; grid-template-columns: 1fr auto; column-gap: 48px; }
  .show-head { grid-column: 1; }
  .show-actions { grid-column: 2; grid-row: 1; align-self: end; flex-direction: column; margin-top: 0; }
  .days { grid-column: 1 / -1; }
}
.show-head { display: grid; gap: 10px; }
.show-count { display: flex; align-items: baseline; gap: 12px; font-size: 20px; font-weight: 600; }
.show-count .num { font-size: clamp(56px, 10vw, 120px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.show-note { color: var(--fg2); max-width: 46ch; }
.days { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: clamp(190px, 26vw, 300px); }
.day {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 14px 10px;
  background: var(--soil); color: var(--rice); border-radius: 22px 22px 8px 8px; clip-path: inset(0 0 0 0 round 22px 22px 8px 8px);
}
.day.low { background: var(--rice); color: var(--soil); }
.dname { font-size: 16px; font-weight: 600; }
.dnum { font-size: clamp(34px, 6vw, 64px); font-weight: 800; line-height: 1; }
.dtag { font-size: 13px; font-weight: 600; line-height: 1.25; }
@media (max-width: 520px) { .dtag { font-size: 11px; } .day { padding: 10px 6px; border-radius: 16px 16px 6px 6px; } }

/* Drip Paddy Mission, on soil */
.mission-wrap { display: grid; gap: 28px; max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--gut); align-items: center; }
@media (min-width: 960px) { .mission-wrap { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.mission-media { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 10; }
.mission-media img { width: 100%; height: 100%; object-fit: cover; }
.mission-copy p { margin-top: 14px; color: var(--fg2); max-width: 44ch; }
.hundreds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 0; }
.hundreds div { border-top: 2px solid var(--hi); padding-top: 8px; }
.hundreds dt { font-size: 16px; color: var(--fg2); }
.hundreds dd { margin: 0; font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1; color: var(--hi); }

/* news: a native sideways scroller */
.news { padding: clamp(56px, 8vw, 110px) 0; }
.news-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gut) 18px; scroll-padding: 0 var(--gut); scrollbar-width: thin; scrollbar-color: var(--clay) transparent;
}
@media (min-width: 1240px) { .news-track { padding-left: calc((100% - var(--max)) / 2 + var(--gut)); scroll-padding-left: calc((100% - var(--max)) / 2 + var(--gut)); } }
.story { scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.story img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.story-body { padding: 16px 18px 20px; }
.story h3 { font-size: 21px; }
.story p { margin-top: 8px; font-size: 16px; color: var(--fg2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* magazine */
.mag-wrap { display: grid; gap: 28px; max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--gut); align-items: center; }
@media (min-width: 960px) { .mag-wrap { grid-template-columns: 1.2fr .8fr; gap: 64px; } }
.mag-copy p { margin-top: 14px; color: var(--fg2); max-width: 44ch; }
.plans { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plans a { border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; text-decoration: none; min-height: 72px; background: var(--white); transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out); }
.plans a:hover, .plans a:focus-visible { border-color: var(--soil); background: var(--haldi); }
.plans b { font-size: 18px; }
.plans small { color: var(--ochre); font-size: 15px; font-weight: 600; }
.mag-media { margin: 0 auto; width: min(100%, 360px); border-radius: 180px 180px 28px 28px; overflow: hidden; aspect-ratio: 9 / 14; background: var(--turmeric); }
.mag-media img { width: 100%; height: 100%; object-fit: cover; }

/* learn */
.learn { padding: clamp(56px, 8vw, 110px) 0; background: var(--haldi); }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
@media (max-width: 760px) { .learn-grid { grid-template-columns: 1fr; } }
.learn-card { position: relative; display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4; text-decoration: none; color: var(--rice); }
@media (max-width: 760px) { .learn-card { aspect-ratio: 16 / 10; } }
.learn-card img { width: 100%; height: 100%; object-fit: cover; }
.lc-text {
  position: absolute; inset: auto 0 0 0; padding: 60px 18px 18px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(31, 26, 20, 0), rgba(31, 26, 20, .9) 55%);
}
.lc-text b { font-size: 23px; line-height: 1.2; }
.lc-text small { font-size: 16px; color: rgba(252, 250, 245, .82); }
.coming { max-width: var(--max); margin: 40px auto 0; padding: 0 var(--gut); }
.coming h3 { font-size: 24px; }
.coming ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.coming li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 22px; background: var(--rice); font-size: 20px; }
.coming li span { color: var(--fg2); font-size: 17px; }

/* video reels, on soil */
.watch { padding: clamp(56px, 8vw, 110px) 0; overflow: hidden; }
.reel { display: flex; gap: 14px; padding: 0 var(--gut); margin-top: 14px; width: max-content; }
.reel a { display: block; height: clamp(190px, 24vw, 290px); border-radius: 20px; overflow: hidden; flex: none; aspect-ratio: 9 / 16; }
.reel a.wide { aspect-ratio: 16 / 9; }
.reel img { width: 100%; height: 100%; object-fit: cover; }

/* sponsor, on turmeric */
.sponsor-wrap { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gut); display: grid; gap: 14px; justify-items: start; }
.sponsor p { color: var(--fg2); max-width: 46ch; }

/* footer, on soil */
.foot { padding: 32px var(--gut) 110px; overflow: hidden; }
.foot-word { font-family: "Denmark", var(--font); font-size: clamp(40px, 12.4vw, 196px); line-height: .95; color: var(--bark); white-space: nowrap; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 26px; }
.foot-links a { color: var(--fg2); text-underline-offset: 4px; min-height: 40px; display: inline-flex; align-items: center; }
.foot-legal { text-align: center; margin-top: 18px; font-size: 14px; color: var(--fg2); }

/* phone: help sits where the thumb is, after the tiles */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: none; align-items: center; gap: 8px;
  min-height: 56px; padding: 0 20px; border-radius: var(--r); background: var(--soil); color: var(--rice); text-decoration: none;
  font-size: 18px; font-weight: 700; box-shadow: 0 12px 30px -12px rgba(31, 26, 20, .6);
}
.fab svg { font-size: 22px; color: var(--turmeric); }
@media (max-width: 640px) {
  .fab { display: inline-flex; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 200ms ease, transform 250ms var(--ease-out); }
  .fab.on { opacity: 1; transform: none; pointer-events: auto; }
  html:not(.motion) .fab { opacity: 1; transform: none; pointer-events: auto; }
  .head [data-help] { padding: 0; width: 44px; justify-content: center; }
  .head [data-help] span { display: none; }
}

/* help sheet */
.help { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; justify-items: center; background: rgba(31, 26, 20, .45); }
.help[hidden] { display: none; }
.help-sheet {
  position: relative; width: min(100%, 520px); background: var(--rice); color: var(--soil);
  border-radius: 28px 28px 0 0; padding: 26px 18px calc(22px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) { .help { align-items: center; } .help-sheet { border-radius: 28px; } }
.help-sheet h2 { font-size: 26px; margin: 0 48px 14px 6px; }
.help-x { position: absolute; top: 16px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(31, 26, 20, .2); background: none; color: var(--soil); font-size: 20px; display: grid; place-items: center; cursor: pointer; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.help-row {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 120px; padding: 16px;
  border-radius: 20px; background: var(--white); border: 1px solid rgba(31, 26, 20, .12);
  text-decoration: none; font-size: 18px; font-weight: 600; line-height: 1.3; transition: transform 160ms var(--ease-out);
}
.help-row:active { transform: scale(.97); }
.help-row svg { font-size: 26px; color: var(--ochre); }
