/* Import Google Fonts - Handwriting font for annotations */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    line-height: 1.5;
    color: #2b2b2b;
    background-color: #faf8f5;
    font-size: 17px;
}

/* Sticky Header Navigation */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(250, 248, 245, 0.98);
    border-bottom: 1px solid #e8e4df;
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header nav {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.header nav a {
    color: #2b2b2b;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.header nav a:hover {
    color: #c41e3a;
}

.header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #c41e3a;
    transition: width 0.3s ease;
}

.header nav a:hover::after,
.header nav a.active::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0;
}

/* Landing/Bio Section - Hero */
#bio {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px 16px;
    position: relative;
}

.bio-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    grid-template-rows: auto auto 1fr;
    gap: 22px;
    column-gap: 40px;
    position: relative;
}

.profile-text {
    grid-column: 1 / -1;
    grid-row: 1 / 3;
    display: contents;
}

.profile-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 3.6px;
    color: #1a1a1a;
    line-height: 1.1;
    grid-column: 1 / -1;
    grid-row: 1;
}

.bio-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68em;
    letter-spacing: 1.2px;
    color: #c41e3a;
    margin-bottom: 20px;
    font-weight: 400;
    grid-column: 1 / -1;
    grid-row: 2;
}

.bio-text-wrapper {
    grid-column: 1;
    grid-row: 3;
}

.profile-text .bio-text {
    font-size: 1.05em;
    line-height: 1.6;
    color: #2b2b2b;
    margin-bottom: 10px;
}

.profile-image {
    position: relative;
    grid-column: 2;
    grid-row: 3;
    align-self: start;
}

.profile-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.02);
}

/* Annotations removed for cleaner academic look */

/* Content Sections */
section {
    padding: 60px 20px;
    max-width: 750px;
    margin: 0 auto;
}

section h3 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 12px;
}

section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #c41e3a;
}

section h4 {
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

section ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Alternating Background Sections */
.alt-bg {
    background-color: #ffffff;
    padding: 60px 20px;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.alt-bg .content-wrapper {
    max-width: 750px;
    margin: 0 auto;
}

/* Book Section - Featured Dark Style */
.book-feature {
    padding: 100px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    max-width: 100%;
}

.book-content-split {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: center;
}

.book-cover-mockup {
    perspective: 1000px;
}

.cover-placeholder {
    width: 300px;
    height: 450px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1528 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transform: rotateY(-5deg);
    transition: transform 0.5s ease;
    border-radius: 2px;
}

.cover-placeholder:hover {
    transform: rotateY(0deg) scale(1.02);
}

.cover-text {
    color: #fff;
    text-align: center;
}

.cover-title {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cover-subtitle {
    font-size: 1em;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.4;
}

.cover-author {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.book-details {
    color: #fff;
}

.book-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8em;
    color: #ffd700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.book-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.book-details h3::after {
    display: none;
}

.book-details h4 {
    font-size: 1.3em;
    color: #d0d0d0;
    font-weight: 400;
    margin-bottom: 25px;
    margin-top: 0;
}

.publisher {
    color: #999;
    margin-bottom: 15px;
}

.award-badge {
    display: block;
    color: #ffd700;
    font-style: italic;
    font-size: 0.95em;
    margin-bottom: 25px;
    line-height: 1.5;
}

.badge-icon {
    display: none;
}

.book-description {
    color: #d0d0d0;
    line-height: 1.7;
    font-size: 1.05em;
    margin-bottom: 15px;
}

.book-description:first-of-type {
    padding-top: 20px;
    border-top: 2px solid #c41e3a;
    margin-top: 5px;
}

/* Writing Section */
.section-intro {
    font-size: 1.05em;
    color: #4a4a4a;
    margin-bottom: 30px;
    font-style: italic;
}

.writing-category {
    margin-bottom: 40px;
}

.writing-category h4 {
    margin-top: 0;
}

.pub-title {
    font-weight: 600;
    font-size: 1.05em;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.pub-meta {
    color: #4a4a4a;
    font-size: 0.95em;
    margin-bottom: 5px;
}

.pub-award {
    color: #c41e3a;
    font-weight: 600;
    font-size: 0.85em;
    margin-top: 6px;
}

/* Teaching Section */
.highlight-box {
    background-color: #f5f3f0;
    border-left: 4px solid #c41e3a;
    padding: 20px 25px;
    margin: 25px 0;
}

.highlight-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Activities Section */
#activities {
    max-width: 1200px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.activity-card {
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e8e4df;
    border-radius: 2px;
}

.activity-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #c41e3a;
    font-size: 1.4em;
}

.small-text {
    font-size: 0.95em;
    color: #6c6c6c;
    margin-top: 15px;
}

.recent-talks-intro {
    font-weight: 600;
    margin-bottom: 15px;
}

.compact-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.compact-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 15px;
}

.compact-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #c41e3a;
    font-weight: 700;
}

/* Awards Section */
.awards-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e8e4df;
}

