/* senggack.xyz - Editorial Warm Publication */
/* Colors: #1a1a2e (deep base), #f5f0e8 (warm off-white), #e8b84b (accent gold), #4a90d9 (primary blue), #6c757d (muted gray) */
/* Fonts: Playfair Display (headings), Inter (body) */

:root {
    --deep-base: #1a1a2e;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --primary-blue: #4a90d9;
    --muted-gray: #6c757d;
    --cream-light: #faf7f2;
    --cream-blush: #f0e6d8;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--warm-white);
    color: var(--deep-base);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background-color: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 2px 30px rgba(26, 26, 46, 0.08);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--warm-white);
    text-decoration: none;
    transition: color 0.4s ease;
}

.nav.scrolled .nav-logo {
    color: var(--deep-base);
}

.logo-dot {
    color: var(--accent-gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(245, 240, 232, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav.scrolled .nav-links a {
    color: var(--muted-gray);
}

.nav.scrolled .nav-links a:hover {
    color: var(--deep-base);
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--warm-white);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav.scrolled .nav-menu-btn span {
    background-color: var(--deep-base);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--deep-base);
    z-index: 999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 1.5rem 0;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--warm-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--accent-gold);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-parallax {
    position: absolute;
    inset: -20% 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 30%, #1a1a2e 50%, #243352 70%, #1a1a2e 100%);
}

.lens-flare {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.flare-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    animation: flareGlow 6s ease-in-out infinite;
}

.flare-1 {
    width: 300px;
    height: 300px;
    top: 15%;
    right: 20%;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.4), transparent 70%);
    animation-delay: 0s;
}

.flare-2 {
    width: 180px;
    height: 180px;
    top: 35%;
    right: 30%;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.25), transparent 70%);
    animation-delay: 1.5s;
}

.flare-3 {
    width: 120px;
    height: 120px;
    top: 25%;
    right: 15%;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.2), transparent 70%);
    animation-delay: 3s;
}

.flare-4 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 25%;
    background: radial-gradient(circle, rgba(245, 240, 232, 0.06), transparent 60%);
    animation-delay: 0.5s;
}

.flare-streak {
    position: absolute;
    width: 500px;
    height: 2px;
    top: 30%;
    right: 10%;
    background: linear-gradient(90deg, transparent, rgba(232, 184, 75, 0.3), transparent);
    transform: rotate(-25deg);
    filter: blur(1px);
    opacity: 0;
    animation: streakFlash 6s ease-in-out infinite 2s;
}

@keyframes flareGlow {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes streakFlash {
    0%, 100% { opacity: 0; }
    40%, 60% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--warm-white);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.8s;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-gold);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.7);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 1.1s;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--deep-base);
    background-color: var(--accent-gold);
    padding: 1rem 2.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 1.4s;
}

.hero-cta:hover {
    background-color: var(--warm-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 184, 75, 0.3);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: 2;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.8s;
}

.hero-scroll-indicator span {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(245, 240, 232, 0.5);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== BLOB DIVIDERS ===== */
.blob-divider {
    position: relative;
    margin-top: -2px;
    line-height: 0;
}

.blob-divider svg {
    width: 100%;
    height: 120px;
    display: block;
}

.blob-divider-1 svg path {
    fill: var(--warm-white);
}

.blob-divider-2 svg path {
    fill: var(--cream-light);
}

/* ===== SECTION COMMON ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.section-label-light {
    color: var(--accent-gold);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--deep-base);
    margin-bottom: 1.5rem;
}

.section-rule {
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 0 auto;
}

/* ===== STORIES / CARD GRID ===== */
.stories {
    padding: 6rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

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

.card {
    background-color: var(--cream-light);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(26, 26, 46, 0.1);
}

.card-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.card-large .card-image {
    min-height: 350px;
}

.card-image {
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

.card-image-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}

.card:hover .card-image-bg {
    transform: scale(1.05);
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.1), rgba(26, 26, 46, 0.3));
}

.card-category {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--warm-white);
    background-color: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(5px);
    padding: 0.4rem 0.8rem;
}

.card-body {
    padding: 2rem;
}

