/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #000000;
    --text-main: #EFEFEF;
    --accent-red: #5B0D0D;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.625;
    overflow-x: hidden;
}

/* --- UNIFIED TYPOGRAPHY --- */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    text-decoration: underline;
}

mark {
    background-color: var(--accent-red);
    color: inherit;
    padding: 2px 4px;
}

code {
    background-color: #7A4141;
    padding: 0.25em 0.5em;
    border-radius: 0.25em;
    font-family: monospace;
}

p, h2 {
    font-size: 1.125em;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* --- 1. HERO SECTION --- */
.hero-section {
    width: 100vw;
    min-height: 100vh;
    background-image: url('https://hailism.crd.co/assets/images/container01.jpg?v=022a37f1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Renders image01 at its natural true pixel size without forced scaling */
.hero-link {
    display: inline-block;
    line-height: 0;
}

.hero-link img {
    width: auto;
    height: auto;
    max-width: none;
    border: none;
}

/* --- 2. LAYOUT CONTAINERS --- */
.spacer-bg {
    width: 100vw;
    min-height: 100vh;
    background-image: url('https://hailism.crd.co/assets/images/container02.jpg?v=022a37f1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    width: 100%;
    max-width: 54rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-justify {
    text-align: justify;
}

.text-right {
    text-align: right;
}

/* --- 3. FULL WIDTH IMAGE DIVIDERS --- */
.image-dividers {
    width: 100vw;
    display: flex;
    flex-direction: column;
}

.image-dividers img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 4. FADE-UP ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    html {
        font-size: 12px;
    }
    .container {
        padding: 0 1.5rem;
    }
    
    /* Ensures true size image scales down gracefully on smaller mobile screens if it overflows */
    .hero-link img {
        max-width: 90vw;
    }
}