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

/* ============================================
   ACADEMIC THEME
   Classic academic web aesthetic:
   - Serif typography
   - Classic link colors
   - Generous whitespace
   - Centered, readable column
   ============================================ */

.theme-academic {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

.theme-academic main {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theme-academic h1 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.theme-academic h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid #000;
    padding-bottom: 0.25rem;
}

.theme-academic h3 {
    font-size: 1.2rem;
    font-weight: normal;
    margin: 1.5rem 0 0.5rem 0;
    font-style: italic;
}

.theme-academic p {
    margin-bottom: 1rem;
}

.theme-academic .intro {
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

.theme-academic .main-nav {
    font-size: 1.1rem;
    margin: 2rem 0;
    text-align: left;
}

.theme-academic .current-focus {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.theme-academic .current-focus p {
    margin: 0;
    font-style: italic;
}

/* Links - Classic web colors */
.theme-academic a {
    color: #0000EE;
    text-decoration: underline;
}

.theme-academic a:visited {
    color: #551A8B;
}

.theme-academic a:hover {
    color: #0000EE;
}

.theme-academic a:active {
    color: #EE0000;
}

/* Footer */
.theme-academic footer {
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.95rem;
}

/* Lists */
.theme-academic ul {
    margin: 1rem 0 1rem 2rem;
    list-style-type: disc;
}

.theme-academic li {
    margin: 0.5rem 0;
}

/* Research/Publications pages */
.theme-academic .page-header {
    margin-bottom: 2rem;
}

.theme-academic .page-header h1 {
    margin-bottom: 0.5rem;
}

.theme-academic .page-header p {
    font-style: italic;
    color: #333;
}

.theme-academic article {
    margin: 2rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

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

.theme-academic article h3 {
    margin-top: 0;
}

.theme-academic .authors {
    font-size: 0.95rem;
    color: #333;
    margin: 0.5rem 0;
}

.theme-academic .year,
.theme-academic .status {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.theme-academic .description {
    margin: 1rem 0;
}

/* Code/monospace elements */
.theme-academic code,
.theme-academic pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-academic main {
        padding: 2rem 1.5rem;
    }

    .theme-academic h1 {
        font-size: 1.75rem;
    }
}

/* ============================================
   TERMINAL THEME
   Hacker/developer aesthetic:
   - Monospace everything
   - Green on black
   - Minimal decoration
   ============================================ */

.theme-terminal {
    font-family: 'Courier New', Monaco, Menlo, monospace;
    line-height: 1.5;
    color: #00ff00;
    background-color: #000;
}

.theme-terminal main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.theme-terminal h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #00ff00;
}

.theme-terminal h1::before {
    content: "$ ";
    color: #00ff00;
}

.theme-terminal h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    color: #00ff00;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 0.25rem;
}

.theme-terminal h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1.5rem 0 0.5rem 0;
    color: #00ff00;
}

.theme-terminal h3::before {
    content: "> ";
}

.theme-terminal p {
    margin-bottom: 1rem;
    color: #00ff00;
}

.theme-terminal .intro {
    font-size: 1rem;
    margin: 1.5rem 0;
}

.theme-terminal .main-nav {
    font-size: 1rem;
    margin: 2rem 0;
}

.theme-terminal .current-focus {
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid #00ff00;
}

.theme-terminal .current-focus p {
    margin: 0;
}

.theme-terminal a {
    color: #00ffff;
    text-decoration: none;
}

.theme-terminal a:hover {
    text-decoration: underline;
}

.theme-terminal a:visited {
    color: #00cccc;
}

.theme-terminal footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #00ff00;
}

.theme-terminal ul {
    margin: 1rem 0 1rem 2rem;
    list-style-type: none;
}

.theme-terminal li {
    margin: 0.5rem 0;
}

.theme-terminal li::before {
    content: "* ";
    color: #00ff00;
}

.theme-terminal article {
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid #00ff00;
}

.theme-terminal .description {
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .theme-terminal main {
        padding: 1.5rem;
    }
}

/* ============================================
   DATAVIZ THEME
   Data visualization / graph paper aesthetic:
   - Grid background
   - Accent colors like data points
   - Clean, technical feel
   ============================================ */

.theme-dataviz {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #1a202c;
    background-color: #f7fafc;
    background-image:
        linear-gradient(rgba(100, 200, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 200, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.theme-dataviz main {
    max-width: 750px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
}

.theme-dataviz h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a202c;
    letter-spacing: -0.04em;
    position: relative;
    padding-bottom: 1rem;
}

.theme-dataviz h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.theme-dataviz h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    color: #2d3748;
    letter-spacing: -0.02em;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(120deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
}

.theme-dataviz h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem 0;
    color: #06b6d4;
}

.theme-dataviz p {
    margin-bottom: 1.25rem;
    color: #4a5568;
}

.theme-dataviz .intro {
    font-size: 1.25rem;
    margin: 2rem 0;
    color: #2d3748;
    line-height: 1.8;
}

.theme-dataviz .main-nav {
    font-size: 1.125rem;
    margin: 2.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%);
    border-radius: 8px;
}

