@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap'); :root { --primary: #4f46e5; --primary-hover: #4338ca; --bg-body: #f8fafc; --bg-card: #ffffff; --text-main: #1e293b; --text-muted: #64748b; --border: #e2e8f0; --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); --font-heading: 'Playfair Display', serif; --font-body: 'Outfit', sans-serif; --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } [data-theme="dark"] { --primary: #6366f1; --primary-hover: #818cf8; --bg-body: #0f172a; --bg-card: #1e293b; --text-main: #f8fafc; --text-muted: #cbd5e1; --border: #334155; --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.5); --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.5); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font-body); background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; transition: background-color 0.3s ease, color 0.3s ease; min-height: 100vh; display: flex; flex-direction: column; } /* Header */ header { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; } [data-theme="dark"] header { background: rgba(15, 23, 42, 0.8); } .nav-container { max-width: 800px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; } .logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: -0.025em; } /* Theme Toggle */ .theme-toggle { background: transparent; border: 1px solid var(--border); color: var(--text-main); padding: 0.5rem; border-radius: 50%; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; } .theme-toggle:hover { background: var(--bg-card); transform: scale(1.1); } /* Main Content */ main { flex: 1; max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; width: 100%; } .hero { text-align: center; margin-bottom: 4rem; animation: fadeIn 0.8s ease-out; } .hero h1 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 1rem; background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .hero p { font-size: 1.25rem; color: var(--text-muted); } /* Blog Posts */ .post-grid { display: grid; gap: 2rem; } .post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; transition: var(--transition); animation: slideUp 0.6s ease-out forwards; opacity: 0; } .post-card:nth-child(1) { animation-delay: 0.1s; } .post-card:nth-child(2) { animation-delay: 0.2s; } .post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary); } .post-meta { font-size: 0.875rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; } .post-title { font-family: var(--font-heading); font-size: 1.75rem; margin-bottom: 1rem; line-height: 1.3; } .post-excerpt { color: var(--text-muted); margin-bottom: 1.5rem; } .btn-read { display: inline-flex; align-items: center; color: var(--primary); font-weight: 600; text-decoration: none; transition: var(--transition); } .btn-read:hover { color: var(--primary-hover); gap: 0.5rem; } /* Footer */ footer { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 4rem; } /* Animations */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Mobile */ @media (max-width: 640px) { .hero h1 { font-size: 2.5rem; } .post-card { padding: 1.5rem; } }