/*
Theme Name: Spirit Meat Reading
Theme URI: https://spiritmeat.net/
Description: Reading-first standalone theme for Spirit Meat. Built to align the site with the 10 April 2026 review minutes.
Author: OpenAI
Author URI: https://openai.com/
Version: 1.0.0
Text Domain: spiritmeat-reading
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
*/

:root {
  --sm-bg: #fcfcfa;
  --sm-surface: #ffffff;
  --sm-text: #1f2328;
  --sm-muted: #667085;
  --sm-border: #e7e7e2;
  --sm-accent: #111111;
  --sm-accent-2: #8d7f28;
  --sm-reader-size: 1;
  --sm-max-reading-width: 760px;
  --sm-max-site-width: 1120px;
  --sm-radius: 16px;
  --sm-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--sm-bg);
  color: var(--sm-text);
}

body.sm-dark {
  --sm-bg: #111315;
  --sm-surface: #171a1d;
  --sm-text: #f5f7fa;
  --sm-muted: #b9c0c8;
  --sm-border: #2a2f36;
  --sm-accent: #f5f7fa;
  --sm-accent-2: #d2bd4f;
}

body,
button,
input,
select,
textarea {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute !important;
  left: -9999px !important;
}

.sm-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sm-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(252, 252, 250, 0.94);
  border-bottom: 1px solid var(--sm-border);
}

body.sm-dark .sm-site-header {
  background: rgba(17, 19, 21, 0.92);
}

.sm-wrap {
  width: min(92%, var(--sm-max-site-width));
  margin: 0 auto;
}

.sm-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.sm-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sm-branding-logo img {
  max-height: 56px;
  width: auto;
}

.sm-branding-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sm-branding-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}

.sm-branding-tagline {
  color: var(--sm-muted);
  font-size: 0.92rem;
  line-height: 1.2;
}

.sm-primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.sm-primary-nav a {
  text-decoration: none;
  color: var(--sm-text);
  font-weight: 500;
}

.sm-primary-nav a:hover,
.sm-primary-nav .current-menu-item > a {
  color: var(--sm-accent-2);
}

.sm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sm-header-button,
.sm-button,
button.sm-button,
.wp-block-button__link.sm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--sm-accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

body.sm-dark .sm-header-button,
body.sm-dark .sm-button,
body.sm-dark button.sm-button,
body.sm-dark .wp-block-button__link.sm-button {
  color: #111315;
}

.sm-header-button--ghost {
  background: transparent;
  color: var(--sm-text);
  border: 1px solid var(--sm-border);
}

.sm-reader-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sm-reader-controls button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sm-border);
  background: var(--sm-surface);
  color: var(--sm-text);
  cursor: pointer;
}

.sm-home {
  padding-bottom: 64px;
}

.sm-home-hero {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--sm-border);
}

.sm-kicker {
  margin: 0 0 12px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sm-muted);
  font-weight: 700;
}

.sm-today {
  max-width: 860px;
}

.sm-title {
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  line-height: 1.06;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.sm-title a {
  text-decoration: none;
}

.sm-meta,
.sm-reading-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--sm-muted);
  font-size: 0.96rem;
}

.sm-excerpt {
  max-width: 760px;
  font-size: 1.13rem;
  line-height: 1.9;
  margin: 20px 0 0;
  color: var(--sm-text);
}

.sm-actions {
  margin-top: 28px;
}

.sm-home-secondary {
  padding: 38px 0 0;
}

.sm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr);
  gap: 44px;
}

.sm-section-title {
  margin: 0 0 14px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.sm-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--sm-border);
}

.sm-card-list li {
  border-bottom: 1px solid var(--sm-border);
  padding: 18px 0;
}

.sm-card-list a {
  text-decoration: none;
}

.sm-card-title {
  font-size: 1.12rem;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 6px;
}

.sm-card-meta {
  color: var(--sm-muted);
  font-size: 0.92rem;
}

.sm-panel {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  padding: 22px;
}

