/*
Theme Name: Mr. FIRE Power
Theme URI: https://mrfirepower.com/
Author: Mr. FIRE Power
Description: A clean, editorial theme for Mr. FIRE Power. Warm cream background, serif headlines, ember-orange accents.
Version: 1.0
License: GPL v2 or later
Text Domain: mr-firepower
*/

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #FAF7F2;
  color: #2C2C2A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #993C1D; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #D85A30; }
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #2C2C2A;
  margin-top: 0;
  line-height: 1.2;
}
p { margin: 0 0 1em; }

/* Reusable container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  padding: 20px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  background: #FAF7F2;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-branding svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.site-title {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #2C2C2A;
  margin: 0;
}
.site-title a { color: inherit; }
.site-title a:hover { color: inherit; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
}
.main-nav a {
  font-size: 14px;
  color: #5F5E5A;
  font-weight: 400;
}
.main-nav a:hover { color: #2C2C2A; }
.main-nav .subscribe-link a {
  color: #D85A30;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 20px;
  color: #2C2C2A;
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #FAF7F2; border-bottom: 0.5px solid rgba(0,0,0,0.08); padding: 16px 32px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 14px; }
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
  padding: 64px 0 56px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #993C1D;
  font-weight: 500;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 auto 18px;
  max-width: 620px;
  letter-spacing: -0.02em;
}
.hero-tagline {
  font-size: 16px;
  line-height: 1.6;
  color: #5F5E5A;
  margin: 0 auto 28px;
  max-width: 480px;
}
.email-signup {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: white;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  flex-wrap: nowrap;
}
.email-signup input[type="email"] {
  border: none;
  background: transparent;
  font-size: 14px;
  color: #2C2C2A;
  padding: 8px 0;
  outline: none;
  min-width: 200px;
  font-family: inherit;
}
.email-signup input::placeholder { color: #888780; }
.email-signup button {
  background: #2C2C2A;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.email-signup button:hover { background: #444441; }

@media (max-width: 720px) {
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 30px; }
  .email-signup { flex-direction: column; padding: 16px; border-radius: 12px; width: 100%; max-width: 320px; }
  .email-signup input[type="email"] { width: 100%; padding: 10px 12px; border: 0.5px solid rgba(0,0,0,0.08); border-radius: 999px; }
  .email-signup button { width: 100%; }
}

/* ==========================================================================
   Featured essay block
   ========================================================================== */
