/*
Theme Name: Spirit Meat Reading
Description: Reading-first WordPress theme for Spirit Meat aligned to 10 April 2026 meeting decisions.
Version: 2.1.0
Text Domain: spiritmeat-reading
*/
:root{
  --sm-reader-size:1;
  --sm-text:#1f2328;
  --sm-muted:#667085;
  --sm-border:#e7e7e2;
  --sm-bg:#fcfcfa;
  --sm-surface:#fff;
  --sm-accent:#111;
  --sm-accent-soft:#8b7a2f;
  --sm-max:1120px;
  --sm-reading-max:760px;
  --sm-radius:18px;
  --sm-shadow:0 10px 30px rgba(0,0,0,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--sm-bg);
  color:var(--sm-text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body.sm-dark{
  --sm-text:#f5f7fa;
  --sm-muted:#b6bfcc;
  --sm-border:#2a2f36;
  --sm-bg:#111315;
  --sm-surface:#171a1d;
  --sm-accent:#f5f7fa;
}
a{color:inherit}
img{max-width:100%;height:auto}
.sm-wrap{width:min(92%,var(--sm-max));margin:0 auto}
.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}
.sm-progress{position:fixed;top:0;left:0;width:0;height:3px;background:var(--sm-accent-soft);z-index:1200}

/* Header */
.sm-site-header{
  position:sticky;top:0;z-index:1000;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--sm-border);
}
body.sm-dark .sm-site-header{background:rgba(17,19,21,.96)}
.sm-header-row{
  display:grid;
  grid-template-columns:44px 1fr auto;
  align-items:center;
  gap:16px;
  min-height:78px;
}
.sm-menu-toggle{
  display:inline-flex;width:42px;height:42px;border:0;background:transparent;cursor:pointer;
  flex-direction:column;justify-content:center;gap:5px;padding:0
}
.sm-menu-toggle span{display:block;width:22px;height:2px;background:currentColor;border-radius:2px}
.sm-branding{
  display:flex;align-items:center;gap:12px;min-width:0;text-decoration:none;justify-content:flex-start
}
.sm-branding-logo{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.sm-branding-logo img,.sm-branding-logo .custom-logo{
  display:block;width:auto;max-height:50px;max-width:50px;border-radius:8px
}
.sm-branding .custom-logo-link{display:inline-flex}
.sm-branding-text{display:flex;flex-direction:column;min-width:0}
.sm-branding-title{font-size:1.45rem;letter-spacing:-.03em;font-weight:800;line-height:1}
.sm-branding-tagline{font-size:.9rem;color:var(--sm-muted);margin-top:2px;line-height:1.15}
.sm-header-icons{display:flex;gap:12px;justify-content:flex-end}
.sm-header-icon{
  text-decoration:none;border:1px solid var(--sm-border);width:40px;height:40px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;color:var(--sm-muted);background:var(--sm-surface)
}
.sm-header-icon svg{width:18px;height:18px}
.sm-primary-nav{display:none;width:100%;padding:0 0 12px}
.sm-primary-nav.is-open{display:block}
.sm-menu,.sm-menu ul,.sm-menu li{list-style:none!important;margin:0!important;padding:0!important}
.sm-menu{display:flex;flex-direction:column;gap:2px}
.sm-menu>li{width:100%}
.sm-menu a{
  display:block;text-decoration:none;padding:14px 0;border-bottom:1px solid #f1f2f4;color:var(--sm-text);font-weight:500
}
body.sm-dark .sm-menu a{border-bottom-color:#252a31}
.sm-menu .current-menu-item>a,.sm-menu .current-menu-ancestor>a{color:var(--sm-accent-soft)}
.sm-menu .sub-menu{display:none;padding-left:16px!important}
.sm-menu .menu-item-has-children.submenu-open>.sub-menu{display:block}
.sm-menu .sub-menu a{border-bottom:0;color:var(--sm-muted);font-size:.96rem;padding:10px 0}

/* Home */
.sm-home-tabs{border-bottom:1px solid var(--sm-border)}
.sm-tabs{display:flex;gap:28px}
.sm-tabs a{display:inline-block;padding:16px 0 14px;text-decoration:none;color:var(--sm-muted);font-weight:500;border-bottom:2px solid transparent}
.sm-tabs a.is-active{color:var(--sm-text);border-bottom-color:var(--sm-text)}
.sm-home-hero{padding:24px 0 8px}
.sm-home-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}
.sm-cta-strip{
  border:1px solid var(--sm-border);border-radius:16px;padding:18px 20px;background:var(--sm-surface);
  display:flex;gap:16px;align-items:center;justify-content:space-between
}
.sm-cta-strip p{margin:0;color:var(--sm-muted);line-height:1.6}
.sm-feed-list{padding:0 0 40px}
.sm-feed-card{
  display:grid;grid-template-columns:1fr 110px;gap:16px;padding:24px 0;border-bottom:1px solid var(--sm-border);align-items:start
}
.sm-feed-card-featured{grid-template-columns:1fr 130px}
.sm-feed-source{font-size:.92rem;color:var(--sm-muted);margin-bottom:8px}
.sm-feed-title{margin:0 0 10px;line-height:1.12;letter-spacing:-.02em}
.sm-feed-card-featured .sm-feed-title{font-size:clamp(1.6rem,4vw,2.6rem)}
.sm-feed-card:not(.sm-feed-card-featured) .sm-feed-title{font-size:clamp(1.2rem,2.6vw,1.7rem)}
.sm-feed-title a{text-decoration:none}
.sm-feed-excerpt{margin:0 0 12px;color:#4b5563;line-height:1.6}
body.sm-dark .sm-feed-excerpt{color:#d1d5db}
.sm-feed-meta,.sm-card-meta,.sm-reading-meta{
  display:flex;flex-wrap:wrap;gap:10px;color:var(--sm-muted);font-size:.92rem;align-items:center
}
.sm-meta-chip{display:inline-flex;align-items:center;gap:6px}
.sm-meta-icon,.sm-action-icon{display:inline-flex;align-items:center;justify-content:center}
.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;object-fit:cover;border-radius:10px;background:#f3f4f6
}
.sm-side-stack{display:grid;gap:18px}
.sm-panel{
  border:1px solid var(--sm-border);border-radius:var(--sm-radius);padding:22px;background:var(--sm-surface);box-shadow:var(--sm-shadow)
}
.sm-section-title{margin:0 0 12px;font-size:clamp(1.2rem,2.8vw,1.6rem);letter-spacing:-.02em}
.sm-note{margin:0;color:var(--sm-muted);line-height:1.65}
.sm-subscribe-form{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.sm-subscribe-form input[type="email"],.sm-search-form input[type="search"]{
  flex:1 1 260px;min-height:48px;padding:0 16px;border:1px solid var(--sm-border);border-radius:999px;
  background:transparent;color:var(--sm-text);font:inherit
}
.sm-subscribe-form .sm-button,.sm-button,.sm-search-form button{
  min-height:48px;border:0;border-radius:999px;padding:0 18px;background:var(--sm-accent);color:#fff;
  text-decoration:none;cursor:pointer;font-weight:600
}
body.sm-dark .sm-subscribe-form .sm-button, body.sm-dark .sm-button, body.sm-dark .sm-search-form button{
  color:#111315;background:#f5f7fa
}
.sm-live-embed{overflow:hidden;border-radius:14px;background:#000}
.sm-live-embed iframe{display:block;width:100%;min-height:260px;border:0}
.sm-resource-links{display:grid;gap:10px;padding:0;margin:0;list-style:none}
.sm-resource-links a{text-decoration:none;color:var(--sm-text)}
.sm-resource-links li{padding-bottom:10px;border-bottom:1px solid var(--sm-border)}
.sm-reader-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.sm-reader-controls button{
  border:1px solid var(--sm-border);background:var(--sm-surface);border-radius:999px;padding:10px 16px;cursor:pointer;color:var(--sm-text)
}
.sm-post-actions{display:flex;align-items:center;gap:8px;margin-top:14px;flex-wrap:wrap}
.sm-post-action{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  width:40px;height:40px;border-radius:999px;border:1px solid var(--sm-border);background:var(--sm-surface);color:var(--sm-muted);cursor:pointer
}
.sm-post-action-link{width:auto;padding:0 12px;text-decoration:none}
.sm-post-action:hover,.sm-post-action-link:hover{color:var(--sm-text);border-color:#cfd4dc}

/* Reading page */
.sm-reading-page{padding:32px 0 72px}
.sm-reading-wrap{width:min(92%,var(--sm-reading-max));margin:0 auto}
.sm-reading-header{display:grid;gap:18px;padding-bottom:28px;border-bottom:1px solid var(--sm-border)}
.sm-kicker{margin:0;color:var(--sm-muted);text-transform:uppercase;letter-spacing:.08em;font-size:.82rem}
.sm-reading-title{margin:0;font-size:clamp(2rem,4vw,3.3rem);line-height:1.08;letter-spacing:-.03em}
.sm-reading-content{
  font-size:calc(1.12rem * var(--sm-reader-size));
  line-height:1.92;
  padding:32px 0;
  font-family:Georgia,"Times New Roman",serif
}
.sm-reading-content>*:first-child{margin-top:0!important}
.sm-reading-content p,.sm-reading-content ul,.sm-reading-content ol,.sm-reading-content blockquote{margin:0 0 1.3rem}
.sm-reading-content h2,.sm-reading-content h3{font-family:Inter,system-ui,sans-serif;line-height:1.2;margin:2.2rem 0 1rem}
.sm-reading-content blockquote{padding-left:16px;border-left:3px solid var(--sm-accent-soft);color:var(--sm-muted)}
.sm-reading-content img{display:block;margin:2rem auto;border-radius:14px}
.sm-reading-content p:first-of-type::first-letter,
.sm-reading-content p.has-drop-cap:not(:focus)::first-letter{
  float:none!important;
  font-size:inherit!important;
  line-height:inherit!important;
  font-weight:inherit!important;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
}
.sm-reading-footer{display:grid;gap:18px}
.sm-post-nav{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:6px}
.sm-post-nav a{text-decoration:none;color:var(--sm-text)}
.comments-area{font-family:Inter,system-ui,sans-serif}
.comments-area .comment-list{list-style:none;padding:0;margin:0;display:grid;gap:16px}
.comments-area .comment-body{border:1px solid var(--sm-border);border-radius:14px;padding:16px;background:var(--sm-surface)}
.comment-respond textarea,.comment-respond input[type="text"],.comment-respond input[type="email"],.comment-respond input[type="url"]{
  width:100%;border:1px solid var(--sm-border);border-radius:12px;padding:12px 14px;background:transparent;color:var(--sm-text)
}
.comment-respond .submit{
  border:0;border-radius:999px;padding:12px 18px;background:var(--sm-accent);color:#fff;cursor:pointer
}
body.sm-dark .comment-respond .submit{background:#f5f7fa;color:#111315}

/* Archive and footer */
.sm-archive-page{padding:28px 0 60px}
.sm-search-form{display:flex;gap:12px;flex-wrap:wrap}
.sm-archive-list{display:grid;gap:18px;padding-top:24px}
.sm-archive-card{
  border:1px solid var(--sm-border);border-radius:16px;background:var(--sm-surface);padding:22px;box-shadow:var(--sm-shadow)
}
.sm-archive-card h2{margin:12px 0 10px;font-size:1.4rem;line-height:1.2}
.sm-archive-card h2 a{text-decoration:none}
.sm-site-footer{border-top:1px solid var(--sm-border);margin-top:60px;padding:28px 0;background:var(--sm-surface)}
.sm-footer-grid{display:grid;gap:14px}
.sm-footer-branding{display:flex;align-items:center;gap:12px}
.sm-footer-logo img,.sm-footer-logo .custom-logo{display:block;max-height:46px;max-width:46px;border-radius:8px}
.sm-footer-logo .custom-logo-link{display:inline-flex}
.sm-footer-brand{font-size:1.2rem;font-weight:700}
.sm-footer-copy{color:var(--sm-muted)}

/* Desktop */
@media (min-width: 901px){
  .sm-header-row{grid-template-columns:auto 1fr auto;min-height:84px}
  .sm-menu-toggle{display:none}
  .sm-primary-nav{display:block!important;width:auto;padding:0;border-top:0;margin-left:auto}
  .sm-menu{flex-direction:row;align-items:center;gap:18px}
  .sm-menu>li{width:auto;position:relative}
  .sm-menu a{padding:10px 0;border-bottom:0}
  .sm-menu .sub-menu{
    display:none;position:absolute;left:0;top:calc(100% + 10px);min-width:220px;background:var(--sm-surface);
    border:1px solid var(--sm-border);border-radius:10px;padding:10px 14px!important;box-shadow:0 12px 28px rgba(0,0,0,.08)
  }
  .sm-menu li:hover>.sub-menu,.sm-menu li:focus-within>.sub-menu{display:block}
  .sm-home-grid{grid-template-columns:minmax(0,1fr) 340px}
}

/* Tablet/mobile */
@media (max-width: 900px){
  .sm-home-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width: 700px){
  .sm-branding-logo img,.sm-branding-logo .custom-logo{max-height:42px;max-width:42px}
  .sm-branding-title{font-size:1.18rem}
  .sm-branding-tagline{font-size:.78rem}
  .sm-feed-card,.sm-feed-card-featured{grid-template-columns:1fr 88px;gap:14px;padding:20px 0}
  .sm-feed-excerpt{font-size:.98rem}
  .sm-cta-strip{flex-direction:column;align-items:flex-start}
  .sm-subscribe-form{flex-direction:column}
  .sm-subscribe-form .sm-button,.sm-button,.sm-search-form button{width:100%}
  .sm-post-nav{flex-direction:column}
}
