/*!
 * Template:  MissCarmine version 2.0.0
 * File:      Skeleton
 * Copyright: © 2025 Bahit & Bahit Ltd.
 * Licence:   All rights reserved.
 */

@import "/media/css/config.css";

@media screen and (min-width: 1366px) {
    html {
        font-size: var(--rescaling-font-size);
    }
}

:root {
    scroll-behavior: smooth;
}

body {
    display: grid;
    gap: 0;
    grid-template-areas:
        "nav"
        "header"
        "main"
        "footer"
    ;
    font-family: var(--font);
    font-size: var(--size);
    margin: 0;
}

body > nav {
    grid-area: nav;
    background-color: var(--bg);
    color: var(--color);
    column-gap: var(--standard-wmargin);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: var(--size);
    font-weight: normal;
    justify-content: center;
    padding-block: var(--standard-hmargin);
}

body > nav > a {
    color: var(--color);
    text-decoration-color: transparent;
    text-decoration-thickness: calc(1 / var(--base-size) * 1rem);
    text-underline-offset: calc(6 / var(--base-size) * 1rem);
    transition-duration: 1s;
}

body > nav > a:hover {
    text-decoration-color: var(--color);
}

header {
    grid-area: header;
    align-items: center;
    background-color: var(--bg);
    background-image: url("/media/img/bg.webp");
    background-size: cover;
    color: var(--color);
    display: flex;
    flex-direction: column;
    padding: var(--standard-wmargin) var(--standard-hmargin);
}

header > img {
    height: calc(180 / var(--base-size) * 1rem);
    width: auto;
}

header > p {
    margin: 0;
}

header > p:nth-child(2) {
    color: var(--color);
    font-family: var(--font);
    font-size: var(--size);
    letter-spacing: calc(10 / var(--base-size) * 1rem);
    margin-top: calc(18 / var(--base-size) * 1rem);
    text-align: center;
    text-shadow: 1px -1px var(--shadow);
    text-transform: uppercase;
}

header > p:nth-child(3) {
    color: var(--color);
    font-family: var(--font);
    font-size: var(--size);
    letter-spacing: calc(5 / var(--base-size) * 1rem);
    margin-top: calc(9 / var(--base-size) * 1rem);
    margin-bottom: calc(15 / var(--base-size) * 1rem);
    --x-shadow: calc(1 / var(--base-size) * 1rem);
    --y-shadow: calc(-1 / var(--base-size) * 1rem);
    text-shadow: var(--x-shadow) var(--y-shadow) var(--shadow);
    text-transform: uppercase;
}

header > p:nth-child(4) {
    font-family: var(--font);
    font-size: var(--size);
    text-shadow: calc(3 / var(--base-size) * 1rem) 0 var(--shadow);
    transform: rotate(-4deg);
}

header > p:nth-child(4) > sup {
    display: inline-block;
    font-family: var(--font);
    font-size: var(--size);
    transform: rotate(4deg);
}

main {
    grid-area: main;
    background-color: var(--bg);
    color: var(--color);
    padding: var(--standard-wmargin);
}

main > h1 {
    color: var(--color);
    font-size: var(--size);
    font-weight: normal;
    margin: 0 0 var(--standard-hmargin) 0;
    text-align: center;
}

footer {
    grid-area: footer;
    align-items: end;
    background-color: var(--bg);
    color: var(--color);
    display: grid;
    gap: var(--standard-wmargin);
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    justify-items: stretch;
    padding: var(--standard-wmargin);
}

footer a {
    color: var(--color);
    text-underline-offset: calc(3 / var(--base-size) * 1rem);
}

footer nav {
    display: flex;
    flex-direction: column;
    font-size: var(--size);
    font-weight: normal;
    gap: calc(12 / var(--base-size) * 1rem);
    justify-content: start;
}

footer nav > a {
    color: var(--color);
    text-decoration-thickness: calc(1 / var(--base-size) * 1rem);
    text-underline-offset: calc(6 / var(--base-size) * 1rem);
    transition-duration: 400ms;
}

footer > p {
    font-size: var(--size);
    margin: 0;
    text-align: justify;
}
