:root {
    --primary-background: #FFFFFF;
    --primary-text: #1A202C;
    --secondary-background: #F0FFF4;
    --secondary-text: #2D3748;
    --accent-color: #2F855A;
    --accent-text: #FFFFFF;
    --muted-text: #718096;
    --border-color: #E2E8F0;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-background);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover,
a:focus {
    text-decoration: none;
    opacity: 0.85;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

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

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

input,
textarea,
select {
    font-family: 'Inter', sans-serif;
    outline: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    p,
    li,
    a,
    label,
    input,
    button {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .js-cookie-consent-banner>div {
        padding: 1rem;
    }

    .js-cookie-consent-banner div[style*="display: flex"] {
        flex-direction: column;
        width: 100%;
    }

    .js-cookie-consent-banner button {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 1.05rem;
    }
}

/* ===== header ===== */
html {
    scroll-behavior: smooth
}

#main-header {
    z-index: 50
}

.js-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 40;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1)
}

.js-mobile-link {
    transition: color 0.2s ease-in-out
}

.js-mobile-link:hover {
    color: var(--accent-color)
}

/* ===== hero_section ===== */
#hero {
    hyphens: auto
}

#hero h1 {
    word-break: break-word
}

#hero .container {
    position: relative;
    z-index: 2
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    pointer-events: none
}

/* ===== featured_content ===== */
#featured {
    overflow: hidden;
}

#featured .prose {
    color: var(--secondary-text);
}

#featured .js-extended-content.hidden {
    display: none;
}

#featured .js-extended-content:not(.hidden) {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#featured h2,
#featured h3 {
    color: var(--primary-text);
    hyphens: auto;
    line-height: 1.2;
}

#featured p {
    hyphens: auto;
}

/* ===== active_lifestyle ===== */
#active-lifestyle {
    hyphens: auto;
}

.js-modal {
    transition: opacity 0.3s ease-in-out;
}

.overflow-hidden {
    overflow: hidden;
}

/* ===== healthy_habits ===== */
.js-habit-card {
    transition: transform 0.3s ease;
}

.js-habit-card:hover {
    transform: translateY(-5px);
}

#js-habit-modal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    line-height: 1.2;
}

#js-habit-modal p {
    line-height: 1.6;
    margin-bottom: 1rem;
    hyphens: auto;
}

@media (min-width: 768px) {
    #js-habit-modal h3 {
        font-size: 1.75rem;
    }
}

/* ===== wellbeing_cards ===== */
.js-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    display: none;
}

.js-modal.is-active {
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.object-fit-cover {
    object-fit: cover;
}

.hyphens-auto {
    hyphens: auto;
}

/* ===== comfort_factors_text ===== */
#comfort {
    background-color: var(--primary-background);
}

.hyphens-auto {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

#comfort h2,
#comfort h3 {
    color: var(--primary-text);
    line-height: 1.2;
}

#comfort p {
    color: var(--secondary-text);
}

.text-accent {
    color: var(--accent-color);
}

/* ===== order_form ===== */
#order-form input::placeholder {
    color: var(--muted-text);
}

#order-form input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(47, 133, 90, 0.1);
}

#order-form .container {
    max-width: 1200px;
}

/* ===== footer ===== */
#footer .author-block {
    transition: transform 0.3s ease;
}

#footer .author-block:hover {
    transform: translateY(-5px);
}

#footer img {
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

#footer img:hover {
    filter: grayscale(0%);
}

#footer a {
    position: relative;
}