/* -------- Reset / Base -------- */

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

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
        "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    color: #1f1f1f;
    background-color: #f7f7f8;
}

/* -------- Text -------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0.5rem 0;
}

small {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* -------- Links -------- */

a {
    color: #2c5ec2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* -------- Lists -------- */

ul,
ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

/* -------- Utility -------- */

code,
pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco,
        Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95em;
}

pre {
    background: #eee;
    padding: 0.75rem;
    border-radius: 8px;
    overflow-x: auto;
}

/* -------- Page Containers -------- */

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* -------- Cards (shared feel) -------- */

article {
    background: #ffffff;
}

/* -------- Accessibility -------- */

:focus-visible {
    outline: 2px solid #5a8dee;
    outline-offset: 2px;
}

/* -------- Dark-mode friendly base -------- */
/* (Optional – remove if unwanted) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #141416;
        color: #e8e8ea;
    }

    article {
        background: #1c1c1f;
    }

    a {
        color: #7aa2ff;
    }

    pre {
        background: #26262a;
    }
}