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


html {
    scroll-behavior:smooth;
}



body {

    min-height:100vh;

    overflow-x:hidden;

    background:
    radial-gradient(
        ellipse at 50% 15%,
        #182744 0%,
        #080d1b 38%,
        #020308 78%
    );


    color:#f1eee6;


    font-family:
    "EB Garamond",
    Georgia,
    serif;

}




#stars-back,
#stars-mid,
#stars-front {

    position:fixed;

    inset:0;

    pointer-events:none;

}


#stars-back {
    z-index:1;
}


#stars-mid {
    z-index:2;
}


#stars-front {
    z-index:3;
}





.milkyway {


    position:fixed;


    width:1400px;

    height:800px;


    left:50%;

    top:45%;


    transform:
    translate(-50%,-50%)
    rotate(-25deg);



    background:

    radial-gradient(
        ellipse,
        rgba(190,200,235,.18),
        transparent 65%
    );



    filter:blur(90px);


    opacity:.8;


    z-index:0;

}





/* HERO */

.site-nav {

    position:fixed;

    top:30px;

    left:40px;

    z-index:20;

}

.site-nav a {

    display:inline-block;

    padding:10px 16px;

    border:1px solid rgba(198,168,91,.55);

    border-radius:24px;

    background:rgba(2,3,8,.45);

    color:#c6a85b;

    font-family:"Cormorant SC",serif;

    font-size:13px;

    letter-spacing:2px;

    text-decoration:none;

    cursor:pointer;

    transition:background .3s,color .3s,border-color .3s,box-shadow .3s;

}

.site-nav a:hover,
.site-nav a:focus-visible {

    border-color:#c6a85b;

    background:rgba(198,168,91,.12);

    color:#f4eee1;

    box-shadow:0 0 24px rgba(198,168,91,.18);

}

.site-nav a:focus-visible {

    outline:1px solid #c6a85b;

    outline-offset:4px;

}


.hero {


    position:relative;


    height:100vh;


    display:flex;


    flex-direction:column;


    justify-content:center;


    align-items:center;


    text-align:center;


    padding:40px;


    z-index:10;


    animation:
    appear 3s ease forwards;


    opacity:0;

}





@keyframes appear {


from {

    opacity:0;

    transform:
    translateY(35px);

}


to {

    opacity:1;

    transform:none;

}


}







.subtitle {


    font-family:
    "Cormorant SC",
    serif;


    font-size:20px;


    letter-spacing:7px;


    color:#b9b7ae;


    margin-bottom:40px;

}






h1 {


    font-family:
    "Cinzel",
    serif;


    font-size:
    clamp(80px,13vw,150px);



    font-weight:500;



    letter-spacing:30px;


    margin-right:-30px;



    color:#f3eee2;



    text-shadow:


    0 0 25px rgba(255,255,255,.18),


    0 0 80px rgba(130,160,220,.3);


}






.line {


    width:140px;


    height:1px;


    background:#c6a85b;


    margin:45px auto;

}






.description {


    max-width:850px;


    font-size:27px;


    line-height:1.55;


    color:#d0d1d5;


}






.button {


    margin-top:55px;


    padding:18px 55px;



    border:

    1px solid rgba(198,168,91,.8);



    border-radius:40px;



    color:#f4eee1;



    text-decoration:none;



    font-family:
    "Cinzel",
    serif;



    font-size:16px;



    letter-spacing:4px;



    transition:.5s;


}






.button:hover {


    background:#c6a85b;


    color:#05070b;


    box-shadow:

    0 0 50px rgba(198,168,91,.35);


}

.scroll {


    position:absolute;


    bottom:40px;


    font-size:32px;


    color:#aaa;


    animation:pulse 2s infinite;


}




@keyframes pulse {


50% {

    opacity:.25;

}


}









/* CATALOGUE */

.messier-history {
    position:relative;
    z-index:10;
    padding:clamp(64px,9vw,128px) clamp(24px,6vw,90px);

    scroll-margin-top:86px;
}

.messier-history-inner {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:clamp(38px,7vw,112px);
    max-width:1120px;
    margin:auto;
}

.messier-history-copy {
    max-width:540px;
}

.messier-history-kicker {
    margin-bottom:18px;
    color:#c6a85b;
    font-family:"Cinzel",serif;
    font-size:12px;
    letter-spacing:3px;
}

