@import url('fonts/inter/web/inter.css');

html,
body {
    --primary-color: #452f27;
    --accent-color: #ad8746;
    --gray-color: #b7b7b7;
    --white-color: #ffffff;
    --outline-color: #000000;
    --outline-offset: 2px;
    --outline-width: 2px;

    box-sizing: border-box;
    min-height: 100vh;
    font-family: Inter, system-ui, Helvetica, Arial, Helvetica, sans-serif;
    padding: 0;
    margin: 0;
}

body * {
    box-sizing: inherit;
}

body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a:focus {
    outline: var(--outline-width) solid var(--outline-color);
    outline-offset: var(--outline-offset);
}

header {
    padding: 1rem;
    background: var(--white-color);
}

header .logo {
    width: 24rem;
    margin: 0 auto;
}

main {
    flex-grow: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    z-index: 2;
}

.links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    gap: 0.25rem;
    user-select: none;
}

li.travel {
    --main-color: var(--primary-color);
    --desktop-picture: url('photos/travel-desktop.jpg');
    --mobile-picture: url('photos/travel-mobile.jpg');
}

li.food-wine {
    --main-color: var(--accent-color);
    --desktop-picture: url('photos/food-wine-desktop.jpg');
    --mobile-picture: url('photos/food-wine-mobile.jpg');
}

li.events {
    --main-color: var(--gray-color);
    --desktop-picture: url('photos/events-desktop.jpg');
    --mobile-picture: url('photos/events-mobile.jpg');
}

.links li {
    flex-grow: 1;
    background: var(--main-color);
    display: grid;
}

.links a {
    --overlay-opacity: 0;
    display: grid;
    text-decoration: none;
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
}

.links a:focus {
    --overlay-opacity: 1;
    --outline-color: var(--white-color);
    --outline-width: 0.25rem;
    --outline-offset: 0px;
    box-shadow: 0 0 1rem 1rem rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.links a:hover {
    --overlay-opacity: 1;
}

.links .label {
    padding: 1rem;
    grid-column-start: 1;
    grid-row-start: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.links .overlay {
    grid-column-start: 1;
    grid-row-start: 1;
    display: grid;
    opacity: var(--overlay-opacity);
    transition: all 0.5s ease-in-out;
    background-image: var(--mobile-picture);
    background-position: center center;
    background-size: cover;
    pointer-events: none;
}

.links .overlay-content {
    display: flex;
    align-items: end;
    justify-content: end;
    background-image: linear-gradient(90deg, transparent 0%, var(--white-color) 100%);
}

.links .overlay-logo {
    width: 30%;
    min-width: 10rem;
    padding-top: 3rem;
}

footer {
    padding: 1rem;
    line-height: 1.25;
    background: var(--primary-color);
    color: var(--accent-color);
}

footer strong {
    color: var(--white-color);
}

footer a,
footer a:visited {
    --outline-color: var(--white-color);
    color: var(--accent-color);
}

@media screen and (min-width: 768px) and (orientation: landscape) {
    .links .overlay {
        background-image: var(--desktop-picture);
    }
}
