/*
Theme Name: Independent Story Universe
Theme URI: https://samodro.com
Author: Samodro
Description: Elegant one-page project brief for an independent novel and story universe platform.
Version: 1.3.0
Text Domain: independent-story-universe
*/

:root{
  --ink:#151514;
  --paper:#f3efe6;
  --paper-2:#e9e2d5;
  --muted:#726d64;
  --gold:#a47b38;
  --line:rgba(21,21,20,.16);
  --dark:#20201e;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.site-shell{overflow:hidden}
.wrap{width:min(1180px,calc(100% - 40px));margin:auto}
.eyebrow{font-size:.72rem;letter-spacing:.24em;text-transform:uppercase;font-weight:700;color:var(--gold)}
.serif{font-family:Georgia,"Times New Roman",serif;font-weight:400}

.hero{min-height:100vh;display:grid;align-items:center;position:relative;padding:56px 0 46px;border-bottom:1px solid var(--line)}
.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 20%,rgba(164,123,56,.12),transparent 32%),linear-gradient(90deg,transparent 49.9%,rgba(21,21,20,.06) 50%,transparent 50.1%);pointer-events:none}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:center;position:relative}
.brandline{display:flex;align-items:center;gap:18px;margin-bottom:48px}
.brandline:after{content:"";height:1px;flex:1;background:var(--line)}
.hero h1{font-size:clamp(3.4rem,8vw,7.4rem);line-height:.88;letter-spacing:-.055em;margin:0 0 30px;max-width:760px}
.hero h1 em{color:var(--gold);font-weight:400}
.lead{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.25rem,2vw,1.75rem);line-height:1.45;max-width:690px;margin:0 0 34px;color:#3c3934}
.hero-copy{max-width:650px;color:var(--muted);font-size:1.02rem}
.hero-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:34px}
.pill{border:1px solid var(--line);border-radius:999px;padding:9px 15px;font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;background:rgba(255,255,255,.22)}
.visual-frame{position:relative;padding:18px;border:1px solid var(--line);background:rgba(255,255,255,.22)}
.visual-frame:before,.visual-frame:after{content:"";position:absolute;width:62px;height:62px;border-color:var(--gold);opacity:.75}
.visual-frame:before{left:-8px;top:-8px;border-left:1px solid;border-top:1px solid}
.visual-frame:after{right:-8px;bottom:-8px;border-right:1px solid;border-bottom:1px solid}
.visual-caption{display:flex;justify-content:space-between;gap:15px;margin-top:13px;color:var(--muted);font-size:.72rem;letter-spacing:.13em;text-transform:uppercase}

.section{padding:112px 0;border-bottom:1px solid var(--line)}
.section-head{display:grid;grid-template-columns:.6fr 1.4fr;gap:60px;margin-bottom:70px}
.section h2{font-size:clamp(2.5rem,5vw,5rem);line-height:1;letter-spacing:-.045em;margin:0}
.section-intro{font-family:Georgia,"Times New Roman",serif;font-size:1.35rem;line-height:1.6;color:#47423b;max-width:760px;margin:0}

.problem-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line)}
.problem{padding:34px 34px 10px 0;border-right:1px solid var(--line);min-height:280px}
.problem+.problem{padding-left:34px}
.problem:last-child{border-right:0}
.number{font-family:Georgia,"Times New Roman",serif;font-size:3.2rem;color:var(--gold);line-height:1}
.problem h3,.feature h3{font-family:Georgia,"Times New Roman",serif;font-size:1.55rem;font-weight:400;margin:20px 0 12px}
.problem p,.feature p{color:var(--muted);margin:0}

