/* গাঙের পাড় — অর্গানিক প্রোডাক্টস
   ------------------------------------------------------------------
   The palette is lifted straight out of the logo file: the cream it sits
   on, the forest green of the wordmark, the river blue and the sun.
   Nothing else is introduced.

   The page has one structural idea: the river from the logo runs down the
   left gutter for the whole page, fills in as you read, and each section
   hangs a sun-coloured marker on it. That line is both the decoration and
   the reading progress, so it earns its place. Everything else stays quiet.
   ------------------------------------------------------------------ */

:root {
  --paper: #f7f4ea;
  --paper-deep: #efeadb;
  --forest: #255a38;
  --forest-deep: #19402a;
  --river: #3581a3;
  --sun: #edb860;

  --ink: #1c3a26;
  --ink-soft: #46584a;
  --cream-soft: rgba(247, 244, 234, 0.76);

  --shell: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --rail: 60px;
  --gutter: 96px;
  --band-bg: var(--paper);

  --ease: cubic-bezier(0.2, 0.75, 0.3, 1);

  --sans: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", "SolaimanLipi", sans-serif;
  --display: "Baloo Da 2", "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", sans-serif;
  --serif: "Tiro Bangla", "Noto Serif Bengali", "Nirmala UI", serif;
}

@media (max-width: 1000px) {
  :root {
    --rail: 42px;
    --gutter: 64px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.0625rem);
  /* Bengali carries matras above and below the line; it needs the room. */
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

p {
  margin: 0;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

:focus-visible {
  outline: 2.5px solid var(--river);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--forest);
  color: var(--paper);
  padding: 0.7em 1.2em;
  border-radius: 0 0 12px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* ---------- shell ---------- */

.inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
}

.col {
  grid-column: 2;
  min-width: 0;
}

.col--narrow {
  max-width: 46rem;
}

section {
  scroll-margin-top: clamp(16px, 4vw, 40px);
}

/* ---------- masthead ---------- */

.masthead {
  padding-block: clamp(18px, 3vw, 30px);
}

.masthead__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  height: clamp(38px, 5vw, 50px);
  width: auto;
  display: block;
}

.flag {
  font-size: 0.88rem;
  color: var(--forest);
  background: rgba(37, 90, 56, 0.08);
  border-radius: 999px;
  padding: 0.35em 1.05em;
  white-space: nowrap;
}

/* ---------- the river ---------- */

main {
  position: relative;
}

.rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--rail);
  left: max(var(--pad), calc(50% - var(--shell) / 2 + var(--pad)));
  z-index: 3;
  pointer-events: none;
}

.rail__sun {
  position: absolute;
  top: clamp(86px, 11vw, 150px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(26px, 2.6vw, 34px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
}

.rail__river {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rail__bed {
  stroke: rgba(53, 129, 163, 0.22);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.rail__flow {
  stroke: var(--river);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s linear;
}

.node {
  position: absolute;
  top: 0.58em;
  left: calc(-1 * var(--gutter) + var(--rail) / 2 - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 5px var(--band-bg);
}

.sec-head {
  position: relative;
  z-index: 4;
  font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem);
  line-height: 1.35;
  max-width: 20ch;
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(56px, 9vw, 120px) clamp(60px, 9vw, 110px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.9rem;
  color: var(--forest);
  background: rgba(37, 90, 56, 0.07);
  border-radius: 999px;
  padding: 0.35em 1.1em 0.35em 0.9em;
  margin-bottom: 1.4rem;
}

.chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
}

h1 {
  font-size: clamp(1.95rem, 1.05rem + 4.1vw, 4.3rem);
  line-height: 1.26;
  font-weight: 700;
}

.lead {
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.28rem);
  line-height: 1.9;
  max-width: 46ch;
  margin-top: 1.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.7em;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  font-weight: 600;
  font-size: 1.01rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 12px 24px -16px rgba(25, 64, 42, 0.95);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: #1f4c2f;
  transform: translateY(-2px);
}

.btn--quiet {
  background: transparent;
  color: var(--forest);
  box-shadow: inset 0 0 0 1.5px rgba(37, 90, 56, 0.3);
}

.btn--quiet:hover {
  background: rgba(37, 90, 56, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(37, 90, 56, 0.55);
}

/* ---------- bands ---------- */

.band {
  padding-block: clamp(60px, 8.5vw, 110px);
}

.band--deep {
  --band-bg: var(--paper-deep);
  background: var(--paper-deep);
}

.band--dark {
  --band-bg: var(--forest-deep);
  background: var(--forest-deep);
  color: var(--cream-soft);
}

.band--dark h2,
.band--dark h3,
.band--dark h4 {
  color: var(--paper);
}

.band--dark .lead {
  color: var(--cream-soft);
}

.band--dark :focus-visible {
  outline-color: var(--sun);
}

/* ---------- what we are for ---------- */

.terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.7rem 3.2rem;
  margin: clamp(2.4rem, 5vw, 3.4rem) 0 0;
  max-width: 54rem;
}

.terms > div {
  border-top: 1px solid rgba(37, 90, 56, 0.16);
  padding-top: 1.1rem;
}

.terms dt {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--ink);
}

.terms dd {
  margin: 0.3rem 0 0;
  font-size: 0.99rem;
}

/* ---------- the list of goods ---------- */

.ledger {
  list-style: none;
  margin: clamp(2.2rem, 4.5vw, 3rem) 0 0;
  padding: 0;
  border-top: 1px solid rgba(37, 90, 56, 0.16);
}

.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.55fr) auto;
  gap: 0.25rem 1.8rem;
  align-items: baseline;
  padding-block: 1.05rem;
  border-bottom: 1px solid rgba(37, 90, 56, 0.16);
}