.sm-live-embed iframe {
  width: 100%;
  border: 0;
  border-radius: 12px;
}

.sm-reading-page {
  padding: 48px 0 80px;
}

.sm-reading-wrap {
  width: min(92%, var(--sm-max-reading-width));
  margin: 0 auto;
}

.sm-reading-header {
  margin-bottom: 28px;
}

.sm-reading-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.sm-reading-content {
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(1.15rem * var(--sm-reader-size));
  line-height: 1.95;
  color: var(--sm-text);
}

.sm-reading-content > * {
  max-width: 100%;
}

.sm-reading-content p,
.sm-reading-content ul,
.sm-reading-content ol,
.sm-reading-content blockquote {
  margin: 0 0 1.45rem;
}

.sm-reading-content h2,
.sm-reading-content h3,
.sm-reading-content h4 {
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.25;
  margin: 2.1rem 0 1rem;
}

.sm-reading-content blockquote {
  margin-left: 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--sm-accent-2);
  background: rgba(141, 127, 40, 0.06);
  border-radius: 0 12px 12px 0;
}

.sm-reading-content a {
  color: var(--sm-accent-2);
}

.sm-reading-footer {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.sm-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sm-post-nav a {
  display: block;
  padding: 16px;
  border: 1px solid var(--sm-border);
  border-radius: 14px;
  text-decoration: none;
  background: var(--sm-surface);
}

.sm-archive,
.sm-page {
  padding: 48px 0 72px;
}

.sm-archive-grid {
  display: grid;
  gap: 18px;
}

.sm-archive-card {
  padding: 20px;
  border: 1px solid var(--sm-border);
  border-radius: 16px;
  background: var(--sm-surface);
  box-shadow: var(--sm-shadow);
}

.sm-archive-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.sm-archive-card h2 a {
  text-decoration: none;
}

.sm-pagination {
  margin-top: 28px;
}

.sm-site-footer {
  margin-top: auto;
  border-top: 1px solid var(--sm-border);
  padding: 30px 0;
}

.sm-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.sm-footer-title {
  margin: 0 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sm-muted);
}

.sm-footer-links,
.sm-resource-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sm-footer-links li,
.sm-resource-links li {
  margin-bottom: 8px;
}

.sm-footer-links a,
.sm-resource-links a {
  text-decoration: none;
}

.sm-subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sm-subscribe-form input[type="email"] {
  flex: 1 1 220px;
  min-height: 46px;
  border: 1px solid var(--sm-border);
  border-radius: 999px;
  background: var(--sm-surface);
  color: var(--sm-text);
  padding: 0 16px;
}

.sm-note,
.sm-help-text {
  color: var(--sm-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.sm-visually-clean .sidebar,
.sm-visually-clean .widget,
.sm-visually-clean .most-viewed,
.sm-visually-clean .most-popular,
.sm-visually-clean .popular-posts,
.sm-visually-clean .tagcloud,
.sm-visually-clean .follow-us,
.sm-visually-clean .check-also,
.sm-visually-clean .related-posts,
.sm-visually-clean .login-form,
.sm-visually-clean .search-overlay,
.sm-visually-clean .social-icons,
.sm-visually-clean .header-icons,
.sm-visually-clean .shuffle-button,
.sm-visually-clean .tie-slider,
.sm-visually-clean .featured-slider {
  display: none !important;
}

@media (max-width: 980px) {
  .sm-grid,
  .sm-footer-grid,
  .sm-post-nav {
    grid-template-columns: 1fr;
  }

  .sm-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sm-primary-nav {
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .sm-home-hero {
    padding-top: 42px;
  }

  .sm-reading-page,
  .sm-page,
  .sm-archive {
    padding-top: 28px;
  }

  .sm-title {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .sm-reading-title {
    font-size: clamp(1.75rem, 8vw, 2.6rem);
  }

  .sm-excerpt,
  .sm-reading-content {
    font-size: calc(1.02rem * var(--sm-reader-size));
    line-height: 1.85;
  }
}
