
/* Michigan Hired News - Base Styles */
*{box-sizing:border-box}
:root{
  --bg:#ffffff;
  --fg:#0f172a;
  --muted:#64748b;
  --brand:#0b2a4a;
  --brand-2:#1d4ed8;
  --card:#f8fafc;
  --border:#e2e8f0;
}
html,body{margin:0;padding:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--fg);background:var(--bg);}
a{color:var(--brand-2);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.header{border-bottom:1px solid var(--border);background:#fff;position:sticky;top:0;z-index:5}
.header .inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:40px}
.brand .title{font-size:20px;font-weight:800;color:var(--brand)}
.nav a{margin-left:18px;font-weight:600;color:#0f172a}
.hero{padding:28px 0 10px;border-bottom:1px solid var(--border);background:#fff}
.hero h1{font-size:clamp(22px,3vw,32px);margin:8px 0 6px}
.hero p{color:var(--muted);margin:0}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin:24px 0 40px}
.card{background:var(--card);border:1px solid var(--border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.card .content{padding:14px}
.card h3{margin:8px 0 6px;font-size:18px;line-height:1.2}
.card p{margin:0;color:var(--muted);font-size:14px}
.meta{font-size:12px;color:var(--muted)}
.footer{border-top:1px solid var(--border);padding:24px 0;color:var(--muted);background:#fff}
.post{max-width:830px;margin:24px auto;padding:0 16px}
.post h1{font-size:clamp(26px,3.2vw,40px);line-height:1.15;margin:8px 0 6px}
.post .byline{color:var(--muted);font-size:14px;margin-bottom:16px}
.post img{max-width:100%;border-radius:8px}
.post p{line-height:1.65}
.kicker{display:inline-block;padding:4px 10px;border-radius:999px;background:#e0e7ff;color:#3730a3;font-weight:700;font-size:12px;letter-spacing:.02em}
.topbar{display:flex;gap:8px;align-items:center}
.search{position:relative}
.search input{padding:10px 36px 10px 12px;border:1px solid var(--border);border-radius:10px;outline:none;width:240px}
.search svg{position:absolute;right:10px;top:50%;transform:translateY(-50%);height:18px;width:18px;opacity:.5}
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid var(--border);border-radius:999px;font-size:12px;color:#0f172a;background:#fff}
.btn{display:inline-block;padding:10px 14px;border-radius:10px;border:1px solid var(--border);background:#fff;color:#0f172a;font-weight:600}
.btn:hover{background:#f8fafc}
.callout{background:#f1f5f9;border:1px solid var(--border);border-radius:8px;padding:12px;margin:12px 0}
code{background:#f1f5f9;border:1px solid var(--border);padding:2px 6px;border-radius:6px}
@media(max-width:640px){.search input{width:180px}}
/* Featured banner */
.featured { background:#fff; border-bottom:1px solid var(--border); }
.featured-inner { display:grid; grid-template-columns: 1.2fr 2fr; gap:20px; align-items:center; max-width:1100px; margin:0 auto; padding:18px 16px; }
.featured-media img { width:100%; height:260px; object-fit:cover; border-radius:12px; border:1px solid var(--border); background:#f8fafc; }
.featured-text .kicker { display:inline-block; padding:4px 10px; border-radius:999px; background:#e0e7ff; color:#3730a3; font-weight:700; font-size:12px; letter-spacing:.02em; margin-bottom:6px; }
.featured-title { font-size:clamp(22px,3vw,30px); margin:6px 0 8px; line-height:1.2; }
.featured-title a { color:#0f172a; text-decoration:none; }
.featured-title a:hover { text-decoration:underline; }
.featured-excerpt { color:var(--muted); margin:0 0 6px; }
.featured-meta { color:var(--muted); font-size:12px; margin:0; }
@media (max-width: 800px) {
  .featured-inner { grid-template-columns: 1fr; }
  .featured-media img { height:200px; }
}
/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Optional: ensure images don’t stretch oddly */
.featured-media img { aspect-ratio: 16 / 9; }

/* Optional: give cards a gentle hover lift (mouse only) */
@media (hover: hover) and (pointer: fine) {
  .card { transition: transform .12s ease, box-shadow .12s ease; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(2,8,23,0.06); }
}

