@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Bold.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Medium.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    --white-color: #fff;
    --text-color: #101514;
    --grey-color: #555b5b;
    --border-color: #e1e5e4;
    --accent-color: #00a349;
    --accent-hover-color: #00883e;
    --dark-color: #14232a;
    --footer-text-color: #d4dfe2;
    --footer-border-color: #3d4d53;
    --focus-color: #00883e;
    --font-body: 'Manrope', Arial, sans-serif;
    --font-numbers: 'JetBrains Mono', monospace;
    --text-small: 0.875rem;
    --text-body: 1rem;
    --text-lead: 1.25rem;
    --text-title: 1.6rem;
    --page-heading-size: clamp(1.9rem, 3.75vw, 3.5rem);
    --layout-width: 1440px;
    --layout-indent: 3.125rem;
    --layout-gap: 2rem;
    --section-space: 4rem;
    --space-small: 0.4rem;
    --space-medium: 1rem;
    --space-large: 1.5rem;
    --transition-duration: 0.25s;
    --transition-fast-duration: 0.15s;
    --transition-easing: ease;
    --hover-offset: 3px;
    --hover-scale: 1.02;
}

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

html {
    color: var(--text-color);
    background: var(--white-color);
    font-family: var(--font-body);
    font-size: 100%;
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-size: var(--text-body);
    overflow-wrap: break-word;
}

body > .header,
body > .footer {
    flex-shrink: 0;
}

button,
input,
textarea,
select {
    font: inherit;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
    color: var(--text-color);
}

p {
    color: var(--grey-color);
    font-size: var(--text-body);
    line-height: 1.4;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 4px;
}

.viewport {
    width: calc(100% - var(--layout-indent) * 2);
    max-width: var(--layout-width);
    margin-inline: auto;
}

.main {
    flex: 1 0 auto;
    min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-duration: 0s;
        --transition-fast-duration: 0s;
        --hover-offset: 0px;
        --hover-scale: 1;
    }
}

@media (max-width: 1200px) {
    :root {
        --text-title: 1.4rem;
        --layout-indent: 2rem;
        --layout-gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-space: 3rem;
    }
}

@media (max-width: 576px) {

    :root {
        --layout-indent: 1rem;
        --layout-gap: 1.25rem;
    }
    h3 {
        font-size: var(--text-body)
    }
    p {
        font-size: var(--text-small)
    }
}
