/* ShelfTruth Blog — shared stylesheet
 * Matches the shelftruth.app site palette from index.html
 */

:root {
  --navy: #1B2A4A;
  --amber: #F5A623;
  --red: #E53E3E;
  --green: #38A169;
  --light-gray: #F7FAFC;
  --border-gray: #E2E8F0;
  --text-dark: #2D3748;
  --text-muted: #718096;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: white;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span { color: var(--amber); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--amber); }

/* Article */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.post-meta .category {
  color: var(--amber);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.lede {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.5;
  border-left: 4px solid var(--amber);
  padding-left: 1rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

li { margin-bottom: 0.5rem; }

strong { color: var(--navy); font-weight: 700; }

a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--navy); }

blockquote {
  border-left: 4px solid var(--amber);
  padding: 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
  background: var(--light-gray);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.before-after > div {
  padding: 1.25rem;
  border-radius: 8px;
  border: 2px solid var(--border-gray);
}

.before-after .before {
  background: #FEF5E7;
  border-color: var(--amber);
}

.before-after .after {
  background: #FED7D7;
  border-color: var(--red);
}

.before-after h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.before-after p {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  color: var(--text-dark);
}

.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1a2e 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin: 3rem 0;
  text-align: center;
}

.cta-box h3 {
  color: white;
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.cta-box a {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.cta-box a:hover { transform: translateY(-2px); }

.sources {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.sources h3 {
  margin-top: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.sources ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.sources li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-gray);
  font-style: italic;
}

/* Blog index */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  border-bottom: 1px solid var(--border-gray);
  padding: 2rem 0;
}

.post-list a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-list h2 {
  margin-top: 0;
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.post-list a:hover h2 { color: var(--amber); }

.post-list .excerpt {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Mobile */
@media (max-width: 640px) {
  article { padding: 2rem 1.25rem 4rem; }
  h1 { font-size: 1.85rem; }
  .lede { font-size: 1.1rem; }
  .before-after { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; }
}
