@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Lora:wght@400;600;700&family=Crimson+Text:wght@400;600&display=swap');

:root {
    --dartmouth-green: #234534;
    --dartmouth-light: #00693E;
    --dark-green: #004d2c;
    --cream: #F5F3ED;
    --gold: #C9B037;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
}

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

body {
    font-family: 'Crimson Text', Georgia, serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
}

header {
    background-color: var(--dartmouth-green);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 110px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 110px;
}

.logo {
    height: 110px;
    width: auto;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
}

.tagline-header {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    color: white;
    margin-left: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--gold);
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--gold);
    color: var(--dartmouth-green);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.tagline {
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 3rem;
    padding: 1.5rem;
    border-top: 2px solid var(--dartmouth-green);
    border-bottom: 2px solid var(--dartmouth-green);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dartmouth-green);
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    color: var(--dark-green);
}

h3 {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dartmouth-green);
}

.featured-story {
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-left: 5px solid var(--dartmouth-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.featured-story img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.featured-story h1 {
    margin-bottom: 1rem;
}

.featured-story .excerpt {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.featured-story .read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background-color: var(--dartmouth-green);
    color: white;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.featured-story .read-more:hover {
    background-color: var(--dark-green);
}

.recent-stories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.story-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.story-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.story-card-content {
    padding: 1.5rem;
}

.story-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.story-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.story-card a {
    color: var(--dartmouth-green);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Lora', serif;
    transition: color 0.3s ease;
}

.story-card a:hover {
    color: var(--dark-green);
}

.popular-stories {
    margin-bottom: 4rem;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.popular-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.popular-card:hover {
    transform: translateY(-3px);
}

.popular-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.popular-card-content {
    padding: 1rem;
}

.popular-card h4 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dartmouth-green);
}

.popular-card a {
    color: var(--dartmouth-green);
    text-decoration: none;
}

.merch-section {
    background-color: var(--dartmouth-green);
    color: white;
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    margin-top: 3rem;
}

.merch-section h2 {
    color: white;
    margin-top: 0;
}

.merch-section .merch-symbol {
    font-size: 5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.merch-section p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

footer {
    background-color: var(--dark-green);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-family: 'Lora', serif;
}

.article-content {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -600px;
    width: 1200px;
    height: 2000px;
    background-image: url('/static/assets/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%) invert(1) brightness(1.8) blur(3px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.article-content img {
    width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 4px;
}

.article-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-content h2 {
    margin-top: 2.5rem;
}

.byline {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--dartmouth-green);
    text-decoration: none;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.back-link:hover {
    color: var(--dark-green);
}

.nota-bene {
    background-color: var(--dartmouth-green);
    color: white;
    padding: 2rem;
    margin: 3rem 0;
    border-left: 5px solid var(--gold);
    border-radius: 4px;
}

.nota-bene h3 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-style: italic;
}

.nota-bene p {
    color: white;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.nota-bene p:last-child {
    margin-bottom: 0;
}

@media (max-width: 968px) {
    .recent-stories {
        grid-template-columns: 1fr;
    }

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Mobile header adjustments */
    nav {
        padding: 0.5rem;
        min-height: 70px;
        flex-wrap: wrap;
        align-items: flex-start;
        position: relative;
    }

    .logo-container {
        width: 100%;
        height: 70px;
        gap: 0.5rem;
        padding-left: 0;
        position: relative;
        flex-direction: row;
        align-items: flex-start;
    }

    .logo {
        height: 70px;
        margin-left: 0;
        position: absolute;
        left: 0;
        top: 0;
    }

    .site-title {
        font-size: 1.5rem;
        margin-left: 80px;
        margin-top: 8px;
        line-height: 1.2;
    }

    .tagline-header {
        position: absolute;
        left: 80px;
        right: 0;
        top: 38px;
        margin-left: 0;
        text-align: left;
        font-size: 0.85rem;
        width: auto;
        display: block;
    }

    /* Hide merch link on mobile */
    nav a {
        display: none;
    }

    /* Mobile main padding override */
    main {
        padding: 3rem 2rem;
    }

    /* Mobile featured story - full bleed */
    .featured-story {
        margin: -3rem -2rem 2rem -2rem !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-left: none !important;
        background: white;
    }

    .featured-story img {
        width: 100% !important;
        height: 60vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        object-fit: cover;
    }

    .featured-story h1 {
        padding: 0.75rem;
        margin: 0;
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .featured-story .excerpt {
        padding: 0 0.75rem;
        margin: 0;
        font-size: 1rem;
        line-height: 1.5;
        max-height: 1.5em;
        overflow: hidden;
    }

    .featured-story .read-more {
        margin: 0.75rem;
    }

    /* Add padding back to other sections */
    main h2 {
        padding: 0 1rem;
    }

    .recent-stories,
    .popular-stories {
        padding: 0 1rem;
    }

    .merch-section {
        margin: 0 1rem;
    }
}
