/*
Theme Name: QiangOne Minimal
Theme URI: https://qiang.one/
Author: Qiang
Description: Ultra-minimal personal theme for Qiang.One — homepage, blog list, about.
Version: 1.0.3
Text Domain: qiangone
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar (inner pages) ---------- */
.topbar { border-bottom: 1px solid #f0f0f0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.topbar .brand { font-weight: 700; font-size: 17px; letter-spacing: 1px; }
.topbar nav a { font-size: 14px; color: #666; margin-left: 22px; }
.topbar nav a:hover { color: #111; }

/* ---------- homepage ---------- */
.home-hero { text-align: center; padding: 84px 24px 0; }
.home-hero h1 { font-size: 64px; font-weight: 700; letter-spacing: 4px; margin-bottom: 40px; }
.home-nav { display: flex; justify-content: center; gap: 36px; margin-bottom: 70px; flex-wrap: wrap; }
.home-nav a { font-size: 21px; color: #333; padding-bottom: 4px; }
.home-nav a:hover, .home-nav a.current { color: #111; font-weight: 600; border-bottom: 2px solid #111; }

.featured-section { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.featured-label { font-size: 13px; color: #999; letter-spacing: 8px; margin-bottom: 8px; text-align: center; }
.featured-item { display: flex; flex-direction: row; align-items: center; gap: 22px; padding: 22px 0; border-top: 1px solid #eee; }
.featured-item .thumb { width: 140px; height: 100px; flex: none; border-radius: 12px; background: linear-gradient(135deg, #e8e8e8, #cfcfcf); overflow: hidden; }
.featured-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-item .f-body { min-width: 0; }
.featured-item .f-title { font-size: 18px; font-weight: 600; line-height: 1.6; }
.featured-item .f-date { font-size: 13px; color: #999; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 72px; padding: 24px; border-top: 1px solid #f0f0f0; text-align: center; font-size: 12px; color: #aaa; }

/* ---------- blog list ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h2 { font-size: 24px; font-weight: 700; }
.page-head .count { font-size: 13px; color: #999; margin-top: 6px; }

.post-row { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid #eee; }
.post-row .thumb { width: 72px; height: 72px; flex: none; border-radius: 10px; background: linear-gradient(135deg, #e8e8e8, #cfcfcf); overflow: hidden; }
.post-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row .p-body { min-width: 0; flex: 1; }
.post-row .p-title { font-size: 16px; font-weight: 600; line-height: 1.5; }
.post-row .p-meta { font-size: 12px; color: #999; margin-top: 4px; }

/* ---------- single post / page ---------- */
.article { padding: 40px 0 20px; }
.article h1.entry-title { font-size: 26px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.article .entry-meta { font-size: 13px; color: #999; margin-bottom: 28px; }
.article .entry-content { font-size: 16px; color: #333; }
.article .entry-content p { margin-bottom: 1.2em; }
.article .entry-content h2 { font-size: 20px; margin: 1.6em 0 0.8em; color: #111; }
.back-link { display: inline-block; margin-top: 32px; font-size: 14px; color: #666; }

/* ---------- about page ---------- */
.about-photo { width: 104px; height: 104px; border-radius: 50%; background: linear-gradient(135deg, #dfe5ea, #b9c6d1); margin-bottom: 20px; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-name { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.about-tagline { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 28px; }
.about-section { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.about-body { font-size: 15px; color: #555; line-height: 2; margin-bottom: 16px; }
.about-contact { font-size: 15px; color: #555; line-height: 2.2; margin-bottom: 36px; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .home-hero { padding-top: 60px; }
  .home-hero h1 { font-size: 44px; letter-spacing: 2px; }
  .home-nav { gap: 26px; margin-bottom: 52px; }
  .home-nav a { font-size: 18px; }
  .featured-item { gap: 14px; padding: 18px 0; }
  .featured-item .thumb { width: 96px; height: 72px; border-radius: 10px; }
  .featured-item .f-title { font-size: 16px; }
  .post-row { gap: 12px; padding: 12px 0; }
  .post-row .thumb { width: 56px; height: 56px; border-radius: 8px; }
  .post-row .p-title { font-size: 15px; }
  .topbar nav a { margin-left: 14px; }
}
