:root {
    --primary-color: #000000;
    --secondary-color: #444444;
    --accent-color: #ee6c4d;
    /* Salmon */
    --accent-bg: #fcd5ce;
    --sidebar-bg: #e8e8e8;
    /* Light grey for sidebar */
    --bg-color: #ffffff;
    --font-heading: "Futura", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body: Georgia, "Times New Roman", Times, serif;
    --max-width: 1100px;
}

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

body {
    font-family: var(--font-body);
    color: var(--primary-color);
    line-height: 1.5;
    background-color: var(--bg-color);
    margin: 0;
    /* Reset margin */
    padding: 0;
    /* Remove padding for full-width sections */
}

.site-wrapper {
    max-width: 900px;
    /* Narrower width to float in center */
    margin: 2rem auto;
    /* Reduced top margin */
    /* Vertical spacing and horizontal centering */
    background-color: #ffffff;
    padding: 0 1rem;
    /* Add padding here to maintain spacing */
}

/* Journalism Section (Dark Theme) */
.journalism-wrapper {
    background-color: #000000;
    color: #ffffff;
    width: 100%;
    padding: 2rem 1rem 5rem 1rem;
    /* Reduced top padding */
    margin-top: 2rem;
    /* Reduced top margin */
    border-top: 1px solid #000;
    /* Distinct separation */
}

.journalism-content {
    max-width: 1100px;
    margin: 0;
    /* Left align */
    padding: 0 2rem 0 4rem;
    /* Left padding to position it */
}

.journalism-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Equal width */
    gap: 4rem;
    /* Increased gap to push columns apart */
    align-items: center;
    margin-left: 5%;
}

.journalism-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    /* Ensure full width of its cell */
}

.journalism-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 3.7rem;
    /* Slightly smaller to fit */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
    border-bottom: none;
    text-transform: none;
}

.journalism-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
    font-weight: 300;
    font-style: italic;
}

.journalism-text p {
    color: #dddddd;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Articles Column (White Card) */
.journalism-articles {
    background-color: #ffffff;
    color: #000000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
    margin-left: 30%;
}

.journalism-articles h3 {
    color: #000000;
    /* Black text */
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #000;
    /* Thicker black border */
    padding-bottom: 0.5rem;
    display: block;
}

.article-item {
    display: block;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    /* Light grey separator */
    text-decoration: none;
    transition: background-color 0.2s;
}

.article-item:first-of-type {
    border-top: none;
    /* Remove top border inside card */
}

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

.article-item:hover {
    background-color: #f9f9f9;
    /* Light hover */
    text-decoration: none;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    /* Black title */
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.article-meta {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #555;
    /* Dark grey meta */
}

/* Responsive */
@media (max-width: 768px) {
    .journalism-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .journalism-content {
        padding: 0 1rem;
    }

    .journalism-articles {
        padding: 1.5rem;
    }
}

/* Header Section (Top) */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.translation {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    /* Larger */
    font-weight: 500;
    /* Bolder */
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    /* More space below */
}

.subtitle {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.address {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary-color);
    line-height: 1.4;
}

/* Navigation Ribbon */
.header-nav {
    margin-top: 2.5rem;
    /* Increased spacing from email */
    display: flex;
    justify-content: center;
    gap: 2rem;
    /* Increased spacing between buttons */
    flex-wrap: wrap;
}

.header-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: "Courier New", Courier, monospace;
    /* Different font (minimalist/tech) */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0;
    /* No rounded corners */
    transition: none;
    /* Instant change */
}

.header-nav a:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    text-decoration: none;
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 Main, 1/3 Sidebar */
    gap: 2rem;
    align-items: start;
}

/* Left Column (Main Content) */
.main-content {
    padding-right: 1rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Items (Publications, Experience) */
.item {
    margin-bottom: 1.5rem;
}

.item-title {
    font-weight: bold;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1rem;
}

.item-meta {
    font-weight: bold;
    font-size: 0.95rem;
}

.item-desc {
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

.badge {
    background-color: var(--accent-bg);
    color: #000;
    padding: 1px 4px;
    font-size: 0.8rem;
    margin-left: 5px;
    vertical-align: middle;
    transition: none;
    /* Explicitly no animation */
}

/* Link wrapping the badge */
.badge-link {
    text-decoration: none;
    cursor: pointer;
    /* Hand cursor */
}

.badge-link:hover .badge {
    background-color: #ffb3a7;
    /* Slightly darker/different salmon for feedback */
}

/* Right Column (Sidebar) */
/* Right Column (Sidebar) */
.sidebar {
    background-color: var(--sidebar-bg);
    padding: 1.5rem;
    text-align: left;
    /* Revert to left align to match reference */
}

.sidebar h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    font-weight: 700;
    display: block;
    border-bottom: none;
}

.profile-img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.sidebar-name {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.sidebar-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.sidebar-links a {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.sidebar-links a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* Links in text */
a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
        /* Show sidebar (photo) first on mobile? Or keep bottom? Glassman lab keeps sidebar on right on desktop. */
        margin-bottom: 2rem;
    }
}