@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #f5f3ed;
    --surface: #faf8f3;
    --card: #fffefb;
    --ink: #22211d;
    --ink-soft: #4c4a43;
    --muted: #6f6a60;
    --faint: #9b9588;
    --line: #e6e1d6;
    --line-strong: #d6cfc0;
    --sage: #e8eee4;
    --sage-ink: #3f5639;
    --clay: #f2e6df;
    --clay-ink: #8a513e;
    --sky: #e5edf1;
    --sky-ink: #395866;
    --sand: #f5ecd8;
    --sand-ink: #7c5d23;
    --danger: #a23f34;
    --danger-soft: #f7e7e3;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 5px;
    --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    --sidebar: 262px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* The off-canvas sidebar sits outside the viewport on small screens;
       clip keeps it from adding horizontal scroll without breaking sticky. */
    overflow-x: clip;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.75;
    font-feature-settings: 'ss01' on;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 8%, rgba(88, 104, 74, 0.045), transparent 32%),
        radial-gradient(circle at 92% 88%, rgba(151, 102, 71, 0.035), transparent 30%);
}

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

h1,
h2,
h3,
h4 {
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

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

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

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

svg {
    display: block;
    flex: 0 0 auto;
}

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

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

::selection {
    background: var(--sage);
    color: var(--ink);
}

::placeholder {
    color: var(--faint);
    opacity: 1;
}

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

.ltr {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

.num,
.stat__value,
.data-table td.num {
    font-variant-numeric: tabular-nums;
}

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

.faint {
    color: var(--faint);
}

.small {
    font-size: 13px;
}

.tiny {
    font-size: 12px;
}

.strong {
    font-weight: 650;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.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;
    right: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--white);
    transform: translateY(-160%);
    transition: transform 180ms var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

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

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.row--between {
    justify-content: space-between;
}

.wrap-anywhere {
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    body {
        font-size: 14px;
    }

    .wrap {
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
