/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Custom Properties ── */
:root {
    /* Colours */
    --c-bg:             #0B0E17;
    --c-surface:        #141825;
    --c-surface-2:      #1C2030;
    --c-text:           #EAECF0;
    --c-text-dim:       #8890A0;
    --c-accent:         #3B7DD8;
    --c-accent-hover:   #5A96E8;
    --c-accent-sec:     #C5A55A;
    --c-accent-sec-text:#D4B96A;
    --c-border:         #1E2333;
    --c-win:            #3B8868;
    --c-loss:           #C44B4B;
    --c-error:          #C44B4B;

    /* Typography */
    --f-heading: 'Lexend', sans-serif;
    --f-body:    'Onest', sans-serif;

    /* Spacing */
    --s-4:  0.25rem;
    --s-8:  0.5rem;
    --s-12: 0.75rem;
    --s-16: 1rem;
    --s-20: 1.25rem;
    --s-24: 1.5rem;
    --s-32: 2rem;
    --s-40: 2.5rem;
    --s-48: 3rem;
    --s-56: 3.5rem;
    --s-64: 4rem;
    --s-80: 5rem;
    --s-96: 6rem;

    /* Radius */
    --r-sm: 3px;
    --r-md: 6px;
    --r-lg: 8px;

    /* Transitions */
    --dur:  240ms;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --max-w:       1200px;
    --header-h:    64px;
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--f-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--c-text);
    background-color: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    line-height: 1.25;
    color: var(--c-text);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

h1 em, h2 em {
    font-style: italic;
    font-weight: 500;
}

p {
    margin-bottom: var(--s-16);
}

a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

a:hover {
    color: var(--c-accent-hover);
}

/* Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Tabular nums for all stat contexts */
.tabular-nums,
table td,
table th {
    font-variant-numeric: tabular-nums;
}
