/* nocodinglife overrides on top of Source. Plain CSS, served as-is (no build step). */
:root {
    --ncl-ink: #0f172a;
    --ncl-muted: #475569;
    --ncl-line: #e2e8f0;
    --ncl-soft: #f8fafc;
    --ncl-accent: var(--ghost-accent-color, #1d4ed8);
    --ncl-radius: 14px;
}

.home-template .gh-main, .home-template .site-content { padding: 0; }

.ncl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 24px; border-radius: 999px;
    font-size: 1.6rem; font-weight: 600; letter-spacing: -0.005em;
    text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ncl-btn:hover { transform: translateY(-1px); }
.ncl-btn:focus-visible { outline: 3px solid var(--ncl-accent); outline-offset: 3px; }
.ncl-btn-primary { background: var(--ncl-accent); color: #fff; box-shadow: 0 6px 18px -8px var(--ncl-accent); }
.ncl-btn-ghost { color: var(--ncl-ink); border: 1px solid var(--ncl-line); background: #fff; }
.ncl-btn-ghost:hover { border-color: var(--ncl-ink); }
.ncl-btn-light { background: #fff; color: var(--ncl-ink); white-space: nowrap; }

/* Hero */
.ncl-hero { padding-top: clamp(56px, 10vw, 128px); padding-bottom: clamp(48px, 7vw, 88px); background:
    radial-gradient(1200px 400px at 50% -10%, color-mix(in srgb, var(--ncl-accent) 9%, transparent), transparent 70%); }
.ncl-hero-inner { max-width: 880px; text-align: center; }
.ncl-eyebrow { margin: 0 0 18px; font-size: 1.35rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ncl-accent); }
.ncl-hero-title { margin: 0; font-size: clamp(3.4rem, 6vw, 6rem); line-height: 1.08; letter-spacing: -0.025em; color: var(--ncl-ink); }
.ncl-hero-lead { max-width: 640px; margin: 24px auto 0; font-size: clamp(1.7rem, 2.1vw, 2rem); line-height: 1.55; color: var(--ncl-muted); }
.ncl-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* Sections */
.ncl-section-title { margin: 0 0 28px; font-size: clamp(2.4rem, 3vw, 3rem); letter-spacing: -0.02em; color: var(--ncl-ink); }
.ncl-services { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); background: var(--ncl-soft); border-top: 1px solid var(--ncl-line); border-bottom: 1px solid var(--ncl-line); }
.ncl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ncl-card { padding: 28px; background: #fff; border: 1px solid var(--ncl-line); border-radius: var(--ncl-radius); }
.ncl-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    color: var(--ncl-accent); background: color-mix(in srgb, var(--ncl-accent) 10%, #fff); }
.ncl-card-icon svg { width: 22px; height: 22px; }
.ncl-card-title { margin: 18px 0 8px; font-size: 1.9rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ncl-ink); }
.ncl-card-text { margin: 0; font-size: 1.55rem; line-height: 1.6; color: var(--ncl-muted); }
.ncl-services-note { margin: 28px 0 0; font-size: 1.55rem; color: var(--ncl-muted); }
.ncl-services-note a, .ncl-more a { color: var(--ncl-accent); font-weight: 600; text-decoration: none; }

/* Latest posts */
.ncl-latest { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.ncl-latest-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.ncl-latest-head .ncl-section-title { margin: 0; }
.ncl-latest-sub { margin: 0; color: var(--ncl-muted); font-size: 1.55rem; }
.ncl-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ncl-post { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ncl-line); border-radius: var(--ncl-radius);
    background: #fff; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.ncl-post:hover { border-color: #cbd5e1; box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); }
.ncl-post-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.ncl-post-tag { font-size: 1.2rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ncl-accent); }
.ncl-post-title { margin: 0; font-size: 1.9rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ncl-ink); }
.ncl-post-excerpt { margin: 0; font-size: 1.5rem; line-height: 1.55; color: var(--ncl-muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncl-post-date { margin-top: auto; padding-top: 6px; font-size: 1.35rem; color: #64748b; }
.ncl-more { margin: 28px 0 0; font-size: 1.6rem; }

/* Bottom band */
.ncl-band { padding-bottom: clamp(56px, 8vw, 96px); }
.ncl-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px);
    border-radius: 20px; background: var(--ncl-ink); color: #fff; }
.ncl-band-title { margin: 0 0 8px; font-size: clamp(2.2rem, 2.8vw, 2.8rem); letter-spacing: -0.02em; color: #fff; }
.ncl-band-text { margin: 0; max-width: 560px; font-size: 1.6rem; line-height: 1.55; color: #cbd5e1; }

/* Post & page polish */
.gh-article-title { letter-spacing: -0.02em; }
.gh-content a { text-underline-offset: 3px; }

@media (max-width: 900px) {
    .ncl-cards, .ncl-posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ncl-cards, .ncl-posts { grid-template-columns: 1fr; }
    .ncl-hero-inner { text-align: left; }
    .ncl-hero-lead { margin-left: 0; }
    .ncl-hero-actions { justify-content: flex-start; }
    .ncl-hero-actions .ncl-btn { flex: 1 1 100%; }
    .ncl-band-inner { flex-direction: column; align-items: flex-start; }
    .ncl-btn-light { width: 100%; white-space: normal; }
}
