/* ==========================================
   COLOR AND LAYOUT VARIABLES
========================================== */
:root {
    --green-dark: #103d32;
    --green-light: #dbe4d6;
    --gold: #c99d43;
    --off-white: #f7f1e4;
    --white: #ffffff;
    --site-width: 1200px;
    --page-gutter: 1rem;

    --serif-font:
        Georgia,
        "Times New Roman",
        serif;
}

/* ==========================================
   RESET AND BASE STYLES
========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--off-white);
    color: var(--green-dark);
    font-family: var(--serif-font);

    /* Stable, readable base font size */
    font-size: clamp(
        1rem,
        calc(0.95rem + 0.25vw),
        1.25rem
    );
}

img {
    display: block;
    width: 100%;
    height: auto;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

a {
    color: inherit;
}

.site-container {
    width: min(
        calc(100% - (var(--page-gutter) * 2)),
        var(--site-width)
    );
    margin-inline: auto;
}

/* ==========================================
   ACCESSIBILITY
========================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

/* ==========================================
   SHARED SECTION KICKER
========================================== */
.section-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.section-kicker::before,
.section-kicker::after {
    content: "";
    flex: 0 1 3rem;
    height: 1px;
    background-color: var(--gold);
}

.section-kicker span {
    color: var(--gold);

    /* Small label that remains readable on mobile */
    font-size: clamp(
        0.8rem,
        calc(0.74rem + 0.3vw),
        0.95rem
    );

    font-weight: 700;
    line-height: 1.4;
    letter-spacing: clamp(
        0.12rem,
        calc(0.1rem + 0.08vw),
        0.25rem
    );
    text-align: center;
    text-transform: uppercase;
}

.section-kicker--hero span {
    color: var(--gold);
}

/* ==========================================
   HERO SECTION
========================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--green-dark);
    color: var(--off-white);
    padding-block: 4rem 4.75rem;
}

.hero-layout {
    display: grid;
    gap: 3.25rem;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero h1 {
    max-width: 13ch;
    margin-bottom: 1.5rem;
    color: var(--off-white);

    /* Large, fluid hero heading */
    font-size: clamp(
        3rem,
        calc(2.25rem + 4vw),
        5.5rem
    );

    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-intro {
    max-width: 42rem;
    margin-bottom: 2rem;
    color: rgba(247, 241, 228, 0.92);

    /* Readable mobile body text */
    font-size: clamp(
        1.125rem,
        calc(1.05rem + 0.3vw),
        1.3rem
    );

    line-height: 1.75;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    background: var(--gold);
    color: var(--green-dark);

    font-size: clamp(
        1.35rem,
        calc(1.25rem + 0.4vw),
        1.6rem
    );

    font-weight: 700;
    text-decoration: none;
}

.hero-button:focus-visible {
    outline: 3px solid var(--off-white);
    outline-offset: 4px;
}

/* Hero image */
.hero-image-wrapper {
    position: relative;
    padding-bottom: 1.4rem;
}

.hero-image-frame {
    border: 1px solid var(--gold);
    padding: 0.55rem;
}

.hero-image-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
}

.hero-caption {
    position: absolute;
    left: 1rem;
    bottom: 0;
    max-width: calc(100% - 2rem);
    padding: 1rem 1.2rem;
    background: var(--off-white);
    color: var(--green-dark);

    font-size: clamp(
        0.8rem,
        calc(0.75rem + 0.2vw),
        0.9rem
    );

    font-weight: 700;
    line-height: 1.4;
    letter-spacing: clamp(
        0.1rem,
        calc(0.08rem + 0.08vw),
        0.18rem
    );
    text-transform: uppercase;
}

/* ==========================================
   DETAILS SECTION
========================================== */
.details-section {
    background: var(--off-white);
    padding-block: 5rem;
}

.details-layout {
    display: grid;
    gap: 4rem;
}

/* Details image */
.details-image-wrapper {
    position: relative;
    padding-bottom: 2rem;
}

.details-image-frame {
    border: 1px solid rgba(16, 61, 50, 0.48);
    padding: 0.55rem;
}

.details-image-frame img {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    object-position: center;
}

.details-callout {
    position: absolute;
    right: -0.1rem;
    bottom: 0;
    width: min(13rem, 65%);
    padding: 1rem 1.2rem;
    background: var(--gold);
    color: var(--green-dark);

    font-size: clamp(
        1rem,
        calc(0.95rem + 0.2vw),
        1.125rem
    );

    font-weight: 700;
    line-height: 1.5;
}

