/* ========================================
   Kefir Grain
   Global Design Foundation
======================================== */

:root {
    --color-bg: #f5f1e8;
    --color-surface: #fffdf8;
    --color-text: #25251f;
    --color-muted: #6f7065;

    --color-accent: #66734a;
    --color-accent-dark: #465132;
    --color-soft: #dfe5cf;

    --color-border: rgba(37, 37, 31, 0.12);

    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: Arial, Helvetica, sans-serif;

    --container: 1180px;

    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 32px;

    --shadow-soft: 0 15px 45px rgba(37, 37, 31, 0.08);
}


/* ========================================
   Reset / Base
======================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* ========================================
   Layout
======================================== */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}

section {
    position: relative;
}


/* ========================================
   Common Button
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 0 28px;

    border: 0;
    border-radius: 999px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-accent-dark);
}


/* ========================================
   Selection
======================================== */

::selection {
    background: var(--color-accent);
    color: #fff;
}


/* ========================================
   Responsive
======================================== */

@media (max-width: 768px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    html {
        font-size: 15px;
    }

    .btn {
        width: 100%;
        min-height: 52px;
    }

}