:root{
  --blue:#2B80FF; --ink:#1a1a1a; --muted:#6b7280; --bg:#f4f6f9;
  --card:#fff; --line:#e5e7eb;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}

/* header */
.site-header{background:#0c1424;color:#fff;position:sticky;top:0;z-index:10}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:62px}
.logo{font-weight:800;font-size:22px;letter-spacing:1px;color:#fff}
.logo span{color:var(--blue)}
.site-header nav a{color:#cbd5e1;margin-left:20px;font-weight:600;font-size:15px}
.site-header nav a:hover{color:#fff;text-decoration:none}

/* hero */
.hero{padding:40px 0 20px}
.hero h1{font-size:34px;margin:0 0 8px;font-weight:800}
.hero p{color:var(--muted);font-size:18px;margin:0}

/* grid of cards */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;padding:14px 0 40px}
@media(max-width:820px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:540px){.grid{grid-template-columns:1fr}}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;transition:transform .12s,box-shadow .12s}
.card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.08)}
.card-img{display:block;aspect-ratio:16/9;background:#e8edf3;overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover;display:block}
.card-img .noimg{width:100%;height:100%;background:linear-gradient(135deg,#1a2a44,#2B80FF)}
.card-body{padding:14px 16px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.card-body time{color:var(--muted);font-size:13px;font-weight:600}
.card-body h2{font-size:17px;line-height:1.35;margin:0}
.card-body h2 a{color:var(--ink)}
.card-body p{color:var(--muted);font-size:14px;margin:0;flex:1}

/* tags */
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{font-size:12px;font-weight:600;background:#eef4ff;color:var(--blue);padding:3px 9px;border-radius:999px}
.tag:hover{text-decoration:none;background:#dbe8ff}

.more{text-align:center;padding:0 0 50px}
.btn{display:inline-block;background:var(--blue);color:#fff;font-weight:700;padding:12px 24px;border-radius:999px}
.btn:hover{text-decoration:none;background:#1a6ff0}

/* post page */
.post{background:var(--card);border:1px solid var(--line);border-radius:14px;max-width:720px;margin:30px auto;padding:36px 40px 44px}
@media(max-width:600px){.post{padding:24px 18px}}
.post .back{margin:0 0 10px}
.post>time{color:var(--muted);font-weight:600;font-size:14px}
.post h1{font-size:30px;line-height:1.25;margin:6px 0 10px;font-weight:800}
.post .subtitle{font-size:19px;color:var(--muted);margin:0 0 14px}
.post .tags{margin-bottom:22px}
.post-body{font-size:18px;line-height:1.7}
/* normalize the imported beehiiv email tables so they flow as article content */
.post-body table{width:100%!important;max-width:100%!important;border-collapse:collapse}
.post-body td{display:block;width:auto!important;padding:0!important}
.post-body img{max-width:100%!important;height:auto!important;border-radius:8px;margin:14px 0;display:block}
.post-body h1,.post-body h2,.post-body h3{line-height:1.3;margin:22px 0 8px;font-weight:700}
.post-body h1{font-size:26px}.post-body h2{font-size:22px}.post-body h3{font-size:19px}
.post-body p{margin:14px 0}
.post-body a{color:var(--blue);font-weight:600}
.post-body ul,.post-body ol{margin:14px 0 14px 24px}
.post-body li{margin:6px 0}

/* footer */
.site-footer{background:#0c1424;color:#9fb0c7;margin-top:40px;padding:26px 0}
.site-footer p{margin:4px 0;font-size:14px}
.site-footer .social a{color:#cbd5e1;font-weight:600}
