:root {
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-50: #fff7ed;
    --blue-600: #2563eb;
    --green-600: #16a34a;
    --red-600: #dc2626;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-lg: 0 4px 12px rgba(15, 23, 42, .1), 0 16px 40px rgba(15, 23, 42, .08);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Manrope', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--orange-600); text-decoration: none; }
a:hover { color: var(--orange-500); }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-100);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--slate-900);
}

.brand:hover { color: var(--slate-900); }

.main-nav { display: flex; align-items: center; gap: 6px; }

.nav-link {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: .95rem;
    color: var(--slate-600);
    transition: all .15s ease;
}

.nav-link:hover { color: var(--slate-900); background: var(--slate-50); }
.nav-link.active { color: var(--orange-600); background: var(--orange-50); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }

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

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--slate-900);
    border-radius: 2px;
    transition: all .2s ease;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s ease;
    text-align: center;
}

.btn-primary { background: var(--orange-500); color: var(--white); }
.btn-primary:hover { background: var(--orange-600); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(249, 115, 22, .3); }

.btn-outline { background: transparent; color: var(--slate-900); border-color: var(--slate-200); }
.btn-outline:hover { border-color: var(--orange-500); color: var(--orange-600); background: var(--orange-50); }

.btn-light { background: var(--white); color: var(--slate-900); }
.btn-light:hover { background: var(--slate-100); }

.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(60% 80% at 85% 10%, rgba(249, 115, 22, .12), transparent 60%),
        radial-gradient(50% 70% at 10% 90%, rgba(37, 99, 235, .08), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--slate-50) 100%);
    padding: 80px 0 70px;
}

.hero-inner { text-align: center; max-width: 820px; }

.hero-eyebrow {
    display: inline-block;
    background: var(--orange-50);
    color: var(--orange-600);
    font-weight: 600;
    font-size: .8rem;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
    letter-spacing: .03em;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    color: var(--slate-900);
    margin-bottom: 18px;
}

.hero h1 .accent { color: var(--orange-500); }

.hero p {
    font-size: 1.1rem;
    color: var(--slate-600);
    margin-bottom: 30px;
}

.hero-search {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 8px;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    max-width: 560px;
    margin: 0 auto 36px;
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 12px 18px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: transparent;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat strong {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--slate-900);
}

.stat span { color: var(--slate-500); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--slate-50); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.section-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--orange-600);
}

.section-head h2, .section-head h1 {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--slate-900);
    margin-top: 4px;
}

/* ---------- Cards & grids ---------- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---------- Magazine home ---------- */
.hero-mag { padding: 72px 0 64px; }

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--slate-800);
    border: 2px solid var(--slate-200);
}

.btn-outline:hover { border-color: var(--orange-500); color: var(--orange-600); }

.featured-card {
    display: grid;
    grid-template-columns: 5fr 4fr;
    overflow: hidden;
}

.featured-img { display: block; overflow: hidden; min-height: 300px; }

.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }

.featured-card:hover .featured-img img { transform: scale(1.04); }

.featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }

.featured-title { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.25; margin: 12px 0; }

.featured-title a { color: var(--slate-900); }

.featured-title a:hover { color: var(--orange-600); }

.featured-excerpt { color: var(--slate-600); line-height: 1.7; margin-bottom: 18px; }

.side-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-img-wrap { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; }

.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }

.card:hover .card-img-wrap img { transform: scale(1.05); }

.card-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--white);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    line-height: 1.1;
    box-shadow: var(--shadow);
}

.card-date strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--slate-900); display: block; }
.card-date span { font-size: .75rem; font-weight: 700; color: var(--orange-600); text-transform: uppercase; }

.card-body { padding: 20px; }

.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.card-title { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.3; margin-bottom: 8px; }
.card-title a { color: var(--slate-900); }
.card-title a:hover { color: var(--orange-600); }

.card-location { color: var(--slate-500); font-size: .9rem; margin-bottom: 14px; }
.card-excerpt { color: var(--slate-600); font-size: .92rem; margin-bottom: 14px; }
.card-date-text { color: var(--slate-500); font-size: .82rem; }

/* ---------- Badges & tags ---------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.badge-orange { background: var(--orange-50); color: var(--orange-600); }
.badge-blue { background: #eff6ff; color: var(--blue-600); }
.badge-green { background: #f0fdf4; color: var(--green-600); }
.badge-red { background: #fef2f2; color: var(--red-600); }
.badge-gray { background: var(--slate-100); color: var(--slate-600); }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tag { background: var(--slate-100); color: var(--slate-600); padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }

/* ---------- Filters ---------- */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-bar input[type="search"], .filter-bar select {
    padding: 11px 14px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: var(--font-body);
    background: var(--white);
    color: var(--slate-800);
    min-width: 180px;
}

.filter-bar input[type="search"] { flex: 1; min-width: 220px; }
.filter-bar input:focus, .filter-bar select:focus, .filter-bar input:focus-visible { outline: 2px solid var(--orange-500); outline-offset: -1px; }

.results-count { color: var(--slate-500); margin-bottom: 18px; font-size: .92rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    font-weight: 600;
}
.page-link.active { background: var(--orange-500); border-color: var(--orange-500); color: var(--white); }
.page-link:hover { border-color: var(--orange-500); color: var(--orange-600); }

