/* Wiki Loves Folklore Bangladesh: tokens from the WLF Bangladesh brand guidelines */
:root {
  --light: #F4F4F4;      /* primary */
  --green: #339966;      /* primary */
  --green-dark: #267a51;
  --red: #C6182D;        /* secondary */
  --navy: #001A49;       /* secondary */
  --coral: #E66D50;      /* tertiary */
  --grey: #E8E8E8;       /* tertiary, the pattern colour */
  --yellow: #FFDD50;     /* tertiary */
  --blue: #5368E0;       /* tertiary */
  --white: #FFFFFF;
  --text: #001A49;
  --muted: #3d4a63;
  --display: "Bebas Neue", "Sacco", "Oswald", "Arial Narrow", sans-serif;
  --body: "Roboto", "Noto Sans Bengali", "Nirmala UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gap: clamp(20px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--light); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* type */
h1, h2, h3, .edition-year, .footer-title, .stat dt, .btn, .eyebrow, .award {
  font-family: var(--display); font-weight: 400; letter-spacing: .02em; text-transform: uppercase;
}
h1, h2, h3 { color: var(--green); line-height: .95; margin: 0 0 .4em; }
h1 { font-size: clamp(52px, 8vw, 96px); }
h2 { font-size: clamp(40px, 5.5vw, 64px); }
h3 { font-size: 30px; line-height: 1; }
h2[id] { scroll-margin-top: 110px; }
.kw { color: var(--red); }
h1 .kw, h2 .kw { display: inline-block; border-bottom: 3px solid var(--red); line-height: .9; }
p { margin: 0 0 1em; max-width: 68ch; }
.eyebrow { color: var(--red); font-size: 22px; letter-spacing: .12em; margin: 0 0 6px; }
.note { font-size: 14px; color: var(--muted); font-style: italic; }
strong { font-weight: 700; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,244,244,.96); border-bottom: 2px solid var(--red); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { width: 104px; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.nav a { font-family: var(--display); font-size: 22px; letter-spacing: .06em; color: var(--navy); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }

/* hero, with the faint mandala pattern */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0; background: var(--light); }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -170px; top: -190px; background: url(/assets/img/mandala.svg) center/contain no-repeat; pointer-events: none; }
.hero-home::before { width: 900px; height: 900px; left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); opacity: .9; }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text > p:not(.eyebrow) { font-size: 19px; }
.hero-logo { width: 100%; max-width: 460px; margin: 0 auto; }
.hero-logo-wrap { text-align: center; }

/* sections */
.section { padding: clamp(48px, 6vw, 72px) 0; border-top: 2px solid var(--grey); }
.section-navy { background: var(--navy) url(/assets/img/mandala_white.svg) right -160px center / 520px no-repeat; background-blend-mode: normal; color: var(--white); border-top: 0; position: relative; }
.section-navy::before { content: ""; position: absolute; inset: 0; background: rgba(0,26,73,.93); }
.section-navy .container { position: relative; }
.section-navy h2 { color: var(--white); }
.section-navy .kw { color: var(--yellow); border-color: var(--yellow); }
.section-navy a { color: var(--yellow); }
.section-navy .btn { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.section-green { background: var(--green); color: var(--white); border-top: 0; }
.section-green h2, .section-green a { color: var(--white); }
.section-green .kw { color: var(--navy); border-color: var(--navy); }
ul, ol { padding-left: 1.2em; max-width: 68ch; }
li { margin-bottom: .4em; }
li::marker { color: var(--red); }

/* actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.btn { display: inline-block; background: var(--green); color: var(--white); border: 2px solid var(--green); padding: 12px 26px 9px; font-size: 24px; line-height: 1; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { color: var(--white); background: var(--red); border-color: var(--red); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--navy); }
.text-link { font-weight: 700; text-decoration: none; color: var(--green-dark); }
.text-link:hover { text-decoration: underline; color: var(--red); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 24px 0; }
.stat { margin: 0; background: var(--white); border-left: 5px solid var(--green); padding: 18px 20px; }
.stat:nth-child(2n) { border-left-color: var(--red); }
.stat dt { font-size: clamp(44px, 5vw, 60px); line-height: 1; color: var(--green); }
.stat:nth-child(2n) dt { color: var(--red); }
.stat dd { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.section-navy .stat { background: rgba(255,255,255,.07); }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--white); padding: 24px 24px 10px; border-top: 4px solid var(--green); }
.card:nth-child(3n+2) { border-top-color: var(--red); }
.card:nth-child(3n+3) { border-top-color: var(--navy); }
.card h3 { color: var(--navy); }
.card p { font-size: 16px; }
.section-navy .card { background: rgba(255,255,255,.07); }
.section-navy .card h3 { color: var(--white); }

/* callout */
.callout { background: var(--white); border-left: 5px solid var(--red); padding: 18px 22px; font-size: 18px; max-width: 72ch; }

/* steps */
.steps { list-style: none; padding: 0; counter-reset: step; max-width: 76ch; }
.steps li { counter-increment: step; position: relative; padding: 6px 0 14px 64px; margin: 0; border-bottom: 1px solid var(--grey); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--green); color: var(--white); font: 26px/1 var(--display); padding-top: 3px; }
.steps li:nth-child(2n)::before { background: var(--red); }

/* tables */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; min-width: 100%; background: var(--white); font-size: 16px; }
th { text-align: left; background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .04em; padding: 10px 14px; }
td { padding: 10px 14px; border-bottom: 1px solid var(--grey); vertical-align: top; }

