/* --- Variables: Editorial Noir Theme --- */
:root {
    --color-bg: #050505;
    --color-surface: #111111;
    --color-text-main: #f5f5f7;
    --color-text-muted: #888888;
    --color-accent: #d4af37; /* Subtle Academy Gold */
    --color-border: rgba(255, 255, 255, 0.1);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --spacing-section: 120px;
    --container-width: 1200px;
}

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

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

body.editorial-noir {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

/* --- Buttons --- */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-text-main);
    color: var(--color-bg);
    border: 1px solid var(--color-text-main);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-text-main);
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-text-main);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0) 100%);
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-outline) {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
    }
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 5% 150px; /* Increased bottom padding to 150px to strictly separate content from the scroll indicator */
    position: relative;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--color-bg) 0%, rgba(5,5,5,0.2) 100%);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-pretitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    padding-right: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px; /* Set to 30px for breathing room from screen edge */
    left: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    z-index: 2; /* Ensures it stays on top of the background */
}

/* Hide the scroll indicator on very short landscape monitors to prevent any overlap */
@media (max-height: 600px) {
    .scroll-indicator {
        display: none;
    }
}

/* Also hide the scroll indicator on very narrow mobile screens where the text takes up many lines vertically */
@media (max-width: 480px) {
    .scroll-indicator {
        display: none;
    }
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text-muted) 0%, transparent 100%);
}

/* --- Featured Articles --- */
.featured-articles {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg);
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.article-card {
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: var(--color-surface);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.2);
    transition: all 0.5s ease;
}

.article-card:hover .card-image img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.75rem;
}

.card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.card-content h3 a:hover {
    color: var(--color-accent);
}

.card-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--color-text-main);
    padding-bottom: 4px;
    display: inline-block;
}

.read-more:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* --- About / CV Section --- */
.about-cv {
    padding: var(--spacing-section) 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.cv-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .cv-layout {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.bio-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cv-block {
    margin-bottom: 3rem;
}

.cv-block h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.cv-block ul {
    list-style: none;
}

.cv-block li {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    padding-left: 1.5rem;
    position: relative;
}

.cv-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.cv-block li strong {
    color: var(--color-text-main);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    background: transparent;
}

/* --- Footer --- */
.footer {
    padding: var(--spacing-section) 0 calc(var(--spacing-section) / 2);
    background-color: var(--color-bg);
    overflow: hidden; /* Fixes bottom whitespace if children have margins leaking out */
}

.text-center {
    text-align: center;
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.footer p {
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.big-email {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 4rem;
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    text-underline-offset: 10px;
}

.big-email:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Prevents overflow on very small mobile screens */
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-links a {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--color-text-main);
}

.social-links a:hover {
    color: var(--color-accent);
}

.copyright {
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #444 !important;
}

/* Simple animations for elements without GSAP classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

.reveal-text {
    opacity: 0;
    will-change: transform, opacity;
}
