/* ===================================================================
   Orlando Mold Works — blog + article stylesheet
   Shared by every /blog/ post and the blog index. Mirrors the
   homepage design tokens (Forest + Bone + Bronze, Crimson Pro +
   Hanken Grotesk) so blog pages feel native to the site without
   inlining the full homepage CSS into each post.
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --cream: #F2EBDA;
  --cream-warm: #E8DFC8;
  --paper: #FAF6EA;
  --sage: #3D6650;
  --sage-soft: #7D9080;
  --sage-deep: #2A4A3A;
  --sage-tint: #DEE5DC;
  --charcoal: #1F1B14;
  --charcoal-soft: #4A4438;
  --ash: #8A8478;
  --line: #DACFB7;
  --blush: #9B6B3F;
  --blush-soft: #EFE2C8;
  --shadow-sm: 0 1px 2px rgba(31, 27, 20, 0.04);
  --shadow: 0 8px 24px -8px rgba(31, 27, 20, 0.08);
  --shadow-lg: 0 24px 56px -20px rgba(31, 27, 20, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  background-image: radial-gradient(at 0% 0%, rgba(125, 144, 128, 0.16) 0%, transparent 45%),
                    radial-gradient(at 100% 100%, rgba(155, 107, 63, 0.12) 0%, transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-decoration: none; }
a:hover { color: var(--blush); }
.serif { font-family: 'Crimson Pro', Georgia, serif; }

/* ===== NAV ===== */
.nav {
  background: rgba(250, 246, 234, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.05rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--charcoal);
  letter-spacing: -0.015em;
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--charcoal-soft); }
.nav-links a:hover { color: var(--sage-deep); }

/* ===== LAYOUT ===== */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.nav .nav-inner, .footer .wrap { max-width: 1100px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  margin: 2.5rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--ash);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb a { color: var(--sage); font-weight: 600; }
.breadcrumb a:hover { color: var(--blush); }
.breadcrumb span { color: var(--line); }

/* ===== ARTICLE HEADER ===== */
.article-header { margin-bottom: 2rem; }
.article-header h1 {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.article-meta { font-size: 0.9rem; color: var(--ash); font-weight: 500; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
  display: inline-block;
  background: var(--sage-tint);
  color: var(--sage-deep);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* ===== HERO IMAGE ===== */
.article-hero {
  margin: 0 0 2.5rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-hero img { width: 100%; height: auto; object-fit: cover; }

/* ===== ARTICLE BODY (long-form typography) ===== */
.article-body { font-size: 1.12rem; line-height: 1.75; color: var(--charcoal-soft); }
.article-body > p { margin-bottom: 1.4rem; }
.article-body strong { color: var(--charcoal); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--blush); }
.article-body h2 {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--charcoal);
  margin: 2.75rem 0 1.1rem;
}
.article-body h3 {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.012em;
  color: var(--charcoal);
  margin: 2rem 0 0.85rem;
}
.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.4rem; }
.article-body li { margin-bottom: 0.6rem; padding-left: 0.3rem; }
.article-body li::marker { color: var(--sage); }
.article-body blockquote {
  border-left: 3px solid var(--sage);
  background: var(--paper);
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 12px 12px 0;
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sage-deep);
}
.article-body img { border-radius: 14px; margin: 1.75rem 0; box-shadow: var(--shadow-sm); }
.article-body figure { margin: 1.75rem 0; }
.article-body figcaption { font-size: 0.85rem; color: var(--ash); text-align: center; margin-top: 0.5rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.98rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 0.7rem 0.9rem; text-align: left; }
.article-body th { background: var(--sage-tint); color: var(--sage-deep); font-weight: 600; }

/* ===== ARTICLE CTA ===== */
.article-cta {
  margin: 3rem 0 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sage) 0%, var(--blush) 100%);
}
.article-cta h3 {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  margin-bottom: 0.65rem;
}
.article-cta p { color: var(--charcoal-soft); margin-bottom: 1.5rem; }
.article-cta p a { color: var(--sage-deep); font-weight: 600; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--charcoal);
  color: var(--paper);
  padding: 0.95rem 1.85rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--sage-deep); color: var(--paper); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer {
  background: var(--cream-warm);
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { font-weight: 600; font-size: 0.92rem; color: var(--charcoal-soft); }
.footer-links a:hover { color: var(--sage-deep); }

/* ===== BLOG INDEX ===== */
.blog-hero { text-align: center; padding: 3.5rem 1.5rem 1rem; max-width: 760px; margin: 0 auto; }
.blog-hero h1 {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.blog-hero h1 em { font-style: italic; color: var(--sage-deep); }
.blog-hero p { font-size: 1.15rem; color: var(--charcoal-soft); }
.post-grid {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 680px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  color: var(--charcoal);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sage-soft); color: var(--charcoal); }
.post-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sage-tint); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-deep);
  padding: 1.25rem 1.4rem 0;
}
.post-card h3 {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--charcoal);
  padding: 0.4rem 1.4rem 0;
}
.post-card-body { padding: 0.7rem 1.4rem 1.5rem; }
.post-card-body p { font-size: 0.95rem; color: var(--charcoal-soft); line-height: 1.55; }
.post-card-meta { margin-top: auto; padding: 0 1.4rem 1.4rem; font-size: 0.82rem; color: var(--ash); font-weight: 500; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .article-body { font-size: 1.06rem; }
}
