:root {
--bg:#D3E9F2;
--card:#FFF1DA;
--accent:#FFC0EF;
--accent-2:#EEDEEC;
--muted:#521254;
--glass: rgba(255,255,255,0.6);
--shadow: 0 8px 20px rgba(29,20,18,0.08);
--radius:16px;
--max-width:1100px;
}

*{box-sizing:border-box}
html,body{
    height:100%
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 25px 25px 18px 60px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar .nav-brand {
    font-family:"La Belle Aurore", cursive;
    font-weight: 1000;
    color: var(--muted);
    font-size: 35px;
}

.nav-bar ul {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.nav-bar a {
    text-decoration: none;
    background: #fff8f5;
    border: 1px solid #fdfdfd;
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.25s ease;
}

.nav-bar a:hover,
.nav-bar a.active {
    background: var(--card);
    color: var(--muted);
}

/* Mobile */
.nav-action {
    display: none;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 780px) {
.nav-bar ul {
    position: absolute;
    top: 60px;
    right: 18px;
    background: var(--card);
    flex-direction: column;
    padding: 12px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: none;
}

.nav-bar ul.open {
    display: flex;
}

.nav-action {
    display: block;
}
}

.content{
    margin:0;
    font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg,var(--bg),#fffaf7 60%);
    color:#2a1f1a;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    padding:32px 18px;
    border-radius: 20px;
    display:flex;
    justify-content:center;
}


.wrap{
    width:100%;
    max-width:var(--max-width)
}


header{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:20px;
}

.logo{
    width:76px;
    height:76px;
    border-radius:12px;
    background:linear-gradient(135deg,var(--accent),var(--accent-2));
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-weight:700;
    font-family:"Playfair Display";
    box-shadow:var(--shadow);
}

.title h1{
    margin:0;
    font-family:"Playfair Display";
    font-weight:700;
    font-size:20px
}

.title p{
    margin:2px 0 0;
    color:var(--muted);
    font-size:16px;
    font-family:"Playfair Display";
}


/* Hero */
.hero{
    display:grid;
    grid-template-columns:1fr 360px;
    gap:18px;
    margin-bottom:22px;
    align-items:start;
}

.hero-card{
    background:var(--card);
    border-radius:var(--radius);
    padding:18px;
    box-shadow:var(--shadow);
}


.panel-preview{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px
}

.panel{
    border-radius:10px;
    overflow:hidden;
    background:linear-gradient(180deg,#fff, #fff0f0);
    min-height:120px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    color:var(--muted);
}

.panel img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}


.meta{
    padding:6px 0;
}

.meta .row{
    display:flex;
    gap:12px;
    align-items:center;
}

.btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border-radius:10px;
    background:linear-gradient(180deg,var(--accent),#ECDDEC);
    color:white;
    border:0;
    cursor:pointer;
    font-weight:600;
}


/* Grid content */
.content-grid{
    display:grid;
    grid-template-columns:1fr 360px;
    gap:18px;
}


main{
    background:transparent;
}

section.card{
    background:var(--card);
    border-radius:var(--radius);
    padding:18px;
    box-shadow:var(--shadow);
    margin-bottom:18px;
}


/* Chapter list */
.chapters{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.chapter{
    display:flex;
    gap:12px;
    align-items:center;
    padding:10px;
    border-radius:12px;
    background:linear-gradient(180deg,rgba(255,255,255,0.9),transparent);
}

.thumb{
    width:84px;
    height:84px;
    border-radius:8px;
    overflow:hidden;
    flex:0 0 84px;
    background:#f7ebe6;
}

.chapter h4{
    margin:0;
    font-size:15px;
}

.chapter p{
    margin:4px 0 0;
    font-size:13px;
    color:var(--muted);
}


/* Process timeline */
.timeline{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.step{
    display:flex;
    gap:12px;
    align-items:flex-start;
}

.step .dot{
    width:12px;
    height:12px;
    border-radius:50%;
    background:var(--accent);
    margin-top:6px;
}

.step .desc{
    background:var(--glass);
    padding:10px;
    border-radius:10px;
}


/* Gallery */
.gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
}

.gallery img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:8px;
    cursor:pointer;
}


/* Sidebar extras */
aside .card-section{
    margin-bottom:12px;
}

.bio{
    display:flex;
    gap:12px;
    align-items:center;
}

.avatar{
    width:72px;
    height:72px;
    border-radius:12px;
    overflow:hidden;
    background:#fdeee6;
}

.tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:8px;
}

.tag{
    background:#fff3f0;
    padding:6px 8px;
    border-radius:999px;
    font-size:13px;
    color:var(--muted);
}


/* Audio control */
.audio-control{
    display:flex;
    gap:8px;
    align-items:center;
}
.audio-control button{
    background:transparent;
    border:1px solid rgba(0,0,0,0.06);
    padding:8px;
    border-radius:8px;
    cursor:pointer;
}


/* Lightbox */
.lightbox{
    position:fixed;
    inset:0;
    background:rgba(10,8,7,0.6);
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.lightbox img{
    max-width:95%;
    max-height:85%;
    border-radius:10px;
    box-shadow:0 18px 40px rgba(0,0,0,0.6);
}


/* Footer */
footer{
    text-align:center;
    color:var(--muted);
    font-size:13px;
    margin-top:18px;
}


/* ====== Responsive ====== */
@media (max-width:980px){
    .hero,.content-grid{
        grid-template-columns:1fr;
    }
    .hero-card{
        order:2;
    }
}

@media (max-width:640px){
    .gallery{
        grid-template-columns:repeat(2,1fr);
    }

    .panel-preview{
        grid-template-columns:1fr;
    }

    .chapters{
        grid-template-columns:1fr;
    }
}