/**
 * Base CSS - SkogSand
 * Reset et styles de base
 */

/* === RESET === */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--color-gray-700);
    background-color: var(--bg-light);
    overflow-x: hidden;
    min-width: 500px;
}

/* === TYPOGRAPHIE === */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--font-size-4xl);
    letter-spacing: var(--letter-spacing-tight);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

strong, b {
    font-weight: var(--font-weight-bold);
}

em, i {
    font-style: italic;
}

/* === LISTES === */

ul, ol {
    margin-left: var(--space-6);
    margin-bottom: var(--space-4);
}

li {
    /*margin-bottom: var(--space-2);*/
}

/* === IMAGES === */

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

figure {
    margin: 0;
}

/* === BOUTONS ET INPUTS === */

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* === TABLES === */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-6);
}

th, td {
    padding: var(--space-3);
    text-align: left;
    border-bottom: var(--border-width-1) solid var(--color-gray-200);
}

/* === CODE === */

code, pre {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background-color: var(--color-gray-100);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--border-radius-sm);
}

pre {
    padding: var(--space-4);
    overflow-x: auto;
    margin-bottom: var(--space-4);
}

/* === UTILITAIRES === */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* === RESPONSIVE === */

@media (min-width: 768px) {
    h1 {
        font-size: var(--font-size-5xl);
    }
    
    h2 {
        font-size: var(--font-size-4xl);
    }
    
    h3 {
        font-size: var(--font-size-3xl);
    }
}

@media (min-width: 1200px) {
    h1 {
        font-size: var(--font-size-6xl);
    }
}

