:root {
    --primary-color: #3d4435;
    --primary-font: "Sansation", sans-serif;
    --white-primary: hsl(0 50% 100%);
    --black-primary: #494d5f;
    --secondary-color: #fafafa;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--primary-font), serif;
    font-weight: 400;
    font-style: normal;
    color: var(--black-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

p, h1, h2, h3, h4, h5, h6 {
    color: var(--black-primary);
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

p {
    padding-bottom: 0.5em;
    word-wrap: break-word;
    font-size: 1.2rem;
}

main {
    margin: 0 20% 0 20%;
}

header {
    background-image: url("images/hero.jpg");
    background-size: cover;
    min-height: 80vh;
    color: var(--white-primary);
    margin-bottom: 2em;
    padding: 1em 3em 1em 3em;
    font-size: 2rem;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header .central {
    position: absolute;
    right: 43%;
    top: 15%;
    font-weight: 400;
    font-style: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.5rem;
    font-weight: 600;
    font-style: normal;
}

header .bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.8rem;
    font-weight: bolder;
}

header .bottom a {
    text-decoration: none;
    color: var(--white-primary);
}

section {
    margin-top: 2em;
}

section:last-child {
    margin-bottom: 2em;
}

footer {
    margin-top: auto;
    text-align: center;
    background-color: var(--secondary-color);
}

.footer {
    margin: 2em 0 1em 0;
}

.logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-block: 3em;
}

nav ol {
    display: flex;
    gap: 0.5em;
    list-style: none;
}

nav li::after {
    content: " |";
    padding: 0.5em;
}

nav li:last-child::after {
    content: none;
}

nav a {
    text-decoration: underline;
    color: var(--white-primary);
}

nav a:hover {
    transition: width 0.5s ease-out;
}

@media screen and (max-width: 900px) {
    html {
        font-size: 0.85em;
    }
    nav ol {
        display: flex;
        flex-direction: column;
    }
    nav li::after {
        content: none;
    }
    .logos {
        display: none;
    }
    header .central {
        position: absolute;
        top: 40%;
        right: 20%;
    }
}

@media screen and (orientation: landscape) and (max-width: 900px){
    header .central {
        position: absolute;
        top: 35%;
        right: 35%;
    }
}

.right {
    text-align: right;
}

.middle {
    text-align: center;
}

.photo {
    float: right;
    margin: 1em;
    img {
        border-radius: 5%;
    }
}

.socials {
    display: flex;
    justify-content: space-between;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.title {
    margin-bottom: 0.8em;
    font-size: 2.3rem;
}

.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    margin-block: 3em;
}

.tile {
    flex: 1 0 40%;
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 2em 1.5em;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 20px;
}

.tile p {
    text-align: left;
    padding-inline: 0;
    margin-bottom: 1em;
    line-height: 1.6;
}

.tile p:last-child {
    margin-bottom: 0;
}

.tile h4 {
    text-align: center;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1em;
}

