/* ===============================================
   KARDERA - BASE STYLES & RESET
   =============================================== */

/* GLOBAL TYPOGRAPHY SETUP */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: inherit; 
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-p);
    line-height: var(--line-height);
    color: var(--black);
    background-color: var(--white);
    letter-spacing: var(--letter-spacing);
}

/* HEADING STYLES */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-700);
    color: var(--black);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-800);
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-700);
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-600);
}

/* PARAGRAPH STYLES */
p {
    margin-bottom: var(--space-md);
    color: var(--black);
}

/* LINK STYLES */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* LIST STYLES */
ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

li {
    margin-bottom: var(--space-sm);
}

/* IMAGE STYLES */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* FORM ELEMENTS */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* ACCESSIBILITY */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* SMOOTH SCROLLING */
html {
    scroll-behavior: smooth;
}
