/* Reset all default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style the body element */
body {
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;        /* Stack children vertically */
    margin: 0;
    padding: 20px;
    position: relative;
}

/* Main content container - takes up remaining space */
.main-content {
    flex: 1;                       /* Take up all available space */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Style the main container div */
.container {
    max-width: 90%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Wrapper that holds both elements */
.content-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style the main heading text */
.hero-text {
    font-size: clamp(1rem, 6vw, 8rem);
    font-weight: 850;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    word-spacing: 0.1em;
    line-height: 1.2;
    word-break: break-word;
    margin: 0;
    text-align: center;
    display: inline-block;
    position: relative;
}

/* Style the sub-text paragraph */
.sub-text {
    font-size: clamp(0.89rem, 3vw, 1.5rem);
    color: #222;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem 0;
    padding: 0;
    overflow: visible;
    text-align: left;
    
    /* Position absolutely relative to the h1's first letter */
    position: absolute;
    left: 0;
    top: -1.8rem;
    width: max-content;
    max-width: 100%;
    transform: translateX(0);
    white-space: nowrap;
}

/* Spacer for the absolute positioned sub-text */
.hero-text::before {
    content: '';
    display: block;
    height: 2rem;
    margin-top: -2rem;
    pointer-events: none;
}

/* Footer styles for copyright */
.footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;               /* Vertical padding only */
    margin-top: auto;               /* Push to bottom with flexbox */
}

.copyright {
    font-size: 0.875rem;            /* Small text */
    color: #999;                    /* Light grey color */
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Media query for mobile devices */
@media (max-width: 480px) {
    .hero-text {
        font-weight: 800;
    }
    
    .sub-text {
        top: -1.5rem;
        font-size: 0.8rem;
    }
    
    .copyright {
        font-size: 0.75rem;         /* Even smaller on mobile */
        padding: 15px 0;
    }
}