/* CraftCut blog + article theme. Shared by /blog/ and all article pages.
   Matches the main site: Instrument Serif display, Outfit body, teal palette. */
:root {
  --teal-400: #0d9488; --teal-500: #0f766e; --teal-600: #115e59;
  --bg-0: #ffffff; --bg-1: #f8fafb; --bg-2: #eef2f5;
  --text-1: #0f172a; --text-2: #475569; --text-3: #64748b;
  --line: rgba(15,23,42,0.08);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-0); color: var(--text-1); line-height: 1.65; }
a { color: var(--teal-500); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(13,148,136,0.15); color: #0f172a; }

/* Nav */
nav { position: sticky; top: 0; z-index: 200; padding: 1rem 2rem; background: rgba(255,255,255,0.92); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.1rem; color: var(--text-1); }
.nav-logo:hover { text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 0.9rem; color: var(--text-2); }
.nav-cta { padding: 0.5rem 1.1rem; background: var(--teal-500); color: #fff; border-radius: 8px; font-size: 0.88rem; font-weight: 500; transition: background 0.2s; }
.nav-cta:hover { text-decoration: none; background: var(--teal-600); color: #fff; }

/* Article layout */
article { max-width: 740px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.breadcrumb { font-size: 0.82rem; color: var(--text-3); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--teal-500); }
.eyebrow { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal-500); }
article h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.08; margin: 0.6rem 0 0.8rem; color: var(--text-1); font-weight: 400; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.85rem; color: var(--text-3); margin-bottom: 1.8rem; }
.lede { font-size: 1.22rem; color: var(--text-2); margin-bottom: 2rem; line-height: 1.55; }
article h2 { font-family: var(--font-display); font-size: 1.85rem; font-weight: 400; margin: 2.6rem 0 0.8rem; color: var(--text-1); }
article h3 { font-size: 1.18rem; margin: 1.7rem 0 0.5rem; color: var(--text-1); }
article p { margin: 0 0 1.1rem; color: var(--text-2); }
article ul, article ol { margin: 0 0 1.2rem 1.3rem; color: var(--text-2); }
article li { margin-bottom: 0.5rem; }
article strong { color: var(--text-1); font-weight: 600; }

/* Figures */
figure { margin: 2.2rem 0; }
figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-1); display: block; }
figcaption { font-size: 0.84rem; color: var(--text-3); margin-top: 0.6rem; text-align: center; }

/* Callout / key-number */
.callout { background: var(--bg-1); border: 1px solid rgba(13,148,136,0.22); border-left: 3px solid var(--teal-400); border-radius: 10px; padding: 1.2rem 1.4rem; margin: 2rem 0; }
.callout p { margin: 0; color: var(--text-1); }
.stat { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2rem 0; }
.stat > div { flex: 1; min-width: 150px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--teal-500); line-height: 1; margin-bottom: 0.3rem; }
.stat span { font-size: 0.85rem; color: var(--text-3); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 480px; }
th, td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
th { color: var(--text-1); font-weight: 600; background: var(--bg-1); }
td.yes { color: var(--teal-500); font-weight: 600; }
td.no { color: #94a3b8; }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 1.5rem 0 1.2rem; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.2rem 3rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 2rem; height: 2rem; background: var(--teal-500); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; }
.steps > li strong { display: block; margin-bottom: 0.2rem; }

/* CTA */
.cta-box { text-align: center; background: linear-gradient(135deg, #f0fdfa, #f8fafb); border: 1px solid rgba(13,148,136,0.18); border-radius: 16px; padding: 2.4rem 1.5rem; margin: 3rem 0 1rem; }
.cta-box h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin-bottom: 0.5rem; }
.cta-box p { max-width: 460px; margin: 0 auto 1.3rem; color: var(--text-2); }
.cta-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.6rem; background: var(--teal-500); color: #fff; border-radius: 10px; font-weight: 500; transition: background 0.2s; }
.cta-btn:hover { text-decoration: none; background: var(--teal-600); color: #fff; }
.cta-note { display: block; margin-top: 0.7rem; font-size: 0.8rem; color: var(--text-3); }

/* FAQ */
.faq { margin: 3rem 0 0; }
.faq h2 { margin-bottom: 1rem; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 0.7rem; background: var(--bg-0); transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(13,148,136,0.28); }
.faq summary { font-weight: 600; cursor: pointer; color: var(--text-1); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-500); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0.7rem 0 0; }

/* Related posts */
.related { max-width: 1100px; margin: 3rem auto 0; padding: 2.5rem 1.5rem; border-top: 1px solid var(--line); }
.related h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin-bottom: 1.3rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.post-card { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-0); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.post-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 30px -14px rgba(15,23,42,0.22); border-color: rgba(13,148,136,0.3); }
.post-card .thumb { aspect-ratio: 16 / 10; background: var(--bg-1); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0.4rem; }
.post-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.post-card .tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-500); }
.post-card h3 { font-size: 1.08rem; margin: 0.4rem 0 0.4rem; color: var(--text-1); line-height: 1.25; }
.post-card p { font-size: 0.9rem; color: var(--text-3); margin: 0; }

/* Blog index hero */
.blog-hero { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.5rem 1rem; }
.blog-hero .eyebrow { display: block; margin-bottom: 0.5rem; }
.blog-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; color: var(--text-1); margin-bottom: 0.8rem; }
.blog-hero p { font-size: 1.15rem; color: var(--text-2); max-width: 620px; }
.blog-list { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }
.featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 2.5rem; background: var(--bg-0); transition: box-shadow 0.2s, border-color 0.2s; }
.featured:hover { text-decoration: none; box-shadow: 0 16px 40px -18px rgba(15,23,42,0.25); border-color: rgba(13,148,136,0.3); }
.featured .thumb { background: var(--bg-1); height: 100%; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.featured .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.featured .body { padding: 2rem; }
.featured .tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-500); }
.featured h2 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin: 0.5rem 0 0.6rem; color: var(--text-1); line-height: 1.1; }
.featured p { color: var(--text-2); margin-bottom: 1rem; }
.read-more { font-weight: 500; color: var(--teal-500); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-left { font-size: 0.82rem; color: var(--text-3); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: var(--text-3); }
.footer-links a:hover { color: var(--text-1); }

@media (max-width: 720px) {
  nav { padding: 0.85rem 1.2rem; }
  .nav-right { gap: 1rem; }
  .featured { grid-template-columns: 1fr; }
  .featured .thumb { min-height: 200px; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
