/* fonts: self-hosted, SIL Open Font License (see assets/fonts) */
@font-face { font-family: "Anek Bangla"; src: url(fonts/anek-bangla-bengali-wdth-normal.woff2) format("woff2"); font-weight: 100 800; font-stretch: 75% 125%; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Anek Bangla"; src: url(fonts/anek-bangla-latin-wdth-normal.woff2) format("woff2"); font-weight: 100 800; font-stretch: 75% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Tiro Bangla"; src: url(fonts/tiro-bangla-bengali-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Tiro Bangla"; src: url(fonts/tiro-bangla-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Tiro Bangla"; font-style: italic; src: url(fonts/tiro-bangla-bengali-400-italic.woff2) format("woff2"); font-display: swap; unicode-range: U+0980-09FE; }
@font-face { font-family: "Tiro Bangla"; font-style: italic; src: url(fonts/tiro-bangla-latin-400-italic.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }


:root {
  --green: #006a4e;
  --green-dark: #00402f;
  --red: #f42a41;
  --red-ui: #cf1f35;
  --mint: #e3f1ea;
  --white: #ffffff;
  --sans: "Anek Bangla", system-ui, sans-serif;
  --serif: "Tiro Bangla", Georgia, serif;
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--white); color: var(--green-dark); font-family: var(--serif); font-size: 1.125rem; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); font-stretch: 85%; letter-spacing: -0.01em; margin-bottom: 0.5em; }
p { margin: 0 0 1em; }
dl, dd { margin: 0; }

.ui-bn .en, .ui-en .bn { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 50; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 10px; }
/* placeholder marker: delete class="tbc" once the detail is confirmed */
.tbc { background: #fff1a8; color: #4a3b00; border-bottom: 1px dashed #a07d00; padding: 0 4px; }

.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; text-decoration: none; padding: 0.7em 1.5em; border-radius: 999px; background: var(--green-dark); color: var(--white); transition: transform .15s, background .15s; }
.btn:hover { background: var(--green); }
.btn:active { transform: scale(.97); }
.btn.on-red { background: var(--white); color: var(--red-ui); }
.btn.on-red:hover { background: var(--mint); }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px var(--gut); background: #fff; color: var(--green-dark); box-shadow: 0 1px 0 rgba(0,64,47,.12), 0 4px 16px rgba(0,64,47,.06); }
.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; display: block; }
.top nav { display: flex; gap: 26px; margin-left: auto; font-family: var(--sans); font-size: 1.05rem; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.lang { font: 600 0.95rem var(--sans); color: inherit; background: none; border: 1.5px solid currentColor; border-radius: 999px; padding: 5px 16px; cursor: pointer; }
.lang:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* hero: title at the top, key details as cards */
.hero {
  position: relative; overflow: hidden;
  background: var(--green); color: var(--white);
  padding: 112px var(--gut) clamp(40px, 6vw, 72px);
}
.field {
  position: absolute; inset: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(58px, 7.6vw, 118px), 1fr));
  align-content: start; justify-items: center;
  font: 700 clamp(48px, 6.6vw, 104px)/1.12 var(--sans); font-stretch: 80%;
  color: rgba(255,255,255,.06); user-select: none;
}
.hero-in { position: relative; max-width: var(--wrap); margin: 0 auto; }
.edition { font-family: var(--sans); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.3; display: inline-block; background: var(--red); color: var(--white); border-radius: 999px; padding: 4px 20px 5px; margin-bottom: .6em; box-shadow: 0 0 0 5px rgba(244,42,65,.25); }
.hero h1 { font-weight: 800; font-stretch: 75%; font-size: clamp(3.6rem, 10vw, 9rem); line-height: .95; letter-spacing: -0.01em; }
.hero h1 .word { display: block; }
.where-year { font-family: var(--sans); font-weight: 600; font-stretch: 110%; font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: .35em 0 .5em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 40em; opacity: .9; margin-bottom: 0; }

