:root {
    /* Colours */
    --colour-background: #FFF200;
    --colour-text: #000000;
    --colour-primary: #00b0f0;
    --colour-primary-hover: #24c5ff;
    --colour-secondary: #eb008d;

    /* Layout */
    --container-width: 1200px;
    --section-padding: 5rem;

    /* Typography */
    --font-family: "Varela Round", sans-serif;
    --transition-speed: .25s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--colour-background);
    color: var(--colour-text);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

nav a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    font-size: 1.0rem;
    font-weight: 400;
    transition: color var(--transition-speed);
}

/* Text */

h1 {
    margin: 0;
    font-size: 5.4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2em;
    -webkit-text-stroke: 1.3px;
}

h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    line-height: 0.8em;
}

h3 {
    margin: 0;
    font-size: 1.0rem;
    line-height: 1.6em;
}

p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6em;
}

/* Header */

.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    padding-left: 2em;
    padding-right: 2em;
}

.logo {
    padding-right: 4em;
    justify-self: start;
    display: block;
    width: clamp(0px, 20vw, 276px);
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-nav {
    position: relative;
    transition: color .2s ease;
    padding-right: 1.6em;
}

.site-nav ul {
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    position: relative;
    transition: color .2s ease;
    white-space: nowrap;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    line-height: 0.8em;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--colour-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
    transform: scaleX(1);
}

.site-header .social-links {
    padding-left: 4em;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main */

main {
    min-height: calc(100vh - 180px);
}

.hero {
    padding-top: 0rem;
    padding-bottom: 0rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero .container {
    padding-left: 0rem;
    padding-right: 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
}

.hero-description {
    padding: 1rem;
}

.hero-title {
    font-family: "Varela Round", sans-serif;
    font-size: clamp(2.75rem, 7vw, 5rem);
    line-height: 1.1;
    padding-bottom: 1rem;
}

.underline {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.underline::after {
    content: "";
    position: absolute;
    left: -4%;
    width: 108%;
    bottom: -.12em;
    height: .42em;
    background: url("../images/underline.svg") center /100% 100% no-repeat;
    z-index: -1;
    pointer-events: none;
}

.container {
    padding-top: 1vw;
    padding-bottom: 1vw;
    padding-left: 4vw;
    padding-right: 4vw;
    margin-inline: auto;
}

section {
    padding-block: var(--section-padding);
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 170px) minmax(0, 830px);
    max-width: 1000px;
    width: 100%;
    gap: 1.5rem;
    width: fit-content;
    margin: 0 auto;
    align-items: start;
    text-align: left;
    padding: 1rem;
}

.grid h3 {
    padding-top: 0.5rem;
}

.grid p {
    padding-top: 0.38rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    flex-direction: column;
    max-width: 1000px;
    width: 100%;
    gap: 1.5rem;
    width: fit-content;
    margin: 0 auto;
    align-items: start;
    text-align: left;
    padding: 1rem;
}

.gallery img {
    border-radius: 25px;
}

.store-links{
    padding-left: 4em;
    justify-self: end;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;   
}

.button {
    display: inline-flex;
    min-width: 12rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    height: 4rem;
    border-radius: 999px;
    background: var(--colour-primary);
    color: white;
    font-size: 1rem;
    transition: background var(--transition-speed), transform var(--transition-speed);
    text-decoration: none;
    padding-left: 2em;
    padding-right: 2em;
}

.button-wide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    height: 4rem;
    border-radius: 999px;
    background: var(--colour-primary);
    color: white;
    font-size: 1rem;
    transition: background var(--transition-speed), transform var(--transition-speed);
    text-decoration: none;
    width: 100%;
    max-width: 1000px;
    display: grid;
    margin: 0 auto;
    padding-left: 2.5em;
    padding-right: 2.5em;
}

.button:hover {
    background: var(--colour-primary-hover);
}

.developer {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 1em;
    height: auto;
}

.hero {
    padding-top: 0rem;
    padding-bottom: 0rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-video {
    margin-top: 0.5rem;
    width: 100%;
    max-width: 960px;
    border-radius: 50px;
    overflow: hidden;
}

.hero-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* Footer */   

.site-footer {
    top: 5rem;
    position: relative;
    background: var(--colour-secondary);
    padding: 2em;
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -100px;
    height: 100px;
    background: url("../images/footer.svg") center bottom /100% 100% no-repeat;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-self: end;
    align-items: end;
    justify-content: space-between;
    min-height: 90px;
}

.site-footer .social-links {
    padding-left: 4em;
    justify-self: end;
    display: flex;
    align-items: end;
    align-items: end;
    gap: 1rem;
}

.copyright {
    color: #ffffff;
    justify-self: end;
    display: block;
    max-height: 69px;
    width: auto;
    margin: 0;
    font-size: clamp(0.7rem, 1.2vw, 0.95rem);
    line-height: 1.6em;
    align-items: center;
}

/* Mobile */

@media (max-width: 700px) {
    .site-header {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .logo {
        display: none;
    }

    .site-header .social-links {
        display: none;
    }

    .site-footer .social-links {
        padding-left: 0em;
        justify-self: center;
    }

    .copyright{
        justify-self: center;
    }

    .hero {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    :root {
        --section-padding: 3rem;
    }

    .container {
        width: min(100% - 2rem, var(--container-width));
    }

    .gallery {
        grid-template-columns: 1fr;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}