/*
Theme Name: Storyframe
Theme URI: https://onlinestoryhub.com/
Author: Online Story Hub
Description: A premium editorial WordPress theme built for Online Story Hub.
Version: 1.0.9
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: storyframe
*/
:root{--ink:#0b1b2b;--ink-2:#142b3c;--cream:#f7f2e8;--paper:#fffdf8;--coral:#ff7058;--coral-dark:#dc4f3d;--gold:#efbd55;--teal:#70a99e;--wine:#722d45;--muted:#65717c;--line:#ddd6c9;--white:#fff;--shadow:0 24px 70px rgba(9,24,39,.13);--radius:22px;--serif:"Fraunces",Georgia,serif;--sans:"Plus Jakarta Sans",Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.72}img{max-width:100%;height:auto}a{color:var(--coral-dark);text-underline-offset:3px}a:hover{color:var(--wine)}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.osh-wrap{width:min(1180px,calc(100% - 40px));margin-inline:auto}.osh-reading-wrap{width:min(780px,calc(100% - 40px));margin-inline:auto}.osh-topbar{background:var(--ink);color:#d9e1e7;font-size:.79rem;letter-spacing:.06em}.osh-topbar .osh-wrap{display:flex;justify-content:space-between;align-items:center;min-height:38px}.osh-topbar a{color:#fff;text-decoration:none;font-weight:700}.osh-header{position:sticky;top:0;z-index:100;background:rgba(255,253,248,.95);backdrop-filter:blur(15px);border-bottom:1px solid rgba(11,27,43,.1)}.osh-header-main{display:flex;align-items:center;gap:28px;min-height:84px}.osh-brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;flex:0 0 auto}.osh-brand img{width:48px;height:48px;border-radius:12px}.osh-brand-word{display:flex;flex-direction:column;line-height:1}.osh-brand strong{font-family:var(--serif);font-size:1.34rem;letter-spacing:-.025em}.osh-brand span{margin-top:6px;color:var(--muted);font-size:.62rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.osh-nav{margin-left:auto}.osh-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:3px}.osh-nav li{position:relative}.osh-nav a{display:flex;align-items:center;min-height:46px;padding:0 12px;border-radius:10px;color:var(--ink);font-size:.9rem;font-weight:750;text-decoration:none}.osh-nav a:hover,.osh-nav .current-menu-item>a,.osh-nav .current-menu-ancestor>a{background:var(--cream);color:var(--coral-dark)}.osh-nav .menu-item-has-children>a:after{content:"⌄";margin-left:7px;font-size:.8em}.osh-nav ul ul{position:absolute;left:0;top:calc(100% + 10px);display:block;min-width:250px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(-7px);transition:.2s}.osh-nav li:hover>ul,.osh-nav li:focus-within>ul{opacity:1;visibility:visible;transform:none}.osh-nav ul ul ul{left:calc(100% + 8px);top:0}.osh-nav ul ul a{min-height:42px;padding:9px 12px}.osh-header-actions{display:flex;align-items:center;gap:9px}.osh-search-button,.osh-menu-button{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);cursor:pointer}.osh-menu-button{display:none}.osh-submit-button,.osh-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;border:0;border-radius:999px;background:var(--coral);color:var(--ink)!important;font-weight:850;text-decoration:none;box-shadow:0 8px 20px rgba(255,112,88,.22);transition:.2s}.osh-submit-button:hover,.osh-button:hover{transform:translateY(-2px);background:var(--gold);color:var(--ink)}.osh-button.dark{background:var(--ink);color:#fff!important}.osh-button.ghost{background:transparent;color:#fff!important;border:1px solid rgba(255,255,255,.38);box-shadow:none}.osh-search-panel{display:none;padding:15px 0 22px;border-top:1px solid var(--line)}.osh-search-panel.open{display:block}.osh-search-panel form{display:flex;gap:10px}.osh-search-panel input{width:100%;padding:14px 17px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit}.osh-search-panel button{padding:0 25px;border:0;border-radius:12px;background:var(--ink);color:#fff;font-weight:800}.osh-ticker{border-bottom:1px solid var(--line);background:#fff}.osh-ticker-inner{display:flex;gap:14px;align-items:center;min-height:44px;overflow:auto;scrollbar-width:none}.osh-ticker-label{color:var(--coral-dark);font-size:.72rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}.osh-ticker a{color:var(--ink);font-size:.82rem;font-weight:700;text-decoration:none;white-space:nowrap}.osh-ticker a:before{content:"◆";margin-right:12px;color:var(--gold);font-size:.55rem}.osh-hero{position:relative;overflow:hidden;background:var(--ink);color:#fff;min-height:660px}.osh-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,21,36,.96) 0%,rgba(7,21,36,.86) 39%,rgba(7,21,36,.18) 70%,rgba(7,21,36,.08) 100%);z-index:1}.osh-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.osh-hero-content{position:relative;z-index:2;padding:105px 0 95px;max-width:680px}.osh-eyebrow{display:inline-flex;align-items:center;gap:9px;color:var(--gold);font-size:.73rem;font-weight:900;letter-spacing:.17em;text-transform:uppercase}.osh-eyebrow:before{content:"";width:32px;height:2px;background:currentColor}.osh-hero h1{margin:20px 0 20px;font-family:var(--serif);font-size:clamp(3.7rem,7vw,6.6rem);font-weight:720;letter-spacing:-.055em;line-height:.93}.osh-hero h1 em{color:var(--coral);font-style:italic}.osh-hero p{max-width:610px;color:#dce6ed;font-size:1.15rem;line-height:1.75}.osh-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.osh-proof{display:flex;flex-wrap:wrap;gap:22px;margin-top:52px;padding-top:26px;border-top:1px solid rgba(255,255,255,.18)}.osh-proof div{display:flex;flex-direction:column}.osh-proof strong{font-family:var(--serif);color:#fff;font-size:1.3rem}.osh-proof span{color:#9fb0bc;font-size:.75rem;text-transform:uppercase;letter-spacing:.1em}.osh-section{padding:92px 0}.osh-section.alt{background:var(--cream)}.osh-section.dark{background:var(--ink);color:#fff}.osh-section-head{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:42px}.osh-section-head h2{max-width:760px;margin:8px 0 0;font-family:var(--serif);font-size:clamp(2.4rem,5vw,4.2rem);letter-spacing:-.045em;line-height:1}.osh-section-head p{max-width:470px;margin:0;color:var(--muted)}.osh-section.dark .osh-section-head p{color:#aebdc6}.osh-text-link{font-weight:850;text-decoration:none}.osh-genre-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.osh-genre-card{position:relative;display:flex;min-height:245px;flex-direction:column;justify-content:space-between;overflow:hidden;padding:25px;border-radius:18px;background:var(--ink);color:#fff;text-decoration:none;isolation:isolate}.osh-genre-card:before{content:"";position:absolute;width:180px;height:180px;right:-50px;bottom:-60px;border-radius:50%;background:var(--accent,var(--coral));opacity:.9;z-index:-1;transition:.3s}.osh-genre-card:hover:before{transform:scale(1.18)}.osh-genre-card:nth-child(2n){background:#183749}.osh-genre-card:nth-child(3n){background:#57263a}.osh-genre-card:nth-child(4n){background:#28564f}.osh-genre-card small{text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:#d8e2e8}.osh-genre-card strong{font-family:var(--serif);font-size:1.8rem;line-height:1.08}.osh-genre-card span{font-size:.82rem;color:#e4e9ec}.osh-story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.osh-story-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 10px 35px rgba(11,27,43,.06);transition:.25s}.osh-story-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}.osh-story-image{display:block;aspect-ratio:16/10;overflow:hidden;background:linear-gradient(135deg,var(--teal),var(--ink))}.osh-story-image img{width:100%;height:100%;object-fit:cover;transition:.45s}.osh-story-card:hover .osh-story-image img{transform:scale(1.04)}.osh-story-body{padding:23px}.osh-story-meta{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:.73rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.osh-story-category{color:var(--coral-dark)}.osh-story-card h3{margin:12px 0 10px;font-family:var(--serif);font-size:1.55rem;line-height:1.18}.osh-story-card h3 a{color:var(--ink);text-decoration:none}.osh-story-card p{margin:0;color:var(--muted);font-size:.93rem}.osh-story-footer{display:flex;justify-content:space-between;align-items:center;margin-top:19px;padding-top:17px;border-top:1px solid var(--line);font-size:.78rem}.osh-story-footer a{font-weight:850;text-decoration:none}.osh-empty{grid-column:1/-1;padding:44px;border:1px dashed #c9c0b3;border-radius:18px;text-align:center;background:#fff}.osh-feature-band{display:grid;grid-template-columns:1.15fr .85fr;border-radius:26px;overflow:hidden;background:var(--wine);color:#fff}.osh-feature-copy{padding:62px}.osh-feature-copy h2{margin:13px 0 16px;font-family:var(--serif);font-size:clamp(2.5rem,4vw,4rem);line-height:1}.osh-feature-copy p{color:#f0dfe6}.osh-feature-image{min-height:450px;background:url("assets/images/osh-hero.webp") center/cover}.osh-editorial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.osh-editorial-item{padding:28px;border-top:4px solid var(--coral);background:#fff;color:var(--ink);border-radius:0 0 14px 14px}.osh-editorial-item:nth-child(2){border-color:var(--gold)}.osh-editorial-item:nth-child(3){border-color:var(--teal)}.osh-editorial-item h3{font-family:var(--serif);font-size:1.45rem}.osh-newsletter{display:grid;grid-template-columns:1fr auto;gap:34px;align-items:center;padding:54px 60px;border-radius:26px;background:var(--gold);color:var(--ink)}.osh-newsletter h2{margin:0 0 8px;font-family:var(--serif);font-size:2.3rem}.osh-newsletter p{margin:0;max-width:650px}.osh-newsletter-actions{display:flex;gap:10px}.osh-page-hero{padding:86px 0 65px;background:var(--cream);border-bottom:1px solid var(--line)}.osh-page-hero h1{max-width:900px;margin:15px 0 15px;font-family:var(--serif);font-size:clamp(3rem,6vw,5.5rem);line-height:.98;letter-spacing:-.05em}.osh-page-hero p{max-width:760px;color:var(--muted);font-size:1.16rem}.osh-page-layout{display:grid;grid-template-columns:minmax(0,760px) 280px;gap:70px;padding:72px 0 100px}.osh-prose{font-size:1.05rem}.osh-prose>p:first-child{font-size:1.22rem;color:#3c4c59}.osh-prose h2{margin:2.1em 0 .6em;font-family:var(--serif);font-size:2.25rem;line-height:1.08}.osh-prose h3{margin:1.7em 0 .5em;font-family:var(--serif);font-size:1.45rem}.osh-prose blockquote{margin:2em 0;padding:25px 30px;border-left:5px solid var(--coral);background:var(--cream);font-family:var(--serif);font-size:1.25rem}.osh-prose li{margin:.45em 0}.osh-sidebar{position:relative}.osh-sidebar-box{position:sticky;top:125px;padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff}.osh-sidebar-box h3{margin-top:0;font-family:var(--serif)}.osh-sidebar-box ul{list-style:none;margin:0;padding:0}.osh-sidebar-box li+li{border-top:1px solid var(--line)}.osh-sidebar-box a{display:block;padding:10px 0;color:var(--ink);font-size:.88rem;font-weight:750;text-decoration:none}.osh-contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:34px;margin:20px 0 50px}.osh-contact-card{padding:29px;border:1px solid var(--line);border-radius:18px;background:#fff}.osh-contact-card h3{margin-top:0;font-family:var(--serif)}.osh-contact-card strong{display:block;color:var(--coral-dark);font-size:.74rem;text-transform:uppercase;letter-spacing:.1em}.osh-form{padding:34px;border-radius:20px;background:var(--cream)}.osh-form label{display:block;margin-bottom:18px;font-size:.86rem;font-weight:850}.osh-form input,.osh-form textarea,.osh-form select{width:100%;margin-top:7px;padding:13px 15px;border:1px solid #cfc6b8;border-radius:10px;background:#fff;color:var(--ink);font:inherit}.osh-form input:focus,.osh-form textarea:focus,.osh-form select:focus{outline:3px solid rgba(255,112,88,.18);border-color:var(--coral)}.osh-form button{padding:14px 23px;border:0;border-radius:999px;background:var(--ink);color:#fff;font-weight:850;cursor:pointer}.osh-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.osh-check{display:flex!important;gap:10px;align-items:flex-start}.osh-check input{width:auto;margin-top:6px}.osh-notice{padding:14px 17px;border-radius:10px;margin:15px 0}.osh-notice.success{background:#dff4e6;color:#176536}.osh-notice.error{background:#fde6e3;color:#9a2e21}.osh-single-header{padding:70px 0 45px;text-align:center}.osh-single-header h1{max-width:900px;margin:14px auto 18px;font-family:var(--serif);font-size:clamp(3rem,6vw,5.4rem);line-height:.98;letter-spacing:-.05em}.osh-single-deck{max-width:720px;margin:0 auto;color:var(--muted);font-size:1.14rem}.osh-byline{display:flex;justify-content:center;flex-wrap:wrap;gap:11px;margin-top:24px;color:var(--muted);font-size:.82rem;font-weight:750}.osh-single-image{width:min(1180px,calc(100% - 40px));margin:0 auto 55px;border-radius:24px;overflow:hidden}.osh-single-image img{width:100%;max-height:660px;object-fit:cover}.osh-article-body{width:min(760px,calc(100% - 40px));margin:0 auto 90px;font-family:Georgia,serif;font-size:1.15rem;line-height:1.9}.osh-article-body h2,.osh-article-body h3{font-family:var(--serif);line-height:1.15}.osh-author-box{display:flex;gap:20px;align-items:flex-start;margin-top:55px;padding:28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-family:var(--sans);font-size:.92rem}.osh-author-box img{border-radius:50%}.osh-footer{background:var(--ink);color:#d4dee5}.osh-footer-main{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:50px;padding:74px 0 50px}.osh-footer-brand p{color:#9fb0bc}.osh-footer h3{margin-top:0;color:#fff;font-family:var(--serif);font-size:1.1rem}.osh-footer ul{list-style:none;margin:0;padding:0}.osh-footer li{margin:8px 0}.osh-footer a{color:#d7e0e6;text-decoration:none;font-size:.87rem}.osh-footer a:hover{color:var(--gold)}.osh-footer-bottom{display:flex;justify-content:space-between;gap:20px;padding:22px 0;border-top:1px solid rgba(255,255,255,.13);color:#8fa2ae;font-size:.78rem}.osh-footer-mark{width:58px;border-radius:14px}.osh-404{text-align:center;padding:120px 20px}.osh-404 strong{display:block;font-family:var(--serif);font-size:8rem;color:var(--coral);line-height:1}.osh-404 h1{font-family:var(--serif);font-size:3rem}.osh-pagination{margin-top:50px;text-align:center}.osh-pagination .page-numbers{display:inline-grid;place-items:center;min-width:42px;height:42px;margin:3px;padding:0 10px;border:1px solid var(--line);border-radius:9px;text-decoration:none}.osh-pagination .current{background:var(--ink);color:#fff}.osh-mobile-cta{display:none}@media(max-width:1050px){.osh-nav{position:fixed;left:20px;right:20px;top:92px;max-height:calc(100vh - 120px);overflow:auto;padding:14px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);display:none}.osh-nav.open{display:block}.osh-nav ul{display:block}.osh-nav ul ul{position:static;display:block;min-width:0;padding:0 0 0 16px;border:0;box-shadow:none;opacity:1;visibility:visible;transform:none}.osh-nav ul ul ul{left:auto;top:auto}.osh-nav a{min-height:44px}.osh-menu-button{display:grid}.osh-submit-button{display:none}.osh-genre-grid{grid-template-columns:repeat(2,1fr)}.osh-footer-main{grid-template-columns:1.2fr 1fr 1fr}.osh-footer-main>div:last-child{grid-column:2/4}.osh-page-layout{grid-template-columns:1fr}.osh-sidebar-box{position:static}.osh-sidebar{order:-1}.osh-sidebar-box ul{columns:2}}@media(max-width:760px){body{font-size:16px}.osh-wrap,.osh-reading-wrap{width:min(100% - 28px,1180px)}.osh-topbar .osh-wrap{justify-content:center}.osh-topbar span:last-child{display:none}.osh-brand span{display:none}.osh-brand strong{font-size:1.12rem}.osh-brand img{width:40px;height:40px}.osh-header-main{min-height:70px;gap:10px}.osh-nav{top:80px}.osh-hero{min-height:640px}.osh-hero:after{background:linear-gradient(180deg,rgba(7,21,36,.75),rgba(7,21,36,.98) 72%)}.osh-hero-bg{object-position:68% center;opacity:.72}.osh-hero-content{padding:70px 0}.osh-hero h1{font-size:clamp(3.25rem,16vw,5.3rem)}.osh-proof{gap:16px}.osh-section{padding:65px 0}.osh-section-head{display:block}.osh-section-head p{margin-top:18px}.osh-genre-grid,.osh-story-grid,.osh-editorial-grid{grid-template-columns:1fr}.osh-genre-card{min-height:190px}.osh-feature-band{grid-template-columns:1fr}.osh-feature-copy{padding:38px 26px}.osh-feature-image{min-height:300px}.osh-newsletter{grid-template-columns:1fr;padding:38px 26px}.osh-newsletter-actions{flex-wrap:wrap}.osh-page-hero{padding:58px 0 42px}.osh-page-layout{padding:48px 0 70px;gap:30px}.osh-sidebar-box ul{columns:1}.osh-contact-grid,.osh-two{grid-template-columns:1fr}.osh-form{padding:24px}.osh-single-header{padding:55px 0 36px}.osh-single-header h1{font-size:3.15rem}.osh-article-body{font-size:1.07rem}.osh-footer-main{grid-template-columns:1fr;gap:28px;padding:55px 0 35px}.osh-footer-main>div:last-child{grid-column:auto}.osh-footer-bottom{display:block}.osh-footer-bottom span{display:block;margin:6px 0}.osh-mobile-cta{display:block;position:static;margin:0 14px 14px;padding:13px;border-radius:999px;background:var(--coral);color:var(--ink);text-align:center;text-decoration:none;font-weight:900;box-shadow:var(--shadow)}}
/* Author box, avatar, and compact author archive */
.osh-author-box{display:flex;gap:16px;align-items:center;background:var(--cream);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;margin:34px 0 6px;max-width:760px}
.osh-author-box img.avatar{border-radius:50%;object-fit:cover;flex:0 0 auto}
.osh-author-box strong{display:block;font-family:var(--serif);font-size:1.15rem;color:var(--ink)}
.osh-author-box p{margin:4px 0 0;color:var(--muted);font-size:.98rem}
.osh-author-hero{padding-top:54px;padding-bottom:34px}
.osh-author-head{display:flex;gap:22px;align-items:center}
.osh-author-portrait img{border-radius:50%;object-fit:cover;width:120px;height:120px;box-shadow:var(--shadow)}
.osh-author-intro h1{margin:6px 0 6px}
.osh-author-bio{margin:0;max-width:620px;color:var(--muted)}
@media (max-width:640px){.osh-author-head{flex-direction:column;text-align:center}.osh-author-portrait img{width:104px;height:104px}}

/* Story taxonomy discovery */
.osh-story-breadcrumbs{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:0 0 18px;font-size:.78rem;font-weight:700;color:var(--muted)}
.osh-story-breadcrumbs a{color:inherit;text-decoration:none}.osh-story-breadcrumbs a:hover{color:var(--coral);text-decoration:underline}
.osh-story-tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin:18px 0 0;font-size:.78rem}
.osh-story-tags strong{color:var(--muted)}.osh-story-tags a{padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);text-decoration:none}.osh-story-tags a:hover{border-color:var(--coral);color:var(--coral)}
@media(max-width:640px){.osh-story-breadcrumbs{font-size:.72rem;margin-bottom:14px}.osh-story-tags{justify-content:flex-start}.osh-story-tags strong{width:100%}}
