/*
Theme Name: Spirit Meat Reading Complete
Theme URI: https://spiritmeat.net/
Author: OpenAI
Description: Standalone Spirit Meat WordPress theme with reading-first devotional layout, mobile navigation, Mailchimp AJAX subscribe form, static ministry pages, and improved scheduled post behavior.
Version: 2.5.0
Text Domain: spiritmeat-reading
*/

:root{
  --sm-bg:#ffffff;
  --sm-text:#101828;
  --sm-muted:#667085;
  --sm-border:#e6e8ec;
  --sm-soft:#f8f8f6;
  --sm-accent:#111111;
  --sm-reader-size:1;
  --sm-wrap:1120px;
}
*{box-sizing:border-box}
html{font-size:calc(16px * var(--sm-reader-size))}
body{
  margin:0;
  background:var(--sm-bg);
  color:var(--sm-text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  line-height:1.7;
}
body.sm-dark{
  --sm-bg:#111418;
  --sm-text:#f3f4f6;
  --sm-muted:#c0c6d1;
  --sm-border:#2a313a;
  --sm-soft:#171c22;
  --sm-accent:#ffffff;
}
a{color:inherit}
img{max-width:100%;height:auto}
.screen-reader-text{
  position:absolute!important;
  height:1px;width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}
.sm-wrap{width:min(92%,var(--sm-wrap));margin:0 auto}
.sm-progress{
  position:fixed;left:0;top:0;height:3px;width:0;
  background:#1e88ff;z-index:5000;
}
.sm-site-header{
  position:sticky;top:0;z-index:2000;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--sm-border);
}
body.sm-dark .sm-site-header{background:rgba(17,20,24,.96)}
.sm-header-row{
  min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  position:relative;
}
.sm-branding{
  display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;min-width:0;
}
.sm-branding-logo img,.sm-branding-logo .custom-logo{display:block;max-height:54px;width:auto}
.sm-branding-text{display:flex;flex-direction:column;line-height:1.1}
.sm-branding-title{font-size:1.5rem;font-weight:700;letter-spacing:-.02em}
.sm-branding-tagline{font-size:.95rem;color:var(--sm-muted)}
.sm-header-icons{display:flex;align-items:center;gap:12px}
.sm-header-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:999px;border:1px solid var(--sm-border);
  text-decoration:none;
}
.sm-header-icon svg{width:20px;height:20px}
.sm-menu-toggle{
  display:none;appearance:none;border:0;background:transparent;
  padding:10px;cursor:pointer;position:relative;z-index:3000;pointer-events:auto;
}
.sm-menu-toggle span{
  display:block;width:28px;height:2px;margin:5px 0;border-radius:999px;background:#1e88ff;
}
.sm-primary-nav{margin-left:auto}
.sm-menu,.sm-menu ul,.sm-menu li{list-style:none;margin:0;padding:0}
.sm-menu{display:flex;align-items:center;gap:18px}
.sm-menu > li{position:relative}
.sm-menu a{text-decoration:none;padding:10px 0;display:block}
.sm-menu .sub-menu{
  display:none;position:absolute;left:0;top:calc(100% + 10px);min-width:240px;
  background:var(--sm-bg);border:1px solid var(--sm-border);border-radius:16px;
  padding:12px 16px;box-shadow:0 12px 30px rgba(0,0,0,.08);z-index:2500;
}
.sm-menu li:hover > .sub-menu,
.sm-menu li:focus-within > .sub-menu{display:block}
.sm-menu .sub-menu a{padding:10px 0}
.sm-home-tabs{border-bottom:1px solid var(--sm-border)}
.sm-tabs{display:flex;gap:28px}
.sm-tabs a{padding:16px 0 14px;text-decoration:none;color:var(--sm-muted);border-bottom:2px solid transparent}
.sm-tabs a.is-active{color:var(--sm-text);border-bottom-color:var(--sm-text)}
.sm-home-intro-wrap{padding:24px 0 6px}
.sm-home-intro{margin:0;color:var(--sm-muted);max-width:760px}
.sm-feed-list{padding:8px 0 40px}
.sm-feed-card{
  display:grid;grid-template-columns:1fr 120px;gap:18px;padding:24px 0;
  border-bottom:1px solid var(--sm-border);align-items:start;
}
.sm-feed-card-featured{grid-template-columns:1fr 140px}
.sm-feed-source{font-size:.95rem;color:var(--sm-muted);margin-bottom:8px}
.sm-feed-title{margin:0 0 10px;line-height:1.12;letter-spacing:-.02em;font-size:clamp(1.25rem,2vw,2rem)}
.sm-feed-card-featured .sm-feed-title{font-size:clamp(1.6rem,3vw,2.5rem)}
.sm-feed-title a{text-decoration:none}
.sm-feed-excerpt{margin:0 0 12px;color:var(--sm-muted);font-size:1rem}
.sm-feed-meta,.sm-card-meta,.sm-reading-meta{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;color:var(--sm-muted);font-size:.92rem;
}
.sm-meta-chip{display:inline-flex;align-items:center;gap:8px}
.sm-meta-icon svg,.sm-action-icon svg{width:18px;height:18px}
.sm-feed-thumb img,.sm-feed-thumb-placeholder{
  width:100%;aspect-ratio:1/1;border-radius:12px;object-fit:cover;background:#f3f4f6;display:block;
}
.sm-home-secondary{padding:18px 0 52px}
.sm-grid{display:grid;grid-template-columns:1.3fr .8fr;gap:28px}
.sm-panel{
  background:var(--sm-bg);border:1px solid var(--sm-border);border-radius:24px;
  padding:24px;
}
.sm-section-title{font-size:1.4rem;line-height:1.2;margin:0 0 10px}
.sm-note{color:var(--sm-muted)}
.sm-card-list{list-style:none;margin:0;padding:0}
.sm-card-list li{border-bottom:1px solid var(--sm-border)}
.sm-card-list a{display:block;padding:16px 0;text-decoration:none}
.sm-card-title{font-weight:600;margin-bottom:6px}
.sm-card-meta{color:var(--sm-muted);font-size:.92rem}
.sm-subscribe-wrapper{max-width:100%}
.sm-subscribe-title{font-size:28px;font-weight:700;margin:0 0 8px}
.sm-subscribe-subtext{color:var(--sm-muted);margin:0 0 20px}
.sm-subscribe-row{display:flex;gap:12px;align-items:center}
.sm-subscribe-row input{
  flex:1;min-width:0;padding:14px 20px;border-radius:999px;
  border:1px solid var(--sm-border);background:var(--sm-bg);color:var(--sm-text)
}
.sm-button{
  display:inline-flex;align-items:center;justify-content:center;
  padding:14px 22px;border-radius:999px;border:0;background:#111;color:#fff;
  text-decoration:none;cursor:pointer;font-weight:600;
}
.sm-button-secondary{background:transparent;color:inherit;border:1px solid rgba(15,23,42,.16)}
body.sm-dark .sm-button-secondary{border-color:var(--sm-border)}
.sm-subscribe-message{margin-top:14px;font-size:15px;line-height:1.5}
.sm-subscribe-message.is-success{color:#1a7f37}
.sm-subscribe-message.is-error{color:#b42318}
.sm-live-embed iframe{width:100%;border:0;border-radius:16px}
.sm-resource-links{margin:0;padding-left:18px}
.sm-resource-links li{margin-bottom:10px}
.sm-reading-page{padding:32px 0 60px}
.sm-reading-wrap{max-width:820px;margin:0 auto}
.sm-reading-header{padding-bottom:18px;border-bottom:1px solid var(--sm-border)}
.sm-kicker{font-size:.92rem;letter-spacing:.08em;text-transform:uppercase;color:var(--sm-muted);margin:0 0 10px}
.sm-reading-title{font-size:clamp(2rem,5vw,3.8rem);line-height:1.04;letter-spacing:-.03em;margin:0 0 14px}
.sm-reading-content{padding:28px 0;font-size:1.08rem}
.sm-reading-content p:first-child::first-letter{float:none;font-size:inherit;line-height:inherit;padding:0;margin:0}
.sm-reading-content img{border-radius:18px}
.sm-reading-footer{padding-top:24px;border-top:1px solid var(--sm-border)}
.sm-post-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.sm-post-action{
  display:inline-flex;align-items:center;gap:8px;border:1px solid var(--sm-border);
  background:transparent;color:inherit;border-radius:999px;padding:10px 14px;cursor:pointer;text-decoration:none;
}
.sm-post-nav{display:flex;justify-content:space-between;gap:16px;margin-top:24px}
.sm-static-page{background:var(--sm-bg);color:var(--sm-text)}
.sm-page-hero{padding:72px 0 36px;border-bottom:1px solid var(--sm-border)}
.sm-page-title{font-size:clamp(2.4rem,5vw,4.5rem);line-height:1.05;letter-spacing:-.03em;margin:0 0 16px}
.sm-page-intro{max-width:760px;font-size:1.1rem;line-height:1.75;color:var(--sm-muted);margin:0}
.sm-page-actions{margin-top:24px}
.sm-page-section{padding:48px 0}
.sm-page-section-muted{background:var(--sm-soft)}
.sm-two-col{display:grid;grid-template-columns:1.1fr 1fr;gap:32px}
.sm-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.sm-info-card{background:var(--sm-bg);border:1px solid var(--sm-border);border-radius:24px;padding:24px;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.sm-info-card h2,.sm-info-card h3,.sm-branch-group h2{margin-top:0;margin-bottom:10px}
.sm-contact-strip,.sm-inline-note{background:#f6f3ea;border:1px solid var(--sm-border);border-radius:16px;padding:16px 18px;margin-bottom:28px}
body.sm-dark .sm-contact-strip,body.sm-dark .sm-inline-note{background:#1d242c}
.sm-branch-group{margin-bottom:28px}
.sm-branch-list{margin:0;padding-left:20px;line-height:1.8}
.sm-table-wrap{overflow-x:auto;border:1px solid var(--sm-border);border-radius:18px;background:var(--sm-bg)}
.sm-table{width:100%;border-collapse:collapse;min-width:720px}
.sm-table th,.sm-table td{padding:16px;text-align:left;border-bottom:1px solid var(--sm-border);vertical-align:top}
.sm-table th{background:#fbfbfa;font-weight:700}
body.sm-dark .sm-table th{background:#171c22}
.sm-page-footnote{margin-top:18px;color:var(--sm-muted);font-size:.96rem}
.sm-contact-form-shell{background:var(--sm-bg);border:1px solid var(--sm-border);border-radius:24px;padding:24px}
.sm-reader-controls{
  display:flex;gap:10px;flex-wrap:wrap
}
.sm-reader-controls button{
  border:1px solid var(--sm-border);background:var(--sm-bg);color:var(--sm-text);
  border-radius:999px;padding:10px 14px;cursor:pointer
}
.sm-site-footer{border-top:1px solid var(--sm-border);padding:30px 0 40px;margin-top:40px}
.sm-footer-row{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}
.sm-footer-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.sm-footer-logo img,.sm-footer-logo .custom-logo{max-height:42px;width:auto;display:block}
.sm-footer-text p{margin:0;color:var(--sm-muted)}
.sm-footer-nav ul{list-style:none;padding:0;margin:0;display:flex;gap:18px;flex-wrap:wrap}
.sm-archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:28px 0}
.sm-archive-card{border:1px solid var(--sm-border);border-radius:24px;padding:24px;background:var(--sm-bg)}
.sm-archive-card h2{margin:12px 0 10px;font-size:1.4rem;line-height:1.2}
.sm-archive-card h2 a{text-decoration:none}
@media (max-width: 900px){
  .sm-header-row{min-height:auto;padding:14px 0}
  .sm-menu-toggle{display:inline-block}
  .sm-branding{max-width:calc(100% - 110px)}
  .sm-branding-title{font-size:1.2rem}
  .sm-branding-tagline{font-size:.82rem}
  .sm-primary-nav{display:none}
  .sm-primary-nav.is-open{
    display:block;position:absolute;top:100%;left:0;right:0;background:var(--sm-bg);
    z-index:2500;padding:20px;border-top:1px solid rgba(0,0,0,.08);box-shadow:0 12px 30px rgba(0,0,0,.08)
  }
  .sm-menu{display:flex;flex-direction:column;gap:14px}
  .sm-menu .sub-menu{display:none;position:static;min-width:0;background:transparent;border:0;box-shadow:none;padding:8px 0 0 15px}
  .sm-menu li.is-open > .sub-menu{display:block}
  .sm-menu li:hover > .sub-menu,
  .sm-menu li:focus-within > .sub-menu{display:none}
  .sm-feed-card,.sm-feed-card-featured{grid-template-columns:1fr 88px;gap:14px;padding:20px 0}
  .sm-grid,.sm-two-col,.sm-card-grid,.sm-archive-grid{grid-template-columns:1fr}
  .sm-subscribe-row{flex-direction:column;align-items:stretch}
  .sm-subscribe-row .sm-button,.sm-subscribe-row input{width:100%}
  .sm-post-nav,.sm-footer-row{flex-direction:column}
}