.awards-section h4 {
    margin-top: 0;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.award-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background-color: #faf8f5;
    border-radius: 2px;
    align-items: flex-start;
}

.award-year {
    font-weight: 700;
    color: #c41e3a;
    font-size: 1.1em;
    flex-shrink: 0;
    min-width: 45px;
}

.award-name {
    color: #2b2b2b;
    font-size: 1em;
    line-height: 1.6;
}

/* CV Display */
.cv-display {
    margin-top: 10px;
    line-height: 1.5;
}

.cv-section {
    margin-bottom: 14px;
}

.cv-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.cv-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e4df;
}

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

.cv-degree,
.cv-position {
    font-weight: 600;
    font-size: 1em;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.cv-institution {
    color: #4a4a4a;
    font-style: italic;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.cv-detail {
    color: #6c6c6c;
    font-size: 0.9em;
    line-height: 1.5;
}

.cv-list {
    list-style: none;
    padding-left: 0;
}

.cv-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.cv-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #c41e3a;
    font-weight: 700;
    font-size: 1em;
}

.cv-list.simple {
    column-count: 2;
    column-gap: 30px;
}

.cv-list.simple li {
    break-inside: avoid;
}

.cv-list.simple li::before {
    content: "•";
    font-size: 1em;
}

/* Make education section more compact with grid */
.cv-section:first-child .cv-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
}

.cv-section:first-child .cv-degree {
    grid-column: 1;
}

.cv-section:first-child .cv-institution,
.cv-section:first-child .cv-detail {
    grid-column: 2;
}

/* Publications */
.publication-list {
    margin-top: 30px;
}

.publication-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid #c41e3a;
    position: relative;
}

.publication-item p {
    margin: 6px 0;
}

.publication-item strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Events */
.event-list {
    margin-top: 30px;
}

.event-item {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #ffffff;
    border-left: 3px solid #c41e3a;
}

.event-date {
    color: #c41e3a;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CV Section */
.cv-section {
    margin-bottom: 40px;
}

.download-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c41e3a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 2px;
    margin: 0 0 30px 0;
    transition: background-color 0.3s ease;
    font-weight: 600;
    font-size: 0.95em;
}

.download-link:hover {
    background-color: #a01830;
}

/* Contact Section - Minimalist Style */
#contact {
    padding: 100px 30px;
    background-color: #fafafa;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.contact-form-minimal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-minimal {
    padding: 18px 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background-color: transparent;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.1em;
    transition: all 0.3s ease;
    color: #2b2b2b;
}

.input-minimal:focus {
    outline: none;
    border-bottom-color: #c41e3a;
}

.input-minimal::placeholder {
    color: #999;
}

.btn-minimal {
    padding: 18px 40px;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    font-weight: 600;
}

.btn-minimal:hover {
    background-color: #c41e3a;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    color: #6c6c6c;
    border-top: 1px solid #e8e4df;
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .annotation {
        display: none;
    }

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

    .cv-section:first-child .cv-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .cv-list.simple {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .header nav {
        padding: 0 20px;
        gap: 25px;
    }

    .header nav a {
        font-size: 0.95em;
    }

    #bio {
        padding: 60px 20px;
        min-height: auto;
    }

    .bio-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .profile-image {
        grid-column: 1;
        grid-row: 1;
        margin: 0 auto;
        max-width: 250px;
    }

    .profile-text {
        grid-column: 1;
        grid-row: 2;
        padding-top: 0;
    }

    .profile-text h1 {
        font-size: 2.2em;
    }

    .bio-subtitle {
        font-size: 0.65em;
    }

    .book-content-split {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .book-cover-mockup {
        margin: 0 auto;
    }

    .cover-placeholder {
        transform: rotateY(0deg);
    }

    section {
        padding: 50px 20px;
    }

    section h3 {
        font-size: 1.7em;
    }

    .alt-bg {
        padding: 50px 20px;
    }

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

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

    .book-highlight {
        padding: 20px;
    }

    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .header nav {
        gap: 15px;
    }

    .header nav a {
        font-size: 0.85em;
    }

    .profile-text h1 {
        font-size: 1.8em;
    }

    .profile-text h2 {
        font-size: 1.1em;
    }

    section h3 {
        font-size: 1.5em;
    }
}
