/*
 * Aurelia site typography harmonization.
 *
 * This bundle is loaded on non-home, non-contact pages only. The homepage is
 * the typography reference; Contact Us is intentionally excluded because its
 * approved reference design owns its typography independently.
 */

body.aurelia-site {
    --hb-theme-typography-family-body: "Plus Jakarta Sans", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --hb-theme-typography-family-heading: "Noto Serif", Georgia, "Times New Roman", serif;
    --hb-theme-typography-size-base: 1rem;
    --hb-theme-typography-size-xs: 0.69rem;
    --hb-theme-typography-size-sm: 0.82rem;
    --hb-theme-typography-size-lg: 1.05rem;
    --hb-theme-typography-size-lead: clamp(1rem, 1.6vw, 1.2rem);
    --aurelia-type-display: clamp(2.8rem, 6vw, 5rem);
    --aurelia-type-section: clamp(2rem, 4vw, 3.25rem);
    --aurelia-type-card: 1.45rem;
    --aurelia-type-subheading: 1.1rem;
    --aurelia-type-label: 0.69rem;
    --aurelia-type-stat: 2.25rem;

    font-family: var(--hb-theme-typography-family-body);
    font-size: var(--hb-theme-typography-size-base);
}

body.aurelia-site :where(button, input, optgroup, select, textarea) {
    font-family: var(--hb-theme-typography-family-body);
}

body.aurelia-site :where(h1, h2, h3, h4, h5, h6, blockquote, cite) {
    font-family: var(--hb-theme-typography-family-heading);
}

/* Homepage scale mapped to semantic roles used by WordPress and Hotel Booking. */
body.aurelia-site :is(#primary, main) h1:not(.screen-reader-text) {
    font-size: var(--aurelia-type-display);
}

body.aurelia-site :is(#primary, main) h2 {
    font-size: var(--aurelia-type-section);
}

body.aurelia-site :is(#primary, main) h3 {
    font-size: var(--aurelia-type-card);
}

body.aurelia-site :is(#primary, main) h4 {
    font-size: var(--aurelia-type-subheading);
}

body.aurelia-site :is(#primary, main) :is(h5, h6) {
    font-size: var(--aurelia-type-label);
}

/* Some plugin page titles are intentionally not the document h1. */
body.aurelia-site :is(#primary, main) :is(
    .hb-booking__title,
    .hb-room-detail__title,
    .hb-customer-header h2,
    .hb-confirmation-hero h1
),
body.aurelia-site :is(#primary, main) :is(
    .hb-customer-login__intro,
    .hb-customer-register__intro,
    .hb-customer-password__intro
) h2,
body.hb-guest-review-page.aurelia-site :is(#primary, main) :is(
    .hb-review-heading h1,
    .hb-review-success h1,
    .hb-review-invalid h1
) {
    font-size: var(--aurelia-type-display);
}

/* Card and compact-panel headings match the homepage suite-card rhythm. */
body.aurelia-site :is(#primary, main) :is(
    .aurelia-card__title,
    .aurelia-search-result__body h2,
    .hb-room-card__title,
    .hb-confirmation-card__heading h2,
    .hb-room-review-card__header h2,
    .hb-room-detail__booking-card-heading h2,
    .hb-book-now__section-heading h2
) {
    font-size: var(--aurelia-type-card);
}

/* Section headings remain one step below display titles. */
body.aurelia-site :is(#primary, main) :is(
    .hb-room-policies__heading h2,
    .hb-room-detail__related-heading h2,
    .hb-customer-section-heading h3,
    .hb-customer-policy-snapshots__heading h2,
    .hb-cancellation__heading h3
) {
    font-size: var(--aurelia-type-section);
}

/* Supporting copy and numerical highlights use the homepage lead/stat scale. */
body.aurelia-site :is(#primary, main) :is(
    .aurelia-reading-content,
    .hb-room-detail__description
) {
    font-size: var(--hb-theme-typography-size-base);
}

body.aurelia-site :is(#primary, main) :is(
    .aurelia-secondary-hero__grid > p,
    .aurelia-page-description,
    .aurelia-reading-content > p:first-child,
    .hb-room-detail__description > p:first-child,
    .hb-customer-header p,
    .hb-confirmation-hero__content > p:not(.hb-confirmation-eyebrow)
) {
    font-size: var(--hb-theme-typography-size-lead);
}

body.aurelia-site :is(#primary, main) :is(
    .hb-search-form__title,
    .hb-search-summary__heading strong
) {
    font-size: var(--aurelia-type-card);
}

body.aurelia-site :is(#primary, main) :is(
    .hb-room-detail__facts dd,
    .hb-customer-summary__card strong
) {
    font-size: var(--aurelia-type-stat);
}

/* Keep the shared footer typography in step with the approved homepage footer. */
body.aurelia-site .aurelia-footer__name {
    display: inline;
    margin: 0;
    color: rgba(223, 215, 199, 0.82);
    font-family: "Noto Serif", Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.7;
    text-transform: uppercase;
}

body.aurelia-site .aurelia-footer__description {
    max-width: 28rem;
    margin: 1rem 0 0;
    color: rgba(223, 215, 199, 0.8);
    font-family: "Plus Jakarta Sans", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.7;
}

body.aurelia-site .aurelia-footer__address {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: 28rem;
    margin: 0.75rem 0 0;
    color: rgba(223, 215, 199, 0.8);
    font-family: "Plus Jakarta Sans", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.6;
}

body.aurelia-site .aurelia-footer__address .material-symbols-outlined {
    display: inline-block;
    flex: 0 0 auto;
    margin-top: 0.12rem;
    color: inherit;
    font-family: "Material Symbols Outlined";
    font-size: 1rem;
    font-style: normal;
    font-weight: 300;
    font-feature-settings: "liga";
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
    line-height: 1;
}

body.aurelia-site .aurelia-footer__heading {
    margin: 0 0 1rem;
    color: #ebe5d8;
    font-family: "Plus Jakarta Sans", "Noto Sans", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.08;
}

body.aurelia-site :is(.aurelia-footer-menu, .aurelia-social-menu) {
    gap: 0.65rem;
}

body.aurelia-site :is(.aurelia-footer-menu, .aurelia-social-menu) a {
    min-height: auto;
    color: rgba(223, 215, 199, 0.82);
    font-family: "Plus Jakarta Sans", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.7;
}

body.aurelia-site :is(.aurelia-footer-menu, .aurelia-social-menu) a:hover,
body.aurelia-site :is(.aurelia-footer-menu, .aurelia-social-menu) a:focus-visible {
    color: #c26d45;
}

body.aurelia-site .aurelia-footer__bottom :is(p, a) {
    font-size: 0.7rem;
}