.theme-dataviz .current-focus {
    margin: 3rem 0;
    padding: 1.75rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    border-radius: 4px;
}

.theme-dataviz .current-focus p {
    margin: 0;
    color: #78350f;
    font-weight: 500;
}

.theme-dataviz a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.theme-dataviz a:hover {
    border-bottom: 2px solid #3b82f6;
    color: #2563eb;
}

.theme-dataviz a:visited {
    color: #7c3aed;
}

.theme-dataviz footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    color: #64748b;
}

.theme-dataviz ul {
    margin: 1.5rem 0 1.5rem 0;
    list-style-type: none;
}

.theme-dataviz li {
    margin: 0.875rem 0;
    padding-left: 2rem;
    position: relative;
}

.theme-dataviz li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-size: 1.2rem;
}

.theme-dataviz article {
    margin: 2.5rem 0;
    padding: 1.75rem;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-dataviz .description {
    margin: 1rem 0;
    color: #4a5568;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .theme-dataviz main {
        padding: 3rem 1.5rem;
    }

    .theme-dataviz h1 {
        font-size: 2.25rem;
    }
}

/* ============================================
   BRUTALIST THEME
   Bold, geometric, uncompromising:
   - Large typography
   - Black/white/red
   - Hard edges
   ============================================ */

.theme-brutalist {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.3;
    color: #000;
    background-color: #fff;
}

.theme-brutalist main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.theme-brutalist h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.theme-brutalist h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 3rem 0 1rem 0;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.theme-brutalist h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 2rem 0 0.5rem 0;
    color: #ff0000;
    text-transform: uppercase;
}

.theme-brutalist p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.theme-brutalist .intro {
    font-size: 1.5rem;
    margin: 2rem 0;
    font-weight: 700;
    line-height: 1.3;
}

.theme-brutalist .main-nav {
    font-size: 1.25rem;
    margin: 2rem 0;
    font-weight: 700;
}

.theme-brutalist .current-focus {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #000;
    color: #fff;
}

.theme-brutalist .current-focus p {
    margin: 0;
    color: #fff;
}

.theme-brutalist a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 3px solid #ff0000;
}

.theme-brutalist a:hover {
    background-color: #ff0000;
    color: #fff;
}

.theme-brutalist a:visited {
    color: #cc0000;
    border-bottom-color: #cc0000;
}

.theme-brutalist footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 5px solid #000;
}

.theme-brutalist ul {
    margin: 1.5rem 0;
    list-style-type: none;
}

.theme-brutalist li {
    margin: 1rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.theme-brutalist li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: #ff0000;
    font-size: 1.5rem;
}

.theme-brutalist article {
    margin: 3rem 0;
    padding: 2rem;
    border: 5px solid #000;
}

.theme-brutalist .description {
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .theme-brutalist main {
        padding: 1.5rem;
    }

    .theme-brutalist h1 {
        font-size: 2.5rem;
    }

    .theme-brutalist h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   RETRO THEME
   Early Mac/HyperCard aesthetic:
   - System fonts
   - Subtle gradients
   - Nostalgic UI elements
   ============================================ */

.theme-retro {
    font-family: 'Chicago', 'Monaco', 'Courier New', monospace;
    line-height: 1.4;
    color: #000;
    background-color: #c0c0c0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,.03) 1px, rgba(0,0,0,.03) 2px);
}

.theme-retro main {
    max-width: 640px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.theme-retro h1 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: linear-gradient(180deg, #fff 0%, #ddd 100%);
    border: 2px outset #999;
    text-align: center;
}

.theme-retro h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    padding: 0.25rem 0.5rem;
    background: #000;
    color: #fff;
}

.theme-retro h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1.5rem 0 0.5rem 0;
    text-decoration: underline;
}

.theme-retro p {
    margin-bottom: 1rem;
}

.theme-retro .intro {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #ffffcc;
    border: 1px solid #000;
}

.theme-retro .main-nav {
    font-size: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
    border: 2px outset #999;
    text-align: center;
}

.theme-retro .current-focus {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f0f0f0;
    border: 2px inset #999;
}

.theme-retro .current-focus p {
    margin: 0;
    font-style: italic;
}

.theme-retro a {
    color: #0000ff;
    text-decoration: underline;
}

.theme-retro a:hover {
    background-color: #0000ff;
    color: #fff;
}

.theme-retro a:visited {
    color: #800080;
}

.theme-retro footer {
    margin-top: 2rem;
    padding: 1rem;
    background: linear-gradient(180deg, #e0e0e0 0%, #c0c0c0 100%);
    border: 2px outset #999;
    text-align: center;
    font-size: 0.9rem;
}

.theme-retro ul {
    margin: 1rem 0 1rem 2rem;
    list-style-type: square;
}

.theme-retro li {
    margin: 0.5rem 0;
}

.theme-retro article {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #000;
}

.theme-retro .description {
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .theme-retro main {
        margin: 1rem;
        padding: 1.5rem;
    }

    .theme-retro h1 {
        font-size: 1.5rem;
    }
}
