@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text&display=swap');

/* ===== Global Styles ===== */
:root {
    --gold: #d6bb90;
    --orange: #f9a867;
    --yellow: #f7ca4d;
    --dark-brown: #431a10;
    --light-bg: #f9f5f0;
    --white: #ffffff;
    --text-dark: #333333;
    --royal-blue: #0064e3;
}

/* Ensure all elements use border-box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'DM Serif Text', serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    /* background-color: #f4f1e6; Light background for contrast */
    color: var(--text-dark); /* Dark text for readability */
}

h1 {
    font-size: 2.0rem; /* Adjust as needed for your design */
    line-height: 1.1;
    margin-bottom: 0.5em;
    color: var(--dark-brown);
}

.container, 
h1 {
    color: var(--dark-brown);
    /* width: 90%; */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Add some top padding for spacing */
}

section h1 {
    font-size: 2.0rem; /* Adjust as needed for your design */
}

/* ===== Main Content Styles ===== */
.error404-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
    background-color: var(--light-bg);
    margin: 2rem 4vw;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.error404-content {
    text-align: center;
    max-width: 600px;
}

.error404-content h1 {
    font-size: 8rem;
    margin: 0;
    color: var(--gold);
    line-height: 1;
}

.error404-content h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--gold);
}

.error404-content p {
    font-size: 1.5rem;
    color: var(--dark-brown);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.home-btn {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.25rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.home-btn:hover {
    background: var(--orange);
    color: #fff;
}

/* ==== Tablet Queries ==== */
@media (min-width: 601px) and (max-width: 1024px) {
    .error404-container {
        margin: 1rem 2vw;
        padding: 1.5rem;
    }
    
    .error404-content h1 {
        font-size: 5rem;
    }
    
    .error404-content h2 {
        font-size: 2rem;
    }
    
    .error404-content p {
        font-size: 1.2rem;
    }
}

/* ==== Mobile Queries ==== */
@media (max-width: 600px) {
    .error404-content h1 {
        font-size: 4rem;
    }
    
    .error404-content h2 {
        font-size: 1.8rem;
    }
    
    .error404-content p {
        font-size: 1.1rem;
    }
    
    .home-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}