/* Reset CSS */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    font-size: 62.5%;
    min-height: 100svh;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

p,
label {
    margin: 0;
    padding: 0;
}

a,
span {
    display: inline-block;
}

a,
a:hover {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    padding: 0;
    margin: 0;
    font-weight: normal;
}

figure {
    margin: 0;
}

input:focus,
button:focus,
a:focus {
    outline: none;
}

textarea:focus {
    outline: none;
}

button {
    padding: 0;
    border: 0;
    margin: 0;
    background: none;
}

/* Fonts */

@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/Avenir Next Regular.eot');
    src: url('../fonts/Avenir Next Regular.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Avenir Next Regular.woff2') format('woff2'),
    url('../fonts/Avenir Next Regular.woff') format('woff'),
    url('../fonts/Avenir Next Regular.svg#Avenir Next Regular') format('svg');
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
    unicode-range: U+0020-00FE;
}

a {
    color: black;
    text-decoration: underline;
}

/* Variables */

:root {

    --font-family: 'Avenir Next';
    --headding-font: 'rama-gothic-e';
    --gutter: 3rem;
    --fs: 1.8rem;

}

@media(max-width:767px) {
    :root {

        --gutter: 2rem;
        --fs: 1.6rem;

    }
}

body {
    font-family: var(--font-family);
    font-size: var(--fs);
    line-height: 1.5;
}

.wrapper {
    height: 100svh;
    display: flex;
    flex-direction: column;
}

.hero-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gutter);
    padding: var(--gutter) 0;
}

.hero-section figure {
    flex-grow: 1;
    position: relative;
}

.hero-section figure img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-height: 100%;
}

.wrapper h1 {
    font-size: clamp(4.5rem, 5vw, 5vw);
    text-align: center;
    line-height: 1;
    font-family: var(--headding-font);
}

footer {
    height: var(--footer-height);
    background-color: hsl(0, 0%, 93%);
    padding: var(--gutter) 0;
}

.footer-content {
    padding: 0 var(--gutter);
    max-width: 100rem;
    margin-inline: auto;
    display: flex;
    gap: var(--gutter);
}

.footer-content div {
    flex-grow: 1;
}

.footer-content h2 {
    font-size: clamp(2rem, 3.8rem, 5vw);
    line-height: 1;
    font-family: var(--headding-font);
}

.footer-content p {
    line-height: 1.5;
}

.logo img {
    max-width: 16.1rem;
}

@media(max-width:640px) {
    .footer-content {
        flex-direction: column;
    }
    .logo img {
        max-width: 12rem;
    }
}