.messier-history h2 {
    color:#d8c38a;
    font-family:"Cormorant SC",serif;
    font-size:clamp(38px,5vw,58px);
    font-weight:500;
    line-height:1.05;
    margin-bottom:24px;
}

.messier-history-copy > p:last-child {
    color:#c1c5cc;
    font-size:clamp(20px,2.2vw,25px);
    line-height:1.5;
}

.messier-portrait {
    flex:0 1 350px;
    margin:0;
}

.messier-portrait img {
    display:block;
    width:100%;
    height:auto;
    border:1px solid rgba(198,168,91,.28);
    border-radius:18px;
    box-shadow:0 22px 56px rgba(0,0,0,.28);
}

.messier-portrait figcaption {
    margin-top:12px;
    color:#aeb3bb;
    font-size:15px;
    line-height:1.35;
}





.catalogue {


    position:relative;


    min-height:100vh;


    padding:32px clamp(24px,4vw,64px) 64px;


    background:

    linear-gradient(

        180deg,

        transparent,

        #02040a

    );


    z-index:10;


}






.catalogue-title {


    text-align:center;


    margin-bottom:24px;


}






.catalogue-title h2 {


    font-family:

    "Cormorant SC",

    serif;



    font-size:44px;

    line-height:1.1;


    font-weight:500;



    color:#d8c38a;


}






.catalogue-title p {


    margin-top:4px;


    font-size:14px;

    line-height:1.2;


    color:#b8bdc5;


}







.objects {


    display:grid;


    grid-template-columns:

    repeat(auto-fit,minmax(260px,1fr));


    gap:24px;


    max-width:1300px;


    margin:auto;


}







.object-card {


    display:block;


    min-height:0;


    padding:45px;


    text-decoration:none;


    color:white;



    background:

    rgba(255,255,255,.035);



    border:

    1px solid rgba(255,255,255,.12);



    backdrop-filter:blur(12px);



    transition:.5s;


}






.object-card:hover {


    transform:translateY(-15px);


    border-color:#c6a85b;



    box-shadow:

    0 30px 80px rgba(80,120,220,.25);


}






.number {


    font-family:

    "Cinzel",

    serif;



    font-size:58px;



    color:#c6a85b;


    font-weight:400;


}







.object-card h3 {


    font-family:

    "Cormorant SC",

    serif;



    font-size:25px;


    font-weight:500;


    margin:30px 0;


}







.object-card p {


    font-size:17px;


    line-height:1.4;


    color:#c1c5cc;


}







.info {


    margin-top:40px;


    font-family:

    "Cinzel",

    serif;



    font-size:13px;



    letter-spacing:3px;


    color:#999;


}







.site-footer {

    position:relative;

    z-index:10;

    padding:22px clamp(24px,5vw,70px);

    border-top:1px solid rgba(198,168,91,.24);

    color:#8f9299;

    font-size:15px;

    letter-spacing:.5px;

}

.sound-toggle {

    position:absolute;

    top:30px;

    right:40px;

    padding:10px 16px;

    border:1px solid rgba(198,168,91,.55);

    border-radius:24px;

    background:rgba(2,3,8,.45);

    color:#c6a85b;

    font-family:"Cormorant SC",serif;

    font-size:13px;

    letter-spacing:2px;

    cursor:pointer;

    transition:background .3s,color .3s,border-color .3s,box-shadow .3s;

}

.sound-toggle:hover,
.sound-toggle:focus-visible,
.sound-toggle[aria-pressed="true"] {

    border-color:#c6a85b;

    background:rgba(198,168,91,.12);

    color:#f4eee1;

    box-shadow:0 0 24px rgba(198,168,91,.18);

}

.sound-toggle:focus-visible {

    outline:1px solid #c6a85b;

    outline-offset:4px;

}

.site-footer-inner {

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:18px 30px;

    max-width:1300px;

    margin:auto;

}

.site-footer-links {

    display:flex;

    flex-wrap:wrap;

    justify-content:flex-end;

    gap:12px 28px;

}

.site-footer a {

    color:#b8bdc5;

    text-decoration:none;

    overflow-wrap:anywhere;

    transition:color .3s;

}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer a[aria-current="page"] {

    color:#c6a85b;

}

.site-footer a:focus-visible {

    outline:1px solid #c6a85b;

    outline-offset:4px;

}







