/*
Theme Name: ForgeDrops
Theme URI: https://forgedrops.io/blog
Author: ForgeDrops
Author URI: https://forgedrops.io
Description: Official ForgeDrops blog theme — light, amber-accented editorial layout.
Version: 1.0.0
License: Proprietary
Text Domain: forgedrops
*/

:root {
  --bg: #ffffff;
  --surface: #F9FAFB;
  --border: #E5E7EB;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --text: #1C1C1C;
  --muted: #6B7280;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Layout */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-header { border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-title a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.site-title span { color: var(--accent); }
.site-description { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }

.site-main { flex: 1; }
.content-area { max-width: var(--max-width); margin: 3rem auto; padding: 0 1.5rem; }

/* Post list */
.post-list { list-style: none; }
.post-list-item { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.post-list-item:last-child { border-bottom: none; }
.post-list-item .post-title { font-size: 1.35rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
.post-list-item .post-title a { color: var(--text); }
.post-list-item .post-title a:hover { color: var(--accent); }
.post-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }
.post-meta .cat-link { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.7rem; }
.post-excerpt { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.read-more {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 0.375rem;
  transition: background 0.15s, color 0.15s;
}
.read-more:hover { background: var(--accent); color: var(--bg); }

/* Single post */
.entry-header { margin-bottom: 2.5rem; }
.entry-title { font-size: 2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.entry-meta { font-size: 0.8rem; color: var(--muted); }

.entry-content { font-size: 1.05rem; line-height: 1.8; }
.entry-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 0.75rem; color: var(--text); }
.entry-content h3 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.5rem; color: var(--text); }
.entry-content p { margin-bottom: 1.4rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4rem 1.5rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content strong { color: var(--text); font-weight: 600; }
.entry-content a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.entry-content a:hover { border-color: var(--accent); }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 0.375rem 0.375rem 0;
  color: var(--muted);
  font-style: italic;
}
.entry-content code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.88em;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--accent);
}
.entry-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 0.88rem;
}
.entry-content img { max-width: 100%; border-radius: 0.5rem; margin: 1.5rem 0; }

/* Navigation */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.post-navigation a { font-size: 0.88rem; color: var(--muted); }
.post-navigation a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Pagination */
.pagination { margin-top: 2.5rem; display: flex; gap: 0.5rem; justify-content: center; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { border-color: var(--accent); color: var(--accent); }

/* Responsive */
@media (max-width: 640px) {
  .entry-title { font-size: 1.5rem; }
  .content-area { margin: 2rem auto; }
}

.featured-image { margin: 1.5rem 0 2rem; }
.featured-image .featured-img { width: 100%; height: auto; border-radius: 8px; display: block; }
