:root {
    --black: #111411;
    --black-soft: #1b201d;
    --charcoal: #252c28;
    --orange: #f5a623;
    --orange-dark: #d98105;
    --cream: #f7f3e9;
    --white: #ffffff;
    --gray: #6e756f;
    --light-gray: #e5e7e2;
    --green: #446b4a;
    --danger: #a52e25;

    --shadow:
        0 18px 45px rgba(0, 0, 0, 0.14);

    --radius-small: 10px;
    --radius: 18px;
    --radius-large: 28px;

    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--black);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

/* HEADER */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 20, 17, 0.96);
    color: var(--white);
    backdrop-filter: blur(14px);
}

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

.brand img {
    width: auto;
    max-height: 55px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.desktop-nav a:hover {
    color: var(--orange);
}

/* BUTTONS */

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 13px 24px;
    background: var(--orange);
    color: var(--black);
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition:
        transform 160ms ease,
        background 160ms ease;
}

.button:hover {
    background: #ffb63d;
    transform: translateY(-2px);
}

.button-small {
    min-height: 42px;
    padding: 9px 18px;
    font-size: 0.88rem;
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.28);
    color: var(--white);
}

.button-secondary:hover {
    background: rgba(0, 0, 0, 0.58);
}

/* HERO */

.hero {
    position: relative;
    display: grid;
    min-height: 760px;
    align-items: end;
    overflow: hidden;
    background: var(--black);
    color: var(--white);
}

.hero-picture,
.hero-picture img,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-picture img {
    object-fit: cover;
    object-position: center 42%;
}

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(7, 9, 7, 0.94) 0%,
            rgba(7, 9, 7, 0.77) 38%,
            rgba(7, 9, 7, 0.24) 72%,
            rgba(7, 9, 7, 0.16) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7, 9, 7, 0.92) 0%,
            rgba(7, 9, 7, 0.05) 58%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-block: 110px 65px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 0.79rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 830px;
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.hero h1 span {
    display: block;
    margin-top: 14px;
    color: var(--orange);
    font-size: 0.52em;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.hero-details {
    display: flex;
    flex-wrap: wrap;
    max-width: 800px;
    margin-top: 32px;
    gap: 8px 20px;
    color: rgba(255, 255, 255, 0.84);
}

.hero-details strong {
    flex-basis: 100%;
    color: var(--white);
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 34px;
    gap: 12px;
}

.availability-card {
    display: flex;
    width: min(100%, 600px);
    align-items: stretch;
    justify-content: space-between;
    margin-top: 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(10, 13, 10, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.availability-card > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
}

.availability-card strong {
    font-size: 1.25rem;
}

.availability-label,
.availability-spots span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.availability-spots {
    max-width: 180px;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--orange);
    color: var(--black);
    text-align: center;
}

.availability-spots span {
    color: rgba(17, 20, 17, 0.7);
}

.availability-spots strong {
    font-size: 2rem;
    line-height: 1;
}

/* FACT STRIP */

.fact-strip {
    background: var(--black);
    color: var(--white);
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.fact {
    padding: 26px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.fact:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.fact span,
.fact strong {
    display: block;
}

.fact span {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* SECTIONS */

.section {
    padding-block: 100px;
}

.section-dark {
    background: var(--black-soft);
    color: var(--white);
}

.section-muted {
    background: #ebece7;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section h2 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.section p {
    margin-top: 0;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.55;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: 70px;
}

.event-art-card {
    overflow: hidden;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.schedule-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 35px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    background: var(--white);
}

.schedule-box div {
    padding: 22px;
    border-right: 1px solid var(--light-gray);
}

.schedule-box div:last-child {
    border-right: 0;
}

.schedule-box span,
.schedule-box strong {
    display: block;
}

.schedule-box span {
    color: var(--orange-dark);
    font-size: 1.2rem;
    font-weight: 900;
}

.schedule-box strong {
    font-size: 0.9rem;
}

/* TEAMS */

.team-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    color: var(--orange);
    font-size: 1.05rem;
}

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

.team-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
}

.team-card-header {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-card h3 {
    margin: 2px 0 4px;
    font-size: 1.8rem;
}

.team-number,
.team-color {
    color: var(--orange);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.team-roster {
    padding: 20px 24px 24px;
}

.team-roster h4 {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.77rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.team-roster ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    gap: 8px 20px;
    list-style: none;
}

.team-roster li {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 55px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state h3 {
    margin-top: 0;
    font-size: 2rem;
}

/* FORMAT */

.format-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.format-card {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 28px;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.format-card h3 {
    margin: 42px 0 12px;
    font-size: 1.35rem;
}

.format-number {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(245, 166, 35, 0.2);
    font-size: 5rem;
    font-weight: 950;
    line-height: 1;
}

.notice {
    margin-top: 28px;
    border-left: 5px solid var(--orange);
    border-radius: var(--radius-small);
    padding: 22px 24px;
    background: var(--white);
}

/* RULES */

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

.rules-list details {
    border: 1px solid #d6d8d2;
    border-radius: var(--radius-small);
    background: var(--white);
}

.rules-list summary {
    position: relative;
    padding: 20px 58px 20px 22px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 900;
    list-style: none;
}

.rules-list summary::-webkit-details-marker {
    display: none;
}

.rules-list summary::after {
    position: absolute;
    top: 50%;
    right: 22px;
    content: "+";
    color: var(--orange-dark);
    font-size: 1.6rem;
    transform: translateY(-50%);
}

.rules-list details[open] summary::after {
    content: "−";
}

.rules-content {
    padding: 0 24px 22px;
}

.rules-content ul {
    margin: 0;
    padding-left: 22px;
}

.rules-content li + li {
    margin-top: 9px;
}

/* REGISTRATION */

.registration-section {
    background:
        linear-gradient(
            135deg,
            var(--black) 0%,
            var(--charcoal) 100%
        );
    color: var(--white);
}

.registration-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: 70px;
}

.registration-intro {
    position: sticky;
    top: 110px;
}

.price-card {
    display: inline-flex;
    min-width: 210px;
    flex-direction: column;
    margin-top: 22px;
    border-radius: var(--radius);
    padding: 22px;
    background: var(--orange);
    color: var(--black);
}

.price-card span,
.price-card small {
    font-weight: 800;
}

.price-card strong {
    font-size: 3.5rem;
    line-height: 1;
}

.contact-card {
    display: flex;
    flex-direction: column;
    margin-top: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
}

.contact-card h3 {
    margin: 0 0 8px;
}

.contact-card p {
    margin-bottom: 12px;
}

.contact-card a {
    color: var(--orange);
    font-weight: 800;
    text-decoration: none;
}

.registration-form {
    overflow: hidden;
    border-radius: var(--radius-large);
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow);
}

.form-section {
    padding: 32px;
    border-bottom: 1px solid var(--light-gray);
}

.form-section h3 {
    margin: 0 0 22px;
    font-size: 1.4rem;
}

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

.field {
    margin-bottom: 18px;
}

.form-grid .field {
    margin-bottom: 0;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.87rem;
    font-weight: 850;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid #cfd3cc;
    border-radius: var(--radius-small);
    padding: 13px 14px;
    background: #fafbf8;
    color: var(--black);
    outline: none;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--orange-dark);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.16);
}

.roster-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.roster-heading p {
    margin-bottom: 18px;
    color: var(--gray);
}

#roster-count {
    border-radius: 999px;
    padding: 7px 11px;
    background: #f0f1ed;
    color: var(--gray);
    font-size: 0.78rem;
    font-weight: 800;
}

.agreements {
    display: grid;
    gap: 14px;
}

.checkbox-field {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--orange-dark);
}

