/* ==========================================================================
   THEME: ELLE (FASHION) - Editorial, Centered
   ========================================================================== */

:root {
    --bg: #fff; --fg: #000;
    --border-color: #000;
    --container-width: 1200px; --gap: 24px;
    --ease-slow: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Texture */
body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg); font-family: "Inter", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
a:hover { opacity: 0.6; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--gap); position: relative; }

/* --- HEADER --- */
header { padding: 20px 0 0; position: relative; background: #fff; z-index: 100; display: block; }

/* Top Bar (Login) - Top Right */
.header-top-bar { 
    position: absolute; top: 20px; right: var(--gap); z-index: 101; 
}
.login-link { 
    font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; 
    border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.login-link:hover { border-bottom-color: #000; }

/* Masthead */
.masthead { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; padding-top: 40px; }
.brand { 
    font-family: "Playfair Display", serif; 
    font-size: clamp(48px, 12vw, 96px); /* Responsive Clamp */
    font-weight: 900; 
    letter-spacing: -0.03em; line-height: 1; text-transform: uppercase; margin-bottom: 10px; text-align: center;
}

/* Nav */
.nav-bar {
    width: 100%; border-top: 4px solid #000; border-bottom: 1px solid #000;
    padding: 14px 0; display: flex; justify-content: center; gap: 40px;
    overflow-x: auto; /* Scrollable on mobile */
    -webkit-overflow-scrolling: touch;
}
.nav-item { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #000; white-space: nowrap; }

/* --- HERO SLIDER --- */
.hero-grid { margin-bottom: 80px; position: relative; height: 75vh; overflow: hidden; margin-top: 20px; }
.elle-slider-track { display: flex; width: 100%; height: 100%; transition: transform 0.8s var(--ease-slow); }
.elle-slide { min-width: 100%; height: 100%; position: relative; opacity: 0; transition: opacity 0.5s ease; }
.elle-slide.active { opacity: 1; }

.hero-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transform-origin: center; }
.elle-slide.active .hero-bg { animation: kenBurns 8s ease-out forwards; }

.hero-content {
    position: absolute; bottom: 60px; left: 0; right: 0; padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; z-index: 10;
}
.text-mask { overflow: hidden; display: inline-block; }
.hero-tag { 
    font-size: 12px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; 
    background: #fff; color: #000; padding: 4px 12px; margin-bottom: 24px; 
    opacity: 0; transform: translateY(100%);
}
.hero-title { 
    font-family: "Playfair Display", serif; 
    font-size: clamp(32px, 5vw, 64px); font-weight: 900; 
    line-height: 1.1; font-style: italic; max-width: 900px; text-shadow: 0 4px 30px rgba(0,0,0,0.6);
    opacity: 0; transform: translateY(100%); margin: 0;
}
.hero-title a { color: #fff; }

/* Fixed Animation to include opacity transition */
.elle-slide.active .hero-tag { animation: revealText 0.8s ease-out 0.3s forwards; }
.elle-slide.active .hero-title { animation: revealText 0.8s ease-out 0.5s forwards; }

.slider-nav { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 20; }
.dot { width: 40px; height: 3px; background: rgba(255,255,255,0.4); cursor: pointer; }
.dot.active { background: #fff; }

/* --- LISTS --- */
.section-header { margin: 80px 0 40px; text-align: center; border-bottom: 2px solid #000; padding-bottom: 10px; position: relative; display: block; }
.title { font-family: "Playfair Display", serif; font-size: clamp(32px, 4vw, 42px); font-style: italic; margin: 0; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 60px 30px; }
.article-thumb { width: 100%; aspect-ratio: 3/4; background: #eee; margin-bottom: 20px; }
.article-meta { text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 10px; }
.article-title { font-family: "Playfair Display", serif; font-size: 28px; text-align: center; line-height: 1.2; margin-bottom: 10px; }
.article-excerpt { text-align: center; font-family: "Georgia", serif; font-size: 14px; color: #555; line-height: 1.6; }

.cols-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 60px; margin-top: 60px; }
.buzz-card { background: #fafafa; padding: 25px; margin-bottom: 25px; border-left: 3px solid #000; }
.tag-capsule { display: inline-block; padding: 4px 10px; border: 1px solid #000; font-size: 11px; text-transform: uppercase; margin: 0 5px 5px 0; color:#000; }

footer { border-top: 4px solid #000; padding: 80px 0; text-align: center; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; margin-top: 100px; }

/* Animations */
@keyframes revealText { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.1); } }

/* Mobile Optimization */
@media (max-width: 768px) {
    .nav-bar { justify-content: flex-start; padding: 14px 20px; }
    .hero-content { bottom: 40px; padding: 20px; }
    .cols-layout { grid-template-columns: 1fr; }
    .article-grid { gap: 40px; }
}