/*
 * Heading tags follow the page structure (one <h1> per page: the page's own title), not the look.
 * These classes keep a heading looking exactly as it did before its tag changed.
 *
 * Each selector has the same specificity as the element rule it stands in for (h1 / h2 / h3 in main.css and
 * home.css) and this file loads last, so a class rule on the heading (.title, .grid-left-side-one ...) still wins
 * exactly as it did before.
 */

/* was <h1>, now <h2>: Bootstrap's h1 size */
h2:where(.h1-look) {
    font-size: calc(1.375rem + 1.5vw);
}

@media (min-width: 1200px) {
    h2:where(.h1-look) {
        font-size: 2.5rem;
    }
}

/* was <h2>, now <h1>: the h2 size from main.css */
h1:where(.h2-look) {
    font-size: 32px;
}

/* was <h3>, now <h1>: the site-wide h3 rule in home.css */
h1:where(.h3-look) {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: capitalize;
    margin: 0 0 40px 0;
    text-align: start;
}

@media (max-width: 1199px) {
    h1:where(.h3-look) {
        font-weight: 700;
        font-size: 20px;
        line-height: 100%;
        letter-spacing: 0%;
        text-transform: capitalize;
    }
}

/* A page heading for screen readers and search engines on pages whose design has no visible title (the search/list pages). */
.page-h1-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
