* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #374151;
    line-height: 1.6;
}

.min-h-screen { min-height: 100vh; }
.bg-white { background-color: #ffffff; }

.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-12 { gap: 3rem; }

@media (min-width: 1024px) {
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-4 { grid-column: span 4 / span 4; }
    .lg\:col-span-8 { grid-column: span 8 / span 8; }
    .lg\:sticky { position: sticky; }
    .lg\:top-12 { top: 3rem; }
    .lg\:self-start { align-self: flex-start; }
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.relative { position: relative; }

/* Avatar */
.avatar-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 100%);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar-container:hover img {
    transform: scale(1.02);
}

/* Typography */
.text-3xl {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.025em;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.6;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.5;
}

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-gray-900 { color: #111827; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-blue-600 { color: #2563eb; }
.text-amber-600 { color: #d97706; }

.leading-relaxed { line-height: 1.625; }

/* Spacing */
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

.p-8 { padding: 2rem; }
.p-6 { padding: 1.5rem; }
.p-5 { padding: 1.25rem; }

.mb-12 { margin-bottom: 3rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-4 { margin-top: 1rem; }

.pt-6 { padding-top: 1.5rem; }

/* Borders */
.border { border: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-l-4 { border-left: 4px solid #fbbf24; }

/* Quote Block */
.quote-block {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #fbbf24;
    margin-bottom: 3rem;
}

.quote-block blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: #374151;
    line-height: 1.6;
}

.quote-block cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: normal;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.social-links a:hover { color: #2563eb; }

/* Books Section */
.books-section {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.books-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.books-section ul {
    list-style: none;
}

.books-section li {
    margin-bottom: 0.5rem;
}

.books-section a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.books-section a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

.article-card {
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.article-card a {
    text-decoration: none;
    color: inherit;
}

.article-image {
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.25rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.article-meta .publication {
    font-weight: 500;
    color: #d97706;
}

.article-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.article-card:hover .article-title {
    color: #2563eb;
}

.article-desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 4rem;
}

.footer-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-credits {
    display: flex;
    gap: 1.5rem;
}

/* Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

aside {
    animation: fadeIn 0.6s ease-out;
}

main {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.article-card {
    animation: fadeIn 0.4s ease-out;
}
