/*
 * BASE — reset, body, типографіка, зображення
 * krylovakseniia.com
 */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ── Типографіка ── */
h1, h2, h3, h4, h5, h6 {
    color: var(--clr-purple-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem,  3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem,  2vw, 1.4rem); }

p {
    color: var(--clr-text);
    line-height: 1.75;
    margin-bottom: 1rem;
}

li {
    color: var(--clr-text);
    line-height: 1.6;
}

a {
    color: var(--clr-purple-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--clr-purple-dark);
}

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

ul, ol {
    list-style: none;
}

/* ── Утиліти ── */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section {
    padding-block: var(--space-section);
}

.section--alt {
    background-color: var(--clr-bg-alt);
}

.section--sm {
    padding-block: clamp(1rem, 2.5vw, 1.75rem);
}

.section--white {
    background-color: var(--clr-card);
}

.section--purple {
    background: linear-gradient(135deg, var(--clr-purple-dark), var(--clr-purple-deep));
}

.section--purple h1,
.section--purple h2,
.section--purple h3,
.section--purple p,
.section--purple li {
    color: var(--clr-white);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
