/*
Theme Name: Enterfryment Cinematic No Panel
Theme URI: https://enterfryment.com
Author: Enterfryment
Description: A wide cinematic WordPress theme for short fiction, stories, and series, with selectable featured story and simplified category sidebar.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: enterfryment
*/

:root{
  --bg:#050607;
  --panel:#080a0c;
  --gold:#d9a84f;
  --gold-bright:#f1c978;
  --text:#f2eadf;
  --muted:#aaa39a;
  --line:rgba(217,168,79,.34);
  --soft:rgba(255,255,255,.075);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#050607;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
}

body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 5%,rgba(217,168,79,.08),transparent 26%),
    linear-gradient(180deg,#050607 0%,#080b0e 52%,#050607 100%);
  z-index:-2;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.ef-wrap{
  width:min(1760px,calc(100% - 64px));
  margin-inline:auto;
}

.ef-header{
  position:absolute;
  z-index:20;
  left:0;
  right:0;
  top:0;
  padding:26px 0 18px;
  background:linear-gradient(180deg,rgba(0,0,0,.68),rgba(0,0,0,0));
}

.admin-bar .ef-header{top:32px}

.ef-header-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:42px;
}

.ef-logo-title{
  display:block;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(2.35rem,3.3vw,4rem);
  font-weight:700;
  letter-spacing:.085em;
  line-height:.9;
  text-transform:uppercase;
  color:var(--gold-bright);
  text-shadow:0 0 28px rgba(217,168,79,.28);
}

.ef-logo-tag{
  display:block;
  margin-top:12px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-style:italic;
  font-size:clamp(1rem,1.25vw,1.35rem);
  color:#f3e1c2;
}

.ef-nav{
  margin-top:7px;
}

.ef-nav ul{
  display:flex;
  gap:34px;
  align-items:center;
  list-style:none;
  margin:0;
  padding:0;
}

.ef-nav a{
  position:relative;
  color:#f4eee5;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  opacity:.94;
}

.ef-nav a:hover,
.ef-nav .current-menu-item > a{
  color:var(--gold-bright);
}

.ef-nav a:hover:after,
.ef-nav .current-menu-item > a:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-12px;
  height:2px;
  background:var(--gold);
}

.ef-menu-toggle{
  display:none;
  background:transparent;
  color:var(--text);
  border:1px solid var(--line);
  padding:10px 14px;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:800;
}

.ef-hero{
  position:relative;
  min-height:640px;
  height:54vw;
  max-height:820px;
  overflow:hidden;
  border-bottom:1px solid var(--soft);
}

.ef-hero-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(0,0,0,.94) 0%,rgba(0,0,0,.76) 26%,rgba(0,0,0,.18) 58%,rgba(0,0,0,.72) 100%),
    linear-gradient(0deg,rgba(5,6,7,.98) 0%,rgba(5,6,7,.28) 38%,rgba(5,6,7,.66) 100%),
    var(--ef-hero-img);
  background-size:cover;
  background-position:center;
  transform:scale(1.01);
}

.ef-hero-content{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  align-items:center;
  padding-top:95px;
}

.ef-hero-copy{
  max-width:760px;
}

.ef-kicker{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:20px;
  color:var(--gold);
  font-size:.75rem;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.ef-kicker:after{
  content:"";
  width:48px;
  height:1px;
  background:var(--gold);
}

.ef-hero h1{
  margin:0 0 22px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(3.8rem,5.6vw,7.4rem);
  line-height:.9;
  letter-spacing:.01em;
  font-weight:600;
}

.ef-hero-excerpt{
  max-width:520px;
  color:#e9e0d4;
  font-size:1.08rem;
  margin-bottom:20px;
}

.ef-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  color:#e5ddd1;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ef-dot{color:var(--gold)}

.ef-btn{
  display:inline-flex;
  align-items:center;
  gap:18px;
  margin-top:26px;
  padding:14px 27px;
  border:1px solid var(--gold);
  color:var(--gold-bright);
  background:rgba(0,0,0,.16);
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  transition:.25s ease;
}

.ef-btn:hover{
  background:var(--gold);
  color:#050607;
  box-shadow:0 0 28px rgba(217,168,79,.18);
}

.ef-hero-dots{
  position:absolute;
  z-index:3;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  display:flex;
  gap:11px;
}

.ef-hero-dots span{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.25);
}

.ef-hero-dots span:first-child{background:var(--gold)}

.ef-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.9fr) minmax(420px,.9fr);
  border-bottom:1px solid var(--soft);
}

.ef-left{
  padding:28px 34px 12px 0;
  border-right:1px solid var(--soft);
}

.ef-right{
  padding:28px 0 12px 34px;
}

.ef-section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:16px;
}

.ef-section-title{
  display:flex;
  align-items:center;
  gap:18px;
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(1.85rem,2vw,2.55rem);
  font-weight:500;
  line-height:1;
  letter-spacing:.035em;
}

.ef-section-title:after{
  content:"";
  width:54px;
  height:1px;
  background:var(--gold);
}

.ef-view{
  color:var(--gold);
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.15em;
  text-transform:uppercase;
  white-space:nowrap;
}

.ef-card-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:24px;
}

.ef-story-card{
  position:relative;
  min-height:360px;
  border:1px solid var(--line);
  overflow:hidden;
  background:#080a0c;
}

