:root {
  --brand: #f05046;
  --brand-dark: #d63c33;
  --brand-light: #fff1f0;
  --dark: #1a1a1b;
  --mid: #3d3d3f;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #fdfdfd;
  --blue-accent: #2563eb;
  --navy: #060d1a;
}
* { box-sizing: border-box; }
html { font-family: 'Nunito', sans-serif; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; color: var(--dark); background: var(--bg); }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .018; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 200px 200px; }
a { color: inherit; }
.nav { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; min-height: 64px; display: flex; gap: 28px; align-items: center; }
.nav-logo img { height: 30px; display: block; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex: 1; }
.nav-links a { text-decoration: none; color: var(--mid); font-size: 14px; font-weight: 700; }
.nav-links a.active, .nav-links a:hover { color: var(--brand); }
.btn-nav, .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border-radius: 8px; padding: 11px 20px; text-decoration: none; font-weight: 700; transition: .2s ease; }
.btn-nav:hover, .btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.page-hero, .article-hero { background: linear-gradient(180deg, #f0f4ff 0%, #fdfdfd 85%); padding: 88px 24px 56px; }
.article-hero { background: linear-gradient(180deg, #060d1a 0%, #0f172a 60%, #fdfdfd 100%); color: white; }
.page-hero-inner, .article-hero-inner, .section-inner, .footer-inner, .article-shell { max-width: 1120px; margin: 0 auto; }
.page-hero-inner { text-align: center; max-width: 820px; }
.article-hero-inner { max-width: 840px; }
.eyebrow { display: inline-flex; align-items: center; border: 1px solid rgba(240,80,70,.22); background: rgba(240,80,70,.10); color: var(--brand); border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 18px 0 16px; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
.page-hero p, .article-hero p { font-size: 19px; line-height: 1.7; max-width: 720px; color: inherit; opacity: .88; }
.section { padding: 32px 24px 84px; }
.section-tight { padding-top: 0; }
.featured-post-card, .post-card, .article-card, .sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 18px 50px rgba(15, 23, 42, .06); }
.featured-post-card { padding: 34px; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-card { padding: 28px; }
.post-card h3, .featured-post-card h2, .sidebar-card h3 { margin: 12px 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.post-card p, .featured-post-card p, .sidebar-card p { margin: 0 0 18px; color: var(--mid); line-height: 1.7; }
.text-link, .back-link { color: var(--blue-accent); font-weight: 700; text-decoration: none; }
.meta-row { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 14px; font-weight: 700; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag { display: inline-flex; align-items: center; background: #f8fafc; border: 1px solid var(--border); color: var(--mid); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; }
.article-shell { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 28px; padding: 0 24px 84px; }
.article-card { padding: 40px; }
.sidebar-card { padding: 28px; margin-bottom: 20px; }
.hero-media { margin: 0 0 28px; }
.hero-media img { display: block; width: 100%; max-width: 720px; border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(15, 23, 42, .08); }
.prose p, .prose ul, .prose h2, .prose h3, .prose h4, .prose .hero-media { max-width: 720px; }
.prose p, .prose li { font-size: 18px; line-height: 1.9; color: #243042; }
.prose h2, .prose h3, .prose h4 { margin: 30px 0 14px; line-height: 1.2; letter-spacing: -.02em; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 26px; }
.prose ul { padding-left: 22px; }
.prose code { background: #f8fafc; border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.footer { background: #060d1a; color: #e2e8f0; }
.footer-inner { padding: 56px 24px 30px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(148,163,184,.15); }
.footer-brand img { height: 30px; margin-bottom: 18px; }
.footer-brand p, .footer-col a { color: #94a3b8; text-decoration: none; line-height: 1.8; }
.footer-col h4 { margin: 0 0 12px; color: white; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; color: #94a3b8; font-size: 14px; }
@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; padding: 14px 24px; }
  .nav-links { width: 100%; flex-wrap: wrap; }
  .featured-post-card, .article-shell, .footer-top, .post-grid { grid-template-columns: 1fr; display: grid; }
  .featured-post-card { align-items: start; }
}
@media (max-width: 640px) {
  .page-hero, .article-hero { padding-top: 72px; }
  .article-card, .sidebar-card, .featured-post-card, .post-card { padding: 22px; border-radius: 18px; }
  .footer-bottom { flex-direction: column; }
}