.facts { position: relative; max-width: var(--wrap); margin: clamp(28px, 4vw, 44px) auto 0; display: grid; grid-template-columns: auto auto auto auto; gap: 12px; font-family: var(--sans); }
.facts > div { background: var(--white); color: var(--green-dark); border-radius: 18px; padding: 16px 22px 18px; box-shadow: 0 10px 30px rgba(0,40,28,.25); }
.facts dt { font-size: 1rem; font-weight: 600; color: var(--red-ui); margin-bottom: 2px; }
.facts dd { font-size: clamp(1.15rem, 1.45vw, 1.4rem); font-weight: 700; line-height: 1.25; }
@media (min-width: 1280px) { .facts dd { white-space: nowrap; } }
@media (max-width: 1279px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts .count { background: var(--red-ui); color: var(--white); }
.facts .count dt { color: rgba(255,255,255,.85); }
.facts .count dd { font-variant-numeric: tabular-nums; }

/* 1952 */
.ekushey { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 11vw, 150px) var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: end; }
.year { font: 800 clamp(5rem, 13vw, 10rem)/.8 var(--sans); font-stretch: 75%; color: var(--red); margin-bottom: .2em; }
.ek-text p:not(.year) { max-width: 32em; }
.names-intro { font-family: var(--sans); font-size: 1.15rem; color: var(--red-ui); font-weight: 600; margin-bottom: .4em; }
.names ul { list-style: none; margin: 0; padding: 0; }
.names li { font: 700 clamp(2rem, 4.6vw, 3.6rem)/1.2 var(--sans); font-stretch: 90%; padding: .18em 0; border-bottom: 1px solid rgba(0,64,47,.15); }
.names li::after { content: ""; display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--red); margin-left: .35em; vertical-align: .2em; }
.names-after { margin-top: 1em; font-style: italic; opacity: .8; }

