/* Final site-wide type alignment. Keep page-specific layout rules above this file. */
:root {
    --type-body: 16px;
    --type-body-leading: 1.65;
    --type-serif: var(--serif, 'Cormorant Garamond', Georgia, serif);
    --type-sans: var(--sans, 'DM Sans', Arial, sans-serif);
    --type-display-size: clamp(44px, 6.5vw, 92px);
    --type-section-size: clamp(36px, 4.6vw, 64px);
}

@media (max-width: 760px) {
    :root {
        --type-display-size: clamp(38px, 11vw, 64px);
        --type-section-size: clamp(32px, 8.5vw, 50px);
    }
}

body {
    font-family: var(--type-sans);
    font-size: var(--type-body);
    line-height: var(--type-body-leading);
    font-weight: 500;
}

/* The account/admin layout has an older, more specific Inter declaration. */
body.ritz-account,
.ritz-account :is(input, select, textarea),
.account-brand small {
    font-family: var(--type-sans);
}

/* Public page hierarchy: one serif family and one predictable scale. */
.about-hero h1,
.about-introduction h2,
.about-values header h2,
.about-story h2,
.about-pathways header h2,
.about-film h2,
.about-faculty h2,
.about-location h2,
.about-cta p,
.contact-hero h1,
.contact-details h2,
.contact-success h2,
.contact-form-panel h2,
.teachers-hero h1,
.teachers-intro h2,
.teachers-cta p,
.teacher-profile__heading h1,
.teacher-profile__story h2,
.studios-hero h1,
.studios-directory h2,
.studios-cta p,
.class-catalog-hero h1,
.class-results header h2,
.available-classes header h2,
.class-final-cta h2,
.programme-hero h1,
.class-empty h2,
.class-empty h3,
.careers-hero h1,
.careers-content h2,
.careers-requirements h2,
.careers-apply h2,
.trial-heading h1,
.trial-status h1,
.trial-summary h2,
.trial-form h2 {
    font-family: var(--type-serif);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.025em;
    text-shadow: none;
}

.about-hero h1,
.teachers-hero h1,
.contact-hero h1,
.programme-hero h1,
.class-catalog-hero h1,
.careers-hero h1,
.trial-heading h1,
.trial-status h1 {
    font-size: var(--type-display-size);
    text-wrap: balance;
}

.about-introduction h2,
.about-values header h2,
.about-story h2,
.about-pathways header h2,
.about-film h2,
.about-faculty h2,
.about-location h2,
.contact-details h2,
.teachers-intro h2,
.teacher-profile__story h2,
.studios-directory h2,
.class-results header h2,
.available-classes header h2 {
    font-size: var(--type-section-size);
    text-wrap: balance;
}

.contact-form-panel h2,
.class-final-cta h2,
.about-cta p,
.teachers-cta p,
.studios-cta p {
    font-size: clamp(32px, 3.8vw, 52px);
}

.class-programme h3,
.class-slot h3,
.studio-entry h3,
.teacher-card h3,
.programme-facts strong,
.trial-price strong,
.trial-pay-row strong {
    font-family: var(--type-serif);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.015em;
}

.about-introduction__copy > p,
.about-story > div > p:not(.about-kicker),
.about-faculty > div > p:not(.about-kicker),
.contact-hero > p:last-child,
.contact-success > p:not(.contact-kicker),
.teachers-hero > p,
.teachers-intro > div,
.teacher-profile__story p,
.studios-hero__intro,
.class-catalog-hero p,
.programme-hero p {
    font-family: var(--type-sans);
    font-size: 16px;
    line-height: var(--type-body-leading);
}

/* Labels and actions remain compact and consistently legible. */
.about-kicker,
.contact-kicker,
.teachers-kicker,
.studios-kicker,
.class-catalog-hero span,
.class-results header span,
.programme-hero > div > span,
.available-classes header > span,
.class-final-cta > span,
.manage-form label,
.manage-table th,
.manage-tabs a,
.manage-primary,
.manage-secondary {
    font-family: var(--type-sans);
}

.manage-heading h1 {
    font-family: var(--type-serif);
    font-size: clamp(42px, 5.5vw, 68px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.025em;
}

em { font-weight: 400; }

/* Keep long-form copy comfortable while matching the earlier medium-weight UI. */
.contact-form-panel .form-control,
.manage-form input,
.manage-form select,
.manage-form textarea { font-weight: 400; }

/* Footer is intentionally split into an information segment and a compact nav segment. */
.ritz-common-footer { grid-template-columns: minmax(0, 1fr) minmax(150px, .28fr); gap: clamp(42px, 8vw, 120px); }
.ritz-common-footer__info { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(190px, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ritz-common-footer__links { align-self: start; padding-top: 0; }
.ritz-common-footer__links-group { gap: 10px; }

@media (min-width: 1101px) {
    .ritz-common-footer__info { grid-template-columns: minmax(150px, .85fr) minmax(250px, 1.15fr); gap: clamp(20px, 3vw, 42px); }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .ritz-common-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-inline: 32px; }
    .ritz-common-footer > *,
    .ritz-common-footer__links,
    .ritz-common-footer__links-group { min-width: 0; }
    .ritz-common-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .ritz-common-footer { grid-template-columns: 1fr; gap: 32px; }
    .ritz-common-footer__info { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
    .ritz-common-footer__brand { grid-column: 1 / -1; }
    .ritz-common-footer__studios { grid-column: 1 / -1; }
    .about-hero h1,
    .teachers-hero h1,
    .contact-hero h1,
    .programme-hero h1,
    .class-catalog-hero h1 {
        font-size: var(--type-display-size);
    }

    .about-introduction h2,
    .about-values header h2,
    .about-story h2,
    .about-pathways header h2,
    .about-film h2,
    .about-faculty h2,
    .about-location h2,
    .contact-details h2,
    .teachers-intro h2,
    .teacher-profile__story h2,
    .studios-directory h2,
    .class-results header h2,
    .available-classes header h2 {
        font-size: var(--type-section-size);
    }

    .contact-form-panel h2,
    .class-final-cta h2,
    .about-cta p,
    .teachers-cta p,
    .studios-cta p {
        font-size: clamp(30px, 8vw, 42px);
    }
}

@media (max-width: 480px) {
    .ritz-common-footer__info { grid-template-columns: 1fr; }
    .ritz-common-footer__brand,
    .ritz-common-footer__studios { grid-column: auto; }
}

/* Keep the footer information block from forcing menu overflow. */
@media (min-width: 761px) and (max-width: 1100px) {
    .ritz-common-footer { grid-template-columns: minmax(0, 1.3fr) minmax(180px, .7fr); column-gap: 28px; }
    .ritz-common-footer__info { grid-template-columns: minmax(145px, .8fr) minmax(230px, 1.4fr); gap: 28px; }
    .ritz-common-footer__brand img { max-width: 100%; height: auto; }
    .ritz-common-footer__links { column-gap: 16px; align-items: start; }
}

/* At tablet and compact desktop widths, stack navigation below the information block. */
@media (min-width: 761px) and (max-width: 1024px) {
    .ritz-common-footer { grid-template-columns: 1fr; gap: 32px; }
    .ritz-common-footer__info { grid-template-columns: 1fr; gap: 28px; }
    .ritz-common-footer__brand,
    .ritz-common-footer__studios { grid-column: auto; }
    .ritz-common-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
