/* ==========================================================
   Buildstudio Base Styles
   Shared by all example projects
   ========================================================== */

/* ---------- Reset ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
/*    scroll-padding-top: 70px;*/
}

body {
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* ---------- Links ---------- */

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    text-decoration: underline;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

p {
    margin: 0 0 1rem;
}

/* ---------- Forms ---------- */

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

/* ---------- Layout ---------- */

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 20px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-weight: 700;
    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.button:hover {
    text-decoration: none;
}

.button.primary {
    background: var(--accent);
    color: #fff;
}

.button.primary:hover {
    background: var(--accent-dark);
}

.button.secondary {
    background: transparent;
    color: inherit;
    border-color: var(--line);
}

.button.secondary:hover {
    background: var(--surface);
}

/* ---------- Utilities ---------- */

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {

    .section {
        padding: 56px 0;
    }

}
