/* Base styles */
:root {
    --text-color: #333;
    --background-color: #fff;
    --accent-color: #666;
    --link-color: #0066cc;
    --max-width: 800px;
    --spacing-unit: 1.5rem;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Serif 4', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 1.125rem;
}

/* Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-unit);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-unit);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

p {
    margin-bottom: var(--spacing-unit);
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

a:hover {
    border-bottom-color: var(--link-color);
}

/* Navigation */
header {
    border-bottom: 1px solid #eee;
    padding: var(--spacing-unit);
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-unit);
}

.nav-links a {
    color: var(--accent-color);
}

/* Article content */
article {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-unit);
    color: var(--text-color);
}

.article-meta {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--accent-color);
    font-size: 1rem;
    display: flex;
    gap: var(--spacing-unit);
}

.article-author {
    font-style: italic;
}

.article-date {
    color: var(--accent-color);
}

.body-title {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    color: var(--accent-color);
}

/* Lead section */
.lead {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    margin: var(--spacing-unit) 0;
}

/* Figures */
figure {
    margin: var(--spacing-unit) 0;
}

figure.float-left {
    float: left;
    margin: 0 var(--spacing-unit) var(--spacing-unit) 0;
    max-width: 45%;
}

figure.float-right {
    float: right;
    margin: 0 0 var(--spacing-unit) var(--spacing-unit);
    max-width: 45%;
}

figure.keynote-photo {
    margin: var(--spacing-unit) 0;
}

figure img {
    margin: 0;
}

figcaption {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Clickable images in figures */
figure a {
    border: none;
}

figure a img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

figure a:hover img {
    opacity: 0.85;
}

.headshot {
    float: right;
    margin: 0 0 var(--spacing-unit) var(--spacing-unit);
    max-width: 200px;
    border-radius: 4px;
}

/* Footer */
footer {
    border-top: 1px solid #eee;
    padding: var(--spacing-unit);
    text-align: center;
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    :root {
        --spacing-unit: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
    }

    nav, footer {
        display: none;
    }

    a {
        text-decoration: none;
        color: var(--text-color);
    }

    main {
        max-width: none;
        padding: 0;
    }
} 