.website-field {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
}

.submit-button {
    width: calc(100% - 64px);
    margin: 0 32px 32px;
    border-radius: var(--radius-small);
}

/* FOOTER */

.site-footer {
    padding-block: 45px;
    background: #090b09;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
}

.footer-grid strong {
    margin-bottom: 5px;
    color: var(--white);
}

.footer-grid a {
    color: var(--orange);
    text-decoration: none;
}

.footer-logo {
    width: 180px;
    margin-bottom: 12px;
}

/* MESSAGE PAGES */

.message-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 30px;
    background:
        radial-gradient(
            circle at top,
            var(--charcoal),
            var(--black)
        );
}

.message-card {
    width: min(100%, 650px);
    border-radius: var(--radius-large);
    padding: 50px;
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
}

.message-card h1 {
    margin: 0 0 20px;
    font-size: clamp(2.3rem, 7vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.message-logo {
    width: 220px;
    margin: 0 auto 35px;
}

.message-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 30px 0;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
}

.message-details > div {
    padding: 18px 12px;
    border-right: 1px solid var(--light-gray);
}

.message-details > div:last-child {
    border-right: 0;
}

.message-details span,
.message-details strong {
    display: block;
}

.message-details span {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.message-contact {
    margin: 25px 0 0;
    color: var(--gray);
}

.message-contact a {
    color: var(--orange-dark);
    font-weight: 800;
}

.error-card {
    border-top: 8px solid var(--danger);
}

.success-card {
    border-top: 8px solid var(--orange);
}

/* RESPONSIVE */

@media (max-width: 950px) {
    .desktop-nav {
        display: none;
    }

    .hero {
        min-height: 700px;
    }

    .fact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-layout,
    .registration-layout {
        grid-template-columns: 1fr;
    }

    .registration-intro {
        position: static;
    }

    .format-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 26px), var(--container));
    }

    .site-header .brand img {
        width: 115px;
    }

    .header-inner {
        min-height: 64px;
        gap: 10px;
    }

    .button-small {
        padding-inline: 13px;
        font-size: 0.76rem;
    }

    .hero {
        min-height: 740px;
    }

    .hero-picture img {
        object-position: 42% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                0deg,
                rgba(7, 9, 7, 0.96) 0%,
                rgba(7, 9, 7, 0.74) 60%,
                rgba(7, 9, 7, 0.45) 100%
            );
    }

    .hero-content {
        padding-block: 90px 38px;
    }

    .hero h1 {
        font-size: clamp(3rem, 16vw, 4.8rem);
    }

    .hero-details {
        display: grid;
        gap: 4px;
    }

    .hero-actions {
        display: grid;
    }

    .availability-card {
        flex-direction: column;
    }

    .availability-spots {
        max-width: none;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        border-left: 0;
    }

    .fact-grid,
    .teams-grid,
    .format-grid,
    .form-grid,
    .footer-grid,
    .message-details {
        grid-template-columns: 1fr;
    }

    .fact {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .fact:first-child {
        border-left: 0;
    }

    .section {
        padding-block: 72px;
    }

    .section h2 {
        font-size: 2.7rem;
    }

    .schedule-box {
        grid-template-columns: 1fr;
    }

    .schedule-box div {
        border-right: 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .schedule-box div:last-child {
        border-bottom: 0;
    }

    .team-roster ul {
        grid-template-columns: 1fr;
    }

    .format-card {
        min-height: auto;
    }

    .form-section {
        padding: 24px 20px;
    }

    .submit-button {
        width: calc(100% - 40px);
        margin: 0 20px 24px;
    }

    .message-details > div {
        border-right: 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .message-details > div:last-child {
        border-bottom: 0;
    }

    .message-card {
        padding: 36px 23px;
    }
}