.featured-essay {
  margin: 0 0 56px;
}
.featured-essay-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  border: 0.5px solid rgba(0,0,0,0.08);
}
.featured-essay-image {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: #2C2C2A;
}
.featured-essay-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-essay-image-placeholder { width: 100%; height: 100%; }
.featured-essay-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #993C1D;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.featured-essay h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 14px;
}
.featured-essay h2 a { color: #2C2C2A; }
.featured-essay h2 a:hover { color: #993C1D; }
.featured-essay-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: #5F5E5A;
  margin: 0 0 18px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #888780;
}
.post-meta-separator { opacity: 0.6; }

@media (max-width: 720px) {
  .featured-essay-card { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .featured-essay h2 { font-size: 22px; }
}

/* ==========================================================================
   Start here trio
   ========================================================================== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}
.section-header h3 {
  font-size: 22px;
  margin: 0;
}
.section-header-meta {
  font-size: 12px;
  color: #888780;
}

.start-here {
  margin: 0 0 56px;
}
.start-here-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.start-here-card {
  background: white;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.start-here-card:hover {
  border-color: rgba(216,90,48,0.3);
  transform: translateY(-2px);
}
.start-here-number {
  font-size: 28px;
  font-family: Georgia, serif;
  color: #D85A30;
  font-weight: 500;
  margin-bottom: 10px;
}
.start-here-card h4 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.start-here-card h4 a { color: #2C2C2A; }
.start-here-card h4 a:hover { color: #993C1D; }
.start-here-card p {
  font-size: 13px;
  color: #888780;
  margin: 0;
}

@media (max-width: 720px) {
  .start-here-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Recent posts list
   ========================================================================== */
.recent-posts {
  margin: 0 0 56px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
  padding-top: 36px;
}
.post-list-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.post-list-item:last-child { border-bottom: none; }
.post-list-date {
  font-size: 12px;
  color: #888780;
}
.post-list-title {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 6px;
}
.post-list-title a { color: #2C2C2A; }
.post-list-title a:hover { color: #993C1D; }
.post-list-excerpt {
  font-size: 14px;
  color: #5F5E5A;
  margin: 0;
  line-height: 1.5;
}
.category-pill {
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.category-pill-essay { color: #993C1D; background: #FAECE7; }
.category-pill-frugality { color: #185FA5; background: #E6F1FB; }
.category-pill-spending { color: #0F6E56; background: #E1F5EE; }
.category-pill-fire { color: #993C1D; background: #FAECE7; }
.category-pill-default { color: #5F5E5A; background: #F1EFE8; }

@media (max-width: 720px) {
  .post-list-item { grid-template-columns: 1fr; gap: 8px; }
  .post-list-date { order: -1; }
  .category-pill { justify-self: start; margin-top: 4px; }
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 56px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  font-size: 14px;
  color: #2C2C2A;
  background: white;
}
.pagination .current {
  background: #2C2C2A;
  color: white;
  border-color: #2C2C2A;
}
.pagination a:hover {
  border-color: #D85A30;
  color: #D85A30;
}

/* ==========================================================================
   Single post
   ========================================================================== */
.single-post {
  padding: 48px 0 64px;
}
.single-post-header {
  text-align: center;
  margin-bottom: 40px;
}
.single-post-category {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #993C1D;
  font-weight: 500;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.single-post-header h1 {
  font-size: 38px;
  line-height: 1.15;
  margin: 0 auto 20px;
  max-width: 720px;
  letter-spacing: -0.02em;
}
.single-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #888780;
}
.single-post-content {
  font-size: 17px;
  line-height: 1.75;
  color: #2C2C2A;
}
.single-post-content p { margin: 0 0 1.4em; }
.single-post-content h2 {
  font-size: 26px;
  margin: 2em 0 0.6em;
}
.single-post-content h3 {
  font-size: 21px;
  margin: 1.8em 0 0.5em;
}
.single-post-content blockquote {
  border-left: 3px solid #D85A30;
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.5em;
  font-style: italic;
  color: #5F5E5A;
}
.single-post-content img {
  border-radius: 8px;
  margin: 1.5em 0;
}
.single-post-content ul, .single-post-content ol {
  padding-left: 1.5em;
  margin: 0 0 1.4em;
}
.single-post-content li { margin-bottom: 0.5em; }
.single-post-content a {
  color: #993C1D;
  border-bottom: 1px solid rgba(153,60,29,0.3);
}
.single-post-content a:hover {
  color: #D85A30;
  border-bottom-color: #D85A30;
}

.single-post-share {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #888780;
  flex-wrap: wrap;
}
.single-post-share .sharedaddy { display: inline-flex !important; }

@media (max-width: 720px) {
  .single-post-header h1 { font-size: 28px; }
  .single-post-content { font-size: 16px; }
}

/* ==========================================================================
   Page (about etc.)
   ========================================================================== */
.page-content {
  padding: 48px 0 64px;
}
.page-content h1 {
  font-size: 36px;
  margin: 0 0 24px;
}
.page-content {
  font-size: 17px;
  line-height: 1.75;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 36px 0;
  background: #2C2C2A;
  color: #B4B2A9;
  font-size: 13px;
  margin-top: 64px;
}
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer-brand svg { width: 18px; height: 18px; }
.site-footer-nav {
  display: flex;
  gap: 18px;
}
.site-footer-nav a { color: #B4B2A9; }
.site-footer-nav a:hover { color: white; }

/* ==========================================================================
   WordPress required classes
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #888780; text-align: center; margin-top: 8px; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.sticky, .gallery-caption, .bypostauthor { display: block; }
