/*
Theme Name: Iron in the Fire
Theme URI: https://ironinthefire.com
Author: Iron in the Fire
Description: A raw, literary blog theme. White paper background, military green typography, built for long-form personal writing.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: iron-in-the-fire
*/

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  background: #f5f2eb;
  color: #2e3d1f;
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 1rem;
  line-height: 1.85;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, #d6d0c028 27px, #d6d0c028 28px);
  pointer-events: none;
  z-index: 0;
}

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

a { color: #2e3d1f; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: #4a6a28; }

/* ============================================================
   LAYOUT
============================================================ */
.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 72px;
  padding: 60px 0 100px;
}

@media (max-width: 860px) {
  .content-area { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 64px; }
  .site-wrapper { padding: 0 20px; }
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
  padding: 44px 0 0;
  margin-bottom: 0;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 3px solid #2e3d1f;
}

.site-branding { flex: 1; }

.site-eyebrow {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #4a5e30;
  margin-bottom: 8px;
}

.site-title {
  font-family: 'Special Elite', Georgia, serif;
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: normal;
  color: #1e2d10;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.site-title a { text-decoration: none; color: inherit; }
.site-title a:hover { color: #3a5224; }

.site-tagline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a8c60;
  margin-top: 7px;
}

.header-quote {
  font-family: 'Courier Prime', monospace;
  font-style: italic;
  font-size: 12px;
  color: #6a7858;
  text-align: right;
  max-width: 240px;
  line-height: 1.6;
  padding-bottom: 4px;
}

@media (max-width: 600px) {
  .header-quote { display: none; }
}

/* ============================================================
   NAVIGATION
============================================================ */
.site-nav {
  border-bottom: 1px solid #c8c4b0;
  background: #f5f2eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 0;
}

.nav-menu li a {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #6a7858;
  padding: 14px 20px;
  border-bottom: 2px solid transparent;
  transition: all 0.18s;
}

.nav-menu li a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: #1e2d10;
  border-bottom-color: #2e3d1f;
}

.nav-entry-count {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #aaa898;
  text-transform: uppercase;
  padding-right: 4px;
}

@media (max-width: 600px) {
  .nav-menu li a { padding: 12px 12px; font-size: 9px; letter-spacing: 0.14em; }
  .nav-entry-count { display: none; }
}

/* ============================================================
   POSTS — INDEX / ARCHIVE
============================================================ */
.posts-list { list-style: none; }

.post-card {
  border-top: 1px solid #d4cfbe;
  padding: 30px 0;
  transition: padding-left 0.18s;
}

