/* Shared foundation. Everything is scoped to .er-page or .er-* so it can live next to the legacy theme styles. */
@font-face {
    font-family: "Google Sans Flex";
    src: url("../fonts/google-sans-flex-latin.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Google Sans Flex";
    src: url("../fonts/google-sans-flex-latin-ext.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2113;
}

@font-face {
    font-family: "Google Sans";
    src: url("../fonts/google-sans-latin.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

.er-page {
    --er-ink: #0c1b26;
    --er-blue: #33475b;
    --er-orange: #ff6348;
    --er-orange-dark: #b33823;
    --er-grey: #aaaeb2;
    --er-line: #dee2e5;
    --er-semi: #f6f8fa;
    --er-green: #0c7851;
    --er-white: #fff;
    --er-font: "Google Sans Flex", Arial, sans-serif;
    --er-gutter: clamp(16px, 3.2408vw, 56px);
    --er-header-h: 67px;
    --er-ease: 200ms ease;

    margin: 0;
    background: var(--er-white);
    color: var(--er-ink);
    font: 400 16px/1.44 var(--er-font);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.er-page *,
.er-page *::before,
.er-page *::after {
    box-sizing: border-box;
}

.er-page :where(h1, h2, h3, p, ul, ol) {
    margin: 0;
    padding: 0;
}

.er-page :where(h1, h2, h3) {
    font: inherit;
}

.er-page :where(ul, ol) {
    list-style: none;
}

.er-page :where(a) {
    color: inherit;
    text-decoration: none;
}

.er-page :where(img, video) {
    display: block;
    max-width: 100%;
}

.er-page :where(button, input, textarea) {
    margin: 0;
    border: 0;
    border-radius: 0;
    color: inherit;
    font: inherit;
}

.er-page :where(button) {
    padding: 0;
    background: none;
    cursor: pointer;
}

.er-page :focus-visible {
    outline: 2px solid var(--er-orange);
    outline-offset: 2px;
}

.er-page [hidden] {
    display: none !important;
}

.er-container {
    width: 100%;
    max-width: 1728px;
    margin-inline: auto;
    padding-inline: var(--er-gutter);
}

.er-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.er-skip {
    position: absolute;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 12px 16px;
    background: var(--er-white);
    transform: translateY(-200%);
}

.er-skip:focus {
    transform: none;
}

.er-title {
    font-variation-settings: "ROND" 12;
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 500;
    line-height: 1.13;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-wrap: balance;
}

.er-accent {
    color: var(--er-orange);
}

.er-text {
    color: var(--er-blue);
    font-size: 16px;
    line-height: 1.44;
    letter-spacing: -0.02em;
}

.er-checks {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.er-checks li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 20px;
    font-variation-settings: "ROND" 100;
    line-height: 1;
    letter-spacing: -0.02em;
}

.er-checks li::before {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--er-orange) url("../icons/check.svg") center / 16px 16px no-repeat;
    content: "";
}

/* Hero */
.er-hero {
    display: grid;
    grid-template-columns: minmax(0, 676fr) minmax(0, 932fr);
    gap: 8px;
    margin-top: 8px;
}

.er-hero__content {
    padding: 28px clamp(28px, 3.704vw, 64px) 40px;
    border-radius: 4px;
    background: rgb(246 248 250 / 95%);
}

.er-hero__media {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 4px;
    background: #d9d9d9;
}

.er-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.er-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-height: 16px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.er-crumbs li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.er-crumbs a {
    color: var(--er-orange);
}

.er-crumbs img {
    transform: scaleX(-1);
}

.er-crumbs [aria-current] {
    color: var(--er-grey);
    font-size: 14px;
}

@media (max-width: 1199px) {
    .er-page {
        --er-header-h: 64px;
    }

    .er-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 899px) {
    .er-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .er-hero__media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .er-hero__media {
        aspect-ratio: 2 / 1;
    }
}

@media (max-width: 767px) {
    .er-title {
        font-size: clamp(25px, 7.8vw, 34px);
    }

    .er-hero__content {
        padding: 20px 16px 24px;
    }

    .er-checks {
        gap: 16px;
    }

    .er-checks li {
        gap: 12px;
        font-size: 17px;
        line-height: 1.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .er-page *,
    .er-page *::before,
    .er-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
