:root {
  --ink: #1a1d29;
  --muted: #64748b;
  --line: #e7e9f0;
  --brand: #e11d48;
  --brand-2: #f43f5e;
  --bg: #ffffff;
  --soft: #f8fafc;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 24, 40, 0.08);
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.brand span { color: var(--brand); }
.menu { display: flex; gap: 6px; flex-wrap: wrap; }
.menu a {
  color: #374151; font-weight: 600; font-size: 14.5px; padding: 8px 14px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.menu a:hover { background: #fff1f3; color: var(--brand); text-decoration: none; }
.menu a.active { background: var(--brand); color: #fff; }
.burger { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

@media (max-width: 780px) {
  .burger { display: block; }
  .menu { position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column;
    border-bottom: 1px solid var(--line); padding: 10px 20px; gap: 2px; display: none; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 10px; border-radius: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #fff1f3 0%, #eef2ff 60%, #ecfeff 100%);
  border-bottom: 1px solid var(--line); padding: 56px 0;
}
.hero h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 12px; letter-spacing: -0.03em; }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0; }
.kicker { display: inline-block; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Section ---------- */
.section { padding: 46px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 22px; }
.section-title h2 { font-size: 26px; margin: 0; letter-spacing: -0.02em; }
.section-title a { font-weight: 600; font-size: 14px; }

/* ---------- Post grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(20,24,40,.14); }
.card .thumb { height: 168px; display: grid; place-items: center; font-size: 52px; color: #fff; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--brand); background: #fff1f3; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
.card h3 a { color: var(--ink); }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; flex: 1; }
.card .meta { color: #94a3b8; font-size: 12.5px; }
.card .read { color: var(--brand); font-weight: 700; font-size: 13.5px; margin-top: 10px; }

/* gradient thumbnails */
.g1 { background: linear-gradient(135deg,#f43f5e,#e11d48); }
.g2 { background: linear-gradient(135deg,#3b82f6,#6366f1); }
.g3 { background: linear-gradient(135deg,#10b981,#059669); }
.g4 { background: linear-gradient(135deg,#f59e0b,#ea580c); }
.g5 { background: linear-gradient(135deg,#8b5cf6,#7c3aed); }
.g6 { background: linear-gradient(135deg,#06b6d4,#0891b2); }
.g7 { background: linear-gradient(135deg,#ec4899,#db2777); }
.g8 { background: linear-gradient(135deg,#14b8a6,#0d9488); }

/* ---------- Ad slot (fill after AdSense approval) ---------- */
.ad-slot {
  margin: 30px 0; padding: 14px; border: 1px dashed #cbd5e1; border-radius: 12px; text-align: center;
  color: #94a3b8; font-size: 12px; background: var(--soft); min-height: 90px; display: grid; place-items: center;
}

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 40px 20px 20px; }
.article .kicker { margin-bottom: 14px; }
.article h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 14px; }
.article .byline { color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 8px; }
.article .cover { height: 240px; border-radius: var(--radius); margin: 22px 0; display: grid; place-items: center; font-size: 72px; color: #fff; }
.article h2 { font-size: 24px; margin: 34px 0 12px; letter-spacing: -0.02em; }
.article h3 { font-size: 19px; margin: 24px 0 8px; }
.article p { font-size: 17px; margin: 0 0 18px; color: #2a2f3d; }
.article ul, .article ol { font-size: 17px; color: #2a2f3d; padding-left: 22px; }
.article li { margin: 8px 0; }
.article blockquote { border-left: 4px solid var(--brand); margin: 22px 0; padding: 6px 18px; color: #475569;
  background: var(--soft); border-radius: 0 8px 8px 0; font-style: italic; }
.article .share { display: flex; gap: 10px; margin: 28px 0; flex-wrap: wrap; }
.article .share a { background: var(--soft); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #374151; }
.article .share a:hover { background: #fff1f3; color: var(--brand); text-decoration: none; }

.author-box { display: flex; gap: 14px; align-items: center; background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-top: 30px; }
.author-box .avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg,var(--brand),var(--brand-2));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; }
.author-box b { display: block; }
.author-box p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Static pages ---------- */
.page { max-width: 800px; margin: 0 auto; padding: 44px 20px; }
.page h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 8px; }
.page .updated { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.page h2 { font-size: 22px; margin: 28px 0 10px; }
.page p, .page li { font-size: 16px; color: #2a2f3d; }
.form-grid { display: grid; gap: 14px; max-width: 520px; }
.form-grid label { font-weight: 600; font-size: 14px; }
.form-grid input, .form-grid textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font: inherit; }
.btn { display: inline-block; background: linear-gradient(120deg,var(--brand),var(--brand-2)); color: #fff; border: 0;
  padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: var(--shadow); }
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  font-weight: 600; color: #fff; }
.wa { background: #25D366; } .fb { background: #1877F2; } .ch { background: #128C7E; }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 46px 0 30px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.site-footer a { color: #cbd5e1; display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.copyright { border-top: 1px solid #1e293b; padding: 18px 0; text-align: center; font-size: 13px; color: #94a3b8; }
