@font-face {
    font-family: "Figtree";
    src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 900;
    font-display: swap;
}

:root {
    --ink: #1c1c1e;
    --ink-2: #57565b;
    --ink-3: #747279;
    --line: #e6e4e1;
    --tile: #f4f3f1;
    --sand: #ede6db;
    --red: #d9211c;
    --red-dark: #b51813;
    --red-soft: #fdeceb;
    --radius: .75rem;

    --bs-body-font-family: "Figtree", system-ui, -apple-system, "Segoe UI", "Noto Sans Bengali", sans-serif;
    --bs-body-color: var(--ink);
    --bs-primary: #d9211c;
    --bs-primary-rgb: 217, 33, 28;
    --bs-link-color: var(--ink);
    --bs-link-color-rgb: 28, 28, 30;
    --bs-link-hover-color: var(--red);
    --bs-link-hover-color-rgb: 217, 33, 28;
    --bs-border-color: var(--line);
    --bs-border-radius: .5rem;
}

body { font-family: var(--bs-body-font-family); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
a { text-decoration: none; }
p a, .prose a { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; }
.text-ink-2 { color: var(--ink-2); }
.text-ink-3 { color: var(--ink-3); }

.wordmark { font-weight: 800; font-size: 1.75rem; letter-spacing: -.045em; color: var(--ink); line-height: 1; }
.wordmark span { color: var(--red); }
.wordmark:hover { color: var(--ink); }
.wordmark img { max-height: 40px; max-width: 170px; }

.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: .55rem; --bs-btn-padding-y: .55rem; --bs-btn-padding-x: 1.1rem; }
.btn-sm { --bs-btn-padding-y: .3rem; --bs-btn-padding-x: .7rem; }
.btn-lg { --bs-btn-padding-y: .75rem; --bs-btn-padding-x: 1.5rem; --bs-btn-font-size: 1.05rem; --bs-btn-border-radius: .6rem; }
.btn-primary {
    --bs-btn-bg: var(--red); --bs-btn-border-color: var(--red);
    --bs-btn-hover-bg: var(--red-dark); --bs-btn-hover-border-color: var(--red-dark);
    --bs-btn-active-bg: var(--red-dark); --bs-btn-active-border-color: var(--red-dark);
    --bs-btn-disabled-bg: var(--red); --bs-btn-disabled-border-color: var(--red);
}
.btn-dark { --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); }
.btn-outline-dark { --bs-btn-color: var(--ink); --bs-btn-border-color: #bcb9b5; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-control:focus, .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 .2rem rgba(28, 28, 30, .1); }
.form-check-input { border-color: #a09d99; }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.pagination { --bs-pagination-color: var(--ink); --bs-pagination-hover-color: var(--ink); --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); }

.img-tile { position: relative; aspect-ratio: 1; background: var(--tile); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; color: #b8b4ae; }
.img-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.img-tile > i { font-size: clamp(1.4rem, 30cqw, 5rem); }
.img-tile { container-type: inline-size; }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: var(--sand); color: var(--ink); font-weight: 700; line-height: 1; vertical-align: middle; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Notices: green success, yellow warning, red critical */
.alert-success, .notice-success { --notice-bg: #157347; --notice-ink: #fff; }
.alert-warning, .notice-warning { --notice-bg: #ffc93c; --notice-ink: #1c1c1e; }
.alert-danger, .notice-danger { --notice-bg: #c81e1a; --notice-ink: #fff; }
.alert-success, .alert-warning, .alert-danger { background: var(--notice-bg); border-color: var(--notice-bg); color: var(--notice-ink); }
.alert .alert-link, .alert a { color: inherit; text-decoration: underline; }
.alert-notice { display: flex; gap: .65rem; align-items: flex-start; }
.toast.notice-success, .toast.notice-warning, .toast.notice-danger { --bs-toast-border-color: transparent; background: var(--notice-bg); color: var(--notice-ink); font-weight: 500; }
.toast .btn-close { margin-left: auto; }
.prose { max-width: 70ch; line-height: 1.7; }
.prose h2 { font-size: 1.3rem; margin-top: 1.75rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.25rem; }

@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition: none !important; animation: none !important; } }
