/* Font Face Declarations */
@font-face {
    font-family: 'Northwell';
    src: url('../assets/Northwell.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --color-primary: #1a472a;
    --color-secondary: #2d5016;
    --color-accent: #c41e3a;
    --color-text: #2c2c2c;
    --color-text-light: #666;
    --color-bg: #ffffff;
    --color-bg-light: #f8f8f8;
    --font-northwell: 'Northwell', cursive;
    --font-proxima: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Montserrat', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    --content-width: 680px;
    --max-width: 1200px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-proxima);
    color: var(--color-text);
    line-height: 1.7;
    background-color: var(--color-bg);
}

/* Blog Header */
.blog-header {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    margin-bottom: var(--spacing-xxl);
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--content-width);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    color: white;
}

.header-content h1 {
    color: white;
    font-size: 3rem;
    font-family: var(--font-northwell);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    font-weight: normal;
}

.header-content .meta {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

/* Main Blog Content */
.blog-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.blog-post {
    max-width: var(--content-width);
    margin: 0 auto;
    padding-bottom: var(--spacing-xxl);
}

/* Typography */
.blog-post p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.blog-post .signature {
    font-family: var(--font-northwell);
    font-style: normal;
    font-size: 1.75rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    color: var(--color-primary);
    text-align: right;
    padding-top: var(--spacing-lg);
    border-top: 1px solid #e0e0e0;
    font-weight: normal;
}

.blog-post .signature strong {
    font-weight: 600;
    font-style: normal;
}

/* Blog Images */
.blog-image {
    margin: var(--spacing-xl) 0;
    width: 100%;
}

.blog-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Flipbook Link */
.flipbook-link {
    text-align: center;
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid #e0e0e0;
}

.btn-flipbook {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
}

.btn-flipbook:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-flipbook:active {
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

footer p {
    color: white;
    margin: 0;
    font-size: 0.9rem;
}

/* Tablet Styles */
@media (min-width: 768px) {
    html {
        font-size: 17px;
    }

    .header-content h1 {
        font-size: 4rem;
        font-family: var(--font-northwell);
    }

    .blog-post {
        padding-bottom: var(--spacing-xxl);
    }

    .blog-post p {
        font-size: 1.125rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }

    .blog-header {
        min-height: 60vh;
    }

    .header-content h1 {
        font-size: 4.5rem;
        font-family: var(--font-northwell);
    }

    .blog-post p {
        font-size: 1.125rem;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .blog-post {
        max-width: 750px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header-image {
        display: none;
    }

    .btn-flipbook {
        display: none;
    }

    .blog-post {
        max-width: 100%;
    }

    footer {
        page-break-inside: avoid;
    }
}
