/* Tokens e elementos básicos */
:root {
    color-scheme: dark;
    --background: #0e0c0b;
    --surface: #171310;
    --ink: #f8f1e7;
    --muted: #c1b6aa;
    --gold: #dfbf80;
    --gold-light: #f0d8a3;
    --font-body: "Aptos", "Segoe UI", system-ui, sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --width: 75rem;
    --gutter: clamp(1.25rem, 4.8vw, 5rem);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font: 1rem/1.65 var(--font-body);
}

body, button {
    font-family: var(--font-body);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 5px;
}

.skip-link {
    position: fixed;
    z-index: 20;
    top: 1rem;
    left: 1rem;
    padding: .75rem 1rem;
    background: var(--gold);
    color: var(--background);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(calc(100% - var(--gutter) * 2), var(--width));
    margin-inline: auto;
}

.section {
    padding-block: clamp(4rem, 8vw, 7.5rem);
}

h1, h2, h3, p, dl, dd, figure {
    margin: 0;
}

h1, h2 {
    font: 400 clamp(2.4rem, 5.4vw, 4.6rem)/.99 var(--font-display);
    letter-spacing: -.055em;
    text-wrap: balance;
}

h1 em, h2 em {
    color: var(--gold);
    font-weight: inherit;
}

h3 {
    font-size: 1.15rem;
    line-height: 1.35;
}