.ledger h3 {
  font-size: 1.16rem;
  line-height: 1.5;
}

.ledger p {
  font-size: 0.98rem;
  line-height: 1.7;
}

.season {
  color: var(--river);
  font-weight: 500;
  font-size: 0.93rem;
  white-space: nowrap;
  text-align: right;
}

.note {
  margin-top: 1.7rem;
  font-size: 0.99rem;
  max-width: 44ch;
}

/* ---------- the writing ---------- */

.verses {
  display: grid;
  gap: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  max-width: 56rem;
}

.verses figure {
  display: grid;
  gap: 1rem 2.5rem;
  margin: 0;
  border-top: 1px solid rgba(247, 244, 234, 0.24);
  padding-top: 1.5rem;
}

.verses blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.38rem);
  line-height: 2;
  color: var(--paper);
}

.verses figcaption {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--sun);
}

@media (min-width: 900px) {
  .verses figure {
    grid-template-columns: minmax(0, 1fr) 13rem;
    align-items: start;
  }
}

.verses figcaption span {
  color: rgba(247, 244, 234, 0.55);
  font-size: 0.86rem;
}

.shelf-head {
  margin-top: clamp(3rem, 6.5vw, 4.6rem);
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
}

.shelf {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 2.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.shelf li {
  border-top: 1px solid rgba(247, 244, 234, 0.18);
  padding-top: 1rem;
}

.shelf h4 {
  font-size: 1.1rem;
}

.shelf .by {
  color: var(--sun);
  font-size: 0.88rem;
  margin: 0.1rem 0 0.45rem;
}

.shelf p {
  font-size: 0.97rem;
  line-height: 1.8;
}

/* ---------- how it will work ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: clamp(1.8rem, 3.5vw, 2.8rem);
  margin: clamp(2.4rem, 5vw, 3.2rem) 0 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 1.05rem;
}

.steps .num {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
}

.steps h3 {
  grid-column: 2;
  font-size: 1.16rem;
  align-self: center;
}

.steps p {
  grid-column: 2;
  font-size: 0.99rem;
  margin-top: 0.3rem;
}

/* ---------- footer ---------- */

.foot {
  background: var(--forest-deep);
  color: var(--cream-soft);
  padding-block: clamp(48px, 7vw, 78px);
}

.foot .inner {
  display: block;
}

.foot__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.4rem 3rem;
}

.foot__logo {
  height: clamp(46px, 6vw, 58px);
  width: auto;
  display: block;
}

.foot__line {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: rgba(247, 244, 234, 0.6);
}

.foot__nav {
  display: grid;
  gap: 0.5rem;
  font-size: 0.98rem;
}

.foot__nav a {
  color: rgba(247, 244, 234, 0.84);
  text-decoration: none;
  width: fit-content;
}

.foot__nav a:hover {
  color: var(--sun);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot :focus-visible {
  outline-color: var(--sun);
}

.foot__rule {
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  padding-top: 1.3rem;
  border-top: 1px solid rgba(247, 244, 234, 0.16);
  font-size: 0.9rem;
  color: rgba(247, 244, 234, 0.55);
}

/* ---------- the one page-load moment ---------- */

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

[data-lift] {
  animation: lift 0.75s var(--ease) both;
}

[data-lift="1"] {
  animation-delay: 0.05s;
}
[data-lift="2"] {
  animation-delay: 0.16s;
}
[data-lift="3"] {
  animation-delay: 0.3s;
}
[data-lift="4"] {
  animation-delay: 0.42s;
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  h1 br {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --rail: 0px;
    --gutter: 0px;
  }

  .rail {
    display: none;
  }

  /* No gutter to hang the marker in, so it sits above the heading instead.
     column-reverse puts the dot before the heading's own text. */
  .sec-head {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .node {
    position: static;
    margin-bottom: 0.85rem;
    box-shadow: none;
  }

  .sec-head {
    max-width: none;
  }

  .ledger li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
    padding-block: 1.15rem;
  }

  .season {
    text-align: left;
    margin-top: 0.25rem;
  }

  .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
