/* ============================================================
   PeopleWorks Meeting — Blog styles (W6)
   Used by web/blog/index.html and individual post pages.
   ============================================================ */

:root {
    --pw-teal:        #0d9488;
    --pw-teal-deep:   #0F766E;
    --pw-teal-bright: #14B8A6;
    --pw-teal-soft:   #5EEAD4;
    --pw-ink:         #0F172A;
    --pw-deep:        #134E4A;
    --pw-canvas:      #F8FAFC;
    --pw-surface:     #FFFFFF;
    --pw-text:        #1F2937;
    --pw-text-muted:  #6B7280;
    --pw-border:      #E5E7EB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--pw-text);
    background: var(--pw-canvas);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -0.02em; color: var(--pw-text); }
a { color: var(--pw-teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Topbar */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pw-border);
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 16px; color: var(--pw-text); }
.brand__mark {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--pw-teal-deep), var(--pw-teal));
    color: white; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 12px;
}
.brand__product { color: var(--pw-teal-deep); }
.topbar__nav { display: inline-flex; align-items: center; gap: 18px; font-size: 14px; }
.topbar__nav a { color: var(--pw-text); font-weight: 500; }
.topbar__nav a:hover { color: var(--pw-teal-deep); text-decoration: none; }
.topbar__nav a.cta {
    background: linear-gradient(135deg, var(--pw-teal-deep), var(--pw-teal));
    color: white !important; padding: 9px 18px; border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(13,148,136,0.25);
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.topbar__nav a.cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13,148,136,0.32); }

/* Hero (blog index) */
.hero {
    background: linear-gradient(135deg, #0F172A 0%, #134E4A 50%, #0F766E 100%);
    padding: 80px 24px 60px;
    color: white;
    text-align: center;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 14px;
}
.hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.78);
    max-width: 600px;
    margin: 0 auto;
}

/* Post list */
.post-list {
    max-width: 840px;
    margin: 40px auto 80px;
    padding: 0 24px;
    display: flex; flex-direction: column;
    gap: 16px;
}
.post-card {
    background: var(--pw-surface);
    border: 1px solid var(--pw-border);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.post-card__link { display: block; text-decoration: none; color: inherit; }
.post-card:not(.post-card--placeholder):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15,23,42,0.08);
    border-color: var(--pw-teal);
}
.post-card--placeholder { opacity: 0.6; }
.post-card__kicker {
    display: inline-block;
    background: rgba(13,148,136,0.1);
    color: var(--pw-teal-deep);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.post-card--placeholder .post-card__kicker {
    background: var(--pw-canvas); color: var(--pw-text-muted);
}
.post-card--featured { border-color: var(--pw-teal); }
.post-card--featured .post-card__kicker {
    background: linear-gradient(135deg, var(--pw-teal-deep), var(--pw-teal));
    color: white;
}
.post-card__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
}
.post-card__excerpt {
    color: var(--pw-text-muted);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 12px;
}
.post-card__meta {
    font-size: 13px;
    color: var(--pw-text-muted);
}
.post-card__dot { margin: 0 6px; opacity: 0.6; }

/* Post page */
.post {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}
.post__header { margin-bottom: 36px; }
.post__back {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pw-text-muted);
    margin-bottom: 16px;
}
.post__back:hover { color: var(--pw-teal-deep); }
.post__kicker {
    display: inline-block;
    background: rgba(13,148,136,0.1);
    color: var(--pw-teal-deep);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.post__header h1 {
    font-size: clamp(30px, 4.5vw, 42px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
}
.post__lede {
    font-size: 19px;
    color: var(--pw-text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
}
.post__meta {
    font-size: 13px;
    color: var(--pw-text-muted);
}
.post__meta-dot { margin: 0 6px; opacity: 0.6; }

/* Post body — long-form readable */
.post__body { font-size: 17px; line-height: 1.75; color: var(--pw-text); }
.post__body > p { margin-bottom: 22px; }
.post__body > h2 {
    font-size: 26px;
    font-weight: 800;
    margin-top: 44px;
    margin-bottom: 16px;
    line-height: 1.2;
}
.post__body > h3 {
    font-size: 19px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--pw-teal-deep);
    line-height: 1.3;
}
.post__body ul, .post__body ol {
    margin-bottom: 22px;
    padding-left: 24px;
}
.post__body li {
    margin-bottom: 8px;
    line-height: 1.65;
}
.post__body strong { color: var(--pw-text); font-weight: 700; }
.post__body em { color: var(--pw-text); font-style: italic; }
.post__body a {
    color: var(--pw-teal-deep);
    border-bottom: 1px solid rgba(15,118,110,0.3);
    transition: border-color 0.12s ease;
}
.post__body a:hover { border-bottom-color: var(--pw-teal); text-decoration: none; }

.post__rule {
    margin: 40px 0;
    border: none;
    border-top: 1px solid var(--pw-border);
}

/* Inline CTA inside posts */
.post__cta {
    background: linear-gradient(135deg, rgba(13,148,136,0.06), rgba(20,184,166,0.08));
    border: 1px solid rgba(13,148,136,0.2);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}
.post__cta h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--pw-text);
    margin-bottom: 8px;
}
.post__cta p {
    color: var(--pw-text-muted);
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto 18px;
}
.post__cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
    background: linear-gradient(135deg, var(--pw-teal-deep), var(--pw-teal));
    color: white;
    box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13,148,136,0.32);
    text-decoration: none;
}
.btn--secondary {
    background: white;
    color: var(--pw-text);
    border: 1px solid var(--pw-border);
}
.btn--secondary:hover { border-color: var(--pw-teal); color: var(--pw-teal-deep); text-decoration: none; }

/* Post footer / share */
.post__footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--pw-border);
}
.post__share {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.post__share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pw-text-muted);
    margin-right: 4px;
}
.post__share a, .post__share-copy {
    display: inline-flex; align-items: center; gap: 6px;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--pw-canvas);
    border: 1px solid var(--pw-border);
    color: var(--pw-text-muted);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    justify-content: center;
}
.post__share-copy { width: auto; padding: 0 12px; }
.post__share a:hover, .post__share-copy:hover {
    background: rgba(13,148,136,0.08);
    color: var(--pw-teal-deep);
    border-color: var(--pw-teal);
    text-decoration: none;
}

/* Site footer */
.site-footer {
    background: var(--pw-ink);
    color: rgba(255,255,255,0.7);
    padding: 32px 24px;
    text-align: center;
    font-size: 13px;
}
.site-footer a { color: var(--pw-teal-soft); }

/* Toast */
.toast {
    position: fixed; right: 20px; bottom: 20px;
    background: var(--pw-text);
    color: white;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 100;
}
.toast--show { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .hero { padding: 60px 20px 40px; }
    .post-list { padding: 0 16px; }
    .post-card { padding: 22px 18px; }
    .post { padding: 32px 18px 40px; }
    .post__body { font-size: 16px; }
}
