/* Typography */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

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

:root {
    /* Spacing Scale - Consistent vertical rhythm */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 0.75rem;   /* 12px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 6rem;     /* 96px - Keep section spacing */
    --space-3xl: 8rem;     /* 128px - Keep section spacing */
    
    /* Section spacing */
    --section-padding: 6rem;
    --section-padding-top: 8rem;
}

body {
    font-family: 'IBM Plex Serif', serif;
    background-color: #F5F5F5;
    color: #000000;
    line-height: 1.4;
    font-size: 18px;
    font-weight: 400;
}

/* Links */
a {
    color: #bf150f;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8%;
}

.section {
    padding: var(--section-padding) 0;
}

.section:first-child {
    padding-top: var(--section-padding-top);
}

.section:last-child {
    padding-bottom: var(--section-padding);
}

/* Typography Styles - Standardized Titles */
h1, .hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    font-family: 'IBM Plex Serif', serif;
}

h2, .section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    font-family: 'IBM Plex Serif', serif;
}

h3, .thesis-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    color: #bf150f;
    margin-bottom: var(--space-md);
    font-family: 'IBM Plex Serif', serif;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.3;
    margin-bottom: var(--space-xl);
}

.thesis-description {
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 70%;
    margin-bottom: var(--space-lg);
}

/* Components */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.theses-grid {
    display: grid;
    gap: var(--space-2xl);
}

.thesis-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.link-item {
    border-left: 2px solid #bf150f;
    padding-left: var(--space-sm);
}

.link-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    color: #bf150f;
    font-style: italic;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.newsletter-form {
    max-width: 480px;
}

.newsletter-iframe {
    width: 100%;
    max-width: 480px;
    height: 320px;
    border: 2px solid #bf150f;
    border-radius: 8px;
    background: #F5F5F5;
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.1);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    font-family: 'IBM Plex Sans', sans-serif;
    display: block;
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    color: #bf150f;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: var(--space-sm) 0;
    border: none;
    border-bottom: 2px solid #bf150f;
    background-color: transparent;
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.1rem;
    color: #000000;
    outline: none;
}

.btn-primary {
    background-color: #bf150f;
    color: #F5F5F5;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: opacity 0.2s ease;
    margin-top: var(--space-md);
}

.btn-primary:hover {
    opacity: 0.9;
}

.footer {
    border-top: 1px solid #bf150f;
    padding: var(--space-xl) 0;
    margin-top: var(--space-2xl);
}

.footer-content {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        /* Smaller spacing scale for mobile */
        --section-padding: 4rem;
        --section-padding-top: 5rem;
        --space-xs: 0.375rem;  /* 6px */
        --space-sm: 0.5rem;    /* 8px */
        --space-md: 0.75rem;   /* 12px */
        --space-lg: 1rem;      /* 16px */
        --space-xl: 1.25rem;   /* 20px */
        --space-2xl: 4rem;     /* Keep section spacing */
        --space-3xl: 5rem;     /* Keep section spacing */
    }

    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 5%;
    }
    
    .theses-grid {
        gap: var(--space-2xl);
    }
    
    .thesis-description {
        max-width: 100%;
    }
    
    .social-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .newsletter-iframe {
        height: 280px;
        max-width: 100%;
    }
}