/* photos: black and white subject, solid colour shadow behind (brand photo style) */
.photo { margin: 0 0 0 0; position: relative; }
.photo-frame { display: block; position: relative; margin: 0 14px 14px 0; }
.photo-frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--shadow, var(--green)); }
.photo-frame img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .3s, transform .2s; }
.photo-frame:hover img, .photo-frame:focus-visible img { filter: none; transform: translate(-3px, -3px); }
.shadow-green { --shadow: var(--green); }
.shadow-red { --shadow: var(--red); }
.shadow-blue { --shadow: var(--blue); }
.shadow-yellow { --shadow: var(--yellow); }
.shadow-coral { --shadow: var(--coral); }
.shadow-navy { --shadow: var(--navy); }
.photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.photo-title { display: block; font-weight: 700; color: var(--navy); font-size: 16px; }
.credit { display: block; }
.credit a { color: inherit; }
.award { display: inline-block; background: var(--red); color: var(--white); font-size: 18px; padding: 3px 10px 1px; margin-bottom: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 32px; margin-top: 30px; }
.hero-art .photo-frame img { aspect-ratio: 4 / 3; }

/* editions */
.edition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px; margin-top: 30px; }
.edition-card { background: var(--white); padding: 20px 22px 22px; }
.edition-card .edition-year { font-size: 64px; line-height: .9; color: var(--red); margin: 18px 0 4px; }
.edition-card h3 { font-size: 26px; margin-bottom: 10px; }
.edition-card h3 a { color: var(--navy); text-decoration: none; }
.edition-card h3 a:hover { color: var(--green); }
.edition-card p { font-size: 16px; }
.edition-files strong { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--green); }

/* footer */
.site-footer { background: var(--navy); color: #d7deea; padding: 56px 0 28px; border-top: 6px solid var(--green); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 36px; }
.footer-title { font-size: 34px; line-height: 1; color: var(--white); margin-bottom: 12px; }
.footer-title span { color: var(--coral); }
.footer-kk img { width: 72px; margin-top: 8px; }
.site-footer .label { font-family: var(--display); font-size: 22px; letter-spacing: .08em; color: var(--white); margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #d7deea; }
.site-footer a:hover { color: var(--yellow); }
.site-footer a[aria-current] { color: var(--white); }
.footer-licence { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; }
.footer-licence p { max-width: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-home .hero-art { order: -1; }
  .hero-logo { max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero::before { width: 420px; height: 420px; right: -160px; top: -140px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 10px 0; min-height: 0; }
  .brand img { width: 84px; }
  .nav { gap: 2px 16px; }
  .nav a { font-size: 19px; }
  h2[id] { scroll-margin-top: 150px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* world stage: international and regional prizes */
.ribbon { display: inline-flex; align-items: stretch; margin: 0 0 14px; font-family: var(--display); font-size: 24px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; background: var(--white); color: var(--navy); max-width: none; }
.ribbon::before { content: ""; width: 34px; flex: none; background: var(--medal, var(--grey)) url(/assets/img/medal.svg) center / 22px no-repeat; }
.ribbon-year { background: var(--red); color: var(--white); padding: 9px 10px 6px; margin-left: -12px; }
.ribbon { padding: 0 12px 0 0; }
.ribbon { gap: 12px; align-items: center; }
.ribbon::before { align-self: stretch; min-height: 38px; }
.medal-gold { --medal: #E5B53A; }
.medal-silver { --medal: #B9C1CC; }
.medal-bronze { --medal: #C98B5B; }
.medal-honour { --medal: var(--green); }
.is-big .ribbon { font-size: 34px; }
.is-big .ribbon::before { width: 46px; background-size: 30px; }
.is-big .ribbon-year { padding: 11px 14px 8px; }
.world-item .photo-frame img { filter: none; }
.world-item figcaption { font-size: 15px; }
.is-big .photo-title { font-size: 22px; }
.spotlight { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; margin-top: 30px; align-items: start; }
.spotlight-side { display: grid; gap: 34px; }
.video-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 44px; }
.video-frame video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 36px; margin-top: 30px; }
.section-navy .photo figcaption, .section-navy .credit { color: #c9d2e3; }
.section-navy .photo-title { color: var(--white); }
.section-navy .credit a { color: inherit; }
.section-navy .ribbon { background: var(--white); }
.honours { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; max-width: none; }
.honour { margin: 0; background: var(--white); color: var(--navy); padding: 18px 20px; border-top: 5px solid var(--yellow); display: flex; flex-direction: column; gap: 4px; }
.honour strong { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--red); }
.honour a { font-weight: 700; color: var(--green-dark); }
.section-navy .honour a { color: var(--green-dark); }
.honour span { font-size: 14px; color: var(--muted); }
.honour .honour-year { font-family: var(--display); font-size: 20px; color: var(--navy); letter-spacing: .06em; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: var(--white); padding: 8px 14px 6px; font-family: var(--display); font-size: 22px; letter-spacing: .05em; text-decoration: none; margin-bottom: 18px; }
.hero-badge::before { content: ""; width: 22px; height: 22px; background: #E5B53A url(/assets/img/medal.svg) center / 16px no-repeat; border-radius: 50%; }
.hero-badge:hover { color: var(--yellow); }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } .is-big .ribbon { font-size: 26px; } }
.world-year { font-size: clamp(56px, 7vw, 84px); color: var(--red); margin: 56px 0 0; padding-top: 24px; border-top: 2px solid var(--grey); }
.world-year:first-of-type { margin-top: 24px; }
