:root {
    --primary-background: #FDFBF7;
    --primary-text: #333333;
    --secondary-background: #E8DCC4;
    --secondary-text: #4A4A4A;
    --accent-color: #9DBF9E;
    --accent-text: #FFFFFF;
    --graphite-elements: #333333;
    --main-font: 'Lora', serif;
    --secondary-font: 'Inter', sans-serif;
    --container-max-width: 1200px;
    --border-radius: 8px;
    --section-padding: clamp(2rem, 5vw, 5rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--secondary-font);
    background-color: var(--primary-background);
    color: var(--primary-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--main-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

h2 {
    font-size: clamp(1.25rem, 4vw, 2rem);
}

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

img {
    max-width: 100%;
    display: block;
    height: auto;
    border-radius: var(--border-radius);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

input,
textarea,
select {
    font-family: var(--secondary-font);
    border-radius: var(--border-radius);
    border: 1px solid var(--secondary-background);
    padding: 0.75rem;
    width: 100%;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .mobile-text-sm {
        font-size: 0.875rem;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

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

/* ===== header_main ===== */
#header {
    width: 100%;
    background-color: var(--primary-background);
}

#header .mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background-color: var(--primary-background);
}

#header .mobile-menu.open {
    max-height: 450px;
    border-bottom: 1px solid var(--secondary-background);
}

#header .nav-link {
    position: relative;
    color: var(--primary-text);
    font-weight: 500;
    transition: color 0.3s;
}

#header .nav-link::after {
    content: \"\";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

#header .nav-link:hover::after {
    width: 100%;
}

#header .nav-link:hover {
    color: var(--accent-color);
}

/* ===== hero_section ===== */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* ===== category_filter ===== */
#categories .js-category-option:hover {
    background-color: var(--accent-color) !important;
    color: var(--accent-text) !important;
}

/* ===== intro_text ===== */
.intro-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* ===== foundations_text ===== */
#foundations {
    width: 100%;
}

/* ===== featured_block ===== */
#featured {
    width: 100%
}

.js-ready {
    opacity: 1;
    transition: opacity 0.5s ease-in
}

/* ===== psychology_text ===== */
#psychology {
    width: 100%;
    overflow: hidden;
}

.container {
    width: 100%;
}

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

/* ===== budgeting_text ===== */
.transition-opacity {
    transition-property: opacity;
}

.duration-1000 {
    transition-duration: 1000ms;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

/* ===== tracking_text ===== */
#tracking {
    width: 100%;
}

/* ===== tools_text ===== */
.bi-check-circle-fill {
    font-size: 1.25rem;
}

#digital-tools {
    border-bottom: 1px solid var(--secondary-background);
}

/* ===== overspending_text ===== */
#overspending {
    width: 100%;
}

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

/* ===== saving_text ===== */
#saving {
    width: 100%
}

.js-saving-animate {
    transition: all 1s ease-out
}

/* ===== retirement_prep_text ===== */
#retirement-planning {
    width: 100%;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== solutions_text ===== */
#solutions {
    width: 100%;
    scroll-margin-top: 2rem;
}

#solutions .container {
    max-width: var(--max-width);
}

/* ===== discipline_text ===== */
.js-habit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.js-habit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== analysis_text ===== */
#analysis {
    width: 100%;
}

#analysis .analysis-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ===== author_section ===== */
#about {
    position: relative;
    overflow: hidden;
}

.author-image-container img {
    filter: sepia(0.2);
}

/* ===== form_section ===== */
.form-section-container {
    width: 100%
}

/* ===== footer ===== */
#footer {
    background-color: #333333;
}

.js-footer-year {
    display: inline;
}