/* ============================================================
   BARISAL & BEYOND WITH NILAY — shared stylesheet
   Palette drawn from the delta:
   river ink, reed paper, shapla crimson, golden hour
   ============================================================ */

:root {
  --river: #16352c;      /* deep river green — primary ink & dark sections */
  --river-soft: #24473c; /* lighter river tone */
  --paper: #f7f5ec;      /* pale reed paper — page background */
  --mist: #e8e9dd;       /* pale green mist — cards, alt sections */
  --shapla: #a8323c;     /* water-lily crimson — the accent */
  --gold: #b8862b;       /* golden hour — used sparingly */
  --ink: #1e2a25;        /* body text */
  --faint: rgba(22, 53, 44, 0.55);

  --display: "Instrument Serif", Georgia, serif;
  --body: "Newsreader", Georgia, serif;
  --label: "Archivo", Arial, sans-serif;
  --bengali: "Noto Serif Bengali", serif;

  --max: 1060px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 1.14rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- utility label ---------- */
.eyebrow {
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shapla);
}

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22, 53, 44, 0.12);
}
header.site .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--river);
  text-decoration: none;
  white-space: nowrap;
}
.brand em { color: var(--shapla); font-style: italic; }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a {
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--river);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a:focus-visible { border-bottom-color: var(--shapla); }
nav.main a.active { border-bottom-color: var(--shapla); color: var(--shapla); }

/* ---------- hero (homepage) ---------- */
.hero {
  position: relative;
  background: var(--river);
  color: var(--paper);
  overflow: hidden;
  padding: 110px 0 130px;
}
.hero .watermark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--bengali);
  font-size: clamp(180px, 30vw, 380px);
  line-height: 1;
  color: rgba(247, 245, 236, 0.06);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  max-width: 15ch;
  margin: 18px 0 26px;
}
.hero h1 em { color: #e4b04a; font-style: italic; }
.hero p.lede {
  max-width: 52ch;
  font-size: 1.2rem;
  color: rgba(247, 245, 236, 0.85);
}
.hero .cta-row { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--shapla); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: #8d2831; }
.btn-ghost { border: 1px solid rgba(247, 245, 236, 0.5); color: var(--paper); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(247, 245, 236, 0.12); }
.btn-dark { border: 1px solid var(--river); color: var(--river); }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--river); color: var(--paper); }

/* ---------- canal divider (signature wave) ---------- */
.canal {
  display: block;
  width: 100%;
  height: 26px;
  color: var(--river);
  opacity: 0.35;
}
.canal.on-dark { color: var(--paper); opacity: 0.3; }

/* ---------- sections ---------- */
section.block { padding: 88px 0; }
section.block.tint { background: var(--mist); }
section.block.dark { background: var(--river); color: var(--paper); }

h2.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin: 12px 0 20px;
  color: var(--river);
}
section.block.dark h2.section-title { color: var(--paper); }

/* ---------- experience cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  margin-top: 46px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(22, 53, 44, 0.16);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(22, 53, 44, 0.16);
}
.card .photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--river) 0%, var(--river-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .photo .bn {
  font-family: var(--bengali);
  font-size: 4.6rem;
  color: rgba(247, 245, 236, 0.22);
  user-select: none;
}
.card .photo .tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: var(--label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(22, 53, 44, 0.75);
  padding: 5px 10px;
  border-radius: 2px;
}
.card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--river);
}
.card p.teaser { font-size: 1rem; color: var(--ink); }
.card .go {
  margin-top: auto;
  font-family: var(--label);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shapla);
}

/* ---------- stories strip ---------- */
.stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
  margin-top: 42px;
}
.story h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #e4b04a;
}
.story p { font-size: 1rem; color: rgba(247, 245, 236, 0.82); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 42px; }
.step h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--river);
  margin-bottom: 8px;
}
.step p { font-size: 1rem; }
.step .k {
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--shapla);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 54px; align-items: start; margin-top: 34px; }
.about-photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--river) 0%, var(--river-soft) 100%);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo .bn { font-family: var(--bengali); font-size: 4rem; color: rgba(247,245,236,0.22); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
blockquote.seely {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--river);
  border-left: 3px solid var(--shapla);
  padding-left: 22px;
  margin: 26px 0;
}

