:root{
    --ink: #243040;
    --parchment: #F6EEDF;
    --cream: #FBF7EE;
    --dusk: #5B7A93;
    --dusk-deep: #3B5266;
    --rose: #B85C68;
    --gold: #C6A24C;
}

body{
    background:var(--cream);
    font-family: "Jost", Arial, Helvetica, sans-serif;
}

a
{
    color: white;
    font-family: "Jost", Arial, Helvetica, sans-serif;
    text-decoration: none;
    font-weight: 400;
    display: flex;
    align-items: center;
    flex-shrink: 1;
    letter-spacing: 0.04em;
    position: relative;

}

.container{
   width: 75%;
    height: 60px;
    background-color: rgba(59, 82, 102, 0.88);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);

display: flex;
position: fixed;
justify-content: flex-end;
right:0;
z-index: 1;

}
.box{

    justify-content: center;

    text-decoration: none;
    color: white;
    text-transform: uppercase;
    font-size: 13px;

    box-shadow: none;
    padding: 0 22px;
    background-color: transparent;
    border-right: 1px solid rgba(255,255,255,0.15);

    transition: 0.25s;
    z-index: 1;

}
a:last-child .box{
    border-right: none;
}
.box:hover{
 color: var(--gold);
    cursor: pointer;
    z-index: 1;
}
a.active .box{
    color: var(--gold);
}
a.active .box::after{
    content:"";
    position:absolute;
    left:22px;
    right:22px;
    bottom:-2px;
    height:1px;
    background:var(--gold);
}

.counter-container{
    margin: 20px auto 60px;
    max-width: 380px;
    position: relative;
    bottom: 350px;
    background:var(--parchment);
    border-radius:14px;
    box-shadow:0 12px 30px rgba(36,48,64,0.18);
    border:1px solid rgba(198,162,76,0.35);

    color:var(--ink);
    text-align:center;
}

.counter-container h2{
    margin:20px 15px 10px 15px;
    font-family:"Playfair Display", Georgia, serif;
    font-size:1.6rem;
    font-weight:500;
    color:var(--ink);
}

#dayCounter{
    font-family:"Playfair Display", Georgia, serif;
    font-size:3.2rem;
    font-weight:600;
    color:var(--rose);
    line-height:1;
    margin:10px 0;
}

.counter-container p{
    margin:0 0 18px;
    font-family:"Jost", sans-serif;
    font-size:0.9rem;
    letter-spacing:0.05em;
    text-transform:uppercase;
    opacity:0.6;
}

/* Shared title treatment: a serif headline with a thin gold hairline
   and a small centered diamond beneath it. Used on every page so the
   four pages read as one site. */
.page-title{
    font-family:"Playfair Display", Georgia, serif;
    font-weight:600;
    letter-spacing:0.01em;
    color:var(--rose);
    position:relative;
    padding-bottom:20px;
}
.page-title::after{
    content:"";
    position:absolute;
    bottom:6px;
    left:50%;
    transform:translateX(-50%);
    width:64px;
    height:1px;
    background:var(--gold);
}
.page-title::before{
    content:"";
    position:absolute;
    bottom:2px;
    left:50%;
    width:7px;
    height:7px;
    background:var(--gold);
    transform:translate(-50%,0) rotate(45deg);
}

.title{
    color:var(--rose);
    position: relative;
    top: 80px;
    text-align: center;
    font-size: 26px;
    text-shadow: 2px 3px 10px rgba(36,48,64,0.2);
    z-index: 0;
}
.photo{
    position: relative;
    top: 80px;
    left: 25%;
width: 640px;
height: 480px;
border: 6px solid var(--cream);
outline: 1px solid rgba(198,162,76,0.4);
border-radius: 4px;
box-shadow: 0 18px 40px rgba(36,48,64,0.28);
}
.message{
    color:var(--ink);
    position: relative;
    bottom: 450px;
    left:30px;
    width:250px;
    font-family:"Cormorant Garamond", Georgia, serif;
    font-style:italic;
    font-weight:500;
    font-size:26px;
    line-height:1.45;
}
/* ===== MOBILE / TABLET =====
   Everything below switches the home page pieces (title, photo, message,
   counter) from absolute/fixed positioning into normal document flow, so
   they simply stack in the exact same order they appear in the HTML:
   title -> photo -> message -> counter.
*/
@media(max-width:768px){
    .container{
        position:static;
        width:100%;
        height:auto;
        min-height:55px;
        border-radius:0;
        justify-content:space-around;
        flex-wrap:wrap;
    }
    .box{
        padding:12px 8px;
        font-size:14px;
    }
    a{
        font-size:14px;
    }
    a.active .box::after{
        left:8px;
        right:8px;
    }

    .title{
        position:static;
        top:auto;
        margin-top:20px;
        padding-left:15px;
        padding-right:15px;
        font-size:18px;
    }
    .photo{
        position:static;
        left:auto;
        top:auto;
        display:block;
        width:90%;
        max-width:480px;
        height:auto;
        margin:20px auto 0;
    }
    .message{
        position:static;
        bottom:auto;
        left:auto;
        width:90%;
        max-width:480px;
        margin:20px auto 0;
        font-size:18px;
        text-align:center;
    }
    .counter-wrapper{
        display:block;
        margin:30px auto 40px;
    }
    .counter-container{
        position:static;
        top:auto;
        left:auto;
        transform:none;
        width:90%;
        max-width:380px;
        margin:20px auto 40px;
        padding:15px 0;
    }
}

@media(max-width:520px){
    .container{
        height:48px;
    }
    .box{
        padding:8px 4px;
        font-size:12px;
    }
    a{
        font-size:12px;
    }
}

@media(max-width:400px){
    .box{
        padding:6px 3px;
        font-size:10px;
    }
    a{
        font-size:10px;
    }
    .title{
        font-size:15px;
        margin-top:15px;
    }
    .message{
        font-size:15px;
    }
    .counter-container h2{
        font-size:1.4rem;
    }
    #dayCounter{
        font-size:2.8rem;
    }
}