/* noto-serif-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/noto-serif-v22-latin-regular.woff2') format('woff2');
}

/* noto-serif-italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Noto Serif';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/noto-serif-v22-latin-italic.woff2') format('woff2');
}

/* noto-serif-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/noto-serif-v22-latin-700.woff2') format('woff2');
}

/* GENERAL STYLES */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gap: 2rem;
    --gap-medium: calc(var(--gap) * 2);
    --gap-large: calc(var(--gap) * 4);
    --keyclr: hsl(31, 65%, 49%);
    --keyclr-light: hsl(32, 73%, 91%);
}

html {
    font-size: 100%;
}

body {
    color: #fff;
    font-family: 'Noto Serif';
    font-size: 1rem;
    background-image: url(../img/background.jpg);
}

/* REUSABLE BLOCKS */

.main-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.text-box {
    position: relative;
    background-color: rgba(0, 0, 0, .5);
}

.text-box::before, .text-box::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    content: '';
}

.text-box::before {
    top: 0;
    background-image: linear-gradient(to right, var(--keyclr) 0%, var(--keyclr-light) 50%, var(--keyclr) 100%);
}

.text-box::after {
    bottom: 0;
    background-image: linear-gradient(to right, var(--keyclr) 0%, var(--keyclr-light) 66%, var(--keyclr) 100%);
}

.text-box::before, .text-box::after {
    mask-image: linear-gradient(to right, transparent 0%, #000 50%, transparent 100%);
}

.frame {
    border-image-source: url(../img/stoneplate.png);
    border-image-width: 85px 121px 128px 104px;
    border-image-repeat: round;
    border-image-slice: 85 121 128 104;
    border-image-outset: 35px 55px 60px 40px;
    z-index: 1;
}

/* ELEMENTS */

h2 {
    background: linear-gradient(to bottom, #FF8D1E, #FFF648, #F6F3F1 33%, #FFF648, #C93F01 60%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px #000);
}

a {
    color: var(--keyclr);
}

a:hover {
    color: var(--keyclr-light);
}

button {
    font-family: 'Noto Serif';
    color: var(--keyclr);
}

.btn {
    display: flex;
    align-items: center;
    position: relative;
    height: 150px;
    width: fit-content;
    padding-bottom: .3rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--keyclr);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 100%;
    background-image: url(../img/btn/button-flesh.png);
    background-repeat: repeat-x;
    background-size: contain;
}

.btn::before, .btn::after {
    position: absolute;
    top: 0;
    height: 150px;
    aspect-ratio: 149 / 290;
    content: '';
}

.btn::before {
    left: 0;
    background-image: url(../img/btn/button-beginning.png);
    background-size: cover;
    translate: -100%;
}

.btn::after {
    right: 1px;
    background-image: url(../img/btn/button-end.png);
    background-size: cover;
    translate: 100%;
}

.btn b {
    font-size: 1.5em;
    font-weight: 400;
}

.reg-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: fit-content;
    margin: 0 auto;
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
    background: none;
    border: 0;
    aspect-ratio: 500 / 155;
    background: linear-gradient(to bottom, #FF8D1E, #FFF648, #F6F3F1 33%, #FFF648, #C93F01 55%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reg-btn::after {
    position: absolute;
    top: 0%;
    left: 50%;
    width: 150%;
    aspect-ratio: 500 / 155;
    content: "";
    background-image: url(../img/reg-btn.png);
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    translate: -50% -10px;
    z-index: -1;
}

.reg-btn:hover {
    background: var(--keyclr-light);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reg-btn:hover::after {
    background-position: bottom;
}

/* HEADER SECTION */

header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    height: 90dvh;
    background-image: url(../img/artwork.jpg);
    background-position: center;
    background-size: cover;
}

header::before, header::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
    background-image: url(../img/cavestones.png);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

header::before {
    top: 0;
}

header::after {
    bottom: 0;
    rotate: 180deg;
}

header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#logo {
    max-width: 70%;
    height: auto;
    margin-top: var(--gap);
    z-index: 1;
}

/* SITE NAV */

#site-nav {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
    margin-bottom: var(--gap-medium);
    background-image: url(../img/banner.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    translate: 0 -10px;
    z-index: 1;
}

#site-nav .btn:first-of-type {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 0 var(--gap) .3rem var(--gap);
}

