/* Base styles, typography, variables */

:root {
    --cl-bg: #f7f9fc;
    --cl-primary: #2b6ef3;
    --cl-primary-hover: #1e5ad6;
    --cl-secondary: #1c3d6b;
    --cl-text-main: #1a1a1a;
    --cl-text-muted: #6b7280;
    --cl-border: #e5e7eb;
    --cl-card-bg: #ffffff;
    --cl-radius-md: 12px;
    --cl-radius-lg: 16px;
    --cl-radius-xl: 24px;
    --cl-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --cl-container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--cl-text-main);
    background-color: var(--cl-bg);
}

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

a {
    color: var(--cl-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cl-primary-hover);
}

.cl-container {
    max-width: var(--cl-container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.cl-main {
    padding-top: 96px;
}

.cl-heading-1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px;
}

.cl-heading-2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 12px;
}

.cl-heading-3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
}

.cl-heading-4 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
}

.cl-section {
    padding: 24px 0 40px;
}

.cl-main > .cl-section:first-of-type {
    padding-top: 18px;
}

.home .cl-main > .cl-section:first-of-type {
    padding-top: 48px;
}

.cl-section--muted {
    background-color: #eef2f9;
}

.cl-section--accent {
    background-color: #e3ecff;
}

.cl-section__header {
    margin-bottom: 24px;
}

.cl-section__subtitle {
    margin: 0;
    max-width: 640px;
    color: var(--cl-text-muted);
}

.cl-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 32px 0 10px;
}

.cl-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 24px 0 8px;
}

.cl-content p {
    margin: 0 0 16px;
    text-align: justify;
}

.cl-content ul,
.cl-content ol {
    margin: 0 0 16px 20px;
    padding: 0;
}

.cl-content ul li,
.cl-content ol li {
    margin-bottom: 4px;
}

.cl-content a {
    color: var(--cl-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.cl-content a:hover {
    color: var(--cl-primary-hover);
}

.cl-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--cl-primary);
    background-color: #e5edff;
    color: var(--cl-secondary);
}

.cl-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.cl-content th,
.cl-content td {
    padding: 8px 10px;
    border: 1px solid var(--cl-border);
}

.cl-content th {
    background-color: #eef2f9;
    font-weight: 600;
    text-align: left;
}

.cl-content tr:nth-child(even) td {
    background-color: #f9fafb;
}

.cl-content code {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 13px;
    background-color: #e5e7eb;
    padding: 1px 4px;
    border-radius: 4px;
}

.cl-content pre {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 13px;
    background-color: #111827;
    color: #e5e7eb;
    padding: 12px 14px;
    border-radius: 6px;
    overflow: auto;
    margin: 20px 0;
}

