:root {
    --bg: #151515;
    --panel: rgba(36, 34, 31, 0.80);
    --panel-strong: #24211d;
    --text: #f8f1e8;
    --muted: #cbbdad;
    --muted-2: #9b8f82;
    --gold: #c9a45f;
    --gold-light: #efcf85;
    --brown: #7b512f;
    --brown-dark: #3c2a1f;
    --line: rgba(201, 164, 95, 0.32);
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(123, 81, 47, 0.32), transparent 36rem),
        linear-gradient(135deg, #111 0%, #1b1a18 45%, #24190f 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, black 0, transparent 78%);
    z-index: -3;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.page-glow {
    position: fixed;
    border-radius: 999px;
    filter: blur(34px);
    opacity: .55;
    z-index: -2;
    pointer-events: none;
}

.page-glow-one {
    width: 320px;
    height: 320px;
    top: 8%;
    right: 8%;
    background: rgba(201, 164, 95, .23);
}

.page-glow-two {
    width: 420px;
    height: 420px;
    bottom: 5%;
    left: -120px;
    background: rgba(123, 81, 47, .25);
}

.hero {
    position: relative;
    min-height: min(860px, 88vh);
    padding: 22px clamp(14px, 4vw, 64px) 86px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(12, 12, 12, .62) 0%, rgba(20, 18, 16, .70) 48%, rgba(21, 21, 21, .96) 100%),
        linear-gradient(90deg, rgba(21, 21, 21, .78), rgba(60, 42, 31, .35)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: -1;
}

.topbar {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px;
    border: 1px solid rgba(239, 207, 133, .18);
    border-radius: 28px;
    background: rgba(17, 16, 15, .54);
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
}

.topbar-simple {
    justify-content: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    display: block;
    width: clamp(176px, 21vw, 260px);
    height: auto;
    max-height: 78px;
    object-fit: contain;
    padding: 9px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.site-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.nav-link,
.admin-link,
.hero-cta,
.event-button,
.primary-button,
.ghost-button,
.danger-button {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
    font-family: inherit;
    font-size: .94rem;
    line-height: 1.2;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.nav-link,
.admin-link,
.ghost-button {
    color: var(--text);
    border: 1px solid rgba(239, 207, 133, .26);
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(12px);
}

.nav-link:hover,
.admin-link:hover,
.ghost-button:hover,
.hero-cta:hover,
.event-button:hover,
.primary-button:hover,
.danger-button:hover {
    transform: translateY(-2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    margin: auto;
    padding: clamp(70px, 10vw, 128px) 0 30px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 800;
    font-size: .78rem;
}

.hero h1 {
    margin: 0 auto;
    max-width: 1020px;
    font-size: clamp(2.45rem, 7.2vw, 6.7rem);
    line-height: 1.04;
    letter-spacing: -.055em;
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: auto;
    text-shadow: 0 18px 40px rgba(0,0,0,.42);
}

.hero-text {
    max-width: 640px;
    margin: 28px auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.7;
}

.hero-cta,
.event-button,
.primary-button {
    margin-top: 34px;
    color: #21170e;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 16px 32px rgba(201, 164, 95, .22);
}

.events-section {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 36px 0 92px;
}

.section-heading {
    margin-bottom: 34px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.section-intro {
    max-width: 410px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    text-align: right;
}

.timeline {
    position: relative;
    display: grid;
    gap: 26px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--line), transparent);
}

.event-card {
    position: relative;
    margin-left: 64px;
    display: grid;
    grid-template-columns: minmax(250px, 375px) 1fr;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid rgba(239, 207, 133, .16);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(42, 39, 35, .94), rgba(30, 28, 26, .86));
    box-shadow: var(--shadow);
}

.event-card.hidden-by-date {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: -46px;
    top: 38px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    border: 7px solid #211b15;
    box-shadow: 0 0 0 1px rgba(239, 207, 133, .42), 0 0 32px rgba(201, 164, 95, .48);
}

.event-media {
    min-height: 270px;
    background: linear-gradient(135deg, var(--brown-dark), var(--brown));
}

.event-media img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    display: block;
    filter: saturate(.95) contrast(1.05);
}

.event-media-placeholder {
    display: grid;
    place-items: center;
}

.event-media-placeholder span {
    font-size: 1.4rem;
    color: rgba(255,255,255,.72);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-content {
    padding: clamp(24px, 4vw, 44px);
    align-self: center;
}

.event-content time {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--gold-light);
    font-weight: 800;
    letter-spacing: .02em;
}

.event-content h3 {
    margin: 0;
    font-size: clamp(1.55rem, 3.2vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.event-content p {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

.event-button {
    margin-top: 24px;
}

.empty-state {
    padding: 56px 28px;
    text-align: center;
    border: 1px solid rgba(239, 207, 133, .16);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.045);
    box-shadow: var(--shadow);
}

.empty-state span {
    font-size: 2rem;
}

.empty-state h3 {
    margin: 14px 0 8px;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.footer {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 0 0 34px;
    color: var(--muted-2);
    font-size: .95rem;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-menu a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid rgba(239, 207, 133, .18);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    color: var(--text);
    text-decoration: none;
    font-weight: 750;
}

.footer-menu a:hover {
    border-color: rgba(239, 207, 133, .38);
    background: rgba(255,255,255,.075);
}

.footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding-bottom: 58px;
    }

    .topbar {
        align-items: center;
    }

    .brand {
        flex: 0 1 auto;
    }

    .hero-content {
        padding-top: 76px;
    }

    .section-heading {
        display: block;
    }

    .section-intro {
        margin-top: 14px;
        max-width: 680px;
        text-align: left;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-media,
    .event-media img {
        min-height: 220px;
        max-height: 340px;
    }
}

@media (max-width: 640px) {
    body::before,
    .page-glow {
        display: none;
    }

    .hero {
        padding: 12px 12px 44px;
        background-position: center top;
    }

    .topbar {
        gap: 10px;
        padding: 9px;
        border-radius: 22px;
    }

    .brand {
        width: auto;
        justify-content: center;
    }

    .brand-logo {
        width: min(240px, 100%);
        max-height: 68px;
        padding: 8px 11px;
        border-radius: 17px;
    }

    .nav-link,
    .admin-link,
    .hero-cta,
    .event-button,
    .primary-button,
    .ghost-button,
    .danger-button {
        min-height: 46px;
        padding: 11px 14px;
        font-size: .9rem;
    }

    .hero-content {
        padding: 54px 2px 12px;
        text-align: center;
    }

    .eyebrow {
        margin-bottom: 12px;
        font-size: .72rem;
        letter-spacing: .14em;
    }

    .hero h1 {
        font-size: clamp(2rem, 10.8vw, 3.35rem);
        line-height: 1.08;
        letter-spacing: -.035em;
        max-width: 11ch;
    }

    .hero-text {
        margin-top: 20px;
        font-size: 1rem;
    }

    .hero-cta {
        width: 100%;
        margin-top: 26px;
    }

    .events-section {
        width: min(100% - 24px, 1120px);
        padding: 34px 0 66px;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .timeline {
        gap: 18px;
    }

    .timeline::before {
        left: 10px;
    }

    .event-card {
        margin-left: 24px;
        border-radius: 22px;
        min-height: auto;
    }

    .timeline-dot {
        left: -24px;
        top: 26px;
        width: 20px;
        height: 20px;
        border-width: 5px;
    }

    .event-media,
    .event-media img {
        min-height: 190px;
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    .event-content {
        padding: 22px;
    }

    .event-content p {
        font-size: .96rem;
        line-height: 1.68;
    }

    .event-button {
        width: 100%;
    }

    .empty-state {
        padding: 38px 20px;
    }

    .footer {
        width: min(100% - 24px, 1120px);
        padding-bottom: 26px;
    }

    .footer-menu {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-menu a {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: clamp(1.85rem, 10.2vw, 2.85rem);
        max-width: 12ch;
    }
}
