@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
    --sand: #f4eadc;
    --sand-deep: #dfbd94;
    --clay: #bf6430;
    --clay-dark: #91451f;
    --ink: #201712;
    --muted: #6f645d;
    --olive: #52624a;
    --teal: #1f6f78;
    --paper: rgba(255, 255, 255, 0.9);
    --line: rgba(32, 23, 18, 0.12);
    --shadow: 0 24px 70px rgba(92, 58, 31, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--ink);
    background: #fbf6ee;
    min-height: 100vh;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px clamp(16px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    color: var(--clay-dark);
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.topnav {
    display: flex;
    gap: 8px;
}

.topnav a,
.primary-action,
.secondary-action,
.tab {
    min-height: 40px;
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.hero {
    min-height: 54vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: end;
    gap: clamp(20px, 4vw, 44px);
    padding: clamp(46px, 8vw, 94px) clamp(16px, 5vw, 72px) 34px;
}

.hero-copy {
    max-width: 860px;
}

.panel-label {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 800;
    color: var(--teal);
}

.eyebrow {
    margin: 14px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: clamp(1.35rem, 3.5vw, 2.35rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--teal);
}

h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3.25rem);
    line-height: 1.04;
    color: var(--clay);
    max-width: none;
    white-space: nowrap;
}

.lede {
    max-width: 720px;
    margin: 20px 0 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #3c342e;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.primary-action {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

.secondary-action {
    color: var(--clay-dark);
}

.hero-side {
    display: grid;
    gap: 16px;
    align-self: end;
}

.subscribe-panel,
.event-submit-cta {
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.event-submit-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 18px 22px;
    background: var(--paper);
    color: var(--clay-dark);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.subscribe-panel strong {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--olive);
}

.subscribe-panel p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 0 clamp(16px, 5vw, 72px);
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--line);
}

.stats div {
    background: rgba(255, 255, 255, 0.86);
    padding: 18px;
}

.stats span {
    display: block;
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    font-weight: 800;
    color: var(--clay-dark);
}

.stats p {
    margin: 2px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    padding: 24px clamp(16px, 5vw, 72px) 16px;
}

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab.is-active {
    background: var(--clay);
    color: white;
    border-color: var(--clay);
}

.search {
    display: grid;
    gap: 6px;
    min-width: min(100%, 320px);
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
}

.search input {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    font: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.calendar-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
    padding: 0 clamp(16px, 5vw, 72px) 58px;
}

.month-list,
.event-card,
.empty-state {
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 16px 50px rgba(92, 58, 31, 0.12);
}

.month-list {
    align-self: start;
    position: sticky;
    top: 82px;
    padding: 18px;
}

.month-list h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.month-chip {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.month-chip span:last-child {
    color: var(--clay-dark);
    font-weight: 800;
}

.event-list {
    display: grid;
    gap: 12px;
}

.event-card {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px;
}

.event-thumb {
    margin: 0;
    width: 148px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(191, 100, 48, 0.12);
}

.event-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.event-date-line {
    margin: 0 0 5px;
    color: var(--clay-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.event-body h3 {
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
}

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

.meta span,
.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(31, 111, 120, 0.1);
    color: #185860;
    font-size: 12px;
    font-weight: 800;
}

.event-body p {
    margin: 0;
    color: var(--muted);
}

.event-actions {
    display: grid;
    align-content: center;
    gap: 8px;
}

.event-actions a,
.event-actions button {
    min-width: 112px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    color: var(--clay-dark);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    background: white;
    cursor: pointer;
    font-family: inherit;
}

.status.past {
    background: rgba(111, 100, 93, 0.12);
    color: var(--muted);
}

.empty-state {
    padding: 26px;
    color: var(--muted);
}

footer {
    padding: 20px clamp(16px, 5vw, 72px) 110px;
    color: rgba(32, 23, 18, 0.7);
    font-size: 13px;
}

.floating-nav {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(184, 132, 77, 0.08);
    backdrop-filter: blur(20px);
}

.fn-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 999px;
    color: var(--clay-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.fn-btn .material-icons {
    font-size: 18px;
}

.fn-active {
    color: white;
    background: linear-gradient(135deg, #b8844d, #8b6f47);
    box-shadow: 0 6px 20px rgba(184, 132, 77, 0.35);
}

.fn-divider {
    width: 1px;
    height: 20px;
    background: rgba(184, 132, 77, 0.2);
}

@media (max-width: 880px) {
    .hero,
    .calendar-shell {
        grid-template-columns: 1fr;
    }

    .hero-side,
    .subscribe-panel,
    .month-list {
        position: static;
    }


    .controls {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .topbar,
    .topnav,
    .event-card {
        align-items: stretch;
    }

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

    .topnav,
    .stats {
        grid-template-columns: 1fr;
    }

    .event-card {
        gap: 14px;
    }

    .event-thumb {
        width: 100%;
        max-width: 260px;
    }

    h1 {
        font-size: clamp(1.65rem, 10vw, 2.25rem);
        white-space: normal;
    }

    .floating-nav {
        left: 18px;
        right: 18px;
        justify-content: center;
    }

    .fn-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
}