/* ---------- contact / footer ---------- */
.contact-box {
  background: var(--mist);
  border: 1px solid rgba(22, 53, 44, 0.14);
  border-radius: 3px;
  padding: 40px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.contact-box h4 { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--river); margin-bottom: 6px; }
.contact-box a { color: var(--shapla); }

footer.site {
  background: var(--river);
  color: rgba(247, 245, 236, 0.75);
  padding: 46px 0;
  font-size: 0.95rem;
}
footer.site .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
footer.site .bn { font-family: var(--bengali); color: rgba(247,245,236,0.35); }
footer.site a { color: rgba(247,245,236,0.9); }

/* ============================================================
   EXPERIENCE PAGES
   ============================================================ */
.xp-hero {
  position: relative;
  background: var(--river);
  color: var(--paper);
  padding: 96px 0 110px;
  overflow: hidden;
}
.xp-hero .watermark {
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-family: var(--bengali);
  font-size: clamp(150px, 26vw, 320px);
  line-height: 1;
  color: rgba(247, 245, 236, 0.07);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.xp-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  line-height: 1.1;
  max-width: 18ch;
  margin: 16px 0 18px;
}
.xp-hero .meta {
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 236, 0.75);
}
.xp-hero .hook {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.45;
  color: #e4b04a;
  max-width: 44ch;
  margin-top: 26px;
}

/* photo slot — replace with real images later */
.photo-slot {
  position: relative;
  aspect-ratio: 16 / 8;
  background: linear-gradient(160deg, var(--river) 0%, var(--river-soft) 100%);
  border-radius: 3px;
  margin: 54px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .bn { font-family: var(--bengali); font-size: 5rem; color: rgba(247,245,236,0.2); }

article.xp { padding: 76px 0 30px; }
article.xp p { margin-bottom: 26px; }
article.xp p.beat {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--shapla);
  line-height: 1.25;
  margin: 40px 0;
}
article.xp h3.season {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--river);
  margin: 40px 0 12px;
}
article.xp h3.season .bn { font-family: var(--bengali); color: var(--gold); font-size: 1.2rem; margin-left: 8px; }
article.xp strong { color: var(--river); }

.xp-info {
  background: var(--mist);
  padding: 64px 0;
}
.xp-info .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.xp-info h4 {
  font-family: var(--label);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shapla);
  margin-bottom: 14px;
}
.xp-info ul { list-style: none; }
.xp-info li { padding: 7px 0 7px 24px; position: relative; }
.xp-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 10px;
  height: 2px;
  background: var(--shapla);
}
.xp-info .season-note {
  grid-column: 1 / -1;
  font-style: italic;
  color: var(--faint);
  border-top: 1px solid rgba(22, 53, 44, 0.15);
  padding-top: 22px;
}

.xp-cta { padding: 80px 0; text-align: center; }
.xp-cta h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--river);
  margin-bottom: 14px;
}
.xp-cta p { max-width: 54ch; margin: 0 auto 30px; }

.next-xp { background: var(--river); padding: 70px 0; color: var(--paper); }
.next-xp h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin-bottom: 24px; }
.next-links { display: flex; gap: 14px; flex-wrap: wrap; }
.next-links a {
  font-family: var(--label);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid rgba(247,245,236,0.4);
  padding: 12px 18px;
  border-radius: 2px;
}
.next-links a:hover, .next-links a:focus-visible { background: rgba(247,245,236,0.12); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 1.06rem; }
  .hero { padding: 76px 0 90px; }
  .about-grid { grid-template-columns: 1fr; }
  .xp-info .grid { grid-template-columns: 1fr; }
  header.site .bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  nav.main { gap: 14px; }
  .photo-slot { aspect-ratio: 4 / 3; }
}

:focus-visible { outline: 2px solid var(--shapla); outline-offset: 2px; }
