/* Home page */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    height: min(88vh, 900px);
    height: min(88svh, 900px);
    min-height: 34rem;
    background: var(--ink);
    color: var(--on-ink);
}

.hero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 35%;
}

/* Darken the sky under the header and the bottom-left corner under the text */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgb(21 19 17 / 0.72), rgb(21 19 17 / 0) 11rem),
        linear-gradient(to top, rgb(21 19 17 / 0.9), rgb(21 19 17 / 0.55) 40%, rgb(21 19 17 / 0) 72%);
}

@media (min-width: 48rem) {
    .hero::before {
        background:
            linear-gradient(to bottom, rgb(21 19 17 / 0.72), rgb(21 19 17 / 0) 11rem),
            linear-gradient(to right, rgb(21 19 17 / 0.6), rgb(21 19 17 / 0) 55%),
            linear-gradient(to top, rgb(21 19 17 / 0.9), rgb(21 19 17 / 0.5) 40%, rgb(21 19 17 / 0) 72%);
    }
}

.hero__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.hero__text { max-width: 44rem; }

.hero h1 {
    font-size: clamp(3.25rem, 6.5vw, 5.75rem);
    line-height: 0.92;
    letter-spacing: -0.025em;
}

.hero__lede {
    max-width: 30em;
    margin-top: 1.5rem;
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    line-height: 1.5;
}

.hero__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gold);
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
}

.hero__caption {
    margin: 0;
    flex-shrink: 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.9375rem;
    color: var(--on-ink-muted);
}

@media (max-width: 47.99rem) {
    .hero { height: min(82svh, 46rem); min-height: 32rem; }
    .hero__img { object-position: 47% 30%; }
    .hero__caption { display: none; }
}

/* ---------- Services ---------- */
.services { padding-block: var(--section); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2.5rem var(--gutter);
}

.services__head { grid-column: 1 / span 4; }

.services__head p {
    max-width: 20rem;
    margin-top: 1.25rem;
    color: var(--muted);
}

.services__list {
    grid-column: 6 / -1;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--rule);
}

.services__list li {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 15rem) minmax(0, 1fr);
    gap: 0.25rem 1.5rem;
    padding-block: 1.75rem;
    border-top: 1px solid var(--rule);
}

.services__num {
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--muted);
    font-variant-numeric: oldstyle-nums;
}

.services__list h3 {
    font-size: 1.625rem;
    line-height: 1.15;
}

.services__list p {
    max-width: 34rem;
    color: var(--muted);
}

@media (max-width: 63.99rem) {
    .services__head,
    .services__list { grid-column: 1 / -1; }
    .services__head p { max-width: 34rem; }
}

@media (max-width: 47.99rem) {
    .services__list li {
        grid-template-columns: 1.75rem minmax(0, 1fr);
        padding-block: 1.5rem;
    }
    .services__list p { grid-column: 2; }
}

/* ---------- Petra and Doeke ---------- */
.people {
    padding-block: var(--section);
    background: var(--ink);
    color: var(--on-ink);
}

.people__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem var(--gutter);
    align-items: end;
}

.people__figure { grid-column: 1 / span 7; }

.people__figure figcaption {
    margin-top: 0.75rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.9375rem;
    color: var(--on-ink-muted);
}

.people__text {
    grid-column: 9 / -1;
    padding-bottom: 2.25rem;
}

.people__text h2 { margin-bottom: 1.5rem; }

.people__text p { max-width: 32rem; color: var(--on-ink-muted); }
.people__text p:first-of-type { color: var(--on-ink); font-size: 1.1875rem; }
.people__text .arrow-link { color: var(--on-ink); }

@media (max-width: 63.99rem) {
    .people__figure { grid-column: 1 / span 7; }
    .people__text { grid-column: 8 / -1; padding-bottom: 2.25rem; }
}

@media (max-width: 47.99rem) {
    .people__figure,
    .people__text { grid-column: 1 / -1; padding-bottom: 0; }
    .people__figure { margin-inline: calc(var(--gutter) * -1); }
    .people__figure figcaption { padding-inline: var(--gutter); }
}

/* ---------- Contact ---------- */
.contact {
    position: relative;
    overflow: hidden;
    padding-block: var(--section);
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2.5rem var(--gutter);
}

.contact__text {
    position: relative;
    z-index: 1;
    grid-column: 1 / span 6;
}

.contact__text > p { max-width: 30rem; margin-top: 1.25rem; color: var(--muted); }

.contact__list { margin: 2.5rem 0 0; max-width: 34rem; }

.contact__list > div {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1rem;
    border-top: 1px solid var(--rule);
}

.contact__list > div:last-child { border-bottom: 1px solid var(--rule); }

.contact__list dt {
    padding-top: 0.3rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.contact__list dd {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.contact__map {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--sans);
    font-size: 0.9375rem;
}

.contact__note {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.contact__image {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 52%;
}

.contact__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% 50%;
}

@media (max-width: 63.99rem) {
    .contact { padding-top: 0; }
    .contact__text { grid-column: 1 / -1; }
    .contact__image {
        position: static;
        order: -1;
        grid-column: 1 / -1;
        width: auto;
        margin-inline: calc(var(--gutter) * -1);
        aspect-ratio: 16 / 7;
    }
    .contact__image img { object-position: 15% 55%; }
}
