/*
Theme Name: Surrounded by Zombies Clay Lab
Theme URI: https://surroundedbyzombies.com/
Author: NotYouAgain.ai / Alfons Scholing
Description: A British stop-motion clay 3D inspired editorial WordPress theme for Surrounded by Zombies, featuring Dr. Zombie, playful category tiles, latest article cards, and a tactile lab-magazine visual system.
Version: 1.12.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sbz-clay
Tags: blog, entertainment, education, custom-logo, featured-images, threaded-comments, responsive-layout, editor-style
*/

:root{
  --sbz-midnight:#101b22;
  --sbz-ink:#1d272c;
  --sbz-cream:#fff3dc;
  --sbz-paper:#f8edd7;
  --sbz-lime:#9cc943;
  --sbz-toxic:#b9f04b;
  --sbz-teal:#2f8290;
  --sbz-clay:#8a5733;
  --sbz-orange:#e58a33;
  --sbz-muted:#6d736a;
  --sbz-radius:24px;
  --sbz-shadow:0 18px 45px rgba(13,19,21,.22);
  --sbz-soft-shadow:0 10px 24px rgba(13,19,21,.14);
  --sbz-max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:ui-rounded, "Avenir Next", "Nunito", "Trebuchet MS", system-ui, sans-serif;
  color:var(--sbz-ink);
  background:
    radial-gradient(circle at top left, rgba(185,240,75,.18), transparent 30rem),
    linear-gradient(180deg,#fff8ea 0%,#f2dfbd 100%);
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:4px}
img{max-width:100%;height:auto;display:block}
.screen-reader-text{position:absolute;left:-9999px}

.sbz-wrap{max-width:var(--sbz-max);margin:0 auto;padding:0 22px}
.sbz-browser{
  max-width:1280px;
  margin:22px auto;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.35);
  border-radius:30px;
  background:var(--sbz-paper);
  box-shadow:0 28px 70px rgba(16,27,34,.22);
}
body.admin-bar .sbz-site-header{top:32px}
.sbz-site-header{
  position:sticky;top:0;z-index:20;
  background:rgba(16,27,34,.96);
  color:#fff6df;
  border-bottom:1px solid rgba(185,240,75,.18);
  backdrop-filter:blur(18px);
}
.sbz-header-inner{display:flex;align-items:center;gap:28px;min-height:84px}
.sbz-brand{display:flex;align-items:center;gap:12px;min-width:max-content;font-weight:1000;line-height:.92;letter-spacing:.02em;text-transform:uppercase}
.sbz-logo-face{width:56px;height:56px;border-radius:18px;background:radial-gradient(circle at 35% 25%,#e9ff9c,#8dbb37 60%,#4f792d);box-shadow:inset -6px -8px 0 rgba(0,0,0,.13),0 8px 16px rgba(0,0,0,.2);position:relative;flex:0 0 auto}
.sbz-logo-face:before,.sbz-logo-face:after{content:"";position:absolute;top:20px;width:10px;height:13px;border-radius:50%;background:#142126;box-shadow:0 0 0 3px rgba(255,255,255,.55)}
.sbz-logo-face:before{left:14px}.sbz-logo-face:after{right:14px}
.sbz-logo-face span{position:absolute;left:17px;bottom:10px;width:22px;height:9px;border-radius:0 0 20px 20px;background:#142126}
.sbz-brand-text{font-size:24px}.sbz-brand-text strong{display:block;color:var(--sbz-lime);font-size:28px;text-shadow:0 3px 0 rgba(0,0,0,.35)}
.sbz-main-nav{margin-left:auto;display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:14px;font-weight:900}
.sbz-main-nav a{opacity:.94}.sbz-main-nav a:hover,.sbz-main-nav .current-menu-item>a{color:var(--sbz-toxic);text-decoration:none}
.sbz-menu-toggle{display:none;margin-left:auto;border:0;border-radius:999px;background:var(--sbz-lime);color:#142126;font-weight:1000;padding:12px 16px}

.sbz-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--sbz-midnight);min-height:620px;color:#fff4d9}
.sbz-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(10,16,18,.82),rgba(10,16,18,.25) 48%,rgba(10,16,18,.06)),var(--sbz-hero-image);background-size:cover;background-position:center;z-index:-2}
.sbz-hero:after{content:"";position:absolute;inset:auto 0 0 0;height:110px;background:linear-gradient(0deg,rgba(248,237,215,1),rgba(248,237,215,0));z-index:-1}
.sbz-hero-content{padding:86px 0 120px;width:min(620px,92%)}
.sbz-pill{display:inline-flex;align-items:center;gap:9px;padding:9px 16px;border-radius:999px;background:rgba(255,243,220,.9);color:#1b272b;font-weight:900;box-shadow:var(--sbz-soft-shadow);margin-bottom:22px}
.sbz-hero h1{margin:0 0 14px;font-size:clamp(54px,9vw,106px);line-height:.88;letter-spacing:-.05em;font-weight:1000;text-shadow:0 8px 0 rgba(0,0,0,.22)}
.sbz-hero h1 em{font-style:normal;color:var(--sbz-lime);display:block;text-shadow:0 8px 0 rgba(0,0,0,.35)}
.sbz-hero p{font-size:clamp(23px,3vw,35px);line-height:1.08;font-weight:950;margin:0 0 28px;text-shadow:0 3px 0 rgba(0,0,0,.22)}
.sbz-actions{display:flex;gap:14px;flex-wrap:wrap}.sbz-button{border:0;border-radius:999px;padding:16px 24px;font-weight:1000;box-shadow:var(--sbz-soft-shadow);display:inline-flex;gap:10px;align-items:center}.sbz-button-primary{background:var(--sbz-lime);color:#182326}.sbz-button-light{background:#fff3dc;color:#1d272c}.sbz-button:hover{text-decoration:none;transform:translateY(-1px)}

.sbz-section{padding:58px 0}.sbz-section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}.sbz-section-title h2{margin:0;font-size:clamp(28px,4vw,42px);line-height:1;font-weight:1000}.sbz-section-title h2:before{content:"☠";color:var(--sbz-lime);margin-right:12px;text-shadow:0 2px 0 rgba(0,0,0,.12)}
.sbz-view-all{font-weight:1000;color:#557d25}
.sbz-category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;margin-top:-82px;position:relative;z-index:3}
.sbz-category-card{min-height:250px;border-radius:22px;background:linear-gradient(180deg,rgba(255,250,235,.96),rgba(245,229,198,.96));padding:18px 14px 20px;text-align:center;box-shadow:var(--sbz-soft-shadow);border:1px solid rgba(138,87,51,.16);display:flex;flex-direction:column;align-items:center;justify-content:space-between;transition:transform .18s ease,box-shadow .18s ease}
.sbz-category-card:hover{transform:translateY(-5px);box-shadow:var(--sbz-shadow);text-decoration:none}.sbz-clay-icon{width:96px;height:96px;border-radius:28px;background:radial-gradient(circle at 35% 22%,#ddff91,#7fab39 62%,#4d6f2b);box-shadow:inset -8px -11px 0 rgba(0,0,0,.12),0 10px 18px rgba(29,39,44,.14);position:relative}.sbz-clay-icon:before,.sbz-clay-icon:after{content:"";position:absolute;top:36px;width:16px;height:18px;border-radius:50%;background:#142126;box-shadow:0 0 0 5px rgba(255,255,255,.72)}.sbz-clay-icon:before{left:24px}.sbz-clay-icon:after{right:24px}.sbz-clay-icon i{position:absolute;left:33px;bottom:22px;width:30px;height:14px;border-radius:0 0 26px 26px;background:#142126}.sbz-category-card h3{font-size:19px;line-height:.96;margin:12px 0 8px;text-transform:uppercase;font-weight:1000}.sbz-category-card p{font-size:14px;margin:0;color:#4d534b}.sbz-badge{margin-top:12px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--sbz-lime);box-shadow:inset -3px -4px 0 rgba(0,0,0,.12);font-weight:1000;color:#223}
.sbz-badge.teal{background:var(--sbz-teal);color:white}.sbz-badge.orange{background:var(--sbz-orange);color:white}.sbz-badge.purple{background:#a06ea7;color:white}.sbz-badge.blue{background:#3f6b96;color:white}.sbz-badge.army{background:#768b40;color:white}

.sbz-article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.sbz-card{background:#fff7e8;border-radius:18px;overflow:hidden;box-shadow:var(--sbz-soft-shadow);border:1px solid rgba(138,87,51,.16)}.sbz-card:hover{transform:translateY(-3px);transition:.18s ease;text-decoration:none;box-shadow:var(--sbz-shadow)}.sbz-thumb{aspect-ratio:16/9;background:linear-gradient(135deg,#23333a,#79a83e);overflow:hidden}.sbz-thumb img{width:100%;height:100%;object-fit:cover}.sbz-card-body{padding:20px}.sbz-kicker{text-transform:uppercase;font-weight:1000;font-size:12px;color:#557d25;letter-spacing:.05em}.sbz-card h3{font-size:24px;line-height:1.05;margin:8px 0 10px}.sbz-meta{font-size:13px;color:#667066;font-weight:800}
.sbz-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:34px;align-items:start}.sbz-post-list{display:grid;gap:24px}.sbz-entry{background:#fff7e8;border-radius:var(--sbz-radius);box-shadow:var(--sbz-soft-shadow);padding:clamp(22px,4vw,42px)}.sbz-entry h1,.sbz-entry h2{line-height:1.02}.sbz-entry h1{font-size:clamp(42px,7vw,72px);margin:0 0 16px}.sbz-entry h2{font-size:clamp(28px,5vw,48px)}.sbz-entry-content{font-size:19px}.sbz-entry-content a{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}.sbz-featured{margin:-42px -42px 28px;border-radius:var(--sbz-radius) var(--sbz-radius) 0 0;overflow:hidden}.sbz-featured img{width:100%;max-height:560px;object-fit:cover}.sbz-sidebar{position:sticky;top:112px;background:#112029;color:#fff3dc;border-radius:var(--sbz-radius);padding:26px;box-shadow:var(--sbz-soft-shadow)}.sbz-sidebar h2{margin-top:0}.sbz-sidebar ul{list-style:none;margin:0;padding:0}.sbz-sidebar li{margin:0 0 12px}.sbz-sidebar a{color:#fff3dc;font-weight:900}.sbz-pagination{display:flex;gap:12px;justify-content:center;margin:34px 0}.sbz-pagination a,.sbz-pagination span{background:#fff7e8;border-radius:999px;padding:10px 16px;font-weight:900;box-shadow:var(--sbz-soft-shadow)}

.sbz-footer{background:#101b22;color:#fff3dc;padding:46px 0}.sbz-footer-grid{display:grid;grid-template-columns:1.2fr 1.5fr 1fr;gap:32px}.sbz-footer h2,.sbz-footer h3{margin-top:0}.sbz-subscribe{display:flex;gap:8px;max-width:440px}.sbz-subscribe input{flex:1;border:1px solid rgba(255,255,255,.25);background:#182830;color:white;border-radius:999px;padding:15px 18px}.sbz-subscribe button{border:0;border-radius:999px;background:var(--sbz-lime);font-weight:1000;padding:15px 18px}.sbz-social{display:flex;gap:12px}.sbz-social a{width:42px;height:42px;border-radius:14px;background:#263942;display:grid;place-items:center;font-weight:1000}.sbz-footer-small{margin-top:28px;color:#b9c4b2;font-size:13px}
.comment-respond,.comments-area{margin-top:34px;background:#fff7e8;border-radius:var(--sbz-radius);padding:28px;box-shadow:var(--sbz-soft-shadow)}input,textarea,select{font:inherit}textarea,input[type="text"],input[type="email"],input[type="url"]{width:100%;border:1px solid rgba(29,39,44,.18);border-radius:14px;padding:13px;background:#fffaf0}.form-submit input,.wp-block-button__link{border:0;border-radius:999px;background:var(--sbz-lime);color:#182326;padding:14px 20px;font-weight:1000}

@media (max-width:1050px){.sbz-category-grid{grid-template-columns:repeat(3,1fr);margin-top:-60px}.sbz-article-grid{grid-template-columns:1fr}.sbz-content-layout{grid-template-columns:1fr}.sbz-sidebar{position:static}.sbz-footer-grid{grid-template-columns:1fr}.sbz-main-nav{display:none}.sbz-menu-toggle{display:inline-flex}.sbz-main-nav.is-open{display:flex;position:absolute;left:18px;right:18px;top:84px;background:#101b22;border-radius:0 0 22px 22px;padding:18px;box-shadow:var(--sbz-shadow);flex-direction:column;align-items:flex-start}.sbz-header-inner{position:relative}}
@media (max-width:640px){.sbz-browser{margin:0;border-radius:0}.sbz-wrap{padding:0 16px}.sbz-header-inner{min-height:74px}.sbz-logo-face{width:46px;height:46px}.sbz-brand-text{font-size:18px}.sbz-brand-text strong{font-size:21px}.sbz-hero{min-height:590px}.sbz-hero-content{padding:62px 0 110px}.sbz-category-grid{grid-template-columns:1fr;margin-top:-72px}.sbz-section{padding:44px 0}.sbz-subscribe{flex-direction:column}.sbz-entry{padding:24px}.sbz-featured{margin:-24px -24px 22px}.sbz-actions{flex-direction:column}.sbz-button{justify-content:center}}


/* v1.12 polish: clean clay assets, no baked-in duplicated homepage text, improved iPad layout */
.sbz-browser{margin:0 auto;border-radius:0;max-width:1440px}
.sbz-header-inner{min-height:72px}
.sbz-logo-face{width:50px;height:50px;border-radius:16px}.sbz-brand-text{font-size:21px}.sbz-brand-text strong{font-size:25px}
.sbz-hero{min-height:590px}.sbz-hero:before{background-image:linear-gradient(90deg,rgba(10,16,18,.9) 0%,rgba(10,16,18,.68) 35%,rgba(10,16,18,.18) 65%,rgba(10,16,18,.02) 100%),var(--sbz-hero-image);background-position:center right}.sbz-hero-content{padding:72px 0 128px}.sbz-hero h1{font-size:clamp(48px,8vw,96px)}.sbz-hero p{max-width:760px}
.sbz-category-grid{margin-top:-74px}.sbz-category-card{min-height:270px;justify-content:flex-start;gap:8px}.sbz-clay-icon{width:112px;height:92px;border-radius:22px;overflow:hidden;background:#efe3ca}.sbz-clay-icon img{width:100%;height:100%;object-fit:cover}.sbz-clay-icon:before,.sbz-clay-icon:after,.sbz-clay-icon i{display:none}.sbz-category-card h3{margin-top:10px}.sbz-badge{margin-top:auto}
.sbz-thumb{background:#1b2a31}.sbz-thumb img{display:block;width:100%;height:100%;object-fit:cover}.sbz-card-body{min-height:146px}.sbz-card h3{font-size:clamp(20px,2.3vw,26px)}
@media (max-width:1050px){.sbz-article-grid{grid-template-columns:repeat(2,1fr)}.sbz-category-grid{grid-template-columns:repeat(3,1fr)}.sbz-hero{min-height:560px}.sbz-hero-content{width:min(560px,92%)}.sbz-hero:before{background-position:64% center}.sbz-main-nav.is-open{top:72px}}
@media (max-width:760px){.sbz-article-grid{grid-template-columns:1fr}.sbz-category-grid{grid-template-columns:repeat(2,1fr);gap:14px}.sbz-category-card{min-height:244px}.sbz-hero h1{font-size:clamp(46px,14vw,72px)}.sbz-hero:before{background-position:70% center}.sbz-section-title{align-items:flex-start;flex-direction:column}.sbz-footer{border-radius:0}}
@media (max-width:520px){.sbz-category-grid{grid-template-columns:1fr}.sbz-hero{min-height:620px}.sbz-hero-content{padding-top:54px}.sbz-actions{flex-direction:column}.sbz-button{justify-content:center}}


/* v1.12 category image integration */
.sbz-category-grid{margin-top:-72px}
.sbz-category-card{padding:0 0 18px;overflow:hidden;gap:10px;justify-content:flex-start;align-items:stretch}
.sbz-category-media{display:block;width:100%;height:144px;overflow:hidden;border-radius:22px 22px 0 0;background:#1b2427;box-shadow:inset 0 -1px 0 rgba(255,255,255,.18)}
.sbz-category-media img{display:block;width:100%;height:100%;object-fit:cover}
.sbz-category-copy{display:block;padding:0 16px;text-align:center}
.sbz-category-copy h3{margin:6px 0 8px;font-size:19px;line-height:1.02;text-transform:uppercase;font-weight:1000}
.sbz-category-copy p{margin:0;color:#4d534b;font-size:14px;line-height:1.45}
.sbz-category-card .sbz-badge{margin:12px auto 0}
@media (max-width:1050px){.sbz-category-media{height:132px}}
@media (max-width:760px){.sbz-category-media{height:126px}.sbz-category-card{min-height:unset}}
@media (max-width:520px){.sbz-category-media{height:170px}}


/* v1.12 custom home button logo */
.sbz-brand{gap:14px;text-decoration:none}
.sbz-home-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.sbz-home-button img{display:block;width:70px;height:70px;object-fit:contain;filter:drop-shadow(0 6px 12px rgba(0,0,0,.22))}
@media (max-width:640px){.sbz-home-button img{width:56px;height:56px}.sbz-brand-text{font-size:17px}.sbz-brand-text strong{font-size:20px}}


/* v1.12 transparent home logo and archive/page image polish */
.sbz-home-button{background:none;border-radius:0;padding:0;overflow:visible}
.sbz-home-button img{width:62px;height:62px;object-fit:contain;display:block;filter:drop-shadow(0 6px 12px rgba(0,0,0,.24))}
.sbz-archive-entry .sbz-featured img,.page .sbz-featured img{width:100%;height:auto;display:block;object-fit:cover}
@media (max-width:640px){.sbz-home-button img{width:50px;height:50px}}


/* v1.12 verified transparent PNG home logo */
.sbz-home-button,
.sbz-home-button img{
  background:transparent !important;
}
.sbz-home-button{
  border:0;
  box-shadow:none;
}


/* v1.12 latest articles: show six cards cleanly */
.sbz-article-grid{grid-auto-rows:1fr}
.sbz-card{height:100%;display:flex;flex-direction:column}
.sbz-card-body{flex:1}


/* v1.12 bigger horizontal slider menu */
.sbz-menu-toggle{
  display:none !important;
}

.sbz-header-inner{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:28px;
}

.sbz-main-nav,
.sbz-main-nav ul{
  min-width:0;
}

.sbz-main-nav{
  margin-left:0;
  display:flex !important;
  align-items:center;
  gap:0;
  flex-wrap:nowrap !important;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  padding:14px 0 14px 4px;
  white-space:nowrap;
  max-width:100%;
  list-style:none;
}

.sbz-main-nav::-webkit-scrollbar{
  display:none;
}

.sbz-main-nav li{
  list-style:none !important;
  flex:0 0 auto;
  scroll-snap-align:start;
  margin:0;
  padding:0;
}

.sbz-main-nav li::marker{
  content:"";
}

.sbz-main-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  border-radius:999px;
  font-size:clamp(18px,1.55vw,23px);
  line-height:1;
  font-weight:1000;
  color:#fff6df;
  opacity:1;
  text-decoration:none;
}

.sbz-main-nav a:hover,
.sbz-main-nav .current-menu-item > a,
.sbz-main-nav .current_page_item > a{
  color:var(--sbz-toxic);
  background:rgba(185,240,75,.08);
  text-decoration:none;
}

.sbz-main-nav li:not(:last-child)::after{
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#fff6df;
  opacity:.9;
  margin:0 2px;
  vertical-align:middle;
}

@media (max-width:1050px){
  .sbz-header-inner{
    grid-template-columns:1fr;
    gap:4px;
    padding-top:12px;
    padding-bottom:8px;
  }

  .sbz-brand{
    justify-self:start;
  }

  .sbz-main-nav{
    width:100%;
    padding:8px 0 10px;
    border-top:1px solid rgba(185,240,75,.18);
  }

  .sbz-main-nav a{
    font-size:19px;
    padding:10px 12px;
  }
}

@media (max-width:640px){
  .sbz-main-nav a{
    font-size:17px;
    min-height:40px;
    padding:9px 10px;
  }

  .sbz-header-inner{
    min-height:auto;
  }
}


/* v1.12 keep menu slider on the right of the logo in portrait/tablet */
.sbz-header-inner{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) !important;
  align-items:center !important;
  gap:22px !important;
}

.sbz-brand{
  grid-column:1;
  min-width:max-content;
}

.sbz-main-nav{
  grid-column:2;
  width:100% !important;
  min-width:0 !important;
  border-top:0 !important;
  padding:10px 0 !important;
  justify-self:stretch;
}

@media (max-width:1050px){
  .sbz-header-inner{
    grid-template-columns:auto minmax(0,1fr) !important;
    gap:18px !important;
    padding-top:8px;
    padding-bottom:8px;
  }

  .sbz-brand{
    justify-self:start;
  }

  .sbz-main-nav{
    width:100% !important;
    padding:8px 0 !important;
    border-top:0 !important;
  }
}

@media (max-width:760px){
  .sbz-header-inner{
    gap:12px !important;
  }

  .sbz-brand-text{
    font-size:16px !important;
  }

  .sbz-brand-text strong{
    font-size:19px !important;
  }

  .sbz-home-button img{
    width:48px !important;
    height:48px !important;
  }

  .sbz-main-nav a{
    font-size:16px;
    padding:8px 9px;
  }

  .sbz-main-nav li:not(:last-child)::after{
    width:5px;
    height:5px;
    margin:0 1px;
  }
}
