/* ============================================================
   NLP BLOG RESTYLE — post-Elementor reading layer
   Theme context: Hello Elementor (bare shell; Elementor removed).
   Scope: single posts + archives. One file, fully reversible.
   Design language: Reading Room / Door One (matches the webbooks):
   parchment surface, navy ink, teal links, Playfair + Iowan.
   Deployed to /assets/nlp-blog.css, enqueued by the
   nlp-blog-style.php mu-plugin. See DEPLOY-NOTES.md.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
  --nlp-paper: #f7f3ea;
  --nlp-paper-deep: #efe9db;
  --nlp-ink: #1d2a3a;
  --nlp-ink-soft: #43536b;
  --nlp-teal: #0e7c7b;
  --nlp-gold: #b98a2f;
  --nlp-navy: #16283e;
  --nlp-serif-display: 'Playfair Display', Georgia, serif;
  --nlp-serif-body: 'Source Serif 4', 'Iowan Old Style', Palatino, Georgia, serif;
}

/* ---------- page surface ---------- */
body.single-post,
body.archive,
body.blog,
body.category,
body.tag {
  background:
    radial-gradient(1200px 500px at 50% -100px, rgba(185, 138, 47, 0.10), transparent 70%),
    var(--nlp-paper);
  color: var(--nlp-ink);
  font-family: var(--nlp-serif-body);
}

/* ---------- reading column ---------- */
body.single-post .site-main,
body.archive .site-main,
body.blog .site-main,
body.category .site-main,
body.tag .site-main {
  max-width: 72ch;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}

/* ---------- title block ---------- */
body.single-post .page-header {
  border-bottom: 1px solid rgba(29, 42, 58, 0.18);
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
}

body.single-post .page-header h1,
body.single-post .entry-title {
  font-family: var(--nlp-serif-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--nlp-navy);
  letter-spacing: -0.01em;
}

/* ---------- body typography ---------- */
body.single-post .page-content {
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--nlp-ink);
}

body.single-post .page-content p { margin: 0 0 1.35em; }

body.single-post .page-content h2,
body.single-post .page-content h3,
body.single-post .page-content h4 {
  font-family: var(--nlp-serif-display);
  color: var(--nlp-navy);
  line-height: 1.25;
  margin: 2.2em 0 0.7em;
}

body.single-post .page-content h2 { font-size: 1.7rem; font-weight: 600; }
body.single-post .page-content h3 { font-size: 1.35rem; font-weight: 600; }
body.single-post .page-content h4 { font-size: 1.12rem; font-weight: 700; }

body.single-post .page-content a {
  color: var(--nlp-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.single-post .page-content a:hover { color: var(--nlp-navy); }

body.single-post .page-content blockquote {
  margin: 1.8em 0;
  padding: 0.9em 1.4em;
  border-left: 3px solid var(--nlp-gold);
  background: var(--nlp-paper-deep);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--nlp-ink-soft);
}
body.single-post .page-content blockquote p:last-child { margin-bottom: 0; }

body.single-post .page-content ul,
body.single-post .page-content ol { margin: 0 0 1.35em 1.4em; }
body.single-post .page-content li { margin-bottom: 0.45em; }

body.single-post .page-content hr {
  border: 0;
  height: 1px;
  background: rgba(29, 42, 58, 0.18);
  margin: 2.5em auto;
  max-width: 240px;
}

body.single-post .page-content img,
body.single-post .page-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(22, 40, 62, 0.14);
  margin: 0.4em 0;
}
body.single-post .page-content figcaption {
  font-size: 0.86rem;
  color: var(--nlp-ink-soft);
  text-align: center;
  margin-top: 0.5em;
}

body.single-post .page-content code {
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.88em;
  background: var(--nlp-paper-deep);
  padding: 0.12em 0.4em;
  border-radius: 5px;
}
body.single-post .page-content pre {
  background: var(--nlp-navy);
  color: #e8eef5;
  padding: 1.1em 1.3em;
  border-radius: 12px;
  overflow-x: auto;
  margin: 0 0 1.5em;
  font-size: 0.92rem;
  line-height: 1.55;
}
body.single-post .page-content pre code { background: none; padding: 0; color: inherit; }

body.single-post .page-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1.5em;
  font-size: 0.98rem;
}
body.single-post .page-content th,
body.single-post .page-content td {
  border: 1px solid rgba(29, 42, 58, 0.22);
  padding: 0.55em 0.8em;
  text-align: left;
}
body.single-post .page-content th { background: var(--nlp-paper-deep); font-weight: 600; }

/* ---------- tag pills ---------- */
body.single-post .post-tags { margin-top: 2.5rem; }
body.single-post .post-tags a {
  display: inline-block;
  font-family: var(--nlp-serif-body);
  font-size: 0.8rem;
  color: var(--nlp-ink-soft);
  background: var(--nlp-paper-deep);
  border: 1px solid rgba(29, 42, 58, 0.16);
  border-radius: 999px;
  padding: 0.22em 0.85em;
  margin: 0 0.35em 0.5em 0;
  text-decoration: none;
  transition: all 140ms ease;
}
body.single-post .post-tags a:hover {
  color: var(--nlp-teal);
  border-color: var(--nlp-teal);
}

/* ---------- comments ---------- */
body.single-post .comments-area,
body.single-post .comment-respond {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(29, 42, 58, 0.18);
}
body.single-post .comment-respond input[type='text'],
body.single-post .comment-respond input[type='email'],
body.single-post .comment-respond input[type='url'],
body.single-post .comment-respond textarea {
  background: #fff;
  border: 1px solid rgba(29, 42, 58, 0.25);
  border-radius: 8px;
  padding: 0.55em 0.8em;
  font-family: var(--nlp-serif-body);
}
body.single-post .comment-respond input[type='submit'] {
  background: var(--nlp-teal);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.6em 1.6em;
  cursor: pointer;
  font-family: var(--nlp-serif-body);
}
body.single-post .comment-respond input[type='submit']:hover { background: var(--nlp-navy); }

/* ---------- archive cards (blog/category/tag lists) ---------- */
body.archive .site-main article,
body.blog .site-main article,
body.category .site-main article,
body.tag .site-main article {
  background: #fffdf8;
  border: 1px solid rgba(29, 42, 58, 0.12);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 18px rgba(22, 40, 62, 0.06);
}
body.archive .site-main article h2 a,
body.blog .site-main article h2 a,
body.category .site-main article h2 a,
body.tag .site-main article h2 a {
  font-family: var(--nlp-serif-display);
  color: var(--nlp-navy);
  text-decoration: none;
}
body.archive .site-main article h2 a:hover,
body.blog .site-main article h2 a:hover,
body.category .site-main article h2 a:hover,
body.tag .site-main article h2 a:hover { color: var(--nlp-teal); }