#site-nav .btn-left {
    display: none;
}

#site-nav .btn-right {
    display: none;
}

.btn-left, .btn-right {
    height: 110px;
}

.btn-left::before, .btn-left::after, .btn-right::before, .btn-right::after {
    height: 110px;
}

/* INTRO SECTION */

#intro {
    margin-bottom: var(--gap-large);
    padding: var(--gap) 0;
}

#intro p {
    grid-column: 2 / span 10;
    text-align: center;
}

/* ORDER SECTION */

.order {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: 2 / span 10;
    width: 100%;
    justify-self: center;
    margin-bottom: var(--gap-large);
    padding: var(--gap) calc(var(--gap) / 2);
    background: url(../img/order_bg.jpg);
    mask-image: url(../img/order_mask.png);
    mask-size: 100% 100%;
}

.order h2 {
    margin-bottom: var(--gap);
}

.store-select {
    text-align: center;
}

.select {
    margin-bottom: var(--gap);
}

.plfm-btn {
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    background: none;
    border: none;
}

.plfm-btn:not(:last-of-type) {
    margin-right: var(--gap);
}

.plfm-btn:hover, .plfm-btn.active {
    color: var(--keyclr);
}

.order-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 64px;
    height: 100px;
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 3px 5px #000;
    background-image: url(../img/btn/order_button_middle.png);
    background-position: center;
    background-repeat: repeat-x;
}

.order-btn::before, .order-btn::after {
    position: absolute;
    top: 0;
    height: 100%;
    content: '';
}

.order-btn::before {
    left: -48px;
    width: 64px;
    background-image: url(../img/btn/order_button_left.png);
}

.order-btn::after {
    right: -48px;
    width: 64px;
    background-image: url(../img/btn/order_button_right.png);
}

.order-btn span {
    z-index: 1;
}

.store-list {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem var(--gap);
    width: 100%;
}

/* FEATURES SECTION */

#features {
    align-items: center;
    row-gap: var(--gap-medium);
    margin-bottom: var(--gap-large);
}

.feature-screen:nth-of-type(1) {
    grid-column: 2 / span 10;
    grid-row: 2 / 3;
}

.feature-text:nth-of-type(1) {
    grid-column: 2 / span 10;
    grid-row: 1 / 2;
}

.feature-screen:nth-of-type(2) {
    grid-column: 2 / span 10;
    grid-row: 4 / 5;
}

.feature-text:nth-of-type(2) {
    grid-column: 2 / span 10;
    grid-row: 3 / 4;
}

.feature-text {
    text-align: justify;
    padding: var(--gap) var(--gap-medium);
}

.feature-screen {
    max-width: 100%;
}

/* COMMUNITY SECTION */

#community {
    row-gap: var(--gap-medium);
    margin-bottom: var(--gap-large);
}

#newsletter, #discord, #newsletter-bonus {
    text-align: center;
}

#newsletter {
    grid-column: 2 / span 10;
    grid-row: 1 / 2;
}

#newsletter form input {
    margin-bottom: var(--gap);
}

input[type=text] {
    padding: 1.5rem 2rem;
    aspect-ratio: 716 / 159;
    font-size: 1rem;
    font-family: 'Noto Serif';
    color: var(--keyclr-light);
    background-color: transparent;
    background-image: url(../img/textbox.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 0;
}

#discord, #newsletter-bonus {
    grid-column: 2 / span 10;
    grid-row: 2 / 3;
}

#newsletter-bonus img {
    max-width: 100%;
}

:where(#newsletter, #discord, #newsletter-bonus) > *:not(a, button) {
    margin-bottom: var(--gap);
}

:where(#newsletter, #discord) p {
    padding: var(--gap) 0;
}

#newsletter label {
    font-size: .75rem;
}

/* TRAILER SECTION */

#trailer {
    margin-bottom: var(--gap-large);
}

#trailer-thumb {
    position: relative;
    grid-column: 2 / span 10;
}

#trailer-thumb img {
    width: 100%;
}

#trailer-thumb p {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: .5rem;
    font-size: 1rem;
    text-align: center;
    background: hsl(0, 0%, 0%);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: 0;
    cursor: pointer;
}

.play-btn svg {
    width: 75px;
    height: 75px;
    fill: var(--keyclr-light);
    opacity: .8;
}

.play-btn svg:hover {
    opacity: 1;
}