.post-card:last-child { border-bottom: 1px solid #d4cfbe; }
.post-card:hover { padding-left: 8px; }
.post-card:hover .post-card-title a { color: #3a5224; }

.post-card-eyebrow {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.post-card-date {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9e80;
}

.post-card-category a {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a5224;
  font-weight: 700;
  text-decoration: none;
}

.post-card-title {
  font-family: 'Special Elite', Georgia, serif;
  font-size: clamp(20px, 2.8vw, 27px);
  font-weight: normal;
  margin-bottom: 10px;
  line-height: 1.2;
}

.post-card-title a { text-decoration: none; color: #1e2d10; transition: color 0.18s; }

.post-card-excerpt {
  font-size: 14px;
  color: #6a7858;
  line-height: 1.7;
  margin-bottom: 14px;
}

.post-card-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.post-card-meta {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: #b0aa98;
  letter-spacing: 0.1em;
}

.read-more {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #3a5224;
  border-bottom: 1px solid #3a522445;
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.read-more:hover { color: #1e2d10; border-color: #1e2d10; }

/* ============================================================
   SINGLE POST
============================================================ */
.single-post { max-width: 700px; }

.post-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4a5e30;
  opacity: 0.7;
  margin-bottom: 10px;
}

.post-title {
  font-family: 'Special Elite', Georgia, serif;
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: normal;
  color: #1e2d10;
  line-height: 1.1;
  margin-bottom: 22px;
}

.post-meta-bar {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid #d4cfbe;
  border-bottom: 1px solid #d4cfbe;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.post-meta-item { font-size: 11px; color: #9a9e80; letter-spacing: 0.1em; }
.post-meta-item span { color: #2e3d1f; font-weight: 700; }

/* Content typography */
.post-content { font-size: 16px; line-height: 1.92; color: #2a3a1a; }
.post-content p { margin-bottom: 1.65em; }

.post-content h2 {
  font-family: 'Special Elite', Georgia, serif;
  font-size: 1.55em;
  font-weight: normal;
  color: #1e2d10;
  margin: 2.2em 0 0.75em;
  line-height: 1.2;
}

.post-content h3 {
  font-family: 'Special Elite', Georgia, serif;
  font-size: 1.25em;
  font-weight: normal;
  color: #1e2d10;
  margin: 1.8em 0 0.6em;
}

.post-content blockquote {
  border-left: 3px solid #3a5224;
  margin: 2.2em 0;
  padding: 12px 0 12px 24px;
  color: #3a5224;
  font-style: italic;
  font-size: 1.05em;
  background: #eeeae000;
}

.post-content blockquote p { margin-bottom: 0; }
.post-content em { font-style: italic; }
.post-content strong { font-weight: 700; color: #1e2d10; }
.post-content hr { border: none; border-top: 1px solid #d4cfbe; margin: 2.8em 0; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.6em; }
.post-content li { margin-bottom: 0.4em; }
.post-content a { color: #3a5224; }
.post-content img { margin: 2em 0; border: 1px solid #d4cfbe; }

/* Post footer */
.post-footer {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid #d4cfbe;
}

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }

.post-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #c0bba8;
  color: #6a7858;
  padding: 4px 12px;
  text-decoration: none;
  transition: all 0.15s;
}
.post-tag:hover { border-color: #3a5224; color: #2e3d1f; }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 2px solid #2e3d1f;
}

.nav-next { text-align: right; }

.nav-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9e80;
  margin-bottom: 6px;
}

.nav-post-title {
  font-family: 'Special Elite', Georgia, serif;
  font-size: 15px;
  color: #2e3d1f;
  text-decoration: none;
  line-height: 1.3;
}
.nav-post-title:hover { color: #3a5224; }

@media (max-width: 600px) {
  .post-navigation { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
}

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar { padding-top: 4px; }

.widget { margin-bottom: 48px; }

.widget-title {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2e3d1f;
  border-bottom: 2px solid #2e3d1f;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.widget ul { list-style: none; }

.widget ul li {
  border-bottom: 1px solid #e8e2d2;
  padding: 9px 0;
  font-size: 13px;
}

.widget ul li a { color: #2e3d1f; text-decoration: none; font-size: 13px; }
.widget ul li a:hover { color: #3a5224; }
.widget_text p { font-size: 13px; line-height: 1.75; color: #6a7858; }

.about-widget-name {
  font-family: 'Special Elite', Georgia, serif;
  font-size: 19px;
  font-weight: normal;
  color: #1e2d10;
  margin-bottom: 10px;
}

.about-widget-text { font-size: 13px; line-height: 1.78; color: #6a7858; margin-bottom: 14px; }

.about-widget-quote {
  border-left: 2px solid #3a5224;
  padding-left: 14px;
  font-size: 12px;
  font-style: italic;
  color: #4a5e30;
  line-height: 1.65;
}

/* Progress tracker widget */
.progress-widget { margin-bottom: 48px; }

.progress-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #e8e2d2;
  font-size: 12px;
}

.progress-stat-label {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9e80;
  font-size: 10px;
}

.progress-stat-value {
  font-family: 'Special Elite', Georgia, serif;
  font-size: 20px;
  color: #1e2d10;
}

.progress-bar-wrap {
  background: #e8e2d2;
  height: 3px;
  margin-top: 16px;
  margin-bottom: 6px;
}

.progress-bar-fill {
  background: #2e3d1f;
  height: 3px;
  width: 42%;
}

.progress-bar-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #9a9e80;
  text-transform: uppercase;
}

/* ============================================================
   JOURNEY PAGE
============================================================ */
.journey-page { max-width: 700px; }

.journey-timeline { margin: 40px 0; }

.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: #d4cfbe;
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
  width: 30px;
  height: 30px;
  border: 2px solid #2e3d1f;
  border-radius: 50%;
  background: #f5f2eb;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #2e3d1f;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.timeline-dot.active {
  background: #2e3d1f;
  color: #f5f2eb;
}

.timeline-content { padding-top: 4px; }

.timeline-date {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9e80;
  margin-bottom: 5px;
}

.timeline-title {
  font-family: 'Special Elite', Georgia, serif;
  font-size: 18px;
  color: #1e2d10;
  margin-bottom: 7px;
}

.timeline-text { font-size: 13px; color: #6a7858; line-height: 1.72; }

/* Stats block */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 40px 0;
  border: 1px solid #d4cfbe;
}

.stat-block {
  padding: 22px 18px;
  border-right: 1px solid #d4cfbe;
  background: #f5f2eb;
}

.stat-block:last-child { border-right: none; }

.stat-block-value {
  font-family: 'Special Elite', Georgia, serif;
  font-size: 34px;
  color: #1e2d10;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-block-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9e80;
}

@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-block { border-right: none; border-bottom: 1px solid #d4cfbe; }
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  border-top: 2px solid #2e3d1f;
  padding: 28px 0 44px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-title {
  font-family: 'Special Elite', Georgia, serif;
  font-size: 20px;
  font-weight: normal;
  color: #1e2d10;
}

.footer-copy { font-size: 10px; letter-spacing: 0.12em; color: #9a9e80; text-transform: uppercase; }

/* ============================================================
   MISC
============================================================ */
.post-featured-image { margin-bottom: 36px; }
.post-featured-image img { width: 100%; border: 1px solid #d4cfbe; }

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid #d4cfbe;
}

.page-numbers {
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid #c0bba8;
  color: #6a7858;
  padding: 7px 14px;
  text-decoration: none;
  transition: all 0.15s;
}

.page-numbers.current, .page-numbers:hover {
  background: #2e3d1f;
  border-color: #2e3d1f;
  color: #f5f2eb;
}

/* Search */
.search-form { display: flex; }

.search-form input[type="search"] {
  flex: 1;
  background: #eeeae0;
  border: 1px solid #c8c4b0;
  border-right: none;
  color: #2e3d1f;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
}

.search-form button {
  background: #2e3d1f;
  border: none;
  color: #f5f2eb;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-form button:hover { background: #3a5224; }

/* Comments */
.comments-area { margin-top: 56px; padding-top: 36px; border-top: 1px solid #d4cfbe; }

.comments-title {
  font-family: 'Special Elite', Georgia, serif;
  font-size: 22px;
  font-weight: normal;
  color: #1e2d10;
  margin-bottom: 32px;
}

.comment-body { border-top: 1px solid #e4dfce; padding: 20px 0; }
.comment-author { font-size: 12px; font-weight: 700; color: #2e3d1f; letter-spacing: 0.05em; }
.comment-date { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #9a9e80; margin-bottom: 10px; }
.comment-text { font-size: 14px; line-height: 1.75; color: #4a5442; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  background: #eeeae0;
  border: 1px solid #c8c4b0;
  border-left: 2px solid #3a5224;
  color: #2e3d1f;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  margin-bottom: 16px;
  transition: border-left-color 0.2s;
}

.comment-form input:focus, .comment-form textarea:focus { border-left-color: #1e2d10; }
.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form input[type="submit"] {
  background: #2e3d1f;
  border: none;
  color: #f5f2eb;
  font-family: 'Special Elite', Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.15s;
}
.comment-form input[type="submit"]:hover { background: #3a5224; }
