/* base.css — common reset, color tokens, container, button, card primitives.
   Variant CSS files override on top of this via body.layout-* / typography-* / header-* / card-* selectors. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--c-text); background: var(--c-bg); line-height: 1.55; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.msl-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header / footer scaffolding (visual variants override) */
.msl-site-header { padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,.08); background: var(--c-bg); }
.msl-site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.msl-brand-text { font-weight: 700; color: var(--c-primary); font-size: 20px; }
.msl-menu, .msl-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.msl-menu a, .msl-footer-menu a { color: var(--c-text); }

.msl-main { padding: 40px 0; }
.msl-section { padding: 48px 0; }
.msl-section-alt { background: var(--c-neutral); }
.msl-section-title { margin: 0 0 12px; color: var(--c-primary); }
.msl-section-lead { color: var(--c-muted); margin: 0 0 24px; }

/* Hero (header variant overrides) */
.msl-hero { padding: 64px 0; background: var(--c-neutral); }
.msl-hero-title { margin: 0 0 12px; color: var(--c-primary); font-size: clamp(28px, 4.5vw, 56px); line-height: 1.1; }
.msl-hero-lead { font-size: 18px; color: var(--c-muted); max-width: 740px; margin: 0 0 24px; }
.msl-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.msl-btn { display: inline-block; padding: 10px 18px; border: 1px solid var(--c-primary); color: var(--c-primary); background: transparent; border-radius: 4px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.msl-btn:hover { background: var(--c-primary); color: #fff; text-decoration: none; }
.msl-btn-primary { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.msl-btn-primary:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* Card grid (card variant overrides) */
.msl-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.msl-card { background: var(--c-bg); border-radius: 6px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.msl-card-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.msl-card-body { padding: 16px; }
.msl-card-title { margin: 0 0 6px; font-size: 18px; }
.msl-card-title a { color: var(--c-primary); }
.msl-card-meta { color: var(--c-muted); font-size: 13px; margin-bottom: 8px; }
.msl-card-excerpt { color: var(--c-text); font-size: 14px; }
.msl-empty { color: var(--c-muted); font-style: italic; }

/* Lead form */
.msl-lead-magnet { background: var(--c-secondary); color: #fff; }
.msl-lead-magnet .msl-section-title { color: #fff; }
.msl-lead-form { display: flex; gap: 8px; max-width: 480px; margin-top: 16px; }
.msl-lead-form input { flex: 1; padding: 12px 14px; border: 0; border-radius: 4px; font-size: 15px; }

/* Footer */
.msl-site-footer { padding: 28px 0; border-top: 1px solid rgba(0,0,0,.08); background: var(--c-neutral); color: var(--c-muted); font-size: 14px; margin-top: 64px; }
.msl-footer-meta { margin-top: 8px; }

/* Conquest disclosure */
.msl-disclosure { background: #f3f3f3; color: #444; font-size: 12px; line-height: 1.5; padding: 12px 20px; text-align: center; border-top: 1px solid #ddd; }