#trailer-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    grid-column: 2 / span 10;
}

#trailer-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* MEDIA SECTION */

.media-slider {
    position: relative;
    row-gap: var(--gap);
    margin-bottom: var(--gap-large);
    background-image: linear-gradient(to bottom, transparent, #000, transparent);
}

.media-slider h2 {
    grid-column: 2 / -1;
    grid-row: 1 / 2;
}

.media-slider p {
    grid-column: 2 / -1;
    grid-row: 3 / 4;
    font-size: .75rem;
}

.media {
    /* position: relative; */
    grid-column: 2 / span 10;
    grid-row: 2 / 3;
    overflow: hidden;
}

.media a img {
    width: 100%;
}

.videos .swiper-slide {
    position: relative;
}

.yt-notice {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    color: var(--keyclr-light);
    font-size: .75rem;
    background: rgba(0, 0, 0, .75);

}

.yt-notice > a {
    font-size: .75rem;
}

.swiper-button-prev, .swiper-button-next {
    color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateY(75%);
}

.swiper-button-prev {
    background-image: url(../img/arrow_l.png);
}

.swiper-button-next {
    background-image: url(../img/arrow_r.png);
}

.swiper-button-prev::after, .swiper-button-next::after {
    content: '';
}

/* FOOTER SECTION */

#site-footer {
    aspect-ratio: 3833 / 1504;
    padding-bottom: 35%;
    text-align: center;
    background-image: url(../img/foot.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
}

#site-footer > div {
    grid-column: 2 / span 10;
}

.logos {
    display: flex;
    gap: calc(var(--gap) / 2) var(--gap);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--gap);
}

#site-footer :is(p, a) {
    font-size: .75rem;
}

/* RESPONSIVE STYLES */

@media (min-width: 600px) {
    #join a, #trailer-thumb, #trailer-wrapper, .order {
        grid-column: 3 / span 8;
    }
}

@media (min-width: 900px) {
    #logo {
        max-width: 40%;
    }

    #features {
        row-gap: var(--gap-large);
    }

    .feature-screen:nth-of-type(1) {
        grid-column: 2 / span 5;
        grid-row: 1 / 2;
    }
    
    .feature-text:nth-of-type(1) {
        grid-column: 7 / span 6;
        grid-row: 1 / 2;
    }
    
    .feature-screen:nth-of-type(2) {
        grid-column: 7 / span 5;
        grid-row: 2 / 3;
    }
    
    .feature-text:nth-of-type(2) {
        grid-column: 1 / span 6;
        grid-row: 2 / 3;
    }

    .feature-text:nth-of-type(1n)::before, .feature-text:nth-of-type(1n)::after {
        mask-image: linear-gradient(to right, #000 0%, #000 50%, transparent 100%);
    }
    
    .feature-text:nth-of-type(2n)::before, .feature-text:nth-of-type(2n)::after {
        mask-image: linear-gradient(to right, transparent 0%, #000 50%, #000 100%);
    }

    #newsletter {
        grid-column: 2 / span 4;
        grid-row: 1 / 2;
    }
    
    #discord, #newsletter-bonus {
        grid-column: 8 / span 4;
        grid-row: 1 / 2;
    }

    #trailer-thumb, #trailer-wrapper {
        grid-column: 4 / span 6;
    }
}

@media (min-width: 1000px) {
    #site-nav {
        grid-template-columns: 1fr auto 1fr;
    }

    #site-nav .btn {
        grid-row: 1 / 2;
    }

    #site-nav .btn:first-of-type {
        grid-column: 2 / 3;
        z-index: 1;
    }

    #site-nav .btn-left {
        display: flex;
        grid-column: 1 / 2;
        justify-self: end;
        padding-right: calc(var(--gap) * 3);
    }

    #site-nav .btn-right {
        display: flex;
        grid-column: 3 / 4;
        justify-self: flex-start;
        padding-left: calc(var(--gap) * 3);
    }
}

@media (min-width: 1100px) {
    body {
        font-size: 1.25rem;
    }
}

@media (min-width: 1400px) {
    #join a, #trailer-thumb, #trailer-wrapper {
        grid-column: 5 / span 4;
    }
}

@media (max-width: 899px) {
    .feature-screen:not(:last-of-type) {
        margin-bottom: var(--gap-large);
    }
}