@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-border-subtle: #e6e2da;
    --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;
    --radius-curve: 120px;
}

*,
*::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;
}

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

.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;
}

/* On wide screens the pill sits slightly outside the text column, so the dot lines up closer to the text. */
@media (min-width: 1240px) {
    .badge {
        margin-left: -16px;
    }
}

/* 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);
}

/* The photo takes 41% of the card (482 of 1180px in the design) and bleeds 67px past its left edge,
   so the content column shrinks with the viewport instead of running over the photo. */
.card__image {
    position: absolute;
    top: 0;
    left: -67px;
    width: calc(41% + 67px);
    height: calc(100% + 44px);
    overflow: hidden;
    border-top-right-radius: var(--radius-curve);
}

.card__image img {
    position: absolute;
    top: -2.97%;
    left: 9.32%;
    width: 97.24%;
    height: 102.93%;
    max-width: none;
    object-fit: cover;
}

.card__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
    width: calc(59% - 77px);
    max-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);
}

/* 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: 109px;
}

.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__part-of a {
    align-self: flex-start;
}

.footer__socials {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 126px;
    font-size: 15px;
    font-weight: 600;
    line-height: 21px;
    text-decoration: none;
}

.social:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* Between lg and md */

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

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

/* The footer no longer fits on one row: switch to the two-row md layout */

@media (max-width: 1180px) {
    .footer__inner {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "logo tagline"
            "part-of socials";
        align-items: center;
        gap: 32px 40px;
    }

    .footer__logo {
        grid-area: logo;
        margin-right: 0;
    }

    .footer__part-of {
        grid-area: part-of;
    }

    .footer__socials {
        grid-area: socials;
    }

    .footer__tagline {
        grid-area: tagline;
        justify-self: end;
        margin-left: 0;
    }
}

/* md (Figma: Tijdelijke landingspagina1 · md) */

@media (max-width: 900px) {
    :root {
        --gutter: 40px;
    }

    .header {
        padding: 8px 16px;
        border-bottom: 1px solid var(--color-border-subtle);
    }

    .header .container {
        padding-inline: 0;
    }

    .logo {
        width: 82px;
    }

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

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

    .hero__content {
        max-width: 560px;
    }

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

    .hero__image {
        position: static;
        width: 100%;
        height: 480px;
    }

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

    .quote {
        min-height: 0;
        padding: 56px var(--gutter);
    }

    .quote__text {
        font-size: 40px;
        line-height: 42px;
    }

    .newsletter {
        padding-block: 56px 64px;
    }

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

    .card__image {
        position: relative;
        left: 0;
        order: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 688 / 320;
    }

    .card__content {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 40px;
    }

    .card__text {
        max-width: none;
    }
}

/* sm (Figma: Tijdelijke landingspagina1 · sm) */

@media (max-width: 600px) {
    :root {
        --gutter: 24px;
    }

    .hero__inner {
        padding-block: 58px 64px;
    }

    .hero__content {
        max-width: none;
    }

    .badge {
        align-self: stretch;
        padding: 14px 24px;
    }

    .hero__image {
        height: 395px;
    }

    .hero__image img {
        border-top-right-radius: var(--radius-curve);
    }

    .quote {
        padding-block: 40px;
    }

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

    .newsletter {
        padding-block: 40px;
    }

    .card__image {
        aspect-ratio: 328 / 220;
    }

    .card__content {
        padding: 32px 28px;
    }

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

    .button {
        align-self: stretch;
    }

    .footer {
        padding-block: 40px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "part-of"
            "socials"
            "tagline";
        align-items: start;
        gap: 28px;
    }

    .footer__tagline {
        width: 297px;
        justify-self: start;
    }
}