.ef-story-card:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(0,0,0,.04) 0%,rgba(0,0,0,.28) 43%,rgba(0,0,0,.94) 100%),
    var(--ef-card-img);
  background-size:cover;
  background-position:center;
  transition:.35s ease;
}

.ef-story-card:hover:before{
  transform:scale(1.045);
  filter:saturate(1.08);
}

.ef-story-card-inner{
  position:absolute;
  inset:auto 0 0;
  z-index:2;
  padding:20px;
}

.ef-cat{
  display:inline-block;
  margin-bottom:8px;
  color:var(--gold);
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.ef-story-card h3{
  margin:0 0 8px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.6rem;
  line-height:1.05;
  font-weight:500;
}

.ef-story-card p{
  margin:0 0 14px;
  color:#ded7cb;
  font-size:.88rem;
}

.ef-card-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#e6ded0;
  font-size:.7rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ef-arrow{
  color:var(--gold);
  font-size:1.25rem;
}

.ef-series-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.ef-series-card{
  position:relative;
  min-height:205px;
  border:1px solid var(--line);
  overflow:hidden;
  background:#080a0c;
}

.ef-series-card:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.9)),
    var(--ef-card-img);
  background-size:cover;
  background-position:center;
  transition:.35s ease;
}

.ef-series-card:hover:before{transform:scale(1.04)}

.ef-series-card-inner{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:20px;
  z-index:2;
}

.ef-series-card h3{
  margin:0 0 7px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.72rem;
  line-height:1;
  font-weight:500;
}

.ef-series-card p{
  color:#ded7cb;
  margin:0 0 10px;
  font-size:.9rem;
}

.ef-parts{
  color:var(--gold);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.ef-category-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px;
  margin-bottom:24px;
}

.ef-category-card{
  min-height:83px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(0,0,0,.08));
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.05rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:.25s ease;
}

.ef-category-card:hover{
  color:var(--gold-bright);
  border-color:rgba(217,168,79,.78);
  box-shadow:inset 0 0 26px rgba(217,168,79,.055),0 0 24px rgba(217,168,79,.07);
}

.ef-atmos-panel{
  position:relative;
  min-height:230px;
  border:1px solid var(--line);
  overflow:hidden;
  padding:24px;
  background:
    linear-gradient(90deg,rgba(6,8,9,.97) 0%,rgba(6,8,9,.74) 45%,rgba(6,8,9,.22) 100%),
    var(--ef-panel-img);
  background-size:cover;
  background-position:center right;
}

.ef-atmos-panel h3{
  margin:0 0 9px;
  color:var(--gold);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.72rem;
  font-weight:500;
}

.ef-atmos-panel p{
  max-width:340px;
  color:#eee5d8;
  margin:0 0 14px;
  font-size:.96rem;
}

.ef-small-link{
  color:var(--gold);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.ef-footer{
  padding:22px 0;
  border-top:1px solid var(--soft);
}

.ef-footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}

.ef-footer .ef-logo-title{font-size:1.75rem}
.ef-footer .ef-logo-tag{font-size:.88rem}

.ef-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  color:#aaa29a;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ef-page{
  padding:155px 0 70px;
}

.ef-content{
  width:min(920px,calc(100% - 52px));
  margin:0 auto;
}

.ef-content h1{
  margin:0 0 22px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(3.3rem,6vw,5.6rem);
  line-height:.95;
  font-weight:600;
}

.ef-content-body{
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.36rem;
  color:#eee6dc;
}

.ef-content-body p{margin:0 0 1.15em}

.ef-single-hero{
  height:470px;
  background:
    linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.86)),
    var(--ef-card-img);
  background-size:cover;
  background-position:center;
  border-bottom:1px solid var(--soft);
}

.pagination,
.nav-links{
  margin:24px 0;
  display:flex;
  gap:10px;
}

.page-numbers{
  border:1px solid var(--line);
  padding:8px 12px;
  color:var(--gold-bright);
}

@media (max-width:1320px){
  .ef-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ef-story-card{min-height:390px}
}

@media (max-width:1100px){
  .ef-main-grid{grid-template-columns:1fr}
  .ef-left{border-right:0;padding-right:0}
  .ef-right{padding-left:0}
}

@media (max-width:780px){
  .admin-bar .ef-header{top:46px}
  .ef-wrap{width:min(100% - 30px,1760px)}
  .ef-header{position:relative;background:#050607;border-bottom:1px solid var(--soft)}
  .ef-header-inner{align-items:center}
  .ef-menu-toggle{display:block}
  .ef-nav{
    display:none;
    position:absolute;
    top:95px;
    left:15px;
    right:15px;
    background:#07090b;
    border:1px solid var(--line);
    padding:20px;
  }
  .ef-nav.is-open{display:block}
  .ef-nav ul{display:grid;gap:18px}
  .ef-hero{height:auto;min-height:560px}
  .ef-hero-content{padding-top:50px}
  .ef-card-grid,
  .ef-series-grid,
  .ef-category-grid{grid-template-columns:1fr}
  .ef-footer-inner{align-items:flex-start;flex-direction:column}
}


/* No-panel homepage refinement */
.ef-right {
  padding-bottom: 34px;
}

.ef-category-grid {
  margin-bottom: 0;
}