/* ---------- Page hero ---------- */
.page-hero {
    background: linear-gradient(180deg, #fff, var(--slate-50));
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--slate-100);
}

.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--slate-900); margin-top: 10px; }
.page-hero p { color: var(--slate-600); margin-top: 8px; max-width: 640px; }

.breadcrumbs { font-size: .85rem; color: var(--slate-500); margin-bottom: 6px; }
.breadcrumbs a { color: var(--slate-500); }
.breadcrumbs a:hover { color: var(--orange-600); }
.breadcrumbs span { margin: 0 6px; }

/* ---------- Event detail ---------- */
.event-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }

.event-hero-card { box-shadow: var(--shadow-lg); }
.event-hero-img { width: 100%; aspect-ratio: 21 / 10; object-fit: cover; }
.event-hero-body { padding: 28px; }
.event-hero-body h1 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--slate-900); margin: 14px 0 20px; }

.event-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact-icon { font-size: 1.4rem; }
.fact strong { display: block; font-size: .95rem; color: var(--slate-900); }
.fact span { color: var(--slate-500); font-size: .85rem; }

.event-side { display: flex; flex-direction: column; gap: 20px; }
.event-side .card { padding: 24px; }

.rsvp-card h3, .side-info h4 { font-family: var(--font-head); margin-bottom: 14px; color: var(--slate-900); }
.side-info h4 { font-size: 1.05rem; }

.side-info p { color: var(--slate-600); font-size: .9rem; margin-bottom: 14px; }

.info-list li { padding: 9px 0; border-bottom: 1px solid var(--slate-100); font-size: .92rem; color: var(--slate-600); }
.info-list li:last-child { border-bottom: 0; }
.info-list strong { color: var(--slate-900); }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; color: var(--slate-800); }

input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="password"], input[type="url"], textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--white);
}

textarea { resize: vertical; }

input:focus, textarea:focus, select:focus { outline: 2px solid var(--orange-500); outline-offset: -1px; border-color: var(--orange-500); }

.contact-form .btn, .rsvp-form .btn { margin-top: 18px; }
.rsvp-form .btn { margin-top: 20px; }

.form-note { font-size: .8rem; color: var(--slate-500); margin-top: 10px; text-align: center; }

.newsletter-form { display: flex; gap: 8px; margin-top: 10px; }
.newsletter-form input { flex: 1; padding: 10px 14px; }

.flash-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--green-600); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .9rem; }
.flash-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--red-600); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .9rem; }

/* ---------- Prose (article content) ---------- */
.prose { color: var(--slate-800); font-size: 1.02rem; }

.prose h1, .prose h2, .prose h3 {
    font-family: var(--font-head);
    color: var(--slate-900);
    margin: 28px 0 12px;
}

.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }

.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose blockquote { border-left: 4px solid var(--orange-500); background: var(--orange-50); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0; color: var(--slate-700); }
.prose a { text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 18px 0; }

/* ---------- Article layout ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }

.content-card { padding: 28px; }
.content-card h2 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 16px; color: var(--slate-900); }
.content-card > h1 { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 12px 0 18px; color: var(--slate-900); }

.article-hero-img { width: 100%; border-radius: var(--radius); margin: 8px 0 24px; aspect-ratio: 21 / 10; object-fit: cover; }

.content-page { max-width: 800px; }

/* ---------- CTA ---------- */
.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(120deg, var(--slate-900), var(--slate-800));
    border-radius: 20px;
    padding: 40px;
    color: var(--white);
    flex-wrap: wrap;
}

.cta-box h2 { font-family: var(--font-head); font-size: 1.6rem; }
.cta-box p { color: var(--slate-100); margin-top: 6px; }

/* ---------- Ads ---------- */
.ad-slot { margin: 24px auto; min-height: 90px; }
.ad-slot-header { margin-top: 0; }

/* ---------- Empty / misc ---------- */
.empty-state { text-align: center; color: var(--slate-600); padding: 20px; }
.empty-state h3 { font-family: var(--font-head); color: var(--slate-900); margin-bottom: 6px; }
.empty-state p { margin-bottom: 16px; }

.read-more { font-weight: 700; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: var(--slate-100); padding: 56px 0 24px; margin-top: 40px; }

.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .brand:hover { color: var(--white); }
.site-footer p { color: var(--slate-400); font-size: .9rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-col h4 { font-family: var(--font-head); color: var(--white); margin-bottom: 14px; font-size: 1rem; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--slate-300); font-size: .92rem; }
.footer-col a:hover { color: var(--orange-500); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    flex-wrap: wrap;
}

.footer-bottom p { font-size: .85rem; }
.footer-social { display: flex; gap: 18px; }
.footer-social a { font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .event-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
    .event-layout, .article-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .event-facts { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        inset: 72px 0 auto 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        gap: 4px;
        border-bottom: 1px solid var(--slate-100);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform .25s ease;
        z-index: 49;
    }
    .main-nav.open { transform: translateY(0); }
    .nav-link { padding: 12px 16px; }
    .nav-toggle { display: flex; }
    .header-actions .btn { display: none; }
    .hero { padding: 56px 0 50px; }
    .hero-search { border-radius: 18px; flex-direction: column; }
    .hero-search .btn { border-radius: 12px; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-img { min-height: 220px; }
    .side-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 28px; }
}

@media (max-width: 560px) {
    .event-grid, .article-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
}