@media(max-width:700px){

.site-nav {

    top:24px;

    left:24px;

}

.site-nav a {

    padding:10px 12px;

    font-size:13px;

    letter-spacing:2px;

}

.messier-history {

    padding-top:56px;

    padding-bottom:72px;

}

.messier-history-inner {

    flex-direction:column;

    align-items:stretch;

    gap:30px;

}

.messier-portrait {

    order:-1;

    width:min(100%,350px);

    margin:auto;

}

.messier-portrait figcaption {

    font-size:14px;

}

.sound-toggle {

    top:24px;

    right:24px;

    padding:10px 12px;

    max-width:calc(100% - 48px);

}


h1 {


    letter-spacing:15px;


    margin-right:-15px;

}


.description {


    font-size:21px;

}


.catalogue-title h2 {


    font-size:36px;

}


}
/* =====================================
   MESSIER v1.2.0
   Object images catalogue
   ===================================== */


.object-card {

    overflow:hidden;

    position:relative;

    padding:0;

}



.object-image {

    width:100%;

    height:180px;

    overflow:hidden;

    position:relative;

}



.object-photo img {

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

    transition:transform .8s ease;

}



.object-image::after {

    content:"";

    position:absolute;

    inset:0;


    background:

    linear-gradient(
        180deg,
        transparent 40%,
        rgba(2,3,8,.85)
    );

}



.object-card:hover .object-image img {

    transform:scale(1.08);

}




.object-card .number {

    padding:16px 24px 0;

}



.object-card h3 {

    padding:0 24px;

}



.object-card p {

    padding:0 24px 24px;

}



.object-card .info {

    padding:0 45px 40px;

}



.object-card:hover {

    box-shadow:

    0 30px 90px rgba(198,168,91,.18);

}

/* =========================
   ABOUT PAGE
========================= */

.about-page {

    position:relative;

    z-index:10;

    width:min(1120px,100%);

    margin:auto;

    padding:clamp(30px,5vw,72px) clamp(24px,5vw,64px) 70px;

}

.about-back,
.about-link {

    color:#c6a85b;

    text-decoration:none;

    overflow-wrap:anywhere;

    transition:color .3s,text-shadow .3s;

}

.about-back {

    display:inline-block;

    margin-bottom:clamp(45px,7vw,80px);

    font-family:"Cormorant SC",serif;

    font-size:18px;

    letter-spacing:1px;

}

.about-back:hover,
.about-back:focus-visible,
.about-link:hover,
.about-link:focus-visible {

    color:#f4eee1;

    text-shadow:0 0 12px rgba(198,168,91,.45);

}

.about-back:focus-visible,
.about-link:focus-visible {

    outline:1px solid #c6a85b;

    outline-offset:4px;

}

.about-header {

    max-width:880px;

    margin-bottom:50px;

}

.about-header h1 {

    margin:0 0 30px;

    color:#d8c38a;

    font-family:"Cormorant SC",serif;

    font-size:clamp(48px,7vw,76px);

    font-weight:500;

    line-height:1;

    letter-spacing:clamp(4px,1vw,10px);

    overflow-wrap:anywhere;

}

.about-intro {

    color:#d0d1d5;

    font-size:clamp(20px,2.1vw,25px);

    line-height:1.55;

}

.about-intro p + p,
.about-section p + p {

    margin-top:16px;

}

.about-sections {

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:24px;

}

.about-section {

    min-width:0;

    padding:clamp(24px,3vw,36px);

    border:1px solid rgba(255,255,255,.12);

    background:rgba(255,255,255,.035);

    color:#c5c9d0;

    font-size:18px;

    line-height:1.6;

}

.about-section h2 {

    margin-bottom:22px;

    color:#c6a85b;

    font-family:"Cormorant SC",serif;

    font-size:27px;

    font-weight:500;

    line-height:1.15;

    letter-spacing:2px;

    overflow-wrap:anywhere;

}

.about-author {

    color:#f1eee6;

    font-family:"Cormorant SC",serif;

    font-size:23px;

    font-weight:500;

}

.about-link {

    display:inline-block;

    margin-top:20px;

}

.about-note {

    max-width:900px;

    margin:38px auto 0;

    color:#92969e;

    font-size:15px;

    line-height:1.6;

    text-align:center;

}

/* =========================
   OBJECT PAGE
========================= */

