/* ==========================================================================
   ইস্যু — blog + magazine UI
   Plain CSS, no JavaScript. Mobile-first: base rules are the phone layout,
   and min-width queries add to it (40rem, 56.25rem, 75rem).

   1. Tokens       4. Header + nav      7. Issues + covers    10. Article
   2. Base         5. Buttons + chips   8. Posts              11. Issue page
   3. Layout       6. Hero + bands      9. Footer             12. Motion
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Brand palette */
  --red: #D20023;
  --ink: #121212;
  --graphite: #383838;
  --white: #FFFFFF;

  /* Tints used in the brand mockups */
  --red-deep: #7A0012;
  --blush: #FFF1F2;
  --blush-2: #FBDDE1;

  /* Roles (these are what dark mode swaps) */
  --bg: var(--white);
  --surface: var(--white);
  --surface-2: var(--blush);
  --text: var(--ink);
  --text-2: var(--graphite);
  --text-3: #666666;
  --line: rgb(18 18 18 / .12);
  --accent: var(--red);
  --glow-1: var(--blush-2);
  --glow-2: #F8CFD6;
  --header-bg: rgb(255 255 255 / .86);
  --shadow: 0 1px 2px rgb(18 18 18 / .06), 0 12px 32px -12px rgb(122 0 18 / .22);

  /* Type */
  --font-ui: "Anek Bangla", "Noto Sans Bengali", system-ui, sans-serif;
  --font-read: "Noto Serif Bengali", "Noto Sans Bengali", Georgia, serif;
  --font-cover: "Galada", "Anek Bangla", sans-serif;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.05rem, 1.6rem + 2.3vw, 3.4rem);

  /* Space + shape */
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3rem, 7vw, 5.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --tabbar-h: 62px;
}

/* Dark mode: the moon button in the header is a hidden checkbox (#theme). */
:root:has(#theme:checked) {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1C1C1C;
  --surface-2: #232323;
  --text: #F5F5F5;
  --text-2: #D0D0D0;
  --text-3: #A6A6A6;
  --line: rgb(255 255 255 / .14);
  --accent: #FF4D67;
  --glow-1: #3A0A13;
  --glow-2: #2A0C12;
  --header-bg: rgb(18 18 18 / .86);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .7);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { line-height: 1.32; font-weight: 700; text-wrap: balance; }
input, button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed; top: .5rem; left: .5rem; z-index: 100;
  padding: .5rem 1rem;
  color: var(--white); background: var(--ink);
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* 3. Layout --------------------------------------------------------------- */
.wrap {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

.section { padding-block: var(--section); }
.section--tint { background: var(--surface-2); }
.section--flush { padding-top: 1.5rem; }
.section-gap { margin-top: 2.5rem; }

.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.sec-head h2 {
  padding-left: .8rem;
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.25;
  border-left: 5px solid var(--red);
}
.sec-head__link {
  flex: none;
  display: inline-flex; align-items: center; gap: .3rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--accent);
}
.sec-head__link:hover { text-decoration: underline; text-underline-offset: 4px; }

.page-head {
  padding-block: clamp(2rem, 6vw, 3.75rem) clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(50% 120% at 0 0, var(--glow-1), transparent 70%),
    radial-gradient(40% 120% at 100% 0, var(--glow-2), transparent 70%);
}
.page-head h1 { font-size: var(--step-4); font-weight: 800; }
.page-head p { max-width: 38rem; margin-top: .4rem; color: var(--text-2); font-size: var(--step-1); }

