/* Classic American Document Style */
:root {
    --primary-blue: #1e3a5f;
    --accent-red: #c5283d;
    --text-dark: #2c2c2b;
    --text-muted: #7d7a75;
    --bg-light: #fafaf9;
    --bg-white: #ffffff;
    --border-light: rgba(55, 53, 47, 0.09);
    --bg-cream: #f7f6f3;
    --link-blue: #387dc9;
}

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

html {
    scroll-behavior: smooth;
    -webkit-print-color-adjust: exact;
}

body {
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.logo:hover {
    color: var(--accent-red);
}

.year {
    color: var(--accent-red);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--link-blue);
    border-bottom-color: var(--accent-red);
}

/* Main Content */
main {
    padding: 4rem 2rem;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 3rem;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.callout {
    background: var(--bg-cream);
    border-left: 4px solid var(--link-blue);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.callout .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Section Cards */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 2rem;
    transition: all 0.2s ease;
    position: relative;
    border-top: 3px solid var(--primary-blue);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-red);
}

.card h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.card p {
    color: var(--text-dark);
    line-height: 1.6;
}

.card a {
    color: var(--link-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: color 0.2s ease;
}

.card a:hover {
    color: var(--accent-red);
}

/* Content Sections */
.content-section {
    margin: 3rem 0;
}

.content-section h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    margin-top: 1.875rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.content-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Lists */
ul, ol {
    margin: 0;
    margin-block-start: 0.6em;
    margin-block-end: 0.6em;
    padding-inline-start: 1.7em;
}

li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

ul li {
    list-style: disc;
}

li > ol:first-child,
li > ul:first-child {
    margin-block-start: 0.6em;
}

/* Links */
a {
    color: var(--link-blue);
    transition: color 0.2s ease;
    text-decoration: underline;
}

a:hover {
    color: var(--accent-red);
}

/* Paragraphs */
p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Code & Monospace */
code, .mono {
    font-family: "SFMono-Regular", Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace;
    background: rgba(135, 131, 120, 0.15);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 85%;
    color: #eb5757;
}

/* Emphasis */
strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

hr {
    background: transparent;
    display: block;
    width: 100%;
    height: 1px;
    visibility: visible;
    border: none;
    border-bottom: 1px solid var(--border-light);
    margin: 2rem 0;
}

/* Details/Summary */
details {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    list-style: none;
    user-select: none;
}

summary::before {
    content: '▶ ';
    display: inline-block;
    transition: transform 0.2s ease;
    color: var(--accent-red);
}

details[open] summary::before {
    transform: rotate(90deg);
}

/* Footer */
footer {
    background: var(--bg-white);
    border-top: 3px solid var(--primary-blue);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 4rem;
}

footer p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .navbar, footer {
        display: none;
    }

    .card {
        page-break-inside: avoid;
    }
}
