/* ==========================================================================
   BNA Portal — Foundations
   Design tokens, reset, typography, utilities
   ========================================================================== */

:root {
  /* Brand — Believers aubergine, living coral, warm ivory */
  --ink-950: #170f26;
  --ink-900: #201634;
  --forest-900: #2f234b;
  --forest-800: #3b2c5e;
  --forest-700: #4b3777;
  --forest-950: #120b1e;
  --leaf-600: #5b3d9e;
  --leaf-500: #6c4ce0;
  --leaf-400: #8a6adb;
  --lime-500: #ff654a;
  --lime-400: #ff8a73;
  --lime-300: #ffb4a6;
  --lime-200: #ffd9d1;
  --lime-100: #ffe8e2;
  --terra-600: #b8741b;
  --terra-500: #f2b544;
  --terra-200: #ffe7b8;
  --gold-500: #f2b544;
  --gold-200: #ffe7b8;
  --sky-500: #2f8f83;
  --sky-100: #e3f4f0;

  /* Surfaces */
  --paper: #fbf7f0;
  --bone: #f4eee5;
  --bone-2: #eae2d4;
  --white: #ffffff;
  --ink: #21173a;
  --text: #382e4d;
  --muted: #6b627d;
  --muted-2: #786f8b;
  --line: rgba(47, 35, 75, 0.12);
  --line-strong: rgba(47, 35, 75, 0.22);
  --line-light: rgba(255, 255, 255, 0.12);

  /* Type */
  --font-display: "Tiro Bangla", Georgia, serif;
  --font-body: "Hind Siliguri", "Anek Bangla", sans-serif;
  --font-latin: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-serif: "Bodoni Moda", "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  /* Shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(23, 15, 38, 0.06);
  --shadow-sm: 0 10px 26px -20px rgba(23, 15, 38, 0.35);
  --shadow-md: 0 24px 60px -34px rgba(23, 15, 38, 0.4);
  --shadow-lg: 0 40px 90px -46px rgba(23, 15, 38, 0.55);
  --shadow-glow: 0 20px 50px -24px rgba(255, 101, 74, 0.5);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 3.4vw, 2.5rem);
  --header-h: 78px;
  --announce-h: 38px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--lime-500);
  color: var(--ink-950);
}

:focus-visible {
  outline: 3px solid rgba(255, 101, 74, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bone);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--bone);
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--leaf-500), var(--forest-900));
}

/* --------------------------------------------------------------------------
   Layout / utility
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(4.75rem, 8vw, 8.5rem) 0;
}

.section--tight {
  padding: clamp(3.25rem, 5.5vw, 5.5rem) 0;
}

.section--paper {
  background: var(--paper);
}

.section--bone {
  background: var(--bone);
}

.section--dark {
  overflow: hidden;
  background: var(--forest-900);
  color: rgba(255, 255, 255, 0.72);
}

.section--ink {
  overflow: hidden;
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.72);
}

.section--dark h2,
.section--dark h3,
.section--ink h2,
.section--ink h3,
.section--dark .section-title,
.section--ink .section-title {
  color: var(--white);
}

.section--dark .lead,
.section--ink .lead {
  color: rgba(255, 255, 255, 0.68);
}

.section--line {
  border-top: 1px solid var(--line);
}

[hidden] {
  display: none !important;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink-950);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  transform: translate(-50%, -160%);
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.text-lime {
  color: var(--lime-500);
}

.text-leaf {
  color: var(--leaf-500);
}

.text-muted {
  color: var(--muted);
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78em;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--leaf-600);
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.19em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 4px rgba(255, 101, 74, 0.15);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.section--dark .eyebrow,
.section--ink .eyebrow {
  color: var(--lime-400);
}

.section-title {
  max-width: 22ch;
  font-size: clamp(2rem, 1.25rem + 2.5vw, 3.35rem);
  line-height: 1.26;
}

.section-title em {
  position: relative;
  color: var(--leaf-600);
  font-style: italic;
  white-space: nowrap;
}

.section--dark .section-title em,
.section--ink .section-title em {
  color: var(--lime-400);
}

.section-title .brush {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.16em;
  color: var(--lime-500);
  overflow: visible;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.94rem + 0.24vw, 1.15rem);
  line-height: 1.85;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(1.25rem, 4vw, 4rem);
  margin-bottom: clamp(2.5rem, 4.5vw, 4.25rem);
}

.section-head__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.section-head__aside {
  justify-self: end;
  max-width: 450px;
}

.section-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-inline: auto;
  text-align: center;
}

.section-head--center .section-title {
  max-width: 24ch;
}

.section-head--center .lead {
  max-width: 58ch;
}

.section-head--center .eyebrow::before {
  display: none;
}

/* --------------------------------------------------------------------------
   Small screen base
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-head__aside {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .section-title {
    max-width: 100%;
  }

  .lead {
    font-size: 0.98rem;
  }
}
