/* =========================================================
   LinuxNugget Medium-style Homepage Overrides
   (loaded after Casper screen.css)
   ========================================================= */

/* Background like Medium */
:root {
  --ln-bg: #f6f4ef;
  --ln-text: #191919;
  --ln-muted: #5b5b5b;
  --ln-border: rgba(0,0,0,.12);
}

html, body {
  background: var(--ln-bg) !important;
  color: var(--ln-text);
}

/* Make sure Casper header doesn't add extra padding we don't want */
.site-header,
.site-header-content,
.site-header-inner,
.site-header-cover {
  display: none !important;
}

/* Full-screen hero like Medium */
.ln-hero {
  background: var(--ln-bg);
  border-bottom: 1px solid var(--ln-border);
  min-height: calc(100vh - 84px); /* ~nav height; adjust if needed */
  display: flex;
  align-items: center;
}

.ln-hero-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.ln-hero-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(54px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -1px;
  margin: 0 0 18px;
}

.ln-hero-sub {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ln-text);
  margin: 0 0 26px;
  max-width: 44ch;
}

.ln-hero-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ln-text);
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  text-decoration: none;
  border: 1px solid var(--ln-text);
}

.ln-hero-btn:hover {
  filter: brightness(0.92);
}

/* Right-side hero image like Medium */
.ln-hero-right {
  display: flex;
  justify-content: flex-end;
}

.ln-hero-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 0;
  object-fit: cover;
}

/* Posts section */
.ln-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}

.ln-post {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ln-border);
}

.ln-post-title {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.ln-post-title a {
  color: var(--ln-text);
  text-decoration: none;
}

.ln-post-excerpt {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--ln-muted);
  margin: 0;
}

.ln-post-meta {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 13px;
  margin-top: 10px;
  color: #777;
}

.ln-dot { margin: 0 8px; }

.ln-tag {
  color: #777;
  text-decoration: none;
}

.ln-post-thumb img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Mobile: hide hero image, keep text */
@media (max-width: 900px) {
  .ln-hero-inner {
    grid-template-columns: 1fr;
  }
  .ln-hero-right {
    display: none;
  }
  .ln-hero {
    min-height: auto;
    padding-top: 10px;
  }
}

/* ===== NAV FIX ===== */

.site-header,
.gh-head {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.gh-head a,
.site-header a {
  color: #111 !important;
  font-weight: 500;
}

.gh-head .gh-head-actions .gh-head-btn {
  background: #111 !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 18px;
}

