/* ─── Clearfolks Blog Stylesheet ──────────────────────────────────────────
   Brand: Deep navy, warm cream, rust/copper
   Type: Fraunces (serif, headings) + IBM Plex Sans (body)
   Mobile-first, semantic, no frameworks
   ──────────────────────────────────────────────────────────────────────── */

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --navy:       #1a2744;
  --navy-mid:   #243560;
  --cream:      #f7f4ee;
  --cream-dark: #ede9df;
  --rust:       #b85c38;
  --rust-light: #d4784f;
  --text:       #1a1a1a;
  --text-muted: #5a5a5a;
  --text-light: #888;
  --border:     #ddd8cc;
  --white:      #ffffff;
  --max-prose:  680px;
  --max-site:   1100px;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'IBM Plex Sans', system-ui, sans-serif;
  --radius:     6px;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

/* ── Skip link (accessibility) ───────────────────────────────────────── */
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--navy);
  color: var(--white); padding: 8px 16px; z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Site header ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 0 1rem;
  position: sticky; top: 0; z-index: 50;
}
.site-header-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}
.site-logo { text-decoration: none; display: flex; align-items: baseline; gap: 6px; }
.logo-mark { font-family: var(--font-serif); font-size: 1.15rem; color: var(--white); font-weight: 600; }
.logo-sub  { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav  { display: flex; gap: 1.25rem; }
.site-nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.875rem; }
.site-nav a:hover { color: var(--white); }

/* ── Main layout ─────────────────────────────────────────────────────── */
#main-content { min-height: 60vh; }

/* ── Blog list page ──────────────────────────────────────────────────── */
.list-page { max-width: var(--max-site); margin: 0 auto; padding: 2.5rem 1rem 4rem; }

.list-header { margin-bottom: 2.5rem; }
.list-eyebrow { font-size: 0.875rem; margin-bottom: 0.75rem; }
.list-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.list-deck { font-size: 1.05rem; color: var(--text-muted); max-width: 60ch; }

/* Cluster pill nav */
.cluster-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.cluster-pill {
  background: var(--cream-dark);
  color: var(--navy);
  text-decoration: none;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  transition: background 0.15s;
}
.cluster-pill:hover { background: var(--navy); color: var(--white); }

/* Post grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.post-card-meta { display: flex; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--text-light); }
.post-card-cluster {
  background: var(--cream-dark); color: var(--navy-mid);
  padding: 2px 10px; border-radius: 100px; font-size: 0.75rem;
}
.post-card-title { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.3; }
.post-card-title a { color: var(--navy); text-decoration: none; }
.post-card-title a:hover { color: var(--rust); }
.post-card-desc { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.post-card-read { font-size: 0.85rem; color: var(--rust); text-decoration: none; font-weight: 500; margin-top: auto; }
.post-card-read:hover { text-decoration: underline; }

/* ── Single post ─────────────────────────────────────────────────────── */
.post { max-width: var(--max-prose); margin: 0 auto; padding: 2rem 1rem 4rem; }

.post-header { margin-bottom: 2rem; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 1rem; }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--rust); }
.post-meta time { font-size: 0.82rem; color: var(--text-light); }
.post-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.post-deck { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; }

/* Table of contents */
.toc {
  background: var(--cream-dark);
  border-left: 3px solid var(--rust);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.toc-label { font-weight: 500; margin-bottom: 0.5rem; color: var(--navy); }
.toc ul { list-style: none; padding-left: 0; }
.toc li { margin: 0.25rem 0; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--rust); }

/* Post body typography */
.post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}
.post-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy-mid);
  margin: 1.5rem 0 0.5rem;
}
.post-body p { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { margin: 0 0 1.25rem 1.5rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body strong { color: var(--navy); font-weight: 500; }
.post-body blockquote {
  border-left: 3px solid var(--rust-light);
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.5rem 0;
}

/* Etsy CTA */
.etsy-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}
.etsy-cta-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; margin-bottom: 0.3rem; }
.etsy-cta-name { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.5rem; }
.etsy-cta-pitch { font-size: 0.9rem; opacity: 0.85; margin-bottom: 1.25rem; line-height: 1.5; }
.etsy-cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--rust);
  color: var(--white);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--rust-light); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.7); color: var(--white); }

/* FAQ block */
.faq-block { margin: 2.5rem 0; }
.faq-block h2 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy); margin-bottom: 1rem; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.faq-q { font-weight: 500; color: var(--navy); margin-bottom: 0.4rem; font-size: 1rem; }
.faq-a { color: var(--text-muted); font-size: 0.95rem; }

/* Related posts */
.related-posts { margin: 2.5rem 0; }
.related-posts h2 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.related-card {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.9rem;
}
.related-card h3 { font-size: 0.95rem; font-family: var(--font-serif); margin-bottom: 0.4rem; }
.related-card h3 a { color: var(--navy); text-decoration: none; }
.related-card h3 a:hover { color: var(--rust); }
.related-card p { color: var(--text-muted); font-size: 0.85rem; }

/* Post footer */
.post-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.brand-close { font-size: 0.85rem; color: var(--text-light); }

/* ── Site footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 0.875rem;
}
.site-footer-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { color: rgba(255,255,255,0.5); }
.footer-nav { display: flex; gap: 1rem; }
.footer-nav a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); width: 100%; }

/* ── Mobile tweaks ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header-inner { height: 48px; }
  .post { padding: 1.25rem 1rem 3rem; }
  .post-grid { grid-template-columns: 1fr; }
  .etsy-cta { padding: 1.25rem; }
  .etsy-cta-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
}