/* Details typography */
.details-content h2,
.schedule-heading-area h2 {
    color: var(--green-dark);

    /* Fluid section headings */
    font-size: clamp(
        2.75rem,
        calc(2.1rem + 3vw),
        3.8rem
    );

    line-height: 1.08;
    letter-spacing: -0.035em;
}

.details-content h2 {
    max-width: 15ch;
    margin-bottom: 1.75rem;
}

.details-content > p {
    max-width: 42rem;
    margin-bottom: 1.25rem;
    color: rgba(16, 61, 50, 0.82);

    font-size: clamp(
        1.125rem,
        calc(1.05rem + 0.3vw),
        1.3rem
    );

    line-height: 1.75;
}

/* Dance-type cards */
.dance-types {
    display: grid;
    gap: 0.85rem;
    margin-top: 2.25rem;
}

.dance-card {
    padding: 1.4rem 1.25rem;
    background: var(--white);
    border-left: 4px solid var(--gold);
}

.dance-card h3 {
    margin-bottom: 0.5rem;
    color: var(--green-dark);

    font-size: clamp(
        1.3rem,
        calc(1.2rem + 0.35vw),
        1.5rem
    );

    line-height: 1.25;
}

.dance-card p {
    margin-bottom: 0;
    color: rgba(16, 61, 50, 0.75);

    font-size: clamp(
        1rem,
        calc(0.95rem + 0.25vw),
        1.15rem
    );

    line-height: 1.7;
}

/* ==========================================
   SCHEDULE SECTION
========================================== */
.schedule-section {
    background: var(--off-white);
    padding-block: 5rem;
}

.schedule-heading-area {
    margin-bottom: 3rem;
}

.schedule-heading-area h2 {
    max-width: 17ch;
    margin-bottom: 1.25rem;
}

.schedule-intro {
    max-width: 43rem;
    margin-bottom: 1.75rem;
    color: rgba(16, 61, 50, 0.8);

    font-size: clamp(
        1.125rem,
        calc(1.05rem + 0.3vw),
        1.3rem
    );

    line-height: 1.7;
}

.schedule-note {
    max-width: 31rem;
    margin-bottom: 0;
    padding: 0.15rem 0 0.15rem 1rem;
    border-left: 3px solid var(--gold);
    color: rgba(16, 61, 50, 0.72);

    font-size: clamp(
        1rem,
        calc(0.95rem + 0.2vw),
        1.15rem
    );

    line-height: 1.65;
}

/* ==========================================
   SCHEDULE TABLE
========================================== */
.schedule-table {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(16, 61, 50, 0.08);
}

.schedule-header {
    display: none;
    background: var(--green-dark);
    color: var(--off-white);
}

.schedule-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(16, 61, 50, 0.15);
}

.schedule-row:last-child {
    border-bottom: 0;
}

.schedule-item {
    color: rgba(16, 61, 50, 0.86);

    font-size: clamp(
        1rem,
        calc(0.95rem + 0.2vw),
        1.125rem
    );

    line-height: 1.55;
}

.schedule-item strong {
    display: block;
    color: var(--green-dark);

    font-size: clamp(
        1.1rem,
        calc(1.02rem + 0.25vw),
        1.25rem
    );

    line-height: 1.45;
}

.schedule-label {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(16, 61, 50, 0.52);

    font-size: clamp(
        0.75rem,
        calc(0.7rem + 0.18vw),
        0.85rem
    );

    font-weight: 700;
    line-height: 1.3;
    letter-spacing: clamp(
        0.06rem,
        calc(0.05rem + 0.05vw),
        0.08rem
    );
    text-transform: uppercase;
}

