/*
 * CSS Wizardry - Andy Bell Style Replica
 * Minimal, readable, content-focused
 */

/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1em;
    color: #222;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

a:hover {
    border-bottom-color: #0066cc;
    color: #004c99;
}

ul, ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

time {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Header */
.site-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    background-color: #fff;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: #222;
    border-bottom: none;
}

.site-title a:hover {
    color: #0066cc;
}

.site-nav ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    list-style: none;
}

.site-nav a {
    color: #333;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0;
}

.site-nav a:hover,
.site-nav a.current {
    border-bottom-color: #0066cc;
    color: #0066cc;
}

/* Content Layout */
.content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

/* Main Content */
.main-content {
    min-width: 0;
}

/* Hero Section */
.hero {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.hero h2 {
    margin-top: 0;
    font-size: 2rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
}

/* Article Previews */
.latest-articles {
    margin-bottom: 2rem;
}

.article-preview {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.article-preview:last-child {
    border-bottom: none;
}

.article-preview h4 {
    margin-bottom: 0.25rem;
}

.article-preview h4 a {
    color: #222;
    border-bottom: none;
}

.article-preview h4 a:hover {
    color: #0066cc;
}

.article-preview p {
    color: #555;
    margin-bottom: 0;
}

.view-all {
    text-align: right;
    margin-top: 1rem;
}

/* Button */
.button {
    display: inline-block;
    background-color: #0066cc;
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border-bottom: none;
    font-weight: 500;
}

.button:hover {
    background-color: #004c99;
    border-bottom: none;
}

/* Sidebar */
.sidebar {
    font-size: 0.95rem;
}

.widget {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget h3 {
    font-size: 1.1rem;
    margin-top: 0;
}

.widget p {
    color: #555;
}

.social-links {
    list-style: none;
    margin-left: 0;
}

.social-links li {
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

/* Projects Page */
.project-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.project-card:last-child {
    border-bottom: none;
}

.project-card h3 {
    margin-top: 0;
}

.project-tags {
    list-style: none;
    margin: 1rem 0 0 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags li {
    background-color: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
}

/* Speaking Page */
.event-list {
    list-style: none;
    margin-left: 0;
}

.event {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.event:last-child {
    border-bottom: none;
}

.event h4 {
    margin-bottom: 0.25rem;
}

.event-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-list {
    list-style: none;
    margin-left: 0;
}

.contact-list li {
    margin-bottom: 0.75rem;
}

.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

/* Single Post Page */
.single-post .post-date {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h3 {
    margin-top: 2rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid #0066cc;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}
