:root {
    --bg: #f5f2ea;
    --surface: #fffdf8;
    --ink: #15221e;
    --muted: #6d766f;
    --line: #ddd9ce;
    --brand: #193c35;
    --brand-dark: #102a25;
    --accent: #e0ad66;
    --shadow: 0 18px 50px rgba(21, 34, 30, .08);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero--launch {
    background:
        radial-gradient(circle at 85% 12%, rgba(224, 173, 102, .26), transparent 26%),
        linear-gradient(145deg, #fffdf7 0%, #eef1e9 100%);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 64px;
    align-items: end;
    padding: 78px 0 68px;
}

.hero__copy h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.7rem, 7vw, 6rem);
    line-height: .94;
    letter-spacing: -.06em;
}

.hero-search {
    display: flex;
    max-width: 720px;
    margin-top: 30px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow);
}

.hero-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    font: inherit;
    font-size: 1rem;
    outline: 0;
}

.hero-search button {
    border: 0;
    border-radius: 12px;
    padding: 0 22px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.button--ghost {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}

.button--ghost:hover {
    color: #fff;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hero-stats > div {
    padding: 20px;
    border: 1px solid rgba(25, 60, 53, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .65);
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    font-size: 2rem;
    letter-spacing: -.04em;
}

.hero-stats span {
    color: var(--muted);
    font-size: .78rem;
}

.hero-stats p {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .84rem;
}

.filters--launch {
    margin-top: -26px;
    position: relative;
    z-index: 4;
    box-shadow: var(--shadow);
}

.event-grid--launch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.event-card--launch {
    display: block;
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.event-card--launch:hover {
    transform: translateY(-3px);
    border-color: rgba(25, 60, 53, .28);
    box-shadow: 0 22px 54px rgba(21, 34, 30, .13);
}

.event-card__link {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.event-card__link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.event-card__visual {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e6df;
}

.event-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.event-card--launch:hover .event-card__visual > img {
    transform: scale(1.025);
}

.event-card__date-badge {
    position: absolute;
    z-index: 4;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(16, 42, 37, .92);
    color: #fff;
    box-shadow: 0 6px 18px rgba(9, 25, 21, .18);
    backdrop-filter: blur(8px);
}

.event-card__date-badge strong {
    font-size: 1.16rem;
    line-height: 1;
}

.event-card__date-badge span {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.event-card--launch .event-card__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 19px;
}

.event-card--launch .event-card__meta {
    gap: 6px;
    margin-bottom: 10px;
}

.event-card--launch .event-card__meta span {
    padding: 4px 8px;
    border-color: #d8d3c5;
    background: #f6f2e7;
    color: #57625c;
    font-size: .68rem;
    letter-spacing: .01em;
}

.event-card--launch h3 {
    display: -webkit-box;
    min-height: 2.38em;
    margin: 0 0 16px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.3rem;
    line-height: 1.19;
    letter-spacing: -.028em;
}

.event-card__schedule,
.event-card__location {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.event-card__schedule {
    margin: 0;
    padding: 11px 12px;
    border-radius: 13px;
    background: #f0eee5;
    color: var(--brand-dark);
}

.event-card__schedule span,
.event-card__location span {
    display: block;
    min-width: 0;
}

.event-card__schedule strong,
.event-card__schedule small,
.event-card__location strong,
.event-card__location small {
    display: block;
}

.event-card__schedule strong {
    font-size: .88rem;
    line-height: 1.2;
}

.event-card__schedule small {
    margin-top: 2px;
    color: #52605a;
    font-size: .78rem;
    font-weight: 700;
}

.event-card__location {
    margin-top: 12px;
    color: var(--ink);
}

.event-card__location strong {
    overflow: hidden;
    font-size: .88rem;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.event-card__location small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .76rem;
}

.event-card__info-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    margin-top: 1px;
    object-fit: contain;
    opacity: .74;
}

.event-card--launch .event-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.event-card__facts {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.event-card--launch .price {
    color: var(--brand-dark);
    font-size: .92rem;
}

.event-card--launch .price--free {
    padding: 5px 9px;
    border-radius: 999px;
    background: #dce9df;
    color: #214d3c;
    font-size: .78rem;
}

.session-count {
    color: var(--muted);
    font-size: .74rem;
}

.event-card__open {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease;
}

.event-card--launch:hover .event-card__open {
    transform: translateX(2px);
    background: var(--brand-dark);
}

.editorial-note {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 86px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ece8dc;
}

.editorial-note h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    letter-spacing: -.04em;
}

.editorial-note > p {
    margin: 0;
    color: #48534d;
    font-size: 1.02rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    text-decoration: none;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr .5fr 1fr;
}

.detail__main {
    min-width: 0;
}

.detail__image {
    border-radius: 22px;
    overflow: hidden;
}

.detail__image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.info-card {
    box-shadow: 0 10px 30px rgba(21, 34, 30, .04);
}

@media (max-width: 1020px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-stats {
        max-width: 620px;
    }

    .event-grid--launch {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-nav {
        gap: 12px;
        font-size: .82rem;
    }

    .site-nav a:nth-child(2) {
        display: none;
    }

    .hero__grid {
        padding: 54px 0 46px;
    }

    .hero__copy h1 {
        font-size: clamp(2.65rem, 15vw, 4.8rem);
    }

    .hero-search {
        display: grid;
        grid-template-columns: 1fr auto;
        margin-top: 24px;
    }

    .hero-search button {
        padding: 0 16px;
    }

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

    .filters--launch {
        margin-top: -16px;
    }

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

    .event-card__visual {
        aspect-ratio: 16 / 8.6;
    }

    .event-card--launch .event-card__body {
        padding: 16px 17px 17px;
    }

    .event-card--launch h3 {
        min-height: 0;
        font-size: 1.22rem;
    }

    .editorial-note {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px;
        margin-bottom: 58px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero__actions .button {
        flex: 1;
    }

    .detail__layout {
        gap: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-card--launch,
    .event-card__open,
    .event-card__visual img {
        transition: none;
    }

    .event-card--launch:hover {
        transform: none;
    }
}
