/* Mansour Press — unified styles (landing + pages)
- Cloud navigation buttons
- “storybook sky” typography
- Content cards
- Works with the animated canvas background in script.js
*/

:root{
--ink: rgba(18, 26, 46, 0.92);
--ink-soft: rgba(18, 26, 46, 0.72);

--cloud: rgba(245, 249, 255, 0.92);
--cloud-2: rgba(225, 236, 250, 0.95);
--cloud-shadow: rgba(0,0,0,0.18);

--gold: #ffd27a;
--gold-soft: rgba(255, 210, 122, 0.7);

--page-max: 1040px;
--radius-xl: 36px;
--radius-lg: 26px;
--radius-md: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
margin:0;
font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
color: var(--ink);
background: #070a18;
overflow-x:hidden;
}

/* Animated background canvas (script.js draws into it) */
#sky{
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
z-index: -2;
display:block;
}
#skyFx{
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
z-index: -1;
pointer-events: none; /* keep clicks working */
display:block;
}

/* Top header */
.topbar{
position: relative;
z-index: 10;
width: 100%;
padding: 32px 18px 18px;
display:flex;
flex-direction: column;
align-items:center;
gap: 14px;
}

.brand{
display:flex;
align-items:center;
gap: 10px;
text-decoration:none;
color: var(--cloud);
user-select:none;
}

.brand .sparkle{
font-size: 26px;
color: var(--gold);
text-shadow: 0 0 18px var(--gold-soft);
transform: translateY(-2px);
}
.brand .title{
font-size: clamp(34px, 4.2vw, 56px);
letter-spacing: 0.6px;
font-weight: 600;
text-shadow: 0 6px 30px rgba(0,0,0,0.45);
}
/* Mansour Press celestial hover */
.brand {
display: inline-flex;
align-items: center;
gap: 8px;
text-decoration: none;
cursor: pointer;
padding: 6px 10px;
}

/* Star */
.brand .sparkle {
transition: all 0.3s ease;
}

/* Title */
.brand .title {
transition: all 0.4s ease;
}

/* Hover effect */
.brand:hover .sparkle {
animation: sparkleGlow 0.9s ease-in-out infinite alternate;
}

.brand:hover .title {
animation: shimmerText 1.2s ease-in-out infinite alternate;
}

/* Star glow */
@keyframes sparkleGlow {
0% {
text-shadow: 0 0 4px #fff;
transform: scale(1);
}
100% {
text-shadow: 0 0 14px #ffffff, 0 0 26px #ffd87a;
transform: scale(1.25);
}
}

/* Text shimmer */
@keyframes shimmerText {
0% {
text-shadow: 0 0 0px rgba(255,255,255,0);
}
100% {
text-shadow: 0 0 10px rgba(255,255,255,0.6);
}
}

/* Cloud nav */
.nav{
display:flex;
gap: 14px;
flex-wrap: wrap;
justify-content:center;
}

.cloud-link{
position: relative;
display:inline-flex;
align-items:center;
justify-content:center;
padding: 14px 22px;
text-decoration:none;
color: var(--ink);
font-size: 18px;
letter-spacing: 0.3px;
border-radius: 999px;
background: linear-gradient(180deg, var(--cloud) 0%, var(--cloud-2) 100%);
box-shadow:
0 10px 26px var(--cloud-shadow),
inset 0 1px 0 rgba(255,255,255,0.7);
transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
outline: none;
}

.cloud-link::before,
.cloud-link::after{
content:"";
position:absolute;
inset:-10px -16px;
border-radius: 999px;
background: radial-gradient(circle at 25% 55%, rgba(255,255,255,0.85) 0 28%, transparent 29%),
radial-gradient(circle at 45% 35%, rgba(255,255,255,0.80) 0 30%, transparent 31%),
radial-gradient(circle at 70% 55%, rgba(255,255,255,0.78) 0 28%, transparent 29%),
radial-gradient(circle at 85% 45%, rgba(255,255,255,0.70) 0 20%, transparent 21%);
filter: blur(0.2px);
opacity: 0.55;
pointer-events:none;
}
.cloud-link::after{
inset:-14px -22px;
opacity: 0.24;
filter: blur(1px);
}

.cloud-link:hover{
transform: translateY(-2px) scale(1.02);
box-shadow:
0 14px 34px rgba(0,0,0,0.20),
inset 0 1px 0 rgba(255,255,255,0.75);
}
.cloud-link:active{ transform: translateY(0px) scale(0.99); }

/* Landing hero */
.landing{
min-height: calc(100vh - 170px);
display:flex;
align-items:center;
justify-content:center;
padding: 18px 18px 40px;
}

.hero-card{
width: min(980px, 92vw);
padding: clamp(26px, 3vw, 44px);
border-radius: 46px;
background:
radial-gradient(120% 120% at 20% 20%, rgba(255,255,255,0.92) 0 55%, rgba(240,246,255,0.86) 56% 100%);
box-shadow:
0 30px 70px rgba(0,0,0,0.35),
inset 0 1px 0 rgba(255,255,255,0.8);
position: relative;
}

.hero-card::before{
/* soft cloud edge glow */
content:"";
position:absolute;
inset:-18px;
border-radius: 60px;
background:
radial-gradient(circle at 20% 40%, rgba(255,255,255,0.32) 0 38%, transparent 42%),
radial-gradient(circle at 50% 25%, rgba(255,255,255,0.26) 0 35%, transparent 38%),
radial-gradient(circle at 80% 40%, rgba(255,255,255,0.28) 0 36%, transparent 40%),
radial-gradient(circle at 35% 85%, rgba(255,255,255,0.22) 0 32%, transparent 36%),
radial-gradient(circle at 70% 85%, rgba(255,255,255,0.20) 0 32%, transparent 36%);
filter: blur(8px);
opacity: 0.7;
pointer-events:none;
}