/* 4. Header + nav --------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  height: 60px;
}
.brand { flex: none; display: block; padding-block: 4px; }
.brand img { width: auto; height: 42px; }
.logo-dark { display: none; }
:root:has(#theme:checked) .logo-light { display: none; }
:root:has(#theme:checked) .logo-dark { display: block; }

.nav { display: none; }

.hdr__act { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .i-sun { display: none; }
:root:has(#theme:checked) .icon-btn .i-sun { display: block; }
:root:has(#theme:checked) .icon-btn .i-moon { display: none; }
#theme:focus-visible ~ .hdr .icon-btn { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Phone + tablet: bottom tab bar, so nothing is hidden behind a hamburger. */
.tabbar {
  position: fixed; inset: auto 0 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  height: var(--tabbar-h);
  font-size: .78rem; font-weight: 500; line-height: 1.2;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
}
.tab::-webkit-details-marker { display: none; }
.tab svg { width: 23px; height: 23px; }
.tab[aria-current="page"] { color: var(--accent); font-weight: 700; }

.more__panel {
  position: fixed; left: .75rem; right: .75rem;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + .6rem);
  padding: .4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.more__panel a {
  display: flex; align-items: center;
  min-height: 48px;
  padding-inline: .9rem;
  font-weight: 500;
  border-radius: 12px;
}
.more__panel a:hover, .more__panel a:active { background: var(--surface-2); }
.more[open] .tab { color: var(--accent); }