.eyebrow {
    margin-bottom: 1.1rem;
    color: var(--gold);
    font-size: .875rem;
    font-weight: 650;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

/* Navegação e ações */
.site-header {
    position: sticky;
    z-index: 5;
    top: 0;
    background: var(--background);
}

.header-inner,
.navigation,
.actions,
.footer-links {
    display: flex;
    align-items: center;
}

.header-inner {
    min-height: 5rem;
    justify-content: space-between;
}

.brand {
    width: clamp(6.5rem, 12vw, 8.25rem);
    flex: none;
}

.navigation {
    gap: clamp(1rem, 3vw, 2.65rem);
}

.navigation > a,
.footer-links a {
    font-size: .9375rem;
    text-decoration: none;
}

.navigation > a:hover,
.footer-links a:hover {
    color: var(--gold-light);
}

.button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    padding: .65rem 1.25rem;
    border-radius: .25rem;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.button-gold {
    background: var(--gold);
    color: #18120c;
}

.button-gold:hover {
    background: var(--gold-light);
}

.button-outline {
    color: var(--gold);
}

.button-outline:hover {
    background: #211810;
}

.text-link {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    font-size: .9375rem;
    font-weight: 600;
    text-decoration-color: #997e57;
    text-underline-offset: .28em;
}

.text-link:hover {
    color: var(--gold-light);
}

.actions {
    flex-wrap: wrap;
    gap: .75rem 1.55rem;
}

.menu-toggle {
    display: none;
}

/* Abertura */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #0b0908;
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #0b0908 4%, #0b0908 15%, #0b0908d9 29%, transparent 64%),
                linear-gradient(0deg, #0b0908a6, transparent 38%);
    content: "";
}

.hero-inner {
    display: flex;
    min-height: clamp(34rem, 49vw, 47rem);
    align-items: center;
    padding-block: 5rem;
}

.hero-copy {
    width: min(63%, 43rem);
}

.hero-location {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.hero-location::before {
    width: 2rem;
    content: "";
}

.hero h1 {
    font-size: clamp(3.6rem, 7.15vw, 7.1rem);
    line-height: .9;
    text-wrap: initial;
}

.hero h1 em {
    display: block;
    margin-top: .12em;
}

.hero-intro {
    max-width: 28rem;
    margin-block: 1.6rem 1.4rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.organizer {
    background: #17120e;
}

.organizer-inner {
    display: flex;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-block: .95rem;
    color: var(--muted);
    font-size: .9375rem;
}

.organizer strong,
.organizer span {
    margin-inline: .35rem;
    color: var(--gold);
}

/* Apresentação, comunidade e experiência */
.overview,
.experience-grid,
.archive-heading {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    align-items: end;
    gap: clamp(1.5rem, 6vw, 6rem);
}

.overview-copy {
    color: var(--muted);
    font-size: 1.0625rem;
}

.overview-copy p + p {
    margin-top: .85rem;
}

.community {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 1.5rem;
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-block: 1.8rem;
}

.community-description p {
    margin-top: .3rem;
    color: var(--muted);
}

.statistics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.statistic {
    display: flex;
    flex-direction: column-reverse;
    padding-left: clamp(.9rem, 2.6vw, 2.5rem);
}

.statistic dd {
    color: var(--gold);
    font: 400 clamp(2rem, 4.5vw, 3.8rem)/1.1 var(--font-display);
    letter-spacing: -.045em;
}

.statistic dt {
    color: var(--muted);
    font-size: .9375rem;
}

.experience {
    background: var(--surface);
}

.experience-grid {
    align-items: start;
}

.experience-grid .muted {
    max-width: 31rem;
    margin-top: 1.4rem;
}

.experience-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.experience-list li {
    position: relative;
    padding: 1rem 0 1rem 1.5rem;
}

.experience-list li::before {
    position: absolute;
    top: 1.4rem;
    left: .15rem;
    width: .45rem;
    height: .45rem;
    transform: rotate(45deg);
    content: "";
}

.experience-list p {
    margin-top: .3rem;
    color: var(--muted);
}

.event-details {
    margin-top: clamp(2rem, 5vw, 4rem);
    padding: clamp(1.15rem, 3vw, 2rem);
    border-radius: .3rem;
    background: #110e0c;
}

.event-facts {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 1rem;
    margin-top: 1rem;
}

.event-facts dt {
    color: var(--gold);
    font-size: .875rem;
}

.event-facts dd {
    overflow-wrap: anywhere;
}

.countdown {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.countdown-values {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    color: var(--muted);
}

.countdown-values strong {
    color: var(--gold-light);
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
}

/* Retrospectiva */
.archive-details {
    margin-top: 1.75rem;
}

.archive-copy {
    max-width: 46rem;
    margin-bottom: 1.15rem;
    color: var(--muted);
}

.company-list,
.schedule {
    margin: .25rem 0 1.15rem;
    padding-left: 1.25rem;
    color: var(--muted);
}

.company-list {
    columns: 2;
}

.schedule {
    display: grid;
    gap: .4rem;
    padding-left: 0;
    list-style: none;
}

.schedule time {
    display: inline-block;
    min-width: 4.1rem;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

/* Contato e rodapé */
.participation {
    background: radial-gradient(ellipse at 50% 115%, #382719, transparent 72%), #17120f;
    text-align: center;
}

.participation h2 {
    max-width: 55rem;
    margin-inline: auto;
}

.participation p:not(.eyebrow) {
    max-width: 37rem;
    margin: 1.35rem auto;
    color: var(--muted);
}

.participation .actions {
    justify-content: center;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 2rem;
    padding-block: 2rem;
}

.footer-brand {
    color: var(--gold-light);
    font-weight: 650;
    text-decoration: none;
}

.site-footer p {
    margin-top: .3rem;
    color: var(--muted);
    font-size: .875rem;
}

.footer-links {
    flex-wrap: wrap;
    gap: .65rem 1.25rem;
}

/* Layout para tablets e celulares */
@media (max-width: 54rem) {
    .header-inner {
        position: relative;
        flex-wrap: wrap;
        min-height: 4.4rem;
    }

    .has-mobile-menu .menu-toggle {
        display: inline-flex;
        min-height: 2.75rem;
        align-items: center;
        gap: .65rem;
        padding: .45rem .8rem;
        border: 0;
        border-radius: 999px;
        background: #ffffff0c;
        color: var(--gold-light);
        cursor: pointer;
        font-size: .875rem;
    }

    .menu-icon {
        width: .9rem;
        height: .65rem;
        border-block: 1px solid currentColor;
    }

    .navigation {
        flex-basis: 100%;
        flex-wrap: wrap;
        padding-block: .5rem 1rem;
    }
}

@media (max-width: 42rem) {
    .hero-inner {
        min-height: 0;
        align-items: flex-end;
        padding-block: clamp(15.5rem, 67vw, 25rem) 2.8rem;
    }

    .hero-copy {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.95rem, 12vw, 5.15rem);
    }

    .hero::after {
        background: linear-gradient(180deg, #0b090800 15%, #0b09085c 28%, #0b0908 60%);
    }

    .organizer-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .overview,
    .experience-grid,
    .archive-heading,
    .community {
        grid-template-columns: 1fr;
    }

    .community {
        gap: 1rem;
    }

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

    .event-facts > :last-child {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}
