:root{
--navy:#08111d;
--navy2:#122238;
--gold:#d4af37;
--gold-light:#f0cf75;
--white:#ffffff;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
background:var(--navy);
color:white;
font-family:Inter,sans-serif;
line-height:1.7;
}

#progress{
position:fixed;
top:0;
left:0;
height:4px;
background:var(--gold);
width:0;
z-index:999;
}

.hero{
height:100vh;
background:
url("../images/coastline.png")
center center / cover
no-repeat fixed;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
position:relative;
}

.overlay{
position:absolute;
inset:0;
background:rgba(0,0,0,.6);
}

.hero-content{
position:relative;
z-index:2;
max-width:1100px;
padding:20px;
}

.release{
color:var(--gold-light);
letter-spacing:2px;
margin-bottom:20px;
font-weight:700;
}

.hero h1{
font-family:'Playfair Display',serif;
font-size:6rem;
margin-bottom:20px;
}

.hero h2{
font-family:'Playfair Display',serif;
font-size:2.8rem;
font-weight:400;
}

.hero h2 span{
color:var(--gold);
}

#countdown{
margin-top:30px;
font-size:1.2rem;
color:var(--gold-light);
}

.hero-buttons{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:16px;
margin-top:40px;
}

.btn{
background:var(--gold);
color:#111;
padding:15px 28px;
border-radius:50px;
text-decoration:none;
font-weight:700;
display:inline-block;
}

.btn-secondary{
background:white;
}

.btn-outline{
background:transparent;
color:white;
border:2px solid white;
}

section{
padding:90px 8%;
}

.one-question,
#quiz,
#story-wall,
.quotes,
.chapter{
background:var(--navy2);
}

.lead{
max-width:700px;
margin:20px auto;
text-align:center;
font-size:1.2rem;
}

textarea{
width:100%;
max-width:800px;
height:140px;
padding:16px;
display:block;
margin:20px auto;
background:#0d1728;
border:1px solid rgba(255,255,255,.2);
color:white;
}

button{
cursor:pointer;
}

form button{
background:var(--gold);
border:0;
padding:14px 24px;
font-weight:bold;
}

.book,
.author{
display:grid;
grid-template-columns:1fr 1fr;
gap:50px;
align-items:center;
}

.cover,
.author img{
width:100%;
max-width:450px;
border-radius:18px;
box-shadow:0 10px 40px rgba(0,0,0,.35);
}

.review{
background:#152742;
padding:20px;
margin:16px 0;
border-radius:12px;
}

.newsletter form{
display:flex;
gap:10px;
flex-wrap:wrap;
}

.newsletter input{
padding:14px;
min-width:280px;
}

.stores{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(180px,1fr));
gap:15px;
}

.stores a{
background:#122238;
padding:18px;
border-radius:12px;
text-align:center;
color:var(--gold);
text-decoration:none;
}

.quotes-grid{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(320px,1fr));
gap:20px;
}

.quote-card{
background:#152742;
padding:30px;
border-radius:20px;
}

.share-buttons{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-top:20px;
}

.share-btn{
background:var(--gold);
color:black;
border:none;
padding:8px 14px;
}

#question-fab{
position:fixed;
bottom:24px;
right:24px;
z-index:999;
background:var(--gold);
color:#111;
padding:16px 20px;
border:none;
border-radius:999px;
font-weight:700;
box-shadow:0 10px 30px rgba(0,0,0,.3);
}

.hidden{
display:none;
}

#question-modal{
position:fixed;
inset:0;
background:rgba(0,0,0,.8);
z-index:1000;
}

.modal-content{
max-width:700px;
background:#122238;
padding:35px;
border-radius:20px;
margin:10vh auto;
}

.share-row{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-top:20px;
}

.share-row button,
.share-row a{
background:var(--gold);
color:#111;
border:none;
padding:10px 18px;
border-radius:8px;
font-weight:700;
cursor:pointer;
text-decoration:none;
display:inline-block;
}

#close-modal{
background:#223556;
color:white;
border:none;
padding:12px 24px;
border-radius:8px;
margin-top:20px;
cursor:pointer;
}

#question-text{
font-family:'Playfair Display',serif;
font-size:1.8rem;
margin-bottom:20px;
line-height:1.5;
}

footer{
text-align:center;
padding:80px 20px;
}

@media(max-width:900px){

.hero h1{
font-size:3.5rem;
}

.hero h2{
font-size:2rem;
}

.book,
.author{
grid-template-columns:1fr;
text-align:center;
}

.hero-buttons{
flex-direction:column;
}

}

.countdown-wrap{
display:flex;
justify-content:center;
gap:20px;
flex-wrap:wrap;
margin-top:20px;
}

.countdown-wrap span{
background:rgba(255,255,255,.08);
padding:12px 16px;
border-radius:10px;
min-width:90px;
}

.countdown-wrap strong{
display:block;
font-size:1.8rem;
color:var(--gold);
}

.countdown-text{
width:100%;
margin-top:10px;
font-size:.95rem;
letter-spacing:1px;
color:var(--gold-light);
}

.toast-notification{
position:fixed;
bottom:100px;
left:50%;
transform:translateX(-50%);
background:#d4af37;
color:#111;
padding:12px 20px;
border-radius:999px;
font-weight:700;
opacity:0;
transition:.3s;
z-index:2000;
}

.toast-notification.visible{
opacity:1;
}

.story-card{
background:#152742;
padding:24px;
border-radius:18px;
margin-bottom:20px;
}

.story-card p{
font-size:1.05rem;
line-height:1.8;
margin-bottom:20px;
}

.story-meta{
font-size:.85rem;
opacity:.8;
margin-bottom:20px;
}

.story-reactions{
display:flex;
gap:10px;
flex-wrap:wrap;
}

.reaction-btn{
background:#223556;
color:white;
border:none;
padding:10px 14px;
border-radius:10px;
cursor:pointer;
}

.reaction-btn:hover{
background:#2b436d;
}

.reaction-btn span{
margin-left:6px;
font-weight:bold;
}

.story-loading,
.story-empty,
.story-error{
text-align:center;
padding:40px;
background:#152742;
border-radius:16px;
}

.story-error{
color:#ffcfcf;
}

.quiz-question{
margin-bottom:40px;
padding:24px;
background:#152742;
border-radius:18px;
}

.quiz-question h3{
margin-bottom:20px;
font-family:'Playfair Display',serif;
}

.quiz-option{
display:block;
padding:12px;
margin-bottom:10px;
cursor:pointer;
border-radius:10px;
transition:.2s;
}

.quiz-option:hover{
background:#223556;
}

.quiz-option input{
margin-right:10px;
}

.quiz-result{
background:#152742;
padding:40px;
border-radius:20px;
text-align:center;
}

.quiz-result h2{
font-family:'Playfair Display',serif;
font-size:2.5rem;
margin-bottom:20px;
color:var(--gold);
}

.quiz-followup{
margin:40px 0;
padding:24px;
background:#223556;
border-radius:12px;
}

.quiz-result .share-buttons button{
background:var(--gold);
color:black;
border:none;
padding:8px 14px;
border-radius:6px;
cursor:pointer;
font-weight:600;
margin:4px;
}

.quiz-result .share-buttons{
justify-content:center;
}

#storyForm button{
display:block;
margin:0 auto;
}

.share-story{
background:var(--navy2);
text-align:center;
padding:90px 8%;
}

.share-story .share-buttons{
justify-content:center;
margin-top:30px;
}

.chapter{
text-align:center;
}