/* Desktop nav */
.has-menu { position: relative; }
.menu {
  position: absolute; top: 100%; left: -.4rem;
  min-width: 13rem;
  padding: .4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu {
  opacity: 1; visibility: visible; transform: none;
}
.menu a { display: block; padding: .5rem .7rem; border-radius: 9px; }
.menu a:hover { color: var(--accent); background: var(--surface-2); }

/* 5. Buttons + chips ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .35rem 1.3rem;
  font-weight: 600; line-height: 1.25;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { flex: none; width: 19px; height: 19px; }
.btn:active { transform: scale(.98); }
.btn--red { color: var(--white); background: var(--red); }
.btn--red:hover { background: #A8001C; }
.btn--line { color: var(--text); border-color: currentColor; }
.btn--line:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
:root:has(#theme:checked) .btn--line:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.btn--white { color: var(--ink); background: var(--white); }
.btn--white:hover { color: var(--red); }
.btn--ghost { color: var(--white); border-color: rgb(255 255 255 / .6); }
.btn--ghost:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.btn--sm { min-height: 40px; padding-inline: 1rem; font-size: .95rem; }
.btn small { font-size: .85em; font-weight: 500; opacity: .85; }

.btn-row { display: flex; flex-wrap: wrap; gap: .65rem; }

/* Filters: radio buttons + :has(), so they work without JavaScript.
   They scroll sideways on phones instead of wrapping into several rows. */
.chips {
  display: flex; gap: .5rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-block: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label, .chip {
  flex: none;
  display: inline-flex; align-items: center;
  min-height: 42px;
  padding-inline: 1.05rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.chips input:checked + label { color: var(--white); background: var(--red); border-color: var(--red); }
.chips input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

.filterable .chips { margin-bottom: 1.5rem; }

.filterable:has(#c-analysis:checked) [data-c]:not([data-c="analysis"]),
.filterable:has(#c-env:checked) [data-c]:not([data-c="env"]),
.filterable:has(#c-culture:checked) [data-c]:not([data-c="culture"]),
.filterable:has(#c-tech:checked) [data-c]:not([data-c="tech"]),
.filterable:has(#c-history:checked) [data-c]:not([data-c="history"]),
.filterable:has(#y-2026:checked) [data-y]:not([data-y="2026"]),
.filterable:has(#y-2025:checked) [data-y]:not([data-y="2025"]),
.filterable:has(#y-2024:checked) [data-y]:not([data-y="2024"]) { display: none; }

.search {
  display: flex; align-items: center;
  max-width: 34rem;
  margin-top: 1.1rem;
  padding: .25rem .25rem .25rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.search input {
  flex: 1; min-width: 0;
  min-height: 44px;
  font-size: 1rem;     /* stops iOS zooming on focus */
  background: none; border: 0; outline: 0;
}
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.search button {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--white);
  background: linear-gradient(160deg, var(--red) 40%, var(--red-deep));
  border: 0; border-radius: 50%;
  cursor: pointer;
}
.search button svg { width: 20px; height: 20px; }

/* 6. Hero + bands --------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(2.25rem, 7vw, 4.5rem);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(45% 40% at 0 25%, var(--glow-1), transparent 72%),
    radial-gradient(45% 50% at 100% 55%, var(--glow-2), transparent 72%),
    linear-gradient(180deg, var(--bg) 40%, var(--blush-2));
}
:root:has(#theme:checked) .hero {
  background:
    radial-gradient(45% 40% at 0 25%, var(--glow-1), transparent 72%),
    radial-gradient(45% 50% at 100% 55%, var(--glow-2), transparent 72%),
    linear-gradient(180deg, var(--bg) 40%, #3A0A13);
}
.hero__art { width: min(100%, 40rem); margin-inline: auto; }
.hero__art .headline-dark { display: none; }
:root:has(#theme:checked) .hero__art .headline-light { display: none; }
:root:has(#theme:checked) .hero__art .headline-dark { display: block; }
.hero__lede {
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-2);
}
.hero .btn-row { justify-content: center; margin-top: 1.4rem; }

/* Cover fan. Three covers on phones, five from 40rem. */
.fan {
  position: relative;
  aspect-ratio: 1 / .56;
  width: min(100%, 60rem);
  margin: clamp(2rem, 5vw, 3rem) auto 0;
}
.fan__item {
  position: absolute; top: 0;
  left: var(--x);
  width: 34%;
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform .25s;
  filter: drop-shadow(0 14px 18px rgb(18 18 18 / .28));
}
.fan__item:hover { transform: translateY(calc(var(--y) - 10px)) rotate(var(--r)); }
.fan__item:nth-child(1), .fan__item:nth-child(5) { display: none; }
.fan__item:nth-child(2) { --x: 0%;  --y: 12%; --r: -5deg; }
.fan__item:nth-child(3) { --x: 33%; --y: 0%;  --r: 0deg; }
.fan__item:nth-child(4) { --x: 66%; --y: 12%; --r: 5deg; }

/* Current-issue band: same black-into-red as the new social cover */
.band {
  position: relative;
  padding-block: var(--section);
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(180deg, var(--ink) 52%, var(--red-deep) 88%, var(--red));
}
.band::after {
  content: "";
  position: absolute; right: -8%; bottom: -14%;
  width: min(62%, 30rem); aspect-ratio: 640 / 1000;
  background: url("../assets/img/mark-outline.svg") center / contain no-repeat;
  opacity: .22;
  pointer-events: none;
}
.band__in { position: relative; z-index: 1; display: grid; gap: 1.75rem; }
.band__cover { width: min(62%, 15rem); margin-inline: auto; box-shadow: 0 24px 50px -16px rgb(0 0 0 / .9); }
.band__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: #FFB3BD;
}
.band__eyebrow::before {
  content: ""; width: 8px; height: 8px;
  background: #FF4D67; border-radius: 50%;
}
.band h2 { font-size: var(--step-4); font-weight: 800; }
.band__desc { max-width: 34rem; margin-top: .4rem; color: #E2E2E2; font-size: var(--step-1); line-height: 1.6; }
.band__in-this { margin-top: 1.1rem; border-top: 1px solid rgb(255 255 255 / .2); }
.band__in-this li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: .55rem;
  border-bottom: 1px solid rgb(255 255 255 / .2);
}
.band__in-this span { flex: none; color: #FFB3BD; font-size: .95rem; }
.band .btn-row { margin-top: 1.4rem; }

/* Issue Flash: short notes */
.flash { display: grid; }
.flash li {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: .5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.flash__n { font-size: var(--step-2); font-weight: 800; line-height: 1.3; color: var(--accent); }
.flash h3 { font-size: var(--step-1); font-weight: 600; }
.flash time { font-size: var(--step--1); color: var(--text-3); }

/* 7. Issues + covers ------------------------------------------------------ */
/* Placeholder cover made with CSS. Text is sized in cqw so it scales with the
   cover. For a real cover, drop an <img class="cover__img"> inside .cover. */
.cover {
  container-type: inline-size;
  position: relative;
  display: flex; flex-direction: column;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
}
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover__logo { position: absolute; top: 5cqw; right: 6cqw; width: 34cqw; }
.cover__tag { position: absolute; top: 8cqw; left: 6cqw; font-size: 5cqw; font-weight: 600; opacity: .85; }
.cover__title {
  margin-top: auto;
  padding-inline: 6cqw;
  font-family: var(--font-cover);
  font-size: 13.5cqw;
  font-weight: 400;
  line-height: 1.22;
}
.cover__foot {
  padding: 2.5cqw 6cqw 6cqw;
  font-size: 4.6cqw; line-height: 1.3;
  opacity: .9;
}

.cover--red {
  background:
    url("../assets/img/art-halftone.svg") 50% 0 / 240% auto no-repeat,
    linear-gradient(180deg, #E0102F, #6E0010 60%, #120006);
  background-blend-mode: soft-light, normal;
}
.cover--forest { background: radial-gradient(90% 60% at 30% 25%, #2C5A44, transparent), linear-gradient(180deg, #123527, #0A1510 70%, #4A1208); }
.cover--sand   { background: radial-gradient(80% 50% at 70% 20%, #E7C08B, transparent), linear-gradient(180deg, #A9744A, #5A3320 70%, #1F120C); }
.cover--night  { background: radial-gradient(70% 45% at 60% 55%, #2B4A63, transparent), linear-gradient(180deg, #0B0F16, #0E1B2A); }
.cover--peach  { color: var(--ink); background: radial-gradient(80% 50% at 20% 20%, #FFFFFF, transparent), linear-gradient(170deg, #F6D8C6, #E79C86 75%, #B9483E); }
.cover--blush  { color: var(--ink); background: linear-gradient(180deg, rgb(255 241 242 / .95) 22%, transparent 42%, transparent 52%, rgb(255 241 242 / .96) 70%), url("../assets/img/art-rings.svg") 70% 100% / cover no-repeat; }
.cover--teal   { background: radial-gradient(90% 50% at 20% 70%, #2F8A8A, transparent), linear-gradient(180deg, #0D3B44, #082127); }
.cover--bars   { background: url("../assets/img/art-bars.svg") 50% 100% / cover no-repeat; }

.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 42vw);
  gap: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: .5rem var(--gutter) 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }

.issue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }

.issue { display: flex; flex-direction: column; min-width: 0; }
.issue__cover {
  display: block;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.issue__cover:hover { transform: translateY(-4px); }
.issue h3 { margin-top: .7rem; font-size: 1.1rem; font-weight: 700; }
.issue h3 a:hover { color: var(--accent); }
.issue__meta { font-size: var(--step--1); line-height: 1.5; color: var(--text-3); }
.issue__dl {
  display: flex; align-items: center; gap: .4rem;
  margin-top: auto;
  min-height: 44px;
  font-size: .95rem; font-weight: 600;
  color: var(--accent);
}
.issue__dl svg { flex: none; width: 18px; height: 18px; }
.issue__dl small { font-weight: 500; color: var(--text-3); }
.issue__dl:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* 8. Posts ---------------------------------------------------------------- */
.kicker { font-size: var(--step--1); font-weight: 700; color: var(--accent); }
.byline { font-size: var(--step--1); color: var(--text-3); }

.thumb {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
a:hover > .thumb img, .post:hover .thumb img { transform: scale(1.03); }

.lead__text { margin-top: .9rem; }
.lead h3, .lead h2 { font-family: var(--font-read); font-size: var(--step-3); font-weight: 800; line-height: 1.34; }
.lead p { margin-top: .4rem; font-size: var(--step-1); line-height: 1.65; color: var(--text-2); }
.lead .byline { margin-top: .5rem; }
.lead a:hover h3, .lead a:hover h2 { color: var(--accent); }

/* Row: text on the left, small picture on the right */
.post--row { padding-block: 1rem; border-top: 1px solid var(--line); }
.post--row a { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: .9rem; align-items: start; }
.post--row h3 { font-family: var(--font-read); font-size: 1.1rem; font-weight: 700; line-height: 1.45; }
.post--row a:hover h3 { color: var(--accent); }
.post--row .byline { margin-top: .2rem; }
.post--row .thumb { aspect-ratio: 1; border-radius: 10px; }

.latest { display: grid; gap: 1.25rem; }

.post-grid { display: grid; gap: 1.75rem; }
.post--card h3 { margin-top: .25rem; font-family: var(--font-read); font-size: var(--step-1); font-weight: 700; line-height: 1.45; }
.post--card .kicker { display: block; margin-top: .75rem; }
.post--card p { margin-top: .25rem; color: var(--text-2); }
.post--card .byline { margin-top: .3rem; }
.post--card a:hover h3 { color: var(--accent); }

.pager { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: 2.5rem; }
.pager a {
  display: grid; place-items: center;
  min-width: 44px; height: 44px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.pager a[aria-current="page"] { color: var(--white); background: var(--red); border-color: var(--red); }
.pager a:not([aria-current]):hover { color: var(--accent); }

/* 9. Footer --------------------------------------------------------------- */
.ftr {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(180deg, var(--red) 0%, #A10019 45%, var(--red-deep));
}
.ftr__in { position: relative; z-index: 1; display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4rem) 1.25rem; }
.ftr__brand img { width: 7.5rem; height: auto; }
.ftr__brand p { max-width: 30rem; margin-top: 1rem; line-height: 1.75; }
.ftr__tag { font-weight: 600; }
.ftr__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.ftr h2 { margin-bottom: .3rem; font-size: 1.05rem; font-weight: 700; }
.ftr__cols a { display: flex; align-items: center; min-height: 40px; color: rgb(255 255 255 / .9); }
.ftr__cols a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.ftr__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem;
  padding-top: 1rem;
  font-size: var(--step--1);
  border-top: 1px solid rgb(255 255 255 / .4);
}
.ftr :focus-visible { outline-color: var(--white); }

/* 10. Article ------------------------------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

.art-head { padding-block: clamp(1.5rem, 5vw, 3rem) 1.25rem; }
.crumb { display: flex; gap: .4rem; margin-bottom: .2rem; font-size: var(--step--1); color: var(--text-3); }
.crumb { align-items: center; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; }
.art-head h1 { max-width: 22em; font-family: var(--font-read); font-size: var(--step-4); font-weight: 800; line-height: 1.32; }
.art-head__sub { max-width: 40rem; margin-top: .7rem; font-size: var(--step-1); line-height: 1.65; color: var(--text-2); }
.art-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
  margin-top: 1.1rem; padding-block: .75rem;
  border-block: 1px solid var(--line);
}
.art-meta__who { display: flex; align-items: center; gap: .6rem; }
.art-meta__who img { width: 40px; height: 40px; border-radius: 50%; }
.art-meta__who strong { display: block; line-height: 1.3; }
.art-meta__who span { display: block; font-size: var(--step--1); line-height: 1.4; color: var(--text-3); }
.share { display: flex; gap: .4rem; }
.share .icon-btn { width: 42px; height: 42px; }
.share .icon-btn svg { width: 18px; height: 18px; }

.art-fig .thumb { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.art-fig figcaption { margin-top: .4rem; font-size: var(--step--1); color: var(--text-3); }

.art-layout { display: grid; gap: 2.5rem; margin-top: 1.75rem; }

.prose {
  min-width: 0;
  max-width: 41rem;
  font-family: var(--font-read);
  font-size: 1.125rem;
  line-height: 1.95;
}
.prose p + p, .prose ul { margin-top: 1.1em; }
.prose h2 {
  margin-top: 1.9em;
  scroll-margin-top: 5rem;
  font-size: var(--step-2);
  font-weight: 800;
}
.prose h2 + p { margin-top: .45em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose li + li { margin-top: .3em; }
.prose blockquote {
  margin-block: 1.6em;
  padding-left: 1.05rem;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.6;
  border-left: 6px solid var(--red);
}

.side { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.side-card {
  padding: 1.1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.side-card--toc { display: none; }   /* the article is the page on phones; contents show from desktop */
.side-card h2 { font-size: 1.05rem; font-weight: 700; }
.toc { margin-top: .3rem; }
.toc a { display: flex; align-items: center; min-height: 40px; line-height: 1.4; color: var(--text-2); }
.toc a:hover { color: var(--accent); }

.promo { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.promo .kicker { display: block; }
.promo h2 { font-size: 1.1rem; }
.promo .btn { margin-top: .6rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.tags .chip { min-height: 38px; font-size: .95rem; cursor: pointer; }
.tags .chip:hover { color: var(--accent); }

/* 11. Issue page ---------------------------------------------------------- */
.issue-hero {
  padding-block: clamp(1.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(50% 80% at 0 0, var(--glow-1), transparent 70%),
    radial-gradient(45% 80% at 100% 100%, var(--glow-2), transparent 70%);
}
.issue-hero__in { display: grid; gap: 1.5rem; }
.issue-hero__cover { width: min(48%, 17rem); margin-inline: auto; box-shadow: 0 24px 44px -18px rgb(122 0 18 / .65); }
.issue-hero h1 { font-size: var(--step-4); font-weight: 800; }
.issue-hero__desc { max-width: 36rem; margin-top: .4rem; font-size: var(--step-1); line-height: 1.65; color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1rem; max-width: 26rem; margin: 1.1rem 0 0; }
.facts div { padding-block: .4rem; border-top: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--text-3); }
.facts dd { margin: 0; font-weight: 600; }

/* Download stays reachable on phones, above the tab bar */
.dl-bar {
  position: sticky; z-index: 30;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem;
  margin-top: 1.25rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: .6rem var(--gutter);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.dl-bar .btn { padding-inline: .9rem; white-space: nowrap; }
.dl-bar .btn--line { width: 46px; padding: 0; }
.dl-bar .btn--line span {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
}

.contents { display: grid; }
.contents li { border-top: 1px solid var(--line); }
.contents a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; align-items: baseline; padding-block: .8rem; }
.contents a:hover h3 { color: var(--accent); }
.contents h3 { font-family: var(--font-read); font-size: var(--step-1); font-weight: 700; line-height: 1.5; }
.contents .byline { grid-column: 1; }
.contents__p { grid-column: 2; grid-row: 1; font-weight: 600; color: var(--accent); }

.issue-body { display: grid; gap: 2.5rem; }
.note { font-family: var(--font-read); font-size: 1.1rem; line-height: 1.9; color: var(--text-2); }
.note p + p { margin-top: 1em; }
.note h2 { font-family: var(--font-ui); margin-bottom: .5rem; font-size: var(--step-2); font-weight: 800; color: var(--text); }

/* Tablet ------------------------------------------------------------------ */
@media (min-width: 40rem) {
  .fan { aspect-ratio: 1 / .4; }
  .fan__item { width: 20.5%; }
  .fan__item:nth-child(1), .fan__item:nth-child(5) { display: block; }
  .fan__item:nth-child(1) { --x: 0%;    --y: 14%; --r: -5deg; }
  .fan__item:nth-child(2) { --x: 19.9%; --y: 6%;  --r: -2deg; }
  .fan__item:nth-child(3) { --x: 39.8%; --y: 2%;  --r: 0deg; }
  .fan__item:nth-child(4) { --x: 59.7%; --y: 6%;  --r: 2deg; }
  .fan__item:nth-child(5) { --x: 79.5%; --y: 14%; --r: 5deg; }

  .band__in { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
  .band__cover { width: 100%; }

  .shelf { grid-auto-columns: minmax(10rem, 26vw); }
  .issue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
  .post--row a { grid-template-columns: minmax(0, 1fr) 8rem; }
  .post--row .thumb { aspect-ratio: 4 / 3; }
  .flash { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .ftr__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ftr__base { grid-column: 1 / -1; }
  .issue-hero__in { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
  .issue-hero__cover { width: 100%; }
  .dl-bar { position: static; display: flex; flex-wrap: wrap; margin-inline: 0; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dl-bar .btn { padding-inline: 1.3rem; }
  .dl-bar .btn--line { width: auto; }
  .dl-bar .btn--line span { position: static; width: auto; height: auto; clip-path: none; }
}

/* Desktop: full nav replaces the tab bar ---------------------------------- */
@media (min-width: 56.25rem) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }

  .hdr__in { height: 72px; }
  .brand img { height: 52px; }
  .nav { display: block; margin-left: auto; }
  .nav > ul { display: flex; align-items: center; gap: .15rem; }
  .nav > ul > li > a {
    display: inline-flex; align-items: center; gap: .2rem;
    height: 72px;
    padding-inline: .7rem;
    font-weight: 500;
  }
  .nav > ul > li > a:hover, .nav a[aria-current="page"] { color: var(--accent); }
  .nav svg { width: 14px; height: 14px; }

  .latest { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; }
  .post--row:first-child { padding-top: 0; border-top: 0; }

  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead--wide { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
  .lead--wide .lead__text { margin-top: 0; }
  .issue-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .shelf {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-inline: 0; padding-inline: 0;
    overflow: visible;
  }

  .art-layout { grid-template-columns: minmax(0, 41rem) minmax(0, 20rem); justify-content: space-between; }
  .side { position: sticky; top: 6rem; }
  .side-card--toc { display: block; }
  .art-fig .thumb { aspect-ratio: 21 / 9; }
  .issue-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; }
  .band__in { grid-template-columns: 19rem minmax(0, 1fr); gap: 4rem; }
}

@media (min-width: 75rem) {
  .nav > ul > li > a { padding-inline: .85rem; }
  .flash { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1.5rem; }
  .flash li { grid-template-columns: 1fr; }
}

/* 12. Motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .progress { display: none; }
}

/* Smallest phones: the file size is already listed above the download bar */
@media (max-width: 22.5rem) {
  .dl-bar .btn small { display: none; }
}

/* 13. About, write, contact ----------------------------------------------- */
.tab.is-on { color: var(--accent); font-weight: 700; }
.more__panel a[aria-current="page"], .menu a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.nav a[aria-current="true"] { color: var(--accent); }

.flash h3 a:hover { color: var(--accent); }
.promo h2 a:hover { color: var(--accent); }
.note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tags .chip { cursor: default; }
.tags .chip:hover { color: inherit; }
.issue-hero .crumb { margin-bottom: .5rem; }

.statement { padding-block: clamp(2.5rem, 8vw, 5.5rem); }
.statement h1 { max-width: 17em; margin-top: .3rem; font-family: var(--font-read); line-height: 1.34; }
.statement .statement__lede { max-width: 42rem; margin-top: .9rem; font-size: var(--step-2); line-height: 1.6; }
.statement .btn-row { margin-top: 1.5rem; }

.band--quote { padding-block: clamp(3rem, 9vw, 6rem); }
.big-quote {
  position: relative; z-index: 1;
  max-width: 17em;
  margin-top: .5rem;
  font-family: var(--font-read);
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1.4;
  text-wrap: balance;
}

.pillars { display: grid; gap: 1rem; }
.pillars li {
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
}
.pillars h3 { font-size: var(--step-2); font-weight: 800; }
.pillars p { margin-top: .25rem; color: var(--text-2); }

.steps { display: grid; gap: 1.25rem; }
.steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .9rem; }
.steps__n {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  font-size: var(--step-1); font-weight: 800;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
}
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--text-2); }

.masthead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; margin: 0; border-top: 2px solid var(--text); }
.masthead div { padding-block: .7rem; border-bottom: 1px solid var(--line); }
.masthead dt { font-size: var(--step--1); color: var(--text-3); }
.masthead dd { margin: 0; font-weight: 600; }

.cta-pair { display: grid; gap: 1rem; }
.cta {
  display: block;
  padding: 1.4rem;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  transition: transform .15s;
}
.cta:hover { transform: translateY(-3px); }
.cta h2 { font-size: var(--step-2); font-weight: 800; }
.cta p { margin-top: .2rem; color: var(--text-2); }

.form-layout { display: grid; gap: 1.5rem; }
.form-side { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.form-card {
  display: grid; gap: 1.1rem;
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: var(--step-2); font-weight: 800; }
.form-card__note { margin-top: -.9rem; font-size: var(--step--1); color: var(--text-3); }
.form-card__submit { width: 100%; cursor: pointer; }

.field-row { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field > label { font-weight: 600; }
.field__req { color: var(--accent); font-weight: 700; }
.field__opt { font-size: var(--step--1); font-weight: 400; color: var(--text-3); }
.field__hint { font-size: var(--step--1); line-height: 1.5; color: var(--text-3); }
.field__hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .55rem .9rem;
  font-size: 1rem;      /* stops iOS zooming on focus */
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid rgb(120 120 120 / .55);
  border-radius: 12px;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  padding-right: 2.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--accent); }

.upload {
  display: flex; align-items: center; gap: .75rem;
  min-width: 0;
  padding: .85rem .9rem;
  background: var(--surface-2);
  border: 1.5px dashed rgb(120 120 120 / .7);
  border-radius: 12px;
}
.upload svg { flex: none; width: 24px; height: 24px; color: var(--accent); }
.field .upload input { min-height: 44px; padding: 0; background: none; border: 0; border-radius: 0; }
.upload input::file-selector-button {
  min-height: 40px;
  margin-right: .7rem;
  padding: 0 .9rem;
  font: inherit; font-weight: 600;
  color: var(--white);
  background: var(--ink);
  border: 0; border-radius: 999px;
  cursor: pointer;
}

.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .6rem; align-items: start; line-height: 1.55; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--red); }

.checks li { position: relative; padding: .35rem 0 .35rem 1.6rem; color: var(--text-2); line-height: 1.55; }
.checks li::before {
  content: ""; position: absolute; left: .15rem; top: .75rem;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.form-side .side-card h2 { margin-bottom: .3rem; }
.mini-steps { counter-reset: s; }
.mini-steps li { position: relative; padding: .35rem 0 .35rem 1.7rem; line-height: 1.5; counter-increment: s; }
.mini-steps li::before { content: counter(s, bengali) "."; position: absolute; left: 0; font-weight: 700; color: var(--accent); }
.mini-steps strong { display: block; }
.mini-steps span { color: var(--text-2); }

.reach { display: grid; gap: .75rem; }
.reach a {
  display: block;
  padding: .85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.reach a:hover strong { color: var(--accent); }
.reach span { display: block; font-size: var(--step--1); color: var(--text-3); }
.reach strong { display: block; font-size: var(--step-1); overflow-wrap: anywhere; }

.faq-wrap { max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px;
  padding-block: .6rem;
  font-size: var(--step-1); font-weight: 600; line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; transition: transform .15s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq p { padding-bottom: 1rem; color: var(--text-2); }
.faq a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.notice {
  display: grid; place-items: center;
  min-height: 62dvh;
  padding-block: 3rem;
  text-align: center;
  background:
    radial-gradient(45% 50% at 0 20%, var(--glow-1), transparent 72%),
    radial-gradient(45% 60% at 100% 80%, var(--glow-2), transparent 72%);
}
.notice img { margin-inline: auto; border-radius: 22%; }
.notice h1 { margin-top: 1.1rem; font-size: var(--step-4); font-weight: 800; }
.notice p { margin-top: .25rem; color: var(--text-2); font-size: var(--step-1); }
.notice .btn-row { justify-content: center; margin-top: 1.4rem; }

@media (min-width: 40rem) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; }
  .masthead { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56.25rem) {
  .form-layout { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .form-side { position: sticky; top: 6rem; }
  .form-card__submit { width: auto; justify-self: start; padding-inline: 2rem; }
}
@media (min-width: 75rem) {
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { grid-template-columns: 1fr; }
}
