/* ADR-0060: the landing page's tokens (the identity's colours, light and dark), base type and helpers. */

:root {
  color-scheme: light dark;
  --bg: #f7f7f9;
  --surface: #ffffff;
  --sunk: #efeff3;
  --text-1: #16161c;
  --text-2: #4c4c58;
  --text-3: #63636f;
  --accent: #3450c8;
  --accent-fg: #ffffff;
  --accent-soft: rgb(52 80 200 / 0.08);
  --border: #e3e3e9;
  --border-strong: #c6c6d0;
  --success: #177a4e;
  --shadow: 0 28px 60px -32px rgb(16 17 22 / 0.35);
  --sans: 'IBM Plex Sans', 'Noto Sans Bengali', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101116;
    --surface: #17181f;
    --sunk: #0b0c10;
    --text-1: #f4f4f7;
    --text-2: #a9a9b4;
    --text-3: #8f8f9b;
    --accent: #8fa8ff;
    --accent-fg: #0b0c10;
    --accent-soft: rgb(143 168 255 / 0.12);
    --border: #26262e;
    --border-strong: #3a3a46;
    --success: #3ecf8e;
    --shadow: 0 28px 60px -32px rgb(0 0 0 / 0.8);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

:lang(bn) {
  line-height: 1.75;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

:lang(bn) :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.35;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
}

.skip:focus {
  top: 12px;
}

.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