/* ==========================================
   SMALL MOBILE ADJUSTMENTS
========================================== */
@media (max-width: 420px) {
    .section-kicker {
        gap: 0.65rem;
    }

    .section-kicker::before,
    .section-kicker::after {
        flex-basis: 2rem;
    }

    /*
       The minimum values keep mobile text readable.
       The preferred values allow gentle scaling.
    */
    .section-kicker span {
        font-size: clamp(
            0.8rem,
            calc(0.76rem + 0.2vw),
            0.9rem
        );

        letter-spacing: clamp(
            0.1rem,
            calc(0.08rem + 0.1vw),
            0.14rem
        );
    }

    .hero h1 {
        font-size: clamp(
            3rem,
            calc(2.5rem + 3vw),
            3.75rem
        );
    }

    .hero-intro {
        font-size: clamp(
            1.125rem,
            calc(1.05rem + 0.4vw),
            1.25rem
        );
    }

    .hero-caption {
        font-size: clamp(
            0.8rem,
            calc(0.75rem + 0.2vw),
            0.9rem
        );
    }

    .details-content h2,
    .schedule-heading-area h2 {
        font-size: clamp(
            2.65rem,
            calc(2.2rem + 2.5vw),
            3.25rem
        );
    }

    .details-content > p,
    .schedule-intro {
        font-size: clamp(
            1.125rem,
            calc(1.05rem + 0.4vw),
            1.25rem
        );
    }

    .details-callout {
        font-size: clamp(
            1rem,
            calc(0.95rem + 0.3vw),
            1.125rem
        );
    }

    .dance-card h3 {
        font-size: clamp(
            1.3rem,
            calc(1.2rem + 0.5vw),
            1.45rem
        );
    }

    .dance-card p {
        font-size: clamp(
            1rem,
            calc(0.95rem + 0.3vw),
            1.125rem
        );
    }

    .schedule-note {
        font-size: clamp(
            1rem,
            calc(0.95rem + 0.3vw),
            1.125rem
        );
    }

    .schedule-row {
        grid-template-columns: 1fr;
    }

    .schedule-item {
        font-size: clamp(
            1rem,
            calc(0.95rem + 0.3vw),
            1.125rem
        );
    }

    .schedule-item strong {
        font-size: clamp(
            1.1rem,
            calc(1.02rem + 0.4vw),
            1.25rem
        );
    }

    .schedule-label {
        font-size: clamp(
            0.75rem,
            calc(0.7rem + 0.25vw),
            0.85rem
        );
    }
}

/* ==========================================
   TABLET LAYOUT
========================================== */
@media (min-width: 700px) {
    :root {
        --page-gutter: 2rem;
    }

    .hero,
    .details-section,
    .schedule-section {
        padding-block: 6rem;
    }

    .hero-image-frame img {
        aspect-ratio: 16 / 12;
    }

    .details-image-frame img {
        aspect-ratio: 4 / 3;
    }

    .dance-types {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-row {
        grid-template-columns: 2fr 1fr 1fr 1.6fr;
        padding: 1.4rem 1.5rem;
    }
}

/* ==========================================
   LAPTOP AND DESKTOP LAYOUT
========================================== */
@media (min-width: 1000px) {
    :root {
        --page-gutter: 3rem;
    }

    /*
       Kicker becomes left aligned on wide screens.
       The same gold lines remain on both sides.
    */
    .section-kicker {
        justify-content: flex-start;
        width: fit-content;
    }

    .section-kicker::before,
    .section-kicker::after {
        flex: none;
        width: 3rem;
    }

    /* Hero two-column layout */
    .hero {
        padding-block: 6.5rem;
    }

    .hero-layout {
        grid-template-columns:
            minmax(0, 0.85fr)
            minmax(32rem, 1.15fr);
        align-items: center;
        gap: 4rem;
    }

    .hero h1 {
        font-size: clamp(
            3.75rem,
            calc(2.5rem + 3vw),
            5.5rem
        );
    }

    .hero-image-frame img {
        min-height: 37rem;
        aspect-ratio: 4 / 3;
    }

    .hero-caption {
        left: 2rem;
        padding: 1.2rem 1.6rem;
    }

    /* Details two-column layout */
    .details-layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
        align-items: center;
        gap: 5rem;
    }

    .details-image-frame img {
        min-height: 38rem;
        aspect-ratio: 4 / 5;
    }

    .details-callout {
        right: -1.5rem;
        bottom: 2.25rem;
        width: 15rem;
        padding: 1.25rem 1.4rem;
    }

    /* Schedule header */
    .schedule-heading-area {
        max-width: 50rem;
    }

    .schedule-header {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1.6fr;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .schedule-header > div {
        font-size: clamp(
            0.75rem,
            calc(0.7rem + 0.15vw),
            0.9rem
        );

        font-weight: 700;
        line-height: 1.4;
        letter-spacing: clamp(
            0.08rem,
            calc(0.06rem + 0.08vw),
            0.12rem
        );
        text-transform: uppercase;
    }

    .schedule-row {
        align-items: start;
    }

    .schedule-label {
        display: none;
    }
}

/* ==========================================
   LARGE DESKTOP REFINEMENTS
========================================== */
@media (min-width: 1300px) {
    :root {
        --page-gutter: 2rem;
    }

    .hero-layout {
        gap: 5rem;
    }

    .details-layout {
        gap: 6rem;
    }
}
