/*------------------------------------------------
   Front page
------------------------------------------------*/

/* Extend the hero and content backgrounds across the mobile safe areas. */
html {
    --front-top-background: #2372d5;
    --front-background: #5c840c;
    --hero-title-shadow: #394860;
    background: linear-gradient(to bottom, var(--front-top-background) 50%,
                                var(--front-background) 50%);
}

/* Center short pages with colors that extend above and below the page content. */
body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 2fr);
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-page);
}

body::before,
body::after {
    content: "";
    width: 100%;
    max-width: 2560px;
    justify-self: center;
}

body::before {
    background-color: var(--front-top-background);
}

body::after {
    background-color: var(--front-background);
}

.front-page {
    --front-accent: #548254;
    --front-button-hover-accent: #e7e79a;
    --front-button-hover-border: #e7e79a;
    --front-button-hover: #a9c975;
    --hero-height: clamp(325.8333px, 65.1667vw, 782px);
    --hero-fade-height: clamp(24.1667px, 4.8333vw, 58px);
    width: 100%;
    min-width: 500px;
    max-width: 2560px;
    min-height: var(--hero-height);
    margin: 0 auto;
    background-color: var(--front-background);
}

.front-hero {
    min-height: var(--hero-height);
    background-color: var(--front-top-background);
    background-image:
        linear-gradient(to bottom, rgba(101, 143, 35, 0) calc(100% - var(--hero-fade-height)), var(--front-background) 100%),
        url("front-page-bg.jpg");
    background-image:
        linear-gradient(to bottom, rgba(101, 143, 35, 0) calc(100% - var(--hero-fade-height)), var(--front-background) 100%),
        image-set(url("front-page-bg.jpg") 1x, url("front-page-bg@2x.jpg") 2x);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% 100%, auto var(--hero-height);
}

.front-hero-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: var(--hero-height);
    margin: 0 auto;
}

.center-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.front-contents {
    margin-top: clamp(-240px, calc(102.8571px - 28.5714vw), -40px);
    padding-bottom: 26px;
}

.hero-title {
    position: absolute;
    top: 5%;
    left: 37%;
    font-size: clamp(37px, calc(22px + 3vw), 58px);
    width: max-content;
    transform: translateX(-50%);
    text-align: center;
    text-shadow: 1px 1px 0 var(--hero-title-shadow);
}

.title {
    font-family: "robotobold", sans-serif;
    color: #e8e8e8;
    position: relative;
    left: -18%;
    font-size: 96%;
}

.subtitle {
    font-family: "robotobold", sans-serif;
    font-size: 38%;
    color: #e7e79a;
    position: relative;
    left: 18%;
}

.tagline {
    top: 29%;
    font-size: clamp(22px, calc(14.8571px + 1.4286vw), 32px);
    position: absolute;
    left: 43%;
    font-family: "robotobold", sans-serif;
    line-height: 1.1;
    white-space: nowrap;
    color: #e8e8e8;
}

.tagline .subtag {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(62%, calc(6.24px + 1.48vw), 75%);
    color: #3268bc;
    margin-top: clamp(17.875px, calc(12.0714px + 1.1607vw), 26px);
}

.front-contents p {
    margin-bottom: 20px;
}

.front-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    width: 256px;
    height: 67px;
    padding: 10px 34px 11px 26px;
    border: 2px solid var(--front-accent);
    border-radius: 10px;
    font-family: "source_sans_3", sans-serif;
    font-size: 19px;
    text-align: left;
    color: #003d00;
    background-color: #94bc6e;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.33);
    user-select: none;
}

.front-button:hover {
    background: var(--front-button-hover);
    border-color: var(--front-button-hover-border);
    color: var(--front-button-hover-accent);
    text-decoration: none;
}

.front-button::after {
    content: "\203A";
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-58%);
    font-size: 44px;
    line-height: 1;
    color: #327032;
}

.front-button:hover::after {
    color: var(--front-button-hover-accent);
}

@media only screen and (max-width: 499px) and (hover: none) and (pointer: coarse) {
    .front-page {
        min-width: 100%;
    }
}
