:root {
    --color-bg: #f4f6f8;
    --color-surface: #ffffff;
    --color-surface-soft: #f8fafc;

    --color-text: #1f2937;
    --color-text-soft: #6b7280;
    --color-text-light: #9ca3af;

    --color-border: #d8dee6;

    --color-primary: #1f2937;
    --color-primary-hover: #111827;

    --color-success: #237a3b;
    --color-success-bg: #edf8ef;

    --color-danger: #a32626;
    --color-danger-bg: #fdecec;

    --color-warning: #8a5b00;
    --color-warning-bg: #fff5dc;

    --color-info: #165d96;
    --color-info-bg: #edf5ff;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm:
        0 3px 12px rgba(0, 0, 0, 0.06);

    --shadow-md:
        0 12px 35px rgba(0, 0, 0, 0.10);

    --shadow-lg:
        0 20px 50px rgba(0, 0, 0, 0.14);

    --container-width: 1200px;

    --transition:
        0.2s ease;
}


/* ==========================================================
   RESET
   ========================================================== */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.5;

    color: var(--color-text);
    background: var(--color-bg);

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}


/* ==========================================================
   MEDIA
   ========================================================== */

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

img {
    height: auto;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

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

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.7rem);
}

p {
    margin-bottom: 1rem;
}

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

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


/* ==========================================================
   LAYOUT
   ========================================================== */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.site-container {
    width: min(
        calc(100% - 32px),
        var(--container-width)
    );

    margin-inline: auto;
}


/* ==========================================================
   UTILITY
   ========================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

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

.hidden {
    display: none !important;
}

.w-100 {
    width: 100%;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

:focus-visible {
    outline: 3px solid rgba(31, 41, 55, 0.28);
    outline-offset: 2px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (min-width: 576px) {

    .site-container {
        width: min(
            calc(100% - 40px),
            var(--container-width)
        );
    }
}

@media (min-width: 768px) {

    body {
        font-size: 16px;
    }

    .site-container {
        width: min(
            calc(100% - 48px),
            var(--container-width)
        );
    }
}

@media (min-width: 1200px) {

    .site-container {
        width: min(
            calc(100% - 64px),
            var(--container-width)
        );
    }
}