/* BASE CSS - Lil.Wide.Codes V1 | Purpose: Reset, variables, typography */

/* CSS VARIABLES */
:root {
    /*Colors*/
    --color-bg: #0d0f12;
    --color-surface: #151821;
    --color-text-primary: #e6e8eb;
    --color-text-secondary: #9aa0a6;
    --color-accent: #4f8cff;

    /* Typography */
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Layout */
    --max-width: 1100px;

    --text-xs: 0.8rem;
    --text-sm: 0.95rem;
    --text-md: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.75rem;
    --text-xxl: 2.4rem;
}

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

html {
    scroll-behavior:smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    font-size: var(--text-md);
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-top: 2.5rem;
}

h3 {
    font-size: var(--text-lg);
}

p {
    color:var(--color-text-secondary);
    max-width: 65ch;
}

/* LINKS */
a {
    color: var(--color-text-primary);
    text-decoration:none;
}

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

/* UTILITIES */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-sm);
}

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

.text-link {
    font-weight: 500;
    color: var(--color-accent);
}


