
/*
Theme Name: Fullscreen Landing
Author: wh
Description: A minimal full-screen landing page theme.
Version: 1.0.0
Text Domain: fullscreen-landing
*/

@font-face {
    font-family: "Helios Extended";
    src: url("assets/fonts/HeliosExt.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Helios Extended";
    src: url("assets/fonts/HeliosExt-Bold.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Helios Extended";
    src: url("assets/fonts/HeliosExt-Italic.woff") format("woff");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Helios Extended";
    src: url("assets/fonts/HeliosExt-Bold-Italic.woff") format("woff");
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

:root {
    --page-bg: #979b84;
    --text-color: #080808;
    --page-gutter: 3.75vw;
    --header-height: 62px;
    --hero-radius: 36px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--page-bg);
    color: var(--text-color);
    font-family: "Helios Extended", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.site-header {
    height: var(--header-height);
    padding: 0 var(--page-gutter);

    display: flex;
    align-items: center;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--text-color);
    text-decoration: none;
    font-size: 27px;
    font-weight: 400;
    letter-spacing: -1.2px;
    line-height: 1;
}

.site-logo .site-logo__image {
    width: 100%;
    height: 100%;
    max-width: 34px;
    max-height: 34px;
    flex-shrink: 0;
}

.site-main {
    padding: 0 var(--page-gutter) 26px;
}

.hero {
    position: relative;
    isolation: isolate;

    width: 100%;
    height: calc(100vh - var(--header-height) - 26px);
    height: calc(100svh - var(--header-height) - 26px);
    min-height: 440px;

    overflow: hidden;
    border-radius: var(--hero-radius);

    background-color: #d5d5cb;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: rgba(0, 0, 0, 0.03);
    pointer-events: none;
}

.hero__content {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;

    z-index: 1;
}

.hero__title {
    max-width: 850px;
    margin: 0;

    font-size: clamp(48px, 7vw, 80px);
    line-height: 0.6;
    letter-spacing: -0.065em;
    font-weight: 400;
    text-transform: uppercase;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.hero__text {
    margin: 20px 0 0;
    max-width: 550px;

    font-size: 18px;
    line-height: 1.4;
}

.hero__button {
    position: absolute;
    left: 30px;
    bottom: 22px;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    min-width: 288px;
    min-height: 58px;
    padding: 16px 29px;

    border: 0;
    border-radius: 999px;
    background: var(--page-bg);
    color: var(--text-color);

    font: inherit;
    font-size: 18px;
    text-decoration: none;

    transition: background-color 180ms ease;
}

.hero__button:hover {
    background: #ffffff;
    color: var(--text-color);
}

@media (min-width: 1600px) {
    :root {
        --page-gutter: 60px;
    }
}

@media (max-width: 767px) {
    :root {
        --page-gutter: 18px;
        --header-height: 58px;
        --hero-radius: 24px;
    }

    .site-logo {
        font-size: 23px;
    }

    .site-logo svg {
        width: 27px;
        height: 27px;
    }

    .site-main {
        padding-bottom: 18px;
    }

    .hero {
        height: calc(100svh - var(--header-height) - 18px);
        min-height: 480px;
        max-height: 850px;
        background-position: 58% center;
    }

    .hero__content {
        top: 25px;
        left: 20px;
        right: 20px;
    }

    .hero__title {
        font-size: clamp(42px, 9vw, 64px);
    }

    .hero__text {
        font-size: 16px;
    }

    .hero__button {
        left: 20px;
        bottom: 20px;
        min-width: 0;
        max-width: calc(100% - 40px);
        min-height: 54px;
        font-size: 16px;
    }
}

@media (max-height: 500px) and (min-width: 768px) {
    .hero {
        min-height: 0;
    }

    .hero__title {
        font-size: 46px;
    }
}
