:root {
    --celadon: #AFE1AF;
    --celadon-dark: #8fc78f;
    --deep-slate: #1a1a1a;
    --off-white: #fdfdfd;
    --text-gray: #4a4a4a;
    --white: #ffffff;
    --border-light: #eeeeee;
}

* { 
    box-sizing: border-box; 
    transition: all 0.3s ease; 
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Lora', serif;
    margin: 0;
    background-color: var(--off-white);
    color: var(--deep-slate);
    line-height: 1.5;
}

h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif; 
    font-weight: 900; 
    margin-top: 0; 
}

/* Navigation */
.top-nav {
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    align-items: center;
}

.logo { font-size: 1.4rem; font-weight: 900; }
.logo span { color: var(--celadon-dark); }

.top-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.top-nav a { 
    text-decoration: none; 
    color: var(--deep-slate); 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 600; 
}

/* Hero Section */
.hero {
    padding: 160px 1rem 80px 1rem;
    text-align: center;
    background: #fdfdfd;
}

.hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: var(--text-gray); max-width: 800px; margin: 0 auto; }

/* Main Content */
.wrapper { max-width: 1000px; margin: 0 auto; padding: 4rem 2rem; }
.section-block { margin-bottom: 6rem; }
.section-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--celadon-dark); margin-bottom: 2rem; display: block; font-weight: 600; }
/* Biography Wrap Logic - Tight Alignment */
.bio-wrapper {
    display: block;
    overflow: auto;
    margin-top: 0; /* Ensures no top gap in the container */
}

.bio-headshot-float {
    float: left;
    width: 250px;
    max-width: 35%;
    /* Tightened margins */
    margin-top: 0;         /* Ensures image sits at the absolute top */
    margin-right: 1.5rem;  /* Narrower gap between photo and text */
    margin-bottom: 0.8rem; /* Space below photo for wrapping text */
    
    border-radius: 4px;
    border-left: 6px solid var(--celadon);
    box-shadow: 15px 15px 40px rgba(0,0,0,0.05);
}

.bio-text-start {
    margin-top: 0;         /* Removes paragraph margin that pushes text down */
    line-height: 1.5;      /* Slightly tighter line height for alignment */
    display: block;
}

/* Clearfix for section spacing */
.section-block::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile Tweak */
@media (max-width: 500px) {
    .bio-headshot-float {
        float: none;
        display: block;
        margin: 0 auto 1.5rem auto;
        max-width: 100%;
    }
}

/* Clearfix to prevent following sections from drifting up */
.section-block::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile Tweak: Center the photo if the screen is very small */
@media (max-width: 500px) {
    .bio-headshot-float {
        float: none;
        display: block;
        margin: 0 auto 2rem auto;
        max-width: 80%;
    }
}
/* Research & Awards */
.content-item { padding: 2rem 0; border-bottom: 1px solid var(--border-light); }
.content-item h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.doi { color: var(--celadon-dark); font-weight: 600; text-decoration: none; display: block; margin-top: 1rem; }

.award-row { display: flex; gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border-light); }
.award-year { font-weight: 900; color: var(--celadon-dark); min-width: 60px; }

/* Teaching Grid */
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.course-column h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--celadon); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.course-list { list-style: none; padding: 0; }
.course-list li { padding: 0.5rem 0; border-bottom: 1px solid #f9f9f9; font-size: 0.95rem; }

footer { text-align: center; padding: 4rem; background: var(--deep-slate); color: var(--white); font-size: 0.8rem; }

@media (max-width: 850px) {
    .bio-content { flex-direction: column; text-align: center; }
    .bio-headshot { margin: 0 auto; }
    .course-grid { grid-template-columns: 1fr; }
    .award-row { flex-direction: column; gap: 0.5rem; }
}
/* Global Spacing Adjustment */
body {
    line-height: 1.5; /* Narrower than the previous 1.8 */
    font-size: 1.05rem;
}

p {
    margin-bottom: 0.8rem; /* Tighter paragraph spacing */
}

/* Teaching Section: Two Columns */
.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.course-column h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--celadon-dark);
    border-bottom: 2px solid var(--celadon);
    padding-bottom: 0.3rem;
    margin-bottom: 0.8rem;
}

/* Narrowed Course List Spacing */
.course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-list li {
    padding: 0.3rem 0; /* Significantly narrower vertical padding */
    border-bottom: 1px solid #f6f6f6;
    font-size: 0.9rem;
    line-height: 1.3; /* Tight line spacing for list items */
    color: var(--text-gray);
}

.course-list li:last-child {
    border-bottom: none;
}

/* Content Item (Research/Awards) Tightening */
.content-item {
    padding: 1.2rem 0; /* Reduced from 2rem */
    border-bottom: 1px solid var(--border-light);
}

.award-row {
    padding: 0.8rem 0; /* Reduced from 1.5rem */
    gap: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
/* 1. Tighten the Hero height and padding */
.hero {
    padding: 120px 2rem 40px 2rem; /* Reduced bottom padding from 80px */
    min-height: auto; /* Allow it to shrink to fit the text */
}

/* 2. Narrow the gap between major sections (Bio, Research, etc.) */
.section-block {
    margin-bottom: 2rem; /* Reduced from 6rem or 8rem */
}

/* 3. Reduce space after the section labels (01 // Biography, etc.) */
.section-label {
    margin-bottom: .5rem; /* Reduced from 2rem */
}

/* 4. Tighten the wrapper's top/bottom padding */
.wrapper {
    padding: 2rem 2rem; /* Reduced from 4rem */
}

/* 5. Ensure the Biography float doesn't create extra bottom gap */
.bio-headshot-float {
    margin-bottom: 0.5rem; /* Reduced space below photo */
}
h2, h3, p {
    margin-top: 0;
    margin-bottom: 0.75rem; /* Consistent downward spacing */
}
/* 1. Make Section Labels more prominent */
.section-label {
    font-size: 1.1rem;      /* Increased from 0.8rem */
    font-weight: 700;       /* Added weight for authority */
    letter-spacing: 3px;    /* Extra spacing for a modern, architectural feel */
    margin-bottom: .75rem;
    display: block;
    color: var(--celadon-dark);
    text-transform: uppercase;
}

/* 2. Make H3 Titles smaller and more refined */
h3, .course-column h3, .content-item h3 {
    font-size: 1.25rem;     /* Reduced from 1.6rem+ */
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* 3. Specifically target the teaching headers to keep them clean */
.course-column h3 {
    font-size: 0.95rem;     /* Even smaller for the grid columns */
    border-bottom: 1px solid var(--celadon); /* Thinner line to match smaller text */
    padding-bottom: 0.2rem;
}
/* Global Link Styling */
a {
    color: inherit; /* Keeps the text color consistent with the surroundings */
    text-decoration: underline;
    text-decoration-color: var(--celadon-dark);
    text-underline-offset: 3px; /* Adds a bit of breathing room between text and line */
    transition: text-decoration-color 0.3s ease;
}

a:hover {
    text-decoration-color: var(--deep-slate); /* Darkens the underline on hover for feedback */
}

/* Exception for navigation links to keep the header clean */
.top-nav a {
    text-decoration: none;
}

.top-nav a:hover {
    text-decoration: underline;
    text-decoration-color: var(--celadon-dark);
}

/* Exception for the CTA button in nav */
.top-nav a.cta {
    text-decoration: none;
}
/* Ensure the research link doesn't have extra "button-like" properties */
.doi, .doi-link {
    display: inline; /* Changes from block/inline-block to wrap with text */
    font-weight: inherit;
    margin-top: 0;
}