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

:root {
    --surface: #f7f7f7;
    --surface-strong: #1b1b1b;
    --surface-soft: #e7e7e7;
    --text: #111111;
    --muted: #6f6f6f;
    --accent: #111111;
    --accent-soft: rgba(17,17,17,0.08);
    --card: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(180deg, #f7f7f7 0%, #e2e2e2 100%);
    color: var(--text);
    padding-top: 82px;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 48px;
    z-index: 200;
    background: rgba(18,18,18,0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.nav-toggle {
    display: none;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links.mobile-open {
    display: flex;
}

.nav-links a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.7; }

.nav-logo {
    font-weight: 700;
    font-size: 17px;
    color: #ffffff;
    letter-spacing: 0.22em;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.nav-logo .br {
    font-weight: 300;
    font-size: 22px;
    opacity: 0.9;
    line-height: 1;
}

.nav-cta {
    background: #ffffff;
    color: #111111;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 11px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
    background: rgba(255,255,255,0.95);
}

/* ── HERO ────────────────────────────────────────── */
.hero {
    min-height: 90vh;
    background: linear-gradient(180deg, #121212 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero.hero-small {
    min-height: 56vh;
    align-items: center;
}

.hero.hero-small .hero-left {
    padding: 80px 52px 50px;
}

.hero-left {
    flex: 0 0 52%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 52px 90px;
    z-index: 2;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(56px, 7.8vw, 96px);
    font-weight: 900;
    line-height: 0.93;
    color: #ffffff;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(16px, 1.35vw, 20px);
    color: rgba(255,255,255,0.82);
    font-weight: 500;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 48px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.22);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    align-self: flex-start;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.22);
}

/* ── BULB ────────────────────────────────────────── */
.hero-right {
    flex: 0 0 48%;
    position: relative;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.16), transparent 34%),
                radial-gradient(circle at 80% 25%, rgba(255,255,255,0.1), transparent 22%),
                linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.06) 100%);
}

#bulb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.08s ease-out;
    will-change: transform;
}

/* ── TAGLINE SECTION ─────────────────────────────── */
.section-tagline {
    background: linear-gradient(180deg, #1d1d1d 0%, #2d2d2d 100%);
    padding: 120px 48px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.section-tagline h2 {
    font-size: clamp(18px, 2.1vw, 28px);
    font-weight: 600;
    color: #f5f5f5;
    text-align: center;
    letter-spacing: 0.01em;
    max-width: 900px;
}

#lyverva-posts {
    width: min(100%, 1120px);
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.post-section {
    width: min(100%, 1120px);
    display: grid;
    gap: 32px;
    align-items: start;
}

.post-list {
    display: grid;
    gap: 22px;
}

.post-card {
    background: #f5f5f5;
    border: 1px solid rgba(17,17,17,0.08);
    border-radius: 26px;
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(17,17,17,0.16);
    box-shadow: 0 24px 50px rgba(0,0,0,0.12);
}

.post-card-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.post-card h3 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    color: var(--text);
    line-height: 1.15;
}

.post-card p {
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
    font-size: 0.98rem;
}

.post-card .read-more {
    color: #111111;
    font-weight: 700;
}

.post-meta {
    color: var(--muted);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

.post-page {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 80px 24px 120px;
    display: grid;
    gap: 28px;
}

.back-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-page h1,
.post-page h3 {
    color: var(--text);
}

.page-detail {
    background: #fafafa;
    border: 1px solid rgba(17,17,17,0.08);
    border-radius: 26px;
    padding: 34px;
    color: var(--text);
    box-shadow: 0 24px 60px rgba(0,0,0,0.06);
}

.page-detail h1 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.page-detail .post-meta {
    display: block;
    margin-bottom: 22px;
    color: var(--muted);
}

.page-detail .post-body {
    color: var(--text);
    line-height: 1.9;
    margin-top: 0;
    white-space: pre-line;
}

.page-detail .post-summary {
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.post-loading {
    color: var(--muted);
    font-size: 1rem;
}

.post-detail.hidden {
    display: none;
}

/* ── FEATURES / NEWSLETTER / FOOTER ───────────────────────────────────────── */
.section-feature {
    background: linear-gradient(180deg, #f5f5f5 0%, #e5e5e5 100%);
    padding: 80px 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-copy h2 {
    font-size: clamp(2.4rem, 3.4vw, 3.5rem);
    margin-bottom: 18px;
    color: var(--text);
}

.feature-copy p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 520px;
}

.feature-media {
    display: flex;
    justify-content: center;
}

.feature-image,
.events-embed {
    width: 100%;
    min-height: 520px;
    border-radius: 40px;
    background: linear-gradient(180deg, #ffffff 0%, #ededed 100%);
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
    overflow: hidden;
}

.events-embed {
    padding: 24px;
    box-sizing: border-box;
}

.events-embed iframe,
.events-embed > div {
    width: 100% !important;
    min-height: 460px !important;
}

.section-newsletter {
    background: #f1f1f1;
    padding: 80px 48px;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.newsletter-grid h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--text);
}

.newsletter-grid p {
    color: var(--muted);
    line-height: 1.9;
    max-width: 520px;
}

.newsletter-form {
    display: grid;
    gap: 18px;
    background: #ffffff;
    padding: 32px;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.newsletter-form label {
    color: var(--text);
    font-weight: 600;
}

.newsletter-form input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 999px;
    border: 1px solid rgba(17, 33, 84, 0.15);
    font-size: 1rem;
    outline: none;
}

.checkbox-label {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.newsletter-form button {
    width: fit-content;
    padding: 16px 32px;
    border: none;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.newsletter-form button:hover {
    transform: translateY(-1px);
    background: #333333;
}

.site-footer {
    background: #111111;
    padding: 60px 48px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 28px;
    margin-bottom: 30px;
}

.footer-grid a {
    display: block;
    color: rgba(255,255,255,0.82);
    margin-bottom: 14px;
    text-decoration: none;
    font-weight: 600;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-copy {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

/* ── MODAL ───────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal-box {
    background: #1d1d1d;
    border-radius: 22px;
    padding: 52px 44px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.modal-box h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.modal-box p {
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    margin-bottom: 28px;
    font-size: 15px;
}

.modal-input {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.modal-input:focus { border-color: rgba(255,255,255,0.4); }

.modal-submit {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: #111111;
    transition: transform 0.15s, box-shadow 0.15s;
}

.modal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.modal-close {
    margin-top: 14px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.modal-close:hover { color: #555; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
    body { padding-top: 72px; }
    nav {
        padding: 18px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #1d3557;
        flex-direction: column;
        gap: 0;
        display: none;
        padding: 16px 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 24px;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
    }

    .hero-left {
        flex: none;
        width: 100%;
        padding: 90px 24px 40px;
    }

    .hero-right {
        display: none;
    }

    .section-tagline { padding: 80px 28px; }
    .post-section { width: 100%; }

    .section-feature, .section-newsletter, .site-footer {
        padding: 56px 24px;
    }

    .feature-grid, .newsletter-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature-image, .events-embed,
    .newsletter-form {
        min-height: auto;
    }

    .events-embed,
    .events-embed iframe,
    .events-embed > div {
        min-height: 360px !important;
    }
}
