@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    color-scheme: light;
    --ink: #172827;
    --muted: #657573;
    --paper: #f5f4ef;
    --accent: #d7a76c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.hero {
    position: relative;
    display: flex;
    min-height: min(690px, 88vh);
    align-items: center;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(12, 34, 35, .88) 0%, rgba(12, 34, 35, .57) 46%, rgba(12, 34, 35, .08) 100%),
        url('../../01-Amsterdam/images/large/DJCC7063.jpg') center 48% / cover;
    color: #fff;
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 110px;
    background: linear-gradient(transparent, rgba(9, 27, 28, .24));
    content: '';
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
    padding: 72px 0 80px;
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .19em;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
}

h1 {
    margin: 0;
    font-size: clamp(3.6rem, 8vw, 7.5rem);
    letter-spacing: -.055em;
    line-height: .98;
}

h1 span {
    color: #e9c28e;
    font-style: italic;
}

.hero__intro {
    max-width: 470px;
    margin: 28px 0 30px;
    color: rgba(255, 255, 255, .83);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.75;
}

.hero__link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.hero__link span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    transition: background .2s ease, color .2s ease;
}

.hero__link:hover span,
.hero__link:focus-visible span {
    background: #fff;
    color: var(--ink);
}

.hero__note {
    position: absolute;
    z-index: 1;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 32px;
    color: rgba(255, 255, 255, .75);
    font-size: .68rem;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.journey {
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
    padding: 86px 0 96px;
}

.journey__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.journey__heading .eyebrow {
    margin-bottom: 10px;
    color: #9a7046;
}

h2 {
    margin: 0;
    font-size: clamp(2.3rem, 4.5vw, 3.7rem);
    letter-spacing: -.04em;
}

.journey__count {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: .85rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-card {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    background: #c4ceca;
    color: #fff;
    isolation: isolate;
    text-decoration: none;
}

.gallery-card img,
.gallery-card__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gallery-card img {
    z-index: -2;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.gallery-card__shade {
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 21, 22, .03) 20%, rgba(7, 21, 22, .76) 100%);
    transition: background .25s ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
    transform: scale(1.055);
}

.gallery-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.gallery-card__text {
    position: absolute;
    right: 56px;
    bottom: 23px;
    left: 23px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.gallery-card__number {
    color: #f0c990;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.gallery-card__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.1;
}

.gallery-card__arrow {
    position: absolute;
    right: 20px;
    bottom: 22px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    font-size: 1rem;
    transition: background .2s ease, color .2s ease;
}

.gallery-card:hover .gallery-card__arrow,
.gallery-card:focus-visible .gallery-card__arrow {
    background: #fff;
    color: var(--ink);
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px max(24px, calc((100vw - 1180px) / 2));
    border-top: 1px solid #dedfd9;
    color: var(--muted);
    font-size: .75rem;
}

@media (max-width: 800px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .gallery-card {
        min-height: 230px;
    }
}

@media (max-width: 540px) {
    .hero {
        min-height: 620px;
        background-position: 58% center;
    }

    .hero__content,
    .journey {
        width: min(100% - 36px, 1180px);
    }

    .hero__content {
        padding: 64px 0 80px;
    }

    .hero__note {
        right: 18px;
        bottom: 20px;
        left: 18px;
        font-size: .58rem;
        line-height: 1.6;
    }

    .journey {
        padding: 64px 0 72px;
    }

    .journey__heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .journey__count {
        margin: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-card {
        min-height: 250px;
    }

    .footer {
        flex-direction: column;
        padding: 22px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}