/* =========================================
   ALIGNED ENTERTAINMENT
   ========================================= */

html {
    height: 100%;
}

body {
    background: #0e1f16;
    font-family: "ff-dax-compact-pro", sans-serif;
    font-style: normal;
    font-weight: 300;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Chrome fix: ensure proper height calculation */
    height: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    /* Chrome font smoothing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, a:visited {
    color: #C4B49A;
    text-decoration: none;
}

a:hover {
    color: #E4DED2;
}

/* Sacred geometry sigil */
.sigil-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    /* Chrome fix: explicit transform with fallback */
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: min(520px, 90vw);
    z-index: 0;
    pointer-events: none;
    /* Chrome fix: ensure hardware acceleration for fixed positioning */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.sigil {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   BASE LAYOUT
   ========================================= */

#header, #about, #music, #footer {
    position: relative;
    z-index: 2;
}

#header {
    padding: 1.5rem 1.25rem 0;
}

#logo {
    width: 130px;
    margin-bottom: 0.75rem;
}

#logo img {
    width: 100%;
    display: block;
    filter: hue-rotate(25deg);
}

#contact {
    color: #E4DED2;
}

#phone {
    font-size: 0.75rem;
    letter-spacing: 1.4px;
    margin: 0 0 4px 0;
}

#address {
    font-size: 0.688rem;
    margin: 0;
    opacity: 0.7;
}

/* About */
#about {
    color: #E4DED2;
    padding: 2rem 1.5rem;
    max-width: 480px;
    text-align: center;
    /* Chrome fix: use auto height instead of vh for flex children */
    min-height: auto;
    /* Chrome fix: ensure flex works properly */
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    /* Chrome fix: contain layout */
    contain: layout;
}

#about .about-label {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.625rem;
    opacity: 0.9;
}

#about .about-text {
    font-size: 0.78rem;
    line-height: 1.6;
    margin-bottom: 0.625rem;
    opacity: 0.8;
}

#about .about-link {
    font-size: 0.72rem;
    opacity: 0.4;
}

#about .about-link a {
    border-bottom: 1px solid rgba(196, 180, 154, 0.3);
}

/* Music */
#music {
    color: #E4DED2;
    padding: 0.5rem 1.25rem 2rem;
}

#music .music-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #C4B49A;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

#music .music-link:hover {
    opacity: 1;
}

#music .spotify-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

#music .music-link span {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Footer */
#footer {
    padding: 0.875rem 1.25rem;
    text-align: center;
}

#unsolicited {
    color: rgba(196, 180, 154, 0.4);
    font-size: 0.688rem;
    letter-spacing: 0.5px;
}

/* Mobile order: header, about, music, footer */
@media only screen and (max-width: 768px) {
    #header { order: 1; }
    #about  { order: 2; }
    #music  { order: 3; }
    #footer { order: 4; }
    .sigil-wrap { order: 5; }
}

/* =========================================
   SMALL PHONES (≤ 400px)
   ========================================= */
@media only screen and (max-width: 400px) {
    .sigil-wrap {
        width: 85vw;
        opacity: 0.35;
    }
    #logo {
        width: 110px;
    }
}

/* =========================================
   LARGER PHONES / SMALL TABLETS (401–768px)
   ========================================= */
@media only screen and (min-width: 401px) and (max-width: 768px) {
    .sigil-wrap {
        width: 75vw;
        opacity: 0.40;
    }
    #header {
        padding: 1.75rem 1.75rem 0;
    }
    #logo {
        width: 150px;
    }
    #about {
        padding: 1.5rem 1.75rem 2.5rem;
        max-width: 85%;
        margin: 0 auto;
    }
    #about .about-text {
        font-size: 0.82rem;
    }
    #music {
        padding: 0.5rem 1.75rem 2.5rem;
    }
}

/* =========================================
   TABLETS / SMALL DESKTOPS (769–1024px)
   ========================================= */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .sigil-wrap {
        width: 480px;
        opacity: 0.45;
    }
    #header {
        position: fixed;
        top: 2.5rem;
        left: 3rem;
        padding: 0;
    }
    #logo {
        width: 180px;
        margin-bottom: 1rem;
    }
    #phone {
        font-size: 0.82rem;
    }
    #address {
        font-size: 0.72rem;
    }
    #about {
        position: fixed;
        top: 50%;
        left: 50%;
        /* Chrome fix: explicit webkit transform */
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        padding: 2rem;
        max-width: 420px;
        min-height: auto;
    }
    #about .about-label {
        font-size: 0.72rem;
    }
    #about .about-text {
        font-size: 0.8rem;
    }
    #about .about-link {
        font-size: 0.72rem;
    }
    #music {
        position: fixed;
        top: 2.5rem;
        right: 3rem;
        padding: 0;
    }
    #footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0.875rem 0;
    }
}

/* =========================================
   DESKTOPS (1025–1456px)
   ========================================= */
@media only screen and (min-width: 1025px) and (max-width: 1456px) {
    .sigil-wrap {
        width: 560px;
        opacity: 0.45;
    }
    #header {
        position: fixed;
        top: 3.125rem;
        left: 3.75rem;
        padding: 0;
    }
    #logo {
        width: 240px;
        margin-bottom: 1rem;
    }
    #phone {
        font-size: 0.938rem;
    }
    #address {
        font-size: 0.813rem;
    }
    #about {
        position: fixed;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        padding: 2rem;
        max-width: 460px;
        min-height: auto;
    }
    #about .about-label {
        font-size: 0.75rem;
    }
    #about .about-text {
        font-size: 0.844rem;
    }
    #about .about-link {
        font-size: 0.75rem;
    }
    #music {
        position: fixed;
        top: 3.125rem;
        right: 3.75rem;
        padding: 0;
    }
    #footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0.875rem 0;
    }
}

/* =========================================
   LARGE DESKTOPS (≥ 1457px)
   ========================================= */
@media only screen and (min-width: 1457px) {
    .sigil-wrap {
        width: 650px;
        opacity: 0.45;
    }
    #header {
        position: fixed;
        top: 3.75rem;
        left: 5rem;
        padding: 0;
    }
    #logo {
        width: 260px;
        margin-bottom: 1.125rem;
    }
    #phone {
        font-size: 1rem;
    }
    #address {
        font-size: 0.875rem;
    }
    #about {
        position: fixed;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        padding: 2rem;
        max-width: 500px;
        min-height: auto;
    }
    #about .about-label {
        font-size: 0.78rem;
    }
    #about .about-text {
        font-size: 0.875rem;
    }
    #about .about-link {
        font-size: 0.78rem;
    }
    #music {
        position: fixed;
        top: 3.75rem;
        right: 5rem;
        padding: 0;
    }
    #footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0.875rem 0;
    }
}
