/* ============================================================
   Tasklist.uk Blog — shared stylesheet
   Link from every post and from index.html:
   <link rel="stylesheet" href="/blogs/style.css" />
   ============================================================ */

:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface2: #f0f0ed;
  --border: #e2e2de;
  --text: #1c1c1a;
  --text-dim: #6b6b65;
  --text-muted: #9d9d96;
  --accent: #4f46e5;
  --accent-dim: #eeedfb;
  --frog: #16a34a;
  --frog-dim: #dcfce7;
  --radius: 14px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 10px; }

/* ── Nav (matches main site) ── */
nav.site-nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(245,245,243,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  height: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-logo:hover { text-decoration: none; }
.nav-logo-mark { width: 34px; height: 34px; background: var(--accent); border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: white; }
.nav-logo-text { font-size: 19px; letter-spacing: -0.3px; }
.nav-logo-text .logo-task { font-weight: 800; color: var(--text); }
.nav-logo-text .logo-list { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-dim); text-decoration: none; padding: 6px 12px; border-radius: 8px; }
.nav-link:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.nav-cta { background: var(--accent); color: white; font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 8px; text-decoration: none; }
.nav-cta:hover { opacity: 0.9; text-decoration: none; }

/* ── Blog index (listing page) ── */
.blog-hero { max-width: 1100px; margin: 0 auto; padding: 64px 24px 32px; text-align: center; }
.blog-hero-eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.blog-hero h1 { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: -1px; margin: 0 0 16px; }
.blog-hero p { color: var(--text-dim); font-size: 16px; margin: 0; }

.post-list { max-width: 1100px; margin: 0 auto; padding: 24px 24px 100px; display: flex; flex-direction: column; gap: 16px; }
.post-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: transform 0.15s, box-shadow 0.15s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); text-decoration: none; }
.post-card-date { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.post-card-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 24px; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.post-card-excerpt { color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.post-card-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; background: var(--accent-dim); color: var(--accent); margin-top: 14px; letter-spacing: 0.3px; text-transform: uppercase; }

/* ── Individual post page ── */
.post-header { max-width: 1100px; margin: 0 auto; padding: 56px 24px 32px; }
.post-eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.post-header h1 { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(30px, 5vw, 46px); line-height: 1.2; letter-spacing: -1px; margin: 0 0 20px; }
.post-meta { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }
.post-meta a { color: var(--text-dim); font-weight: 600; }
.post-meta a:hover { color: var(--accent); }

article.post-body {
  max-width: 1100px; margin: 0 auto; padding: 0 24px 80px;
  font-size: 17px; color: var(--text);
}
article.post-body h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28px; letter-spacing: -0.5px; margin: 48px 0 16px; line-height: 1.3;
}
article.post-body h3 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; }
article.post-body p { margin: 0 0 20px; color: var(--text); }
article.post-body ul, article.post-body ol { margin: 0 0 20px; padding-left: 24px; }
article.post-body li { margin-bottom: 8px; }
article.post-body blockquote {
  margin: 28px 0; padding: 16px 20px; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 10px 10px 0; color: var(--text-dim); font-style: italic;
}
article.post-body code {
  background: var(--surface2); padding: 2px 6px; border-radius: 5px;
  font-size: 14px; font-family: 'SFMono-Regular', Consolas, monospace;
}
article.post-body pre {
  background: var(--text); color: #f5f5f3; padding: 18px 20px; border-radius: 10px;
  overflow-x: auto; margin: 0 0 20px;
}
article.post-body pre code { background: none; padding: 0; color: inherit; }
article.post-body figure { margin: 32px 0; }
article.post-body figcaption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 8px; }
article.post-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* CTA block used at the end of every post (matches homepage) */
.post-cta { padding: 100px 24px; text-align: center; }
.post-cta-inner { max-width: 1100px; margin: 0 auto; background: var(--text); color: white; border-radius: 24px; padding: 60px 48px; }
.post-cta-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #86efac; text-transform: uppercase; margin-bottom: 16px; }
.post-cta-inner h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 16px; }
.post-cta-inner h3 em { font-style: italic; color: #818cf8; }
.post-cta-inner p { font-size: 16px; color: rgba(255,255,255,0.55); line-height: 1.6; margin: 0 0 36px; }
.post-cta-btn { display: inline-flex; align-items: center; gap: 10px; background: white; color: var(--text); font-size: 15px; font-weight: 700; padding: 14px 32px; border-radius: var(--radius); text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.post-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); text-decoration: none; }
.post-cta-note { font-size: 13px; color: rgba(255,255,255,0.3); margin-top: 16px; }

/* ── Footer (matches main site) ── */
/* Post pagination (prev / all posts / next) */
.post-nav {
  max-width: 1100px; margin: 56px auto 0; padding: 32px 24px 0;
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.post-nav-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; max-width: 320px; }
.post-nav-link:hover .post-nav-title { color: var(--accent); text-decoration: none; }
.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.post-nav-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; }
.post-nav-all {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 100px; text-decoration: none; white-space: nowrap;
  flex-shrink: 0; margin-top: 2px;
}
.post-nav-all:hover { color: var(--text); background: var(--surface2); text-decoration: none; }

footer.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-built { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.footer-built a { color: var(--text-dim); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

@media (max-width: 640px) {
  .nav-links .nav-link { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .blog-hero { padding: 48px 20px 24px; }
  .post-list { padding: 20px 20px 60px; }
  .post-card { padding: 22px; }
  .post-header { padding: 40px 20px 24px; }
  article.post-body { padding: 0 20px 60px; font-size: 16px; }
  article.post-body h2 { font-size: 23px; margin: 36px 0 14px; }
  .post-cta { padding: 60px 20px; }
  .post-cta-inner { padding: 40px 24px; }
  .post-nav { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 40px; padding-top: 24px; }
  .post-nav-next { margin-left: 0; text-align: left; }
  .post-nav-link { max-width: none; }
  .post-nav-all { align-self: flex-start; }
}
