/* The Creative Record — Blog Post Shared Styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --ink: #0f0e0d; --ink-2: #3d3a36; --ink-3: #6b6560; --ink-4: #a09890;
    --terra: #c8552a; --terra-2: #e8714a; --terra-3: #f4e0d6;
    --cream: #faf8f5; --cream-2: #f3f0eb; --cream-3: #e8e4dd; --white: #ffffff;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
    --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px;
    --shadow-sm: 0 1px 3px rgba(15,14,13,0.06); --shadow-md: 0 4px 16px rgba(15,14,13,0.07);
    --shadow-lg: 0 12px 40px rgba(15,14,13,0.10);
    --t-base: 220ms ease;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--ink-3); background: var(--cream); line-height: 1.65; -webkit-font-smoothing: antialiased; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--s4); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; color: var(--ink); line-height: 1.2; }
h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: var(--r-lg); font-family: var(--font-sans); font-weight: 500; font-size: 0.9375rem; cursor: pointer; text-decoration: none; transition: all var(--t-base); border: none; }
.btn-primary { background: var(--terra); color: var(--white); }
.btn-primary:hover { background: var(--terra-2); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--cream-3); }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
header { position: sticky; top: 0; z-index: 100; background: rgba(250,248,245,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--cream-3); }
nav.main-nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--font-serif); font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo em { color: var(--terra); font-style: italic; }
.nav-links { display: flex; gap: var(--s3); list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink-3); text-decoration: none; transition: color var(--t-base); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { margin-left: var(--s2); }
.nav-hamburger { display: none; width: 40px; height: 40px; border-radius: var(--r-md); background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-hamburger span { display: block; width: 20px; height: 1.5px; background: var(--ink-2); transition: all 200ms ease; }
.mobile-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--cream-3); z-index: 99; padding: var(--s2) 0; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--cream-3); }
.mobile-nav a { display: block; padding: var(--s2) var(--s4); font-weight: 500; color: var(--ink-2); text-decoration: none; }
.mobile-nav .mobile-nav-cta { padding: var(--s2) var(--s4); }
.article-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: var(--s6); padding: var(--s6) 0; align-items: start; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--ink-4); margin-bottom: var(--s4); }
.breadcrumb a { color: var(--ink-4); text-decoration: none; transition: color var(--t-base); }
.breadcrumb a:hover { color: var(--terra); }
.post-header { margin-bottom: var(--s5); }
.post-cat { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); background: var(--terra-3); padding: 4px 10px; border-radius: var(--r-sm); margin-bottom: var(--s2); }
.post-header h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); margin-bottom: var(--s3); }
.post-header .post-subtitle { font-size: 1.125rem; color: var(--ink-3); line-height: 1.7; margin-bottom: var(--s3); }
.post-meta { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding: var(--s3) 0; border-top: 1px solid var(--cream-3); border-bottom: 1px solid var(--cream-3); }
.post-author { display: flex; align-items: center; gap: var(--s1); font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.post-author-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--terra-3); display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 700; color: var(--terra); }
.post-meta-item { font-size: 0.875rem; color: var(--ink-4); }
.post-body { color: var(--ink-3); }
.post-body p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: var(--s3); }
.post-body h2 { font-size: 1.75rem; margin: var(--s5) 0 var(--s3); color: var(--ink); }
.post-body h3 { font-size: 1.25rem; margin: var(--s4) 0 var(--s2); color: var(--ink-2); font-family: var(--font-sans); font-weight: 600; }
.post-body h4 { font-size: 1.0625rem; margin: var(--s3) 0 var(--s2); }
.post-body ul, .post-body ol { margin: var(--s2) 0 var(--s3) var(--s4); }
.post-body li { font-size: 1.0625rem; line-height: 1.75; margin-bottom: 8px; }
.post-body a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--terra-2); }
.post-body strong { color: var(--ink-2); font-weight: 600; }
.post-body blockquote { border-left: 3px solid var(--terra); margin: var(--s4) 0; padding: var(--s2) var(--s3); background: var(--terra-3); border-radius: 0 var(--r-md) var(--r-md) 0; }
.post-body blockquote p { margin: 0; font-style: italic; color: var(--ink-2); }
.callout { background: var(--cream-2); border: 1px solid var(--cream-3); border-radius: var(--r-xl); padding: var(--s3); margin: var(--s4) 0; }
.callout-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); margin-bottom: var(--s1); }
.callout p { margin: 0; font-size: 0.9375rem; }
.template-box { background: var(--ink); color: rgba(255,255,255,0.85); border-radius: var(--r-xl); padding: var(--s3); margin: var(--s4) 0; font-family: monospace; font-size: 0.9375rem; line-height: 1.7; }
.template-box .template-label { font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra-2); margin-bottom: var(--s2); }
.step-list { list-style: none; margin: var(--s3) 0; padding: 0; }
.step-item { display: flex; gap: var(--s3); margin-bottom: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--cream-3); }
.step-item:last-child { border-bottom: none; }
.step-number { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--terra); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9375rem; margin-top: 2px; }
.step-content h4 { margin-bottom: 6px; font-size: 1.0625rem; }
.step-content p { font-size: 0.9375rem; margin: 0; }
.sidebar { position: sticky; top: 88px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--cream-3); border-radius: var(--r-xl); padding: var(--s3); margin-bottom: var(--s3); }
.sidebar-widget h4 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: var(--s2); }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: var(--s1); }
.toc-list a { font-size: 0.875rem; color: var(--ink-3); text-decoration: none; display: block; padding: 4px var(--s2); border-left: 2px solid transparent; transition: color var(--t-base); }
.toc-list a:hover, .toc-list a.toc-active { color: var(--terra); border-left-color: var(--terra); }
.newsletter-widget { background: var(--ink); color: var(--white); }
.newsletter-widget h4 { color: rgba(255,255,255,0.5); }
.newsletter-widget p { font-size: 0.875rem; color: rgba(255,255,255,0.55); margin-bottom: var(--s2); }
.newsletter-widget input { width: 100%; padding: 10px 14px; border-radius: var(--r-md); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: var(--white); font-size: 0.875rem; margin-bottom: 8px; outline: none; font-family: var(--font-sans); }
.newsletter-widget input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-widget button { width: 100%; padding: 10px; background: var(--terra); color: var(--white); border: none; border-radius: var(--r-md); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: background var(--t-base); font-family: var(--font-sans); }
.newsletter-widget button:hover { background: var(--terra-2); }
.sidebar-cta-widget { background: var(--terra-3); border: 1px solid rgba(200,85,42,0.2); }
.sidebar-cta-widget h4 { color: var(--terra); }
.sidebar-cta-widget p { font-size: 0.875rem; color: var(--ink-2); margin-bottom: var(--s2); }
.sidebar-cta-widget .btn { width: 100%; justify-content: center; }
.related-section { padding: var(--s6) 0; border-top: 1px solid var(--cream-3); }
.related-section h2 { font-size: 1.5rem; margin-bottom: var(--s4); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.related-card { background: var(--white); border: 1px solid var(--cream-3); border-radius: var(--r-xl); padding: var(--s3); text-decoration: none; transition: transform var(--t-base), box-shadow var(--t-base); display: block; }
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-cat { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); margin-bottom: 6px; }
.related-card h3 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 8px; }
.related-card p { font-size: 0.875rem; color: var(--ink-3); line-height: 1.5; }
footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: var(--s6) 0 var(--s4); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { color: var(--white); }
.footer-brand .logo em { color: var(--terra-2); }
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.4); margin-top: var(--s2); line-height: 1.6; }
.footer-col h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: var(--s2); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--s2); }
.footer-col a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.9rem; transition: color var(--t-base); }
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-recent-item { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--s2); }
.footer-recent-item a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.875rem; line-height: 1.4; }
.footer-recent-item a:hover { color: rgba(255,255,255,0.9); }
.footer-recent-item span { font-size: 0.75rem; color: rgba(255,255,255,0.28); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--s3); }
.footer-copy, .footer-made { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }
@media (max-width: 1024px) {
    .article-wrapper { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s4); }
    .nav-links { display: none; } .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
}
@media (max-width: 640px) {
    .related-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
    .container { padding: 0 var(--s3); }
    
    /* Mobile header layout improvements */
    .article-wrapper { padding: var(--s3) 0; }
    .breadcrumb { margin-bottom: var(--s2); font-size: 0.75rem; }
    .post-header { margin-bottom: var(--s3); }
    .post-header h1 { font-size: 1.75rem; margin-bottom: var(--s2); }
    .post-header .post-subtitle { font-size: 1rem; margin-bottom: var(--s2); }
    .post-cat { font-size: 0.6875rem; padding: 3px 8px; margin-bottom: var(--s1); }
    .post-meta { padding: var(--s2) 0; margin-top: var(--s2); }
    .post-author { font-size: 0.8125rem; }
    .post-author-avatar { width: 24px; height: 24px; font-size: 0.625rem; }
    .post-meta-item { font-size: 0.8125rem; }
}
