/*
 * INSPERO type scale — one consistent set of sizes for the whole storefront.
 * Loaded LAST (AppAsset) so it overrides the older per-page sizes, some of
 * which reached 50–60px for ordinary page titles.
 *
 *   page title  (h1 on inner pages)   28 → 36px
 *   section     (.ins-h2, h2)         24 → 32px
 *   card / name                       18 → 22px
 *   body                              15 → 16px
 */
:root {
    --ins-fs-page: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
    --ins-fs-section: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
    --ins-fs-card: clamp(1.125rem, 1rem + 0.35vw, 1.375rem);
    --ins-fs-body: 1rem;
    --ins-fs-small: 0.875rem;
}

/* ---------- Page titles ---------- */
h1.ins-h2,
.cart-header h1,
.auth-title,
.ins-orders-title,
.ins-conf-title,
.wishlist-title,
.site-contact h1,
.ins-body .container > h1,
.ins-body .order-track-container h1,
.ins-body .container h1:not(.stage-title):not(.splash-text):not(.ins-hero2-title):not(.sr-only) {
    font-size: var(--ins-fs-page) !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em !important;
}

/* ---------- Section titles ---------- */
.ins-h2,
h2.ins-h2,
h4.ins-h2 {
    font-size: var(--ins-fs-section) !important;
    line-height: 1.18;
}
h4.ins-h2 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem) !important; }

/* Eyebrow above titles: a touch smaller and less spaced */
.ins-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
}

/* ---------- Product page ---------- */
.stage-title {
    font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem) !important;   /* was up to 64px */
    line-height: 1.08 !important;
}
.price-amount { font-size: clamp(1.6rem, 1.4rem + 0.6vw, 2rem) !important; }
.dossier-kicker { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem) !important; }
.dossier-number { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem) !important; }

/* ---------- Home ---------- */
.ins-hero2-title { font-size: clamp(3rem, 8vw, 6.25rem) !important; }        /* brand banner, was up to 128px */
.ins-hero2-sub { font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem) !important; }
.ins-newrow-name { font-size: var(--ins-fs-card) !important; }

/* ---------- Cart / checkout totals ---------- */
.cart-container h2,
.order-summary h2 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem) !important; }
.grand-total-value { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem) !important; }

/* ---------- Body copy ---------- */
.ins-body p { line-height: 1.65; }
.ins-body .container p,
.ins-body main p { font-size: var(--ins-fs-body); }

/* "No price yet" label (cards, home rows, product page) */
.ins-price-na {
    font-family: 'Jost', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    text-transform: none !important;
    color: var(--ins-muted, #a8a294) !important;
}
p.stage-price.ins-price-na { font-size: 0.95rem !important; margin: 0.5rem 0; }

/* Small labels: never below ~11px anywhere */
.ins-pcard-flag, .ins-new-flag { font-size: 0.68rem !important; letter-spacing: 0.14em !important; }
.ins-newrow-eyebrow { font-size: 0.68rem !important; letter-spacing: 0.24em !important; }
.stage-label { font-size: 0.72rem !important; letter-spacing: 0.22em !important; }
.ins-textlink { font-size: 0.8rem !important; }

/* =====================  PHONES  ===================== */
@media (max-width: 640px) {
    :root {
        --ins-fs-page: 1.6rem;      /* 25.6px */
        --ins-fs-section: 1.4rem;   /* 22.4px */
        --ins-fs-body: 0.95rem;     /* 15.2px */
    }
    .stage-title { font-size: 1.85rem !important; }
    .price-amount { font-size: 1.6rem !important; }

    /* top announcement bar + small gold labels: readable, less tracking */
    .ins-announce { font-size: 0.66rem !important; letter-spacing: 0.08em !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ins-eyebrow { font-size: 0.7rem !important; letter-spacing: 0.2em !important; gap: .55rem; }
    .ins-eyebrow::before, .ins-eyebrow::after { width: 22px; }
    .stage-eyebrow { font-size: 0.72rem !important; letter-spacing: 0.14em !important; line-height: 1.5; }

    /* product cards in the 2-column grid: names fit the card */
    .ins-pcard-name {
        font-size: 0.95rem !important;
        letter-spacing: 0.03em !important;
        line-height: 1.3 !important;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .ins-pcard-price { font-size: 0.9rem !important; letter-spacing: 0.06em !important; }
    .ins-pcard-mrp { font-size: 0.75rem !important; }
    .ins-pcard-discover { font-size: 0.72rem !important; letter-spacing: 0.16em !important; }
    .ins-pcard-flag, .ins-new-flag { font-size: 0.66rem !important; letter-spacing: 0.1em !important; }
    .ins-price-na { font-size: 0.75rem !important; }

    /* home "new arrivals" rows */
    .ins-newrow-name { font-size: 1.15rem !important; }
    .ins-newrow-desc { font-size: 0.88rem !important; line-height: 1.55; }
    .ins-body .ins-newrow-cta, .ins-body .ins-btn { font-size: 0.75rem !important; letter-spacing: 0.14em !important; }

    /* shop filters */
    .ins-chip { font-size: 0.8rem !important; letter-spacing: 0.08em !important; }

    /* body copy & forms: 15–16px (16px inputs stop iOS from zooming in) */
    .ins-body p, .ins-body li { line-height: 1.6; }
    .ins-body input, .ins-body select, .ins-body textarea { font-size: 16px !important; }
}