.card-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--deep-base);
    margin: 0.8rem 0;
    line-height: 1.3;
}

.card-large .card-title {
    font-size: 1.8rem;
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--muted-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.card:hover .card-link {
    color: var(--primary-blue);
}

/* ===== FEATURED SECTION ===== */
.featured {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-parallax {
    position: absolute;
    inset: -30% 0;
    background: linear-gradient(160deg, #1a1a2e 0%, #243352 40%, #1a1a2e 70%, #2a2a4e 100%);
    z-index: 0;
}

.featured-blob-left {
    position: absolute;
    left: -10%;
    top: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(232, 184, 75, 0.08), transparent 70%);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    z-index: 1;
    animation: blobFloat 12s ease-in-out infinite;
}

.featured-blob-right {
    position: absolute;
    right: -5%;
    bottom: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(74, 144, 217, 0.06), transparent 70%);
    border-radius: 40% 60% 30% 70% / 60% 40% 50% 50%;
    z-index: 1;
    animation: blobFloat 15s ease-in-out infinite reverse;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(5deg); }
    66% { transform: translate(-15px, 15px) rotate(-3deg); }
}

.featured-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--warm-white);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.featured-text {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.7);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.featured-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(245, 240, 232, 0.5);
}

/* ===== JOURNAL SECTION ===== */
.journal {
    padding: 6rem 2rem;
    background-color: var(--cream-light);
}

.journal-grid {
    max-width: 900px;
    margin: 0 auto;
}

.journal-entry {
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.journal-entry.visible {
    opacity: 1;
    transform: translateX(0);
}

.journal-entry:last-child {
    border-bottom: none;
}

.journal-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(232, 184, 75, 0.2);
    line-height: 1;
    flex-shrink: 0;
    width: 80px;
}

.journal-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.journal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-base);
    margin: 0.5rem 0 0.8rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.journal-entry:hover .journal-title {
    color: var(--primary-blue);
}

.journal-excerpt {
    font-size: 0.95rem;
    color: var(--muted-gray);
    line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
}

.about-blob {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(232, 184, 75, 0.06), transparent 60%);
    border-radius: 50% 40% 60% 30% / 40% 60% 30% 50%;
    animation: blobFloat 18s ease-in-out infinite;
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--deep-base);
    line-height: 1.2;
    margin: 1rem 0 2rem;
}

.about-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-gold);
}

.about-description {
    font-size: 1rem;
    color: var(--muted-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-subscribe {
    background-color: var(--cream-light);
    padding: 3rem;
    border-left: 3px solid var(--accent-gold);
}

.subscribe-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-base);
    margin-bottom: 0.8rem;
}

.subscribe-text {
    font-size: 0.95rem;
    color: var(--muted-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
}

.subscribe-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(26, 26, 46, 0.12);
    background-color: var(--warm-white);
    color: var(--deep-base);
    outline: none;
    transition: border-color 0.3s ease;
}

.subscribe-input::placeholder {
    color: var(--muted-gray);
}

.subscribe-input:focus {
    border-color: var(--accent-gold);
}

.subscribe-btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--deep-base);
    background-color: var(--accent-gold);
    border: none;
    padding: 0.9rem 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background-color: var(--deep-base);
    color: var(--warm-white);
}

.subscribe-note {
    font-size: 0.75rem;
    color: var(--muted-gray);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--deep-base);
    color: var(--warm-white);
    padding: 5rem 2rem 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.5);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--warm-white);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom span {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-large {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-menu-btn {
        display: flex;
    }
    .mobile-menu {
        display: flex;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .card-large {
        display: block;
    }
    .card-large .card-image {
        min-height: 250px;
    }
    .featured-stats {
        flex-direction: column;
        gap: 2rem;
    }
    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .journal-entry {
        flex-direction: column;
        gap: 1rem;
    }
    .journal-number {
        width: auto;
        font-size: 2rem;
    }
    .footer-inner {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .featured-title {
        font-size: 2rem;
    }
    .subscribe-form {
        flex-direction: column;
    }
    .subscribe-btn {
        width: 100%;
    }
}