/* mother tongue */
.bhasha { background: var(--green-dark); color: var(--white); padding: clamp(72px, 11vw, 150px) var(--gut); }
.bh-head, .abc { max-width: var(--wrap); margin: 0 auto; }
.bh-head { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 7vw, 110px); }
.bh-head h2 { grid-row: span 3; }
.bh-head p { max-width: 32em; opacity: .9; }
.abc { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.abc-show { background: var(--red); border-radius: 28px; padding: 28px 32px 32px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; font-family: var(--sans); }
.abc-letter { font-weight: 800; font-stretch: 75%; font-size: clamp(8rem, 16vw, 13rem); line-height: .9; }
.abc-word { font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.2; margin-top: .2em; }
.abc-mean { font-family: var(--serif); font-style: italic; font-size: 1.2rem; opacity: .9; }
.abc-hint { font-family: var(--sans); opacity: .7; margin-bottom: .6em; }
.abc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.abc-grid button { font: 600 1.6rem/1 var(--sans); color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; aspect-ratio: 1; cursor: pointer; padding: 0; transition: background .12s, transform .12s; }
.abc-grid button:hover { background: rgba(255,255,255,.16); }
.abc-grid button[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.abc-grid button.gap { grid-column-start: 1; }

/* the fair */
.fair { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 11vw, 150px) var(--gut) clamp(40px, 6vw, 80px); }
.fair-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: clamp(24px, 4vw, 48px); }
.fair-head h2 { margin: 0; }
.fair-head blockquote { margin: 0; font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); max-width: 18em; color: var(--green); padding-left: 18px; border-left: 4px solid var(--red); }
.fair-body { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.offer > div { display: grid; grid-template-columns: 13em 1fr; gap: 4px 28px; padding: 18px 0; border-top: 1px solid rgba(0,64,47,.18); }
.offer > div:last-child { border-bottom: 1px solid rgba(0,64,47,.18); }
.offer dt { font: 700 1.35rem/1.3 var(--sans); }
.offer dd { opacity: .82; }

.shelf { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.spine { font: 700 1.35rem/1 var(--sans); font-stretch: 95%; padding: 18px 22px; border-radius: 6px 14px 14px 6px; color: var(--white); position: relative; }
.spine::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: currentColor; opacity: .35; }
.s1 { background: var(--green); width: 92%; }
.s2 { background: var(--red-ui); width: 64%; margin-left: 14%; }
.s3 { background: var(--green-dark); width: 80%; margin-left: 4%; }
.s4 { background: var(--mint); color: var(--green-dark); width: 58%; margin-left: 22%; }
.s5 { background: var(--red); width: 100%; padding-block: 26px; }

/* programme: a ruler from 12:00 to 18:00 */
.programme { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gut) clamp(72px, 11vw, 140px); }
.note { font-style: italic; opacity: .7; margin-top: -1em; }
.ruler { list-style: none; margin: 56px 0 0; padding: 0; position: relative; height: 210px; border-top: 3px solid var(--green-dark); }
.ruler li { position: absolute; top: 0; left: calc(var(--at) / 6 * 100%); width: 10em; padding: 22px 0 0 14px; border-left: 2px solid var(--green-dark); font-family: var(--sans); font-size: 1.02rem; line-height: 1.3; }
.ruler li::before { content: ""; position: absolute; left: -8px; top: -9px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.ruler li:nth-child(even) { padding-top: 108px; }
.ruler li:last-child { transform: translateX(-100%); border-left: 0; border-right: 2px solid var(--green-dark); padding: 108px 14px 0 0; text-align: right; }
.ruler li:last-child::before { left: auto; right: -8px; }
.ruler time { display: block; font-weight: 700; font-size: 1.5rem; color: var(--red-ui); margin-bottom: 2px; }

/* visit + stalls */
.visit { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) clamp(72px, 11vw, 140px); display: grid; grid-template-columns: 7fr 5fr; gap: 16px; }
.venue, .stall { border-radius: 28px; padding: clamp(28px, 4.5vw, 56px); }
.venue { background: var(--mint); }
.venue address { font: 700 clamp(1.7rem, 3.4vw, 2.6rem)/1.15 var(--sans); font-style: normal; font-stretch: 90%; margin-bottom: .8em; }
.when { font-family: var(--sans); font-size: 1.2rem; font-weight: 600; color: var(--red-ui); }
.stall { background: var(--red-ui); color: var(--white); display: flex; flex-direction: column; align-items: flex-start; }
.stall h2 { font-size: clamp(2rem, 4vw, 3rem); }
.stall .btn { margin-top: auto; }

/* footer */
.foot { background: var(--green); color: var(--white); padding: clamp(56px, 8vw, 96px) var(--gut) 24px; overflow: hidden; }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; font-family: var(--sans); }
.foot-label { opacity: .7; margin-bottom: .2em; }
.foot-mail { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 700; }
.foot-mail a { text-decoration-color: var(--red); text-underline-offset: 7px; }
.foot .tbc { color: #4a3b00; }
.foot-mark { font: 800 clamp(5rem, 19vw, 17rem)/.8 var(--sans); font-stretch: 75%; color: rgba(255,255,255,.1); white-space: nowrap; margin: clamp(32px, 5vw, 64px) 0 0 -0.04em; }
.foot-copy { font-family: var(--sans); font-size: .9rem; opacity: .7; margin: 18px 0 0; }

/* responsive */
@media (max-width: 1000px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }

  .ekushey, .bh-head, .abc, .fair-body, .visit { grid-template-columns: 1fr; }
  .bh-head h2 { grid-row: auto; }
  .ruler { height: auto; border-top: 0; border-left: 3px solid var(--green-dark); margin-left: 6px; }
  .ruler li, .ruler li:nth-child(even), .ruler li:last-child { position: relative; left: 0; width: auto; transform: none; text-align: left; border: 0; padding: 0 0 22px 26px; }
  .ruler li::before, .ruler li:last-child::before { left: -9px; right: auto; top: 6px; }
}
@media (max-width: 700px) {
  .hero { padding-top: 92px; }
  .brand img { height: 30px; }
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .offer > div { grid-template-columns: 1fr; }
  .abc-show { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .abc-grid button { transition: none; }
}