.dark{background:var(--dark);color:#f1ede4}
.dark .section-intro,.dark p{color:#bdb6aa}
.dark .eyebrow{color:#d3a75f}
.dark .section-head,.dark{border-color:rgba(255,255,255,.12)}
.architecture{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12)}
.feature{padding:42px;background:var(--dark);min-height:260px}
.feature-index{font-size:.72rem;letter-spacing:.2em;color:#d3a75f}

.journey{display:grid;grid-template-columns:.8fr 1.2fr;gap:90px;align-items:start}
.sticky{position:sticky;top:35px}
.steps{border-top:1px solid var(--line)}
.step{display:grid;grid-template-columns:90px 1fr;gap:20px;padding:32px 0;border-bottom:1px solid var(--line)}
.step strong{font-family:Georgia,"Times New Roman",serif;font-size:2.4rem;color:var(--gold);font-weight:400}
.step h3{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:1.5rem;margin:0 0 8px}
.step p{margin:0;color:var(--muted)}

.outcome-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:70px;align-items:center}
.quote{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2rem,4.5vw,4.4rem);line-height:1.08;letter-spacing:-.035em;margin:0}
.quote em{color:var(--gold)}
.outcomes{border-left:1px solid var(--line);padding-left:40px}
.outcome{padding:19px 0;border-bottom:1px solid var(--line)}
.outcome:last-child{border-bottom:0}
.outcome b{display:block;font-size:.76rem;letter-spacing:.15em;text-transform:uppercase;margin-bottom:6px}
.outcome span{color:var(--muted)}

.cta{padding:110px 0;background:#d9cfbe}
.cta-grid{display:grid;grid-template-columns:1.4fr .6fr;gap:60px;align-items:end}
.cta h2{font-size:clamp(3rem,7vw,7rem);line-height:.92;letter-spacing:-.055em;margin:14px 0 0}
.cta-card{border-top:1px solid var(--ink);padding-top:25px}
.cta-card p{color:#5f594f;margin:0 0 28px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;background:var(--ink);color:white;padding:16px 22px;min-width:190px;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;transition:.25s}
.button:hover{transform:translateY(-2px);background:var(--gold)}
.footer{padding:28px 0;background:var(--ink);color:#aaa49a;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase}
.footer .wrap{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}

@media(max-width:900px){
 .hero{min-height:auto;padding-top:34px}.hero-grid,.section-head,.journey,.outcome-grid,.cta-grid{grid-template-columns:1fr}.hero-grid{gap:52px}.brandline{margin-bottom:34px}.section{padding:80px 0}.section-head{gap:24px;margin-bottom:48px}.problem-grid{grid-template-columns:1fr}.problem,.problem+.problem{padding:30px 0;border-right:0;border-bottom:1px solid var(--line);min-height:0}.architecture{grid-template-columns:1fr}.sticky{position:static}.journey{gap:45px}.outcomes{border-left:0;border-top:1px solid var(--line);padding:30px 0 0}.cta{padding:80px 0}}
@media(max-width:560px){.wrap{width:min(100% - 26px,1180px)}.hero h1{font-size:3.65rem}.lead{font-size:1.18rem}.visual-frame{padding:10px}.section{padding:66px 0}.feature{padding:30px}.step{grid-template-columns:60px 1fr}.step strong{font-size:1.9rem}.cta h2{font-size:3.5rem}}

/* === Featured universe preview === */
.universe-preview{padding:86px 0 110px;background:#090b0d;color:#f4efe6;border-bottom:1px solid rgba(255,255,255,.1)}
.universe-preview-head{display:grid;grid-template-columns:.55fr 1.45fr;gap:60px;margin-bottom:42px}
.universe-preview h2{font-size:clamp(2.3rem,4.7vw,4.8rem);line-height:1;letter-spacing:-.045em;margin:0 0 18px}
.universe-preview .section-intro{color:#aaa59b}
.universe-card{display:grid;grid-template-columns:1.35fr .65fr;min-height:530px;border:1px solid rgba(211,167,95,.55);background:#0e1012;overflow:hidden;transition:.35s ease;box-shadow:0 30px 80px rgba(0,0,0,.28)}
.universe-card:hover{transform:translateY(-4px);border-color:#d3a75f;box-shadow:0 36px 90px rgba(0,0,0,.4)}
.universe-card-art{position:relative;min-height:520px;overflow:hidden}
.universe-card-art img{width:100%;height:100%;object-fit:cover;transition:transform .8s ease}
.universe-card:hover .universe-card-art img{transform:scale(1.025)}
.universe-card-overlay{position:absolute;inset:0;background:linear-gradient(90deg,transparent 63%,rgba(14,16,18,.85) 100%),linear-gradient(0deg,rgba(0,0,0,.18),transparent 55%)}
.universe-card-copy{display:flex;flex-direction:column;justify-content:center;padding:54px 48px}
.universe-kicker{font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:#d3a75f;margin-bottom:12px}
.universe-card h3{font-size:clamp(3rem,5vw,5.7rem);line-height:.9;letter-spacing:-.05em;margin:0 0 24px;color:#f5f0e7}
.universe-tagline{font-family:Georgia,"Times New Roman",serif;font-size:1.45rem;line-height:1.35;color:#d8ad65;margin:0 0 18px}
.universe-summary{color:#bbb4aa;margin:0 0 28px}
.universe-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:32px}
.universe-tags span{font-size:.64rem;letter-spacing:.08em;text-transform:uppercase;border:1px solid rgba(255,255,255,.14);padding:7px 9px;color:#aaa49a}
.universe-enter{display:flex;justify-content:space-between;align-items:center;border-top:1px solid rgba(211,167,95,.45);padding-top:18px;text-transform:uppercase;letter-spacing:.14em;font-size:.73rem;color:#e0b56f}
.universe-enter b{font-size:1.25rem;font-weight:400}

/* === Ahli Waris Universe === */
body.ahli-waris-universe{background:#090b0d;color:#eee8dc}
.aw-shell{background:#090b0d;overflow:hidden}
.aw-wrap{width:min(1200px,calc(100% - 44px));margin:auto}
.aw-topbar{position:absolute;top:0;left:0;right:0;z-index:20;border-bottom:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,rgba(4,5,6,.78),rgba(4,5,6,.1))}
.aw-topbar-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase}
.aw-back,.aw-mini-link{color:#d6ab62}.aw-top-title{color:#b8b2a8}
.aw-hero{min-height:100vh;position:relative;display:grid;align-items:end;padding:140px 0 74px}
.aw-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center 45%;transform:scale(1.03)}
.aw-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,5,6,.94) 0%,rgba(4,5,6,.63) 42%,rgba(4,5,6,.18) 72%,rgba(4,5,6,.55) 100%),linear-gradient(0deg,#090b0d 0%,transparent 36%)}
.aw-hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.15fr .45fr;gap:80px;align-items:end}
.aw-kicker,.aw-label{display:block;color:#d8ac61;font-size:.68rem;letter-spacing:.23em;text-transform:uppercase;font-weight:700}
.aw-hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(5.2rem,12vw,11rem);line-height:.72;letter-spacing:-.07em;font-weight:400;margin:24px 0 36px;text-shadow:0 6px 35px rgba(0,0,0,.45)}
.aw-deck{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.25rem,2vw,1.8rem);max-width:700px;line-height:1.45;color:#e3dccf;margin:0}
.aw-actions{display:flex;gap:22px;align-items:center;margin-top:34px;flex-wrap:wrap}.aw-button{border:1px solid #d6a85b;padding:13px 19px;text-transform:uppercase;letter-spacing:.12em;font-size:.7rem;background:rgba(0,0,0,.23)}.aw-link{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:#c9c1b5}
.aw-hero-note{border-top:1px solid rgba(214,168,91,.6);padding-top:18px;color:#c8c0b4}.aw-hero-note span{font-size:.64rem;letter-spacing:.2em;color:#d6a85b}.aw-hero-note p{font-family:Georgia,"Times New Roman",serif;font-size:1.08rem;line-height:1.55}
.aw-section{padding:110px 0;border-top:1px solid rgba(255,255,255,.1)}
.aw-split{display:grid;grid-template-columns:.8fr 1.2fr;gap:90px}.aw-section h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(2.6rem,5vw,5.4rem);line-height:1;letter-spacing:-.045em;margin:20px 0 0}.aw-copy{font-size:1.02rem;color:#bdb6aa;max-width:720px}.aw-copy p{margin-top:0}.aw-pull{font-family:Georgia,"Times New Roman",serif;font-size:1.8rem!important;line-height:1.35;color:#d8ad65!important;border-left:1px solid #d8ad65;padding-left:24px;margin-top:36px!important}
.aw-dark{background:#111416}.aw-section-head{display:grid;grid-template-columns:.48fr 1.52fr;gap:60px;align-items:start;margin-bottom:58px}.aw-section-head h2{margin:0}.aw-grid-4{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid rgba(255,255,255,.14)}.aw-grid-4 article{padding:30px 26px 18px 0;border-right:1px solid rgba(255,255,255,.14);min-height:260px}.aw-grid-4 article+article{padding-left:26px}.aw-grid-4 article:last-child{border-right:0}.aw-grid-4 span{font-family:Georgia,"Times New Roman",serif;color:#d7aa60;font-size:2rem}.aw-grid-4 h3{font-family:Georgia,"Times New Roman",serif;font-size:1.55rem;font-weight:400;margin:14px 0 10px}.aw-grid-4 p{color:#99948a;margin:0;font-size:.94rem}
.aw-archive{background:#0b0d0f}.aw-archive-list{border-top:1px solid rgba(255,255,255,.16)}.aw-archive-list div{display:flex;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid rgba(255,255,255,.1)}.aw-archive-list b{font-size:.76rem;letter-spacing:.12em}.aw-archive-list span{font-size:.66rem;letter-spacing:.14em;color:#d1a45a}
.aw-future{background:#e9e0d2;color:#181817}.aw-future .aw-label{color:#8e682e}.aw-future h2{max-width:990px;margin-bottom:62px}.aw-future-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid rgba(0,0,0,.2)}.aw-future-grid article{padding:28px 25px 0 0;border-right:1px solid rgba(0,0,0,.16);min-height:170px}.aw-future-grid article+article{padding-left:25px}.aw-future-grid article:last-child{border-right:0}.aw-future-grid b{font-size:.7rem;letter-spacing:.15em}.aw-future-grid p{color:#5e584f}
.aw-closing{padding:100px 0 120px;background:#090b0d}.aw-closing-inner{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:end}.aw-closing h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(3rem,6vw,6rem);line-height:.9;font-weight:400;margin:16px 0 0}.aw-closing p{font-family:Georgia,"Times New Roman",serif;font-size:1.55rem;color:#b8b0a3;margin:0;line-height:1.5}.aw-footer{border-top:1px solid rgba(255,255,255,.1);padding:28px 0;color:#716d66;font-size:.65rem;letter-spacing:.12em;text-transform:uppercase}.aw-footer .aw-wrap{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
@media(max-width:900px){.universe-preview-head,.universe-card,.aw-hero-grid,.aw-split,.aw-section-head,.aw-closing-inner{grid-template-columns:1fr}.universe-card-art{min-height:390px}.universe-card-overlay{background:linear-gradient(0deg,#0e1012 0%,transparent 45%)}.universe-card-copy{padding:38px 28px}.aw-hero{min-height:820px}.aw-hero-grid{gap:40px}.aw-hero-note{max-width:520px}.aw-grid-4,.aw-future-grid{grid-template-columns:repeat(2,1fr)}.aw-grid-4 article:nth-child(2),.aw-future-grid article:nth-child(2){border-right:0}.aw-grid-4 article:nth-child(n+3),.aw-future-grid article:nth-child(n+3){border-top:1px solid rgba(255,255,255,.12)}.aw-future-grid article:nth-child(n+3){border-top-color:rgba(0,0,0,.15)}}
@media(max-width:560px){.universe-preview{padding:64px 0 74px}.universe-preview-head{gap:22px}.universe-card-art{min-height:290px}.universe-card h3{font-size:3.4rem}.aw-wrap{width:min(100% - 28px,1200px)}.aw-top-title{display:none}.aw-hero{min-height:760px;padding-bottom:52px}.aw-hero h1{font-size:5.6rem}.aw-deck{font-size:1.16rem}.aw-section{padding:72px 0}.aw-split,.aw-section-head{gap:34px}.aw-grid-4,.aw-future-grid{grid-template-columns:1fr}.aw-grid-4 article,.aw-grid-4 article+article,.aw-future-grid article,.aw-future-grid article+article{padding:25px 0;border-right:0;border-top:1px solid rgba(255,255,255,.12);min-height:0}.aw-future-grid article,.aw-future-grid article+article{border-top-color:rgba(0,0,0,.15)}.aw-closing{padding:76px 0}.aw-closing-inner{gap:36px}.aw-closing p{font-size:1.3rem}}


/* === AHLI WARIS READER INTEGRATION v3 === */
.aw-reader-library{background:#f3eee4;color:#171a1d}
.aw-reader-intro{max-width:760px;margin-bottom:34px}
.aw-reader-intro p{max-width:650px;color:#686a6c;font-size:16px;line-height:1.7;margin:16px 0 0}
.aw-reader-missing{padding:28px;border:1px solid rgba(20,20,20,.12);border-radius:18px;display:flex;flex-direction:column;gap:6px;background:rgba(255,255,255,.45)}
.aw-reader-missing span{color:#777}

/* Plugin chapter-index styling is duplicated here intentionally:
   the universe page is a virtual theme route, so it remains beautiful
   even when the reader plugin only enqueues its CSS on chapter URLs. */
.aw-reader-library .awr-library-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}
.aw-reader-library .awr-library-head>div>span{font:700 10px/1.2 system-ui;letter-spacing:.2em;color:#b88b46}
.aw-reader-library .awr-library-head h2{font:500 40px/1.05 Georgia,serif;margin:8px 0 0;color:#171a1d}
.aw-reader-library .awr-library-head h2 em{font-weight:400}
.aw-reader-library .awr-library-progress{text-align:right}
.aw-reader-library .awr-library-progress strong{display:block;font:500 36px Georgia,serif;color:#b88b46}
.aw-reader-library .awr-library-progress span{font:700 10px system-ui;text-transform:uppercase;letter-spacing:.12em;color:#777}
.aw-reader-library .awr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.aw-reader-library .awr-card{position:relative;min-height:440px;border-radius:22px;overflow:hidden;background:#0f1a20;color:#fff;text-decoration:none}
.aw-reader-library .awr-card img,.aw-reader-library .awr-card-ghost{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.aw-reader-library .awr-card-ghost{background:radial-gradient(circle at 70% 20%,#364a55 0,transparent 30%),linear-gradient(145deg,#152831,#081014)}
.aw-reader-library .awr-card-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(2,7,10,.94) 5%,rgba(4,10,14,.32) 65%,rgba(0,0,0,.05))}
.aw-reader-library .awr-card-copy{position:absolute;inset:auto 0 0;padding:28px}
.aw-reader-library .awr-card-top{display:flex;justify-content:space-between;gap:8px;color:#d2b178;font:700 9px system-ui;letter-spacing:.16em;text-transform:uppercase}
.aw-reader-library .awr-card-top b{color:#fff}
.aw-reader-library .awr-card-copy small{display:block;margin-top:42px;font:700 10px system-ui;letter-spacing:.18em;color:#d2b178}
.aw-reader-library .awr-card-copy h3{font:500 38px/1 Georgia,serif;margin:8px 0 11px;color:#fff}
.aw-reader-library .awr-card-copy p{max-width:470px;color:#d3d7d8;font:14px/1.5 system-ui;margin:0 0 16px}
.aw-reader-library .awr-card-meta{font:600 10px system-ui;color:#aeb8bd;letter-spacing:.08em;text-transform:uppercase}
.aw-reader-library .awr-card.awr-coming,.aw-reader-library .awr-card.awr-locked{cursor:default}
.aw-reader-library .awr-card.awr-coming img,.aw-reader-library .awr-card.awr-locked img{filter:grayscale(.7) brightness(.55)}
.aw-reader-library .awr-universe-meter{height:3px;background:rgba(0,0,0,.1);margin-top:28px}
.aw-reader-library .awr-universe-meter span{display:block;height:100%;background:#b88b46}
.aw-reader-library .awr-universe-copy{font:700 10px system-ui;color:#777;letter-spacing:.12em;text-transform:uppercase}
@media(max-width:700px){
 .aw-reader-library .awr-grid{grid-template-columns:1fr}
 .aw-reader-library .awr-card{min-height:390px}
 .aw-reader-library .awr-library-progress{display:none}
 .aw-reader-library .awr-card-copy h3{font-size:34px}
}