.kicker{
text-align:center;
font-size: 13px;
letter-spacing: 2.2px;
text-transform: uppercase;
color: rgba(30, 45, 70, 0.7);
margin-bottom: 10px;
}

.hero-title{
text-align:center;
font-size: clamp(36px, 4.6vw, 60px);
line-height: 1.05;
margin: 0 0 12px;
color: rgba(20, 35, 60, 0.92);
font-weight: 600;
}

.hero-copy{
text-align:center;
font-size: clamp(16px, 1.7vw, 20px);
line-height: 1.6;
color: rgba(20, 35, 60, 0.80);
max-width: 62ch;
margin: 0 auto;
}

/* Interior pages */
.page{
position: relative;
z-index: 5;
width: 100%;
padding: 10px 18px 70px;
}
.page-inner{
width: min(var(--page-max), 92vw);
margin: 0 auto;
display:flex;
flex-direction: column;
gap: 18px;
}

.page-title{
font-size: clamp(34px, 4vw, 52px);
color: rgba(255,255,255,0.95);
text-shadow: 0 10px 32px rgba(0,0,0,0.40);
margin: 18px 0 6px;
font-weight: 600;
}

.card{
border-radius: var(--radius-xl);
background: rgba(245, 249, 255, 0.90);
box-shadow: 0 26px 60px rgba(0,0,0,0.30);
padding: 26px 26px;
position: relative;
}

.card.cloud{
/* cloud-shaped feel behind content, not rectangle */
border-radius: 60px;
}
.card.cloud::before{
content:"";
position:absolute;
inset:-16px;
border-radius: 70px;
background:
radial-gradient(circle at 18% 50%, rgba(255,255,255,0.34) 0 35%, transparent 40%),
radial-gradient(circle at 40% 25%, rgba(255,255,255,0.26) 0 35%, transparent 39%),
radial-gradient(circle at 70% 30%, rgba(255,255,255,0.25) 0 34%, transparent 38%),
radial-gradient(circle at 88% 55%, rgba(255,255,255,0.32) 0 32%, transparent 36%),
radial-gradient(circle at 40% 92%, rgba(255,255,255,0.20) 0 30%, transparent 36%),
radial-gradient(circle at 70% 92%, rgba(255,255,255,0.18) 0 30%, transparent 36%);
filter: blur(10px);
opacity: 0.75;
pointer-events:none;
}

.h2{
margin:0 0 10px;
font-size: 26px;
color: rgba(20, 35, 60, 0.92);
}
.p{
margin:0;
color: rgba(20, 35, 60, 0.78);
line-height: 1.65;
font-size: 18px;
}
.list{
margin: 10px 0 0;
padding-left: 20px;
color: rgba(20,35,60,0.78);
line-height: 1.65;
font-size: 18px;
}

.grid{
display:grid;
grid-template-columns: repeat(3, 1fr);
gap: 14px;
}
@media (max-width: 900px){
.grid{ grid-template-columns: 1fr; }
}

.book-card{
border-radius: 30px;
background: rgba(255,255,255,0.88);
box-shadow: 0 14px 32px rgba(0,0,0,0.18);
padding: 18px 18px;
}
.book-title{
font-size: 20px;
margin: 0 0 6px;
color: rgba(20,35,60,0.92);
font-weight: 600;
}
.book-sub{
margin:0;
color: rgba(20,35,60,0.72);
line-height: 1.5;
}

.author-wrap{
display:flex;
gap: 18px;
align-items:flex-start;
}
.author-photo{
width: 170px;
height: 170px;
border-radius: 999px;
object-fit: cover;
box-shadow: 0 18px 40px rgba(0,0,0,0.22);
border: 6px solid rgba(255,255,255,0.75);
}
@media (max-width: 700px){
.author-wrap{ flex-direction: column; align-items:center; text-align:center; }
}

.form{
display:grid;
gap: 10px;
}
input, textarea{
width:100%;
border-radius: 18px;
border: 1px solid rgba(20,35,60,0.15);
padding: 12px 14px;
font-size: 16px;
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
textarea{ min-height: 120px; resize: vertical; }

.btn{
border: none;
border-radius: 999px;
padding: 12px 18px;
font-size: 16px;
font-weight: 600;
cursor:pointer;
color: rgba(20,35,60,0.92);
background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(225,236,250,0.96));
box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.footer{
position: relative;
z-index: 6;
text-align:center;
padding: 18px 12px 32px;
color: rgba(255,255,255,0.75);
font-size: 14px;
text-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.logo-big{
width: min(780px, 92vw);
max-width: 100%;
display:block;
margin: 6px auto 10px;
border-radius: 18px;
box-shadow: 0 26px 70px rgba(0,0,0,0.35);
background: rgba(255,255,255,0.88);
padding: 10px;
/* WONDERFULLY MADE PAGE — ZERO COLLISION */

.wm-wrapper {
max-width: 900px;
margin: auto;
padding: 40px 20px;
}

.wm-image {
width: 100%;
max-width: 650px;
display: block;
margin: 50px auto;
border-radius: 18px;
box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.wm-text-block {
margin-bottom: 60px;
line-height: 1.8;
}

.wm-order-block {
background: #ffffff;
padding: 40px;
border-radius: 20px;
box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.wm-order-block input,
.wm-order-block textarea {
width: 100%;
padding: 12px;
margin-bottom: 20px;
border-radius: 10px;
border: 1px solid #ddd;
}

.wm-order-block button {
padding: 12px 24px;
border: none;
border-radius: 12px;
background-color: #111;
color: white;
cursor: pointer;
font-size: 16px;
}

.wm-order-block button:hover {
opacity: 0.9;
}