.object-page {

    min-height:100vh;

    display:flex;

    align-items:flex-start;

    gap:clamp(30px,5vw,70px);

    padding:clamp(30px,5vw,80px);

}

.object-photo {

    width:55%;

    height:min(65vh,650px);

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;

    background:#02040a;

    box-shadow:
    0 0 80px rgba(0,0,0,.8);

}

.object-image img {

    width:100%;

    height:100%;

    object-fit:contain;

}

.object-info {

    max-width:500px;

    min-width:0;

}

.object-number {

    font-family:"Cormorant Garamond",serif;

    font-size:120px;

    font-weight:300;

    color:#c6a85b;

    line-height:1;

}

.object-title {

    font-family:"Cormorant Garamond",serif;

    font-size:65px;

    font-weight:300;

    margin:30px 0;

    max-width:100%;

    letter-spacing:normal;

    overflow-wrap:anywhere;

}

.object-description {

    font-size:22px;

    line-height:1.7;

    text-align:justify;

    text-justify:inter-word;

    hyphens:auto;

    overflow-wrap:break-word;

    color:#c5c9d0;

}

.object-fact {

    margin-top:50px;

    font-size:15px;

    letter-spacing:2px;

    line-height:1.8;

    color:#aaa;

}

.object-fact-item {

    display:grid;

    grid-template-columns:120px minmax(0,1fr);

    align-items:baseline;

    gap:8px;

    margin-bottom:6px;

}

.object-fact-label {

    font-family:"Cormorant SC",serif;

    font-size:18px;

    font-weight:500;

    letter-spacing:1px;

    color:#c6a85b;

}

.object-fact-value {

    min-width:0;

    font-size:15px;

    letter-spacing:1px;

    color:#aaa;

    overflow-wrap:anywhere;

}

.object-history {

    margin-top:24px;

    line-height:1.7;

    text-align:justify;

    text-justify:inter-word;

    hyphens:auto;

    overflow-wrap:break-word;

}

.object-navigation {

    display:flex;

    justify-content:space-between;

    gap:20px;

    margin-top:50px;

}

.object-navigation-link {

    display:flex;

    align-items:center;

    justify-content:center;

    min-height:48px;

    padding:12px 18px;

    border:1px solid rgba(198,168,91,.8);

    border-radius:30px;

    color:#f4eee1;

    text-align:center;

    text-decoration:none;

    font-family:"Cormorant Garamond",serif;

    font-size:17px;

    transition:.3s;

}

.object-navigation-link:hover,
.object-navigation-link:focus-visible {

    background:#c6a85b;

    color:#05070b;

    box-shadow:0 0 30px rgba(198,168,91,.3);

    outline:none;

}

.object-navigation-link[aria-disabled="true"] {

    border-color:rgba(170,170,170,.25);

    color:#777;

    cursor:not-allowed;

    pointer-events:none;

}

@media (max-width:900px) {

    .object-page {

        flex-direction:column;

        padding:30px;

    }

    .object-photo {

        width:100%;

        height:400px;

    }

    .object-title {

        font-size:45px;

    }

    .object-info {

        width:100%;

    }

}

@media (max-width:520px) {

    .object-navigation {

        flex-direction:column;

    }

    .object-navigation-link {

        width:100%;

    }

}

.back-link {

    position:absolute;

    top:30px;

    left:30px;

    z-index:1000;

    padding:8px 14px;

    border:1px solid rgba(198,168,91,.28);

    border-radius:24px;

    background:rgba(2,3,8,.72);

    -webkit-backdrop-filter:blur(10px);

    backdrop-filter:blur(10px);

    box-shadow:0 8px 24px rgba(0,0,0,.28);

    color:#c6a85b;

    text-decoration:none;

    font-family:"Cormorant Garamond", serif;

    font-size:22px;

    letter-spacing:1px;

    transition:.3s;

}

.back-link:hover {

    color:#f4eee1;

    text-shadow:0 0 12px rgba(198,168,91,.6);

}

@media (max-width:700px) {

    .about-page {

        padding-bottom:50px;

    }

    .about-back {

        margin-bottom:45px;

    }

    .about-header {

        margin-bottom:36px;

    }

    .about-sections {

        grid-template-columns:1fr;

    }

    .about-section {

        font-size:17px;

    }

    .site-footer-inner,
    .site-footer-links {

        justify-content:center;

    }

    .site-footer-inner {

        flex-direction:column;

        text-align:center;

    }

}
