/* TechDailyHub — clean, neutral, mobile-first styling */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fafafa;
}
.wrap { max-width: 940px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header {
  background: #1f2937;
  color: #fff;
  padding: 14px 0;
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 1.25rem; font-weight: 700; color: #fff; text-decoration: none; }
.brand .dot { color: #f59e0b; }
.site-header nav a { color: #d1d5db; text-decoration: none; margin-left: 14px; font-size: .95rem; }
.site-header nav a:hover { color: #fff; }
@media (max-width: 560px) { .site-header nav { display: none; } }

/* main */
main { padding: 28px 0 48px; }
.page-title { font-size: 1.5rem; margin-bottom: 20px; color: #111; }

/* card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.card {
  display: block; background: #fff; border: 1px solid #e5e5e5; border-radius: 12px;
  padding: 16px; text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.card-tag { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .4px; color: #b45309; background: #fef3c7; border-radius: 20px; padding: 2px 10px; margin-bottom: 8px; }
.card h2 { font-size: 1.08rem; margin: 8px 0; color: #111; line-height: 1.3; }
.card p { font-size: .88rem; color: #555; margin-bottom: 8px; }
.card-meta { font-size: .75rem; color: #999; }
.empty { color: #777; font-style: italic; grid-column: 1 / -1; }

/* article page */
.article { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 28px; }
.article h1 { font-size: 1.7rem; margin-bottom: 6px; color: #111; }
.article .meta { font-size: .8rem; color: #888; margin-bottom: 20px; }
.article h2 { font-size: 1.2rem; margin: 22px 0 8px; color: #111; }
.article h3 { font-size: 1.05rem; margin: 18px 0 6px; color: #222; }
.article p { margin: 12px 0; }
.article ul, .article ol { margin: 12px 0 12px 22px; }
.article li { margin: 6px 0; }
.article blockquote { border-left: 3px solid #f59e0b; background: #fffbeb; padding: 10px 14px; margin: 14px 0; color: #444; }
.article pre { background: #111; color: #eee; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: .84rem; }
.article code { background: #f0f0f0; padding: 2px 5px; border-radius: 4px; font-size: .85rem; }
.article pre code { background: none; padding: 0; color: inherit; }
.article img { max-width: 100%; height: auto; border-radius: 8px; }
.article a { color: #2563eb; text-decoration: underline; }

/* footer */
.site-footer { background: #1f2937; color: #9ca3af; padding: 24px 0; margin-top: 40px; }
.site-footer p { margin: 4px 0; font-size: .9rem; }
.site-footer .small { font-size: .78rem; color: #6b7280; }
