:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #1f2430;
  --muted: #6b7280;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --chip-bg: #eef1f5;
  --header-bg: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.2rem; }

/* Header */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-size: 1.35rem; font-weight: 800; text-decoration: none; color: var(--text); }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 1.2rem; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--accent); }

.page { padding: 1.6rem 1.2rem 3rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--header-bg); padding: 1.4rem 0; margin-top: 2rem; }
.footer-inner { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; color: var(--muted); }
.fine a { color: var(--muted); }

/* Hero */
.hero { text-align: center; padding: 2.6rem 0 1.4rem; }
.hero h1 { font-size: 2.2rem; margin: 0 0 0.6rem; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.section-title { font-size: 1.4rem; margin: 2rem 0 1rem; }

/* Ad */
.ad-slot { border: 1px dashed var(--border); background: var(--card); text-align: center; border-radius: 10px; }
.ad-label { display: block; font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.5rem 0 0; }
.ad-placeholder { color: var(--muted); font-size: 0.85rem; padding: 0 0 1.5rem; }
.ad-leaderboard { min-height: 90px; margin: 1.4rem 0; }
.ad-rectangle { min-height: 250px; max-width: 336px; margin: 1.4rem auto; }

/* Detail page */
.detail-head { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem 0; }
.detail-title { font-size: 2rem; margin: 0; }
.detail-desc { font-size: 1.05rem; color: #374151; max-width: 760px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.tag { font-size: 0.78rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--chip-bg); color: var(--muted); border: 1px solid var(--border); }
.btn { display: inline-block; margin-top: 1rem; background: var(--accent); color: #fff; text-decoration: none; padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; }
.btn:hover { background: var(--accent-dark); }
.source-note { font-size: 0.8rem; color: var(--muted); margin-top: 1.2rem; }
.static-prose ul { margin: 0.5rem 0; }