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

:root {
  --msi-primary: #16a34a;
  --msi-primary-dark: #107a38;
  --msi-ink: #0f2419;
  --msi-muted: #56675d;
  --msi-bg: #f0faf4;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--msi-ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

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

/* ---------- Home hero band ---------- */
.msi-hero {
  background: var(--msi-ink);
  color: #fff;
  padding: 90px 0 100px;
}
.msi-hero h1 { font-size: 42px; line-height: 1.05; font-weight: 800; letter-spacing: -1px; }
.msi-hero h1 span { color: var(--msi-primary); }

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

/* ---------- Single post / page ---------- */
.msi-single h1 { font-size: 32px; line-height: 1.2; margin-bottom: 8px; }
.msi-single .msi-post-date { margin-bottom: 24px; }
.msi-content p, .msi-content ul, .msi-content ol { margin-bottom: 18px; }
.msi-content ul, .msi-content ol { padding-left: 26px; }
.msi-content li { margin-bottom: 8px; }
.msi-content h2 { font-size: 24px; margin: 30px 0 12px; }
.msi-content h3 { font-size: 19px; margin: 24px 0 10px; }
.msi-content img { border-radius: 10px; }
.msi-content blockquote {
  margin: 0 0 18px;
  padding: 12px 20px;
  border-left: 4px solid var(--msi-primary);
  background: var(--msi-bg);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}
.msi-content blockquote p:last-child { margin-bottom: 0; }
.msi-content table { border-collapse: collapse; width: 100%; margin-bottom: 18px; font-size: 15px; }
.msi-content th, .msi-content td { border: 1px solid #ddf2e5; padding: 8px 12px; text-align: left; }
.msi-content th { background: var(--msi-bg); }

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

/* ---------- Footer ---------- */
.msi-footer { background: var(--msi-ink); color: rgba(255, 255, 255, 0.75); padding: 34px 0 26px; text-align: center; margin-top: auto; }
.msi-footer .msi-wrap { max-width: 1200px; }
.msi-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin-bottom: 20px; }
.msi-footer-links a { color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.msi-footer-links a:hover { color: #fff; text-decoration: underline; }
.msi-footer-address { font-size: 12px; color: rgba(255, 255, 255, 0.55); line-height: 1.6; margin-bottom: 10px; }
.msi-footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

@media (min-width: 768px) {
  .msi-logo img { height: 40px; }
  .msi-hero { padding: 110px 0 120px; }
  .msi-hero h1 { font-size: 68px; }
  .msi-main { padding: 56px 0 72px; }
  .msi-single h1 { font-size: 38px; }
  .msi-footer-links { flex-wrap: nowrap; justify-content: space-between; gap: 16px; }
}
