:root {
    --dark: #121212;
    --light: #f9f8f6;
    --white: #ffffff;
    --gold: #d7ad46;
    --text-dark: #42413d;
    --text-light: #fdf5e6;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--dark);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text-light);
    background: var(--dark);
    font-family: "Open Sans", Arial, sans-serif;
    letter-spacing: 0;
}

.hero {
    position: relative;
    min-height: calc(100svh - 60px);
    display: grid;
    grid-template-rows: auto 1fr;
    isolation: isolate;
    overflow: hidden;
    background: var(--dark);
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background: url("../cabbia-helsinki-hero.png") center center / cover no-repeat;
}

.hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: rgba(18, 18, 18, 0.44);
}

.topbar {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.brand {
    color: var(--text-light);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.region {
    margin: 0;
    color: rgba(253, 245, 230, 0.78);
    font-size: 14px;
    font-weight: 600;
}

.hero-content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 9vh 0 12vh;
    display: flex;
    align-items: center;
}

.copy {
    width: min(600px, 100%);
}

h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(56px, 9vw, 116px);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: 0;
}

.coming {
    margin: 24px 0 0;
    color: var(--gold);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
}

.lead {
    max-width: 520px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.actions {
    width: fit-content;
    max-width: 100%;
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.button {
    position: relative;
    min-height: 42px;
    padding: 6px 48px 6px 24px;
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    isolation: isolate;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.button-text {
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.button-route::before {
    position: absolute;
    left: -5px;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    content: "";
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(215, 173, 70, 0.45);
    transform: translateY(-50%);
    transition: box-shadow 240ms ease;
}

.button-route::after {
    position: absolute;
    right: 10px;
    content: "\2197";
    color: var(--gold);
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 12px rgba(215, 173, 70, 0.2);
    transform: translate(0, 0);
    transition:
        color 220ms ease,
        text-shadow 220ms ease,
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-route:hover::before {
    box-shadow: 0 0 0 6px rgba(215, 173, 70, 0.22);
}

.button-route:hover::after {
    color: var(--text-light);
    text-shadow: 0 0 14px rgba(215, 173, 70, 0.65);
    transform: translate(8px, -7px) scale(1.12);
}

.button-forward::after {
    content: "\2192";
}

.button-forward:hover::after {
    transform: translateX(10px) scale(1.12);
}

.button:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
}

.site-footer {
    height: 60px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 8px;
    color: var(--text-dark);
    background: var(--light);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
}

@media (max-width: 700px) {
    .hero {
        min-height: calc(100svh - 60px);
    }

    .hero::before {
        background: url("../cabbia-helsinki-hero.png") 62% center / cover no-repeat;
    }

    .hero::after {
        background: rgba(18, 18, 18, 0.52);
    }

    .topbar,
    .hero-content {
        width: min(100% - 32px, 1180px);
    }

    .topbar {
        padding: 20px 0;
    }

    .hero-content {
        padding: 34vh 0 5vh;
        align-items: end;
    }

    h1 {
        font-size: clamp(52px, 19vw, 82px);
    }

    .coming {
        margin-top: 16px;
    }

    .lead {
        margin-top: 16px;
    }

    .actions {
        width: fit-content;
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .button-route:hover::before {
        box-shadow: 0 0 0 0 rgba(215, 173, 70, 0.45);
    }

    .button-route:hover::after {
        color: var(--gold);
        text-shadow: 0 0 12px rgba(215, 173, 70, 0.2);
        transform: translate(0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .button::before,
    .button::after {
        transition: none;
    }
}
