/*
 * RAVIX Divan Jan v15 / cinematic homepage.
 * Scoped to body[data-page="home"] to preserve search, poems, favorites, poet profiles.
 * Backgrounds resolve to /divan/pc.png and /divan/mobile.png from assets/ stylesheet.
 * No remote fonts, scripts, trackers or images.
 */
body[data-page="home"]{--lux-gold:#e9cc91;--lux-mint:#61d5a2;--lux-deep:#06150f;background:#081911!important}
body[data-page="home"] .background-art{display:none!important}
body[data-page="home"] #main{overflow:visible}
body[data-page="home"] .ravix-cinematic-hero,
html[data-theme="night"] body[data-page="home"] .ravix-cinematic-hero,
html[data-theme="day"] body[data-page="home"] .ravix-cinematic-hero{
 position:relative!important;isolation:isolate;display:flex!important;align-items:center;justify-content:flex-end;
 width:100vw;max-width:none;right:calc(50% - 50vw);left:auto;transform:none;margin:0!important;
 min-height:730px;padding:74px max(25px,calc((100vw - 1180px)/2)) 90px!important;
 color:#faf5e6!important;border:0!important;border-radius:0!important;
 background-image:linear-gradient(90deg,rgba(2,13,11,.92) 0%,rgba(3,20,17,.79) 31%,rgba(5,23,18,.37) 62%,rgba(4,19,15,.13) 100%),linear-gradient(0deg,rgba(3,20,13,.85),transparent 34%,rgba(3,20,13,.20)),url('../pc.png')!important;
 background-color:#061c18!important;background-repeat:no-repeat!important;background-size:cover!important;
 background-position:center center!important;box-shadow:none!important;overflow:hidden;
}
body[data-page="home"] .ravix-cinematic-hero:before,
body[data-page="home"] .ravix-cinematic-hero:after{display:none!important;content:none!important}
.ravix-hero-atmosphere{pointer-events:none;position:absolute;inset:0;overflow:hidden;z-index:0}
.ravix-hero-atmosphere .hero-star{position:absolute;color:rgba(241,209,134,.42);font-size:20px;filter:drop-shadow(0 0 12px rgba(238,198,132,.4));animation:ravix-glimmer 5s ease-in-out infinite}
.ravix-hero-atmosphere .star-one{top:18%;left:14%}.ravix-hero-atmosphere .star-two{top:55%;left:49%;animation-delay:1.4s}.ravix-hero-atmosphere .star-three{bottom:17%;right:7%;animation-delay:2.8s}
@keyframes ravix-glimmer{0%,100%{opacity:.4;transform:scale(.9)}50%{opacity:.95;transform:scale(1.1)}}
.ravix-hero-copy{position:relative;z-index:1;width:min(100%,730px);padding:38px 0 40px;text-align:right;display:flex;flex-direction:column;align-items:flex-start}
.ravix-hero-kicker{display:inline-flex;align-items:center;justify-content:center;gap:10px;color:#e3d1a7;font-size:12px;letter-spacing:.1px;font-weight:850;border:1px solid rgba(222,187,119,.4);border-radius:100px;padding:7px 17px;background:rgba(7,40,29,.5);backdrop-filter:blur(12px)}
.ravix-hero-kicker .ui-icon{height:13px;width:13px;color:#eecb82}
body[data-page="home"] .ravix-cinematic-hero h1{font-family:var(--ui)!important;font-size:clamp(67px,8vw,116px)!important;letter-spacing:-3px!important;line-height:1.35!important;font-weight:900!important;margin:10px 0 -6px!important;text-shadow:0 5px 30px rgba(0,0,0,.32);color:#fffaee!important}
body[data-page="home"] .ravix-cinematic-hero h1 em{color:#f7d18a!important;font-style:normal;font-weight:900}
.ravix-hero-subtitle{font-size:clamp(18px,2.6vw,30px);line-height:1.6;font-weight:900;color:#f8f2dc;margin:0 0 8px;letter-spacing:-.4px}
.ravix-hero-desc{font-size:14px;line-height:2.2;color:#d0e2d7;max-width:650px;margin:2px 0 23px;text-wrap:pretty}
.ravix-hero-search{width:min(100%,675px);padding:18px;border:1px solid rgba(210,181,121,.44);border-radius:24px;background:linear-gradient(145deg,rgba(4,26,20,.83),rgba(9,45,34,.72));box-shadow:0 18px 55px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.08);backdrop-filter:blur(18px)}
.ravix-hero-search-label{display:flex;gap:9px;align-items:center;color:#e8d7b1;font-size:13px;font-weight:850;margin:0 0 10px}
.ravix-hero-search-label .ui-icon{width:17px;height:17px;color:#f8cf85}
.ravix-hero-search-row{display:flex;align-items:center;gap:9px;position:relative;border-radius:14px;background:rgba(252,255,246,.98);padding:6px 7px 6px 8px;min-height:64px;box-shadow:0 8px 25px rgba(0,0,0,.18)}
.ravix-hero-search-symbol{margin:0 8px;color:#2e7752;flex:none;width:23px;height:23px}
.ravix-hero-search-row input{min-width:0;flex:1;width:100%;height:50px;font-size:15px!important;line-height:1.6;padding:3px!important;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;color:#17352a!important}
.ravix-hero-search-row input::placeholder{color:#667b70;opacity:1}
.ravix-hero-search-row input:focus-visible{outline:0!important}
.ravix-hero-search-row:focus-within{box-shadow:0 0 0 3px rgba(122,234,169,.3),0 8px 25px rgba(0,0,0,.18)}
.ravix-hero-search-submit{min-height:49px;padding:8px 17px;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;background:linear-gradient(145deg,#08764d,#0eaa73);color:#fff;font-size:13px;font-weight:900;white-space:nowrap;box-shadow:0 6px 16px rgba(5,93,59,.22);transition:transform .2s,background .2s}
.ravix-hero-search-submit:hover{background:linear-gradient(145deg,#0c9361,#17b780);transform:translateY(-1px)}
.ravix-hero-search-submit .ui-icon{height:17px;width:17px}
.ravix-hero-suggestions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:13px;color:#a6bdad;font-size:11px}
.ravix-hero-suggestions a{border:1px solid rgba(218,230,207,.20);border-radius:50px;padding:3px 12px;background:rgba(255,255,255,.055);color:#e4e9d6;transition:background .2s,border-color .2s}
.ravix-hero-suggestions a:hover{border-color:#d2bd8c;background:rgba(205,169,99,.15)}
.ravix-hero-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px}
.ravix-discover{display:inline-flex;align-items:center;gap:8px;border-radius:12px;background:#f0d59a;color:#103222;padding:11px 17px;font-size:12px;font-weight:900;box-shadow:0 8px 24px rgba(0,0,0,.13);transition:transform .2s}
.ravix-discover:hover{transform:translateY(-2px)}
.ravix-discover .ui-icon,.ravix-fal-link .ui-icon{width:17px;height:17px}
.ravix-fal-link{display:inline-flex;align-items:center;gap:8px;color:#e1efde;font-size:12px;font-weight:800;border-bottom:1px solid rgba(220,242,222,.26);padding-bottom:3px}
.ravix-fal-link:hover{color:#efd49f}
.ravix-hero-stats{display:flex;align-items:stretch;gap:0;margin-top:24px;width:min(100%,570px);border:1px solid rgba(225,216,182,.2);background:rgba(2,26,17,.40);border-radius:16px;backdrop-filter:blur(11px)}
.ravix-hero-stats>div{display:grid;flex:1;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-content:center;justify-content:center;column-gap:8px;padding:12px 16px;min-width:0}
.ravix-hero-stats>div+div{border-right:1px solid rgba(223,199,152,.24)}
.ravix-hero-stats .ui-icon{grid-row:1/3;align-self:center;width:23px;height:23px;color:#e7c783}
.ravix-hero-stats strong{font-size:21px;line-height:1.4;color:#f9e5b7;font-weight:900;white-space:nowrap}
.ravix-hero-stats span{color:#c1d4c5;font-size:10px;line-height:1.6;white-space:nowrap}
.ravix-scroll-hint{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);z-index:2;display:flex;align-items:center;gap:9px;color:#d3e3cc;font-size:11px;text-shadow:0 1px 9px #000}
.ravix-scroll-hint .ui-icon{height:19px;width:19px;animation:ravix-bounce 2s ease-in-out infinite}
@keyframes ravix-bounce{50%{transform:translateY(4px)}}
/* Featured poets: directly below hero, framed in luminous deep jade. */
body[data-page="home"] .ravix-home-poets{position:relative;right:calc(50% - 50vw);left:auto;transform:none;width:100vw;max-width:none;isolation:isolate;padding:74px max(24px,calc((100vw - 1180px)/2)) 84px;margin:0!important;background:radial-gradient(700px 430px at 83% 0%,rgba(28,123,79,.20),transparent 72%),radial-gradient(700px 440px at 5% 100%,rgba(165,133,66,.09),transparent 70%),#081b14;border-top:1px solid rgba(215,183,115,.25);color:#fff}
body[data-page="home"] .ravix-home-poets:before{content:"";pointer-events:none;position:absolute;inset:0;opacity:.16;background:radial-gradient(circle at 3px 3px,#77ad80 1px,transparent 1.5px) 0 0/33px 33px;mask-image:linear-gradient(to bottom,transparent,#000 60%,transparent)}
.ravix-section-eyebrow{position:relative;z-index:1;display:flex;justify-content:center;align-items:center;gap:9px;font-size:12px;font-weight:900;color:#d8bc83;letter-spacing:.2px}
.ravix-section-eyebrow .ui-icon{width:14px;height:14px}
.ravix-featured-heading{position:relative;z-index:1;display:flex;align-items:end;justify-content:space-between;gap:28px;margin:12px 0 30px}
.ravix-featured-heading h2{font-size:clamp(29px,3.8vw,48px);line-height:1.55!important;font-weight:900!important;color:#fff6e3!important;margin:0 0 2px}
.ravix-featured-heading h2 em{font-style:normal;color:#e6c884}
.ravix-featured-heading p{color:#b6cfc0;font-size:13px;margin:0}
.ravix-all-poets{border:1px solid rgba(215,185,114,.45);padding:10px 18px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:12px;color:#f7e4b3;white-space:nowrap;font-size:12px;font-weight:850;transition:background .2s}
.ravix-all-poets:hover{background:rgba(225,190,120,.12)}
.ravix-all-poets .ui-icon,.ravix-poet-mobile-cta .ui-icon{width:17px;height:17px}
body[data-page="home"] .ravix-featured-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
body[data-page="home"] .ravix-featured-grid .loading{grid-column:1/-1;min-height:160px;text-align:center;padding:60px;color:#e5d6b4}
body[data-page="home"] .ravix-featured-grid .poet-card,
html[data-theme="night"] body[data-page="home"] .ravix-featured-grid .poet-card,
html[data-theme="day"] body[data-page="home"] .ravix-featured-grid .poet-card{background:linear-gradient(155deg,rgba(20,54,40,.98),rgba(10,38,28,.96))!important;box-shadow:0 9px 28px rgba(0,0,0,.17)!important;border:1px solid rgba(211,189,133,.22)!important;border-radius:20px!important;min-height:260px!important;padding:20px 9px!important;gap:10px!important;color:#e0eddf!important;transition:transform .22s,border-color .22s,box-shadow .22s}
body[data-page="home"] .ravix-featured-grid .poet-card:hover{transform:translateY(-6px);border-color:rgba(237,204,134,.8)!important;box-shadow:0 20px 40px rgba(0,0,0,.27)!important}
body[data-page="home"] .ravix-featured-grid .poet-card h3{color:#fff6df!important;font-size:17px!important;line-height:1.65!important;font-weight:900!important;margin:0!important}
body[data-page="home"] .ravix-featured-grid .poet-card p{color:#9bc6ae!important;font-size:10px!important}
body[data-page="home"] .ravix-featured-grid .poet-portrait{--portrait-size:102px;background:linear-gradient(145deg,#d5ad63,#f8d994 55%,#168860);box-shadow:0 9px 27px rgba(0,0,0,.32),0 0 0 4px rgba(219,183,103,.07)}
body[data-page="home"] .ravix-featured-grid .poet-card-meta{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:4px;color:#cae1ce!important}
body[data-page="home"] .ravix-featured-grid .poet-card-meta span{font-size:11px;white-space:nowrap;color:#d9e5d7!important}
.ravix-poet-mobile-cta{display:none}
/* Feature tiles now follow the poets instead of delaying discovery. */
body[data-page="home"] .ravix-feature-shortcuts{margin-top:65px;margin-bottom:72px;gap:19px}
body[data-page="home"] .ravix-feature-shortcuts .feature-card{border-radius:22px!important;padding:27px!important;overflow:hidden;min-height:250px!important;position:relative}
body[data-page="home"] .ravix-feature-shortcuts .feature-card:after{content:"";position:absolute;inset:auto -40px -70px auto;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(34,183,112,.10),transparent 70%);pointer-events:none}
body[data-page="home"] .ravix-feature-shortcuts .feature-icon{width:58px;height:58px;display:grid;place-items:center;border:1px solid var(--line);border-radius:18px;background:var(--paper2)!important;color:var(--gold)}
body[data-page="home"] .ravix-feature-shortcuts .feature-icon .ui-icon{width:28px;height:28px}
body[data-page="home"] .ravix-feature-shortcuts h2{font-size:21px!important;margin-top:12px!important}
body[data-page="home"] .ravix-feature-shortcuts .feature-action{display:inline-flex;align-items:center;gap:5px}
body[data-page="home"] .daily-section{margin-top:15px}
@media(min-width:1500px){body[data-page="home"] .ravix-cinematic-hero{min-height:790px}}
@media(max-width:1050px){body[data-page="home"] .ravix-cinematic-hero{min-height:730px;padding:60px 38px 80px!important}.ravix-hero-copy{width:680px}body[data-page="home"] .ravix-featured-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ravix-featured-heading{align-items:center}}
@media(max-width:720px){
 body[data-page="home"] .ravix-cinematic-hero,html[data-theme="night"] body[data-page="home"] .ravix-cinematic-hero,html[data-theme="day"] body[data-page="home"] .ravix-cinematic-hero{
   min-height:795px;height:auto;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;
   text-align:center!important;padding:72px 18px 56px!important;gap:0!important;
   background-image:linear-gradient(180deg,rgba(2,19,15,.76) 0%,rgba(3,20,16,.86) 28%,rgba(3,27,20,.78) 63%,rgba(3,18,13,.52) 100%),url('../mobile.png')!important;
   background-position:center top!important;background-size:cover!important;
 }
 .ravix-hero-atmosphere .star-three{display:none}
 .ravix-hero-copy{width:100%;max-width:520px;align-items:center;text-align:center!important;padding:10px 0 25px;flex:none;margin:auto}
 .ravix-hero-kicker{font-size:10px;padding:6px 12px;gap:6px}
 body[data-page="home"] .ravix-cinematic-hero h1{font-size:clamp(58px,12vw,78px)!important;line-height:1.4!important;letter-spacing:-1.5px!important;margin:12px 0 0!important}
 .ravix-hero-subtitle{font-size:20px;margin:0 0 9px}
 .ravix-hero-desc{font-size:12px;line-height:2.25;max-width:450px;margin:2px 0 16px}
 .ravix-hero-search{padding:13px;width:100%;border-radius:20px}
 .ravix-hero-search-label{font-size:12px;margin-bottom:8px;justify-content:center}
 .ravix-hero-search-row{min-height:57px;border-radius:12px;padding:4px;gap:1px}
 .ravix-hero-search-symbol{margin:0 7px;width:18px;height:18px}
 .ravix-hero-search-row input{font-size:16px!important;min-height:48px;height:48px;text-align:right}
 .ravix-hero-search-submit{padding:6px 11px;min-height:45px;font-size:12px}
 .ravix-hero-search-submit .ui-icon{display:none}
 .ravix-hero-suggestions{justify-content:center;font-size:10px;gap:6px;margin-top:12px}
 .ravix-hero-suggestions a{padding:3px 9px}
 .ravix-hero-actions{justify-content:center;margin-top:20px;gap:13px}
 .ravix-discover,.ravix-fal-link{font-size:11px}.ravix-discover{padding:10px 12px}
 .ravix-hero-stats{width:100%;margin-top:22px}
 .ravix-hero-stats>div{padding:10px 6px;column-gap:4px}
 .ravix-hero-stats .ui-icon{width:17px;height:17px}
 .ravix-hero-stats strong{font-size:16px}
 .ravix-hero-stats span{font-size:9px}
 .ravix-scroll-hint{bottom:17px;font-size:10px}
 body[data-page="home"] .ravix-home-poets{padding:51px 17px 56px}
 .ravix-featured-heading{flex-direction:column;align-items:center;text-align:center;gap:15px;margin:10px 0 23px}
 .ravix-featured-heading h2{font-size:29px}
 .ravix-featured-heading p{font-size:12px;line-height:2}
 .ravix-all-poets{display:none}
 body[data-page="home"] .ravix-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body[data-page="home"] .ravix-featured-grid .poet-card{min-height:235px!important;padding:16px 7px!important;border-radius:17px!important}
 body[data-page="home"] .ravix-featured-grid .poet-card h3{font-size:15px!important}
 body[data-page="home"] .ravix-featured-grid .poet-portrait{--portrait-size:86px}
 body[data-page="home"] .ravix-featured-grid .poet-card-meta span{font-size:10px}
 .ravix-poet-mobile-cta{display:flex;align-items:center;justify-content:center;gap:8px;margin:25px auto 0;max-width:370px;padding:11px 16px;border:1px solid rgba(223,191,132,.55);border-radius:12px;color:#f4dcab;font-size:12px;font-weight:900}
 body[data-page="home"] .ravix-feature-shortcuts{margin:46px auto 57px;grid-template-columns:1fr;gap:12px}
 body[data-page="home"] .ravix-feature-shortcuts .feature-card{min-height:190px!important}
}
@media(max-width:370px){
 body[data-page="home"] .ravix-cinematic-hero{padding:62px 13px 48px!important}
 body[data-page="home"] .ravix-cinematic-hero h1{font-size:54px!important}
 .ravix-hero-subtitle{font-size:18px}
 .ravix-hero-desc{font-size:11px}
 .ravix-hero-search{padding:10px}
 .ravix-hero-search-submit{font-size:11px;padding:5px 9px}
 .ravix-hero-stats strong{font-size:14px}
 .ravix-hero-stats span{font-size:8px}
 .ravix-hero-stats .ui-icon{width:15px;height:15px}
 body[data-page="home"] .ravix-featured-grid .poet-portrait{--portrait-size:75px}
}
@media(prefers-reduced-motion:reduce){.ravix-hero-atmosphere .hero-star,.ravix-scroll-hint .ui-icon{animation:none!important}body[data-page="home"] .ravix-featured-grid .poet-card{transition:none!important}}
@media print{body[data-page="home"] .ravix-cinematic-hero{background:#fff!important;color:#111!important}body[data-page="home"] .ravix-home-poets{background:#fff!important;color:#111!important}}
/* Modern browsers load the 300 KB local WebP; original uploaded PNGs stay as fallback. */
@supports (background-image: image-set(url('../pc.webp') type('image/webp') 1x)) {
 body[data-page="home"] .ravix-cinematic-hero,
 html[data-theme="night"] body[data-page="home"] .ravix-cinematic-hero,
 html[data-theme="day"] body[data-page="home"] .ravix-cinematic-hero {
  background-image:linear-gradient(90deg,rgba(2,13,11,.92) 0%,rgba(3,20,17,.79) 31%,rgba(5,23,18,.37) 62%,rgba(4,19,15,.13) 100%),linear-gradient(0deg,rgba(3,20,13,.85),transparent 34%,rgba(3,20,13,.20)),image-set(url('../pc.webp') type('image/webp') 1x,url('../pc.png') type('image/png') 1x)!important;
 }
 @media(max-width:720px){
  body[data-page="home"] .ravix-cinematic-hero,
  html[data-theme="night"] body[data-page="home"] .ravix-cinematic-hero,
  html[data-theme="day"] body[data-page="home"] .ravix-cinematic-hero{
   background-image:linear-gradient(180deg,rgba(2,19,15,.76) 0%,rgba(3,20,16,.86) 28%,rgba(3,27,20,.78) 63%,rgba(3,18,13,.52) 100%),image-set(url('../mobile.webp') type('image/webp') 1x,url('../mobile.png') type('image/png') 1x)!important;
  }
 }
}
