/*
Theme Name: Lendli
Theme URI: https://lendli.com
Author: Pushnami
Description: Minimal hand-coded theme for Lendli. Blog-serving home page with brand header and footer.
Version: 1.2.3
License: Proprietary
Text Domain: lendli
*/

:root {
  --ld-primary: #5a5be8;
  --ld-primary-dark: #4344c7;
  --ld-ink: #23244d;
  --ld-muted: #6b7280;
  --ld-bg: #f6f6fe;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Avenir Next", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ld-ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

img { max-width: 100%; height: auto; }

a { color: var(--ld-primary); }

.ld-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.ld-header { padding: 16px 0; border-bottom: 1px solid #ececfb; background: #fff; }

/* ---------- Breadcrumb (above the page title) ---------- */
.ld-breadcrumb { font-size: 13px; color: var(--ld-muted); margin-bottom: 14px; }
.ld-breadcrumb a { color: var(--ld-muted); text-decoration: none; }
.ld-breadcrumb a:hover { color: var(--ld-primary); text-decoration: underline; }
.ld-breadcrumb .sep { margin: 0 7px; opacity: 0.6; }
.ld-breadcrumb .current { color: var(--ld-ink); font-weight: 600; }
.ld-header .ld-wrap { display: flex; align-items: center; }
.ld-logo { display: inline-flex; align-items: center; text-decoration: none; }
.ld-logo img { height: 40px; width: auto; display: block; }
.ld-logo-fallback { display: none; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; color: var(--ld-primary); }
.ld-logo.is-fallback img { display: none; }
.ld-logo.is-fallback .ld-logo-fallback { display: inline; }

/* ---------- Home hero band ---------- */
.ld-hero {
  background: linear-gradient(165deg, var(--ld-primary) 0%, var(--ld-primary-dark) 100%);
  color: #fff;
  padding: 90px 0 100px;
}
.ld-hero h1 { font-size: 42px; line-height: 1.05; font-weight: 800; letter-spacing: -1px; }

/* ---------- Blog list ---------- */
.ld-main { padding: 40px 0 56px; }
.ld-page-title { font-size: 26px; font-weight: 800; margin-bottom: 26px; }
.ld-post {
  background: var(--ld-bg);
  border-radius: 14px;
  padding: 26px 24px;
  margin-bottom: 20px;
  box-shadow:
    0px 0px 0px 1px rgba(35, 36, 77, 0.06),
    0px 1px 2px -1px rgba(35, 36, 77, 0.06),
    0px 2px 4px 0px rgba(35, 36, 77, 0.04);
}
.ld-post h2 { font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.ld-post h2 a { color: var(--ld-ink); text-decoration: none; }
.ld-post h2 a:hover { color: var(--ld-primary); }
.ld-post-date { font-size: 13px; color: var(--ld-muted); margin-bottom: 12px; }
.ld-post-excerpt { font-size: 16px; color: var(--ld-muted); }
.ld-post-thumb { border-radius: 10px; margin-bottom: 16px; display: block; }
.ld-readmore {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--ld-primary);
  text-decoration: none;
}
.ld-readmore:hover { color: var(--ld-primary-dark); text-decoration: underline; }

/* ---------- Single post / page ---------- */
.ld-single h1 { font-size: 32px; line-height: 1.2; margin-bottom: 8px; }
.ld-single .ld-post-date { margin-bottom: 24px; }
.ld-content p, .ld-content ul, .ld-content ol { margin-bottom: 18px; }
.ld-content h2 { font-size: 24px; margin: 30px 0 12px; }
.ld-content h3 { font-size: 19px; margin: 24px 0 10px; }
.ld-content img { border-radius: 10px; }

/* ---------- Pagination ---------- */
.ld-pagination { display: flex; gap: 14px; justify-content: center; margin-top: 32px; font-weight: 700; }
.ld-pagination a { text-decoration: none; }

/* ---------- Footer ---------- */
.ld-footer { background: var(--ld-ink); color: rgba(255, 255, 255, 0.75); padding: 34px 0 26px; text-align: center; margin-top: 40px; }
.ld-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin-bottom: 20px; }
.ld-footer-links a { color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 600; text-decoration: none; }
.ld-footer-links a:hover { color: #fff; text-decoration: underline; }
.ld-footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

@media (min-width: 768px) {
  .ld-logo img { height: 46px; }
  .ld-hero { padding: 110px 0 120px; }
  .ld-hero h1 { font-size: 68px; }
  .ld-main { padding: 56px 0 72px; }
  .ld-single h1 { font-size: 38px; }
}
