@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("/fonts/open-sans-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/caveat-latin.woff2") format("woff2");
}

:root {
    --color-surface: #fff;
    --color-surface-brand: #dfebe0;
    --color-surface-accent: #fbe3cd;
    --color-surface-inverse: #243d29;
    --color-brand: #507c56;
    --color-text-primary: #243d29;
    --color-text-inverse: #fff;
    --color-text-inverse-secondary: rgba(255, 255, 255, .5);
    --color-action-primary: #eb7405;
    --color-action-primary-hover: #d06604;

    /* Museo is loaded from the Adobe Fonts web project linked in index.html. */
    --font-family-heading: "museo", Georgia, serif;
    --font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-family-accent: "Caveat", cursive;

    --container: 1180px;
    --gutter: 24px;
    --radius-full: 9999px;
    --radius-panel: 24px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--color-surface);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
p {
    margin: 0;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Header */

.header {
    padding-block: 18px;
}

.logo {
    width: 141px;
    height: auto;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--color-surface-brand);
}

.hero__inner {
    display: flex;
    align-items: center;
    min-height: 563px;
    padding-block: 60px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    max-width: 424px;
}

.hero__title {
    color: var(--color-brand);
    font-family: var(--font-family-heading);
    font-size: 58px;
    font-weight: 700;
    line-height: 60px;
}

.hero__lead {
    font-family: var(--font-family-heading);
    font-size: 25px;
    font-weight: 700;
    line-height: 29px;
}

.hero__text {
    margin-top: 7px;
    font-size: 20px;
    line-height: 29px;
}

.hero__image {
    position: absolute;
    inset: 0 0 0 auto;
    width: calc(50% - 11px);
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 150px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    margin-top: 9px;
    padding: 8px 32px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;
}

.badge img {
    flex-shrink: 0;
}

/* Quote */

.quote {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 294px;
    padding: 60px var(--gutter);
    background: var(--color-brand);
}

.quote__text {
    max-width: 1014px;
    color: var(--color-text-inverse);
    font-family: var(--font-family-accent);
    font-size: 48px;
    line-height: 50.656px;
    text-align: center;
}

/* Newsletter */

.newsletter {
    padding-block: 90px;
}

.card {
    position: relative;
    display: flex;
    justify-content: flex-end;
    min-height: 343px;
    overflow: hidden;
    border-radius: var(--radius-panel);
    background: var(--color-surface-accent);
}

.card__image {
    position: absolute;
    top: 0;
    left: -67px;
    width: 549px;
    height: 387px;
    overflow: hidden;
    border-top-right-radius: 120px;
}

.card__image img {
    position: absolute;
    top: -2.97%;
    left: 9.32%;
    width: 97.24%;
    height: 102.93%;
    max-width: none;
    object-fit: cover;
    /* The design mirrors this photo horizontally. */
    transform: scaleX(-1);
}

.card__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
    width: 600px;
    margin-right: 37px;
    padding-block: 42px;
}

.card__title {
    color: var(--color-brand);
    font-family: var(--font-family-heading);
    font-size: 40px;
    font-weight: 500;
    line-height: 48px;
}

.card__text {
    max-width: 580px;
    font-size: 18px;
    line-height: 32px;
}

.card__text a {
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 58px;
    margin-top: 12px;
    padding: 8px 32px;
    border: 2px solid var(--color-action-primary);
    border-radius: var(--radius-full);
    background: var(--color-action-primary);
    color: var(--color-text-inverse);
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: background-color .15s, border-color .15s;
}

.button:hover {
    border-color: var(--color-action-primary-hover);
    background: var(--color-action-primary-hover);
}

.button:focus-visible,
.card__text a:focus-visible {
    outline: 3px solid var(--color-brand);
    outline-offset: 3px;
}

/* Footer */

.footer {
    padding-block: 48px;
    background: var(--color-surface-inverse);
    color: var(--color-text-inverse);
}

.footer__inner {
    display: flex;
    align-items: center;
}

.footer__logo {
    flex-shrink: 0;
    width: 141px;
    height: auto;
    margin-right: 110px;
}

.footer__part-of {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 236px;
    flex-shrink: 0;
}

.footer__part-of p {
    color: var(--color-text-inverse-secondary);
    font-size: 14px;
    line-height: 21px;
}

.footer__tagline {
    width: 330px;
    height: auto;
    margin-left: auto;
}

/* Tablet */

@media (max-width: 1100px) {
    .hero__content {
        max-width: 46%;
    }

    .hero__title {
        font-size: 48px;
        line-height: 52px;
    }

    .card__content {
        width: 52%;
    }

    .footer__inner {
        flex-wrap: wrap;
        row-gap: 32px;
    }

    .footer__logo {
        margin-right: 64px;
    }

    .footer__tagline {
        width: 260px;
    }
}

/* Mobile */

@media (max-width: 800px) {
    :root {
        --gutter: 20px;
    }

    .header {
        padding-block: 12px;
    }

    .logo {
        width: 82px;
    }

    .hero {
        display: flex;
        flex-direction: column;
    }

    .hero__inner {
        min-height: 0;
        padding-block: 40px 48px;
    }

    .hero__content {
        max-width: none;
    }

    .hero__title {
        font-size: 40px;
        line-height: 44px;
    }

    .hero__lead {
        font-size: 22px;
        line-height: 27px;
    }

    .hero__text {
        font-size: 18px;
        line-height: 28px;
    }

    .badge {
        margin-top: 8px;
        padding-inline: 24px;
        gap: 12px;
        font-size: 16px;
    }

    .hero__image {
        position: static;
        width: 100%;
        max-width: none;
        aspect-ratio: 4 / 3;
    }

    .hero__image img {
        border-bottom-left-radius: 0;
        border-top-left-radius: 80px;
    }

    .quote {
        min-height: 0;
        padding-block: 56px;
    }

    .quote__text {
        font-size: 34px;
        line-height: 38px;
    }

    .newsletter {
        padding-block: 56px;
    }

    .card {
        flex-direction: column;
        min-height: 0;
    }

    .card__image {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        border-top-right-radius: 0;
        border-bottom-right-radius: 80px;
    }

    .card__image img {
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .card__content {
        width: auto;
        margin: 0;
        padding: 32px 24px 36px;
    }

    .card__title {
        font-size: 32px;
        line-height: 38px;
    }

    .card__text {
        font-size: 17px;
        line-height: 28px;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__logo {
        margin-right: 0;
    }
}
