/* css/base.css */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Montserrat:wght@600;700;800;900&display=swap');

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    height: 100%;
}

body {
    font-family: var(--font-family-sans);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    border: none;
    background: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-background);
}