/* =========================================================
   MEAD HALL 2.0
   Main Stylesheet
   ========================================================= */


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.20),
            rgba(0, 0, 0, 0.35)
        ),
        url("main-page-background/back-ground-00.png");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #e8dcc7;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    line-height: 1.6;
}


/* =========================
   GENERAL
========================= */

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

main {
    overflow: hidden;
}

section {
    padding: 90px 8%;
}

section h2 {
    margin-bottom: 18px;

    color: #d6a84b;

    font-size: clamp(2rem, 4vw, 3.4rem);

    text-transform: uppercase;
    letter-spacing: 3px;

    text-shadow:
        0 2px 3px #000;
}

section > p {
    max-width: 750px;

    margin-bottom: 35px;

    color: #c7bba8;

    font-size: 1.1rem;
}


/* =========================
   HEADER
========================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 18px 5%;

    background:
        linear-gradient(
            180deg,
            rgba(28, 18, 11, 0.98),
            rgba(12, 9, 7, 0.96)
        );

    border-bottom: 1px solid #6e4c24;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.55);
}


/* Mead Hall logo */

header > div:first-child h1 {
    color: #d8aa50;

    font-size: 1.9rem;

    letter-spacing: 5px;

    white-space: nowrap;

    text-shadow:
        0 2px 2px #000,
        0 0 15px rgba(204, 145, 54, 0.25);
}

header > div:first-child p {
    margin-top: -3px;

    color: #8f806d;

    font-size: 0.72rem;

    letter-spacing: 1px;
}


/* Navigation */

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 24px;
}

nav a {
    position: relative;

    padding: 8px 0;

    color: #c7b89f;

    font-size: 0.88rem;

    text-transform: uppercase;
    letter-spacing: 1.5px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

nav a:hover {
    color: #e7b95d;

    transform: translateY(-2px);
}

nav a::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 0;

    width: 0;
    height: 1px;

    background: #b67a2b;

    transform: translateX(-50%);

    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}


/* Header buttons */

header > div:last-child {
    display: flex;
    gap: 10px;
}

button {
    min-height: 44px;

    padding: 11px 20px;

    border: 1px solid #8a612c;

    background:
        linear-gradient(
            180deg,
            #5e3d1d,
            #322113
        );

    color: #f0dfbd;

    cursor: pointer;

    font-size: 0.85rem;
    font-weight: bold;

    text-transform: uppercase;
    letter-spacing: 1px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

button:hover {
    transform: translateY(-2px);

    border-color: #d5a44d;

    background:
        linear-gradient(
            180deg,
            #795127,
            #422a15
        );
}


/* =========================
   HERO
========================= */

main > section:first-child {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 650px;

    padding-top: 130px;
    padding-bottom: 130px;

    background:
        linear-gradient(
            90deg,
            rgba(7, 5, 4, 0.96) 0%,
            rgba(16, 11, 7, 0.88) 45%,
            rgba(36, 23, 12, 0.52) 100%
        );

    border-bottom: 1px solid #4e361e;
}


/* Fire glow */

main > section:first-child::before {
    content: "";

    position: absolute;

    right: 5%;
    top: 20%;

    width: 420px;
    height: 420px;

    background:
        radial-gradient(
            circle,
            rgba(196, 111, 28, 0.20),
            rgba(116, 59, 17, 0.08) 45%,
            transparent 70%
        );

    pointer-events: none;
}


/* Decorative rune line */

main > section:first-child::after {
    content: "ᚠ ᚢ ᚦ ᚨ ᚱ ᚲ";

    position: absolute;
    right: 8%;
    bottom: 55px;

    color: rgba(192, 139, 62, 0.25);

    font-size: 2rem;

    letter-spacing: 15px;

    pointer-events: none;
}


main > section:first-child > p:first-child {
    margin-bottom: 12px;

    color: #a87937;

    font-size: 0.85rem;
    font-weight: bold;

    letter-spacing: 5px;
}

main > section:first-child h2 {
    max-width: 850px;

    margin-bottom: 25px;

    color: #e4c987;

    font-size: clamp(2.7rem, 6vw, 5.5rem);

    line-height: 1.05;

    text-transform: none;
    letter-spacing: 1px;

    text-shadow:
        0 3px 4px #000,
        0 0 25px rgba(167, 101, 29, 0.15);
}

main > section:first-child > p:nth-of-type(2) {
    max-width: 650px;

    color: #c7b9a2;

    font-size: 1.15rem;
}

main > section:first-child button {
    width: fit-content;

    margin-right: 12px;
    margin-bottom: 12px;
}


/* =========================
   ENTER THE HALL CARDS
========================= */

main > section:nth-child(2) {
    background:
        linear-gradient(
            180deg,
            #100c09,
            #17100b
        );

    text-align: center;
}

main > section:nth-child(2) > p {
    margin-left: auto;
    margin-right: auto;
}


/* Cards */

main > section:nth-child(2) article {
    display: inline-block;

    width: calc(33.333% - 30px);
    min-height: 230px;

    margin: 12px;

    padding: 32px 28px;

    vertical-align: top;
    text-align: left;

    background:
        linear-gradient(
            145deg,
            rgba(47, 32, 20, 0.92),
            rgba(18, 13, 10, 0.96)
        );

    border: 1px solid #49331f;
    border-top: 2px solid #755126;

    box-shadow:
        inset 0 0 25px rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

main > section:nth-child(2) article:hover {
    transform: translateY(-5px);

    border-color: #96652c;
}

main > section:nth-child(2) article h3 {
    margin-bottom: 14px;

    color: #d7ad61;

    font-size: 1.3rem;

    letter-spacing: 1px;
}

main > section:nth-child(2) article p {
    color: #a99d8d;

    font-size: 0.95rem;
}


/* =========================
   STORIES
========================= */

main > section:nth-child(3) {
    background:
        linear-gradient(
            135deg,
            #20150d,
            #0c0907
        );

    border-top: 1px solid #352417;
    border-bottom: 1px solid #352417;
}

main > section:nth-child(3) article {
    max-width: 800px;

    padding: 35px;

    background:
        linear-gradient(
            135deg,
            #d6c39b,
            #aa9064
        );

    color: #271a0e;

    border-left: 8px solid #68451e;

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.45);
}

main > section:nth-child(3) article h3 {
    margin-bottom: 10px;

    color: #3e2914;

    font-size: 1.6rem;
}

main > section:nth-child(3) article p {
    color: #493721;
}


/* =========================
   RPG CHARACTER SECTION
========================= */

main > section:nth-child(4) {
    position: relative;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(91, 55, 21, 0.22),
            transparent 35%
        ),
        #0b0907;
}

main > section:nth-child(4) > div {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(120px, 1fr));

    max-width: 850px;

    margin: 30px 0;

    border: 1px solid #60431f;

    background: #15100c;
}

main > section:nth-child(4) > div p {
    padding: 22px 18px;

    color: #d4bd8e;

    text-align: center;

    border-right: 1px solid #49341e;
}

main > section:nth-child(4) > div p:last-child {
    border-right: none;
}


/* =========================
   CHARACTER HISTORY
========================= */

main > section:nth-child(5) {
    background:
        linear-gradient(
            180deg,
            #17100b,
            #0d0907
        );

    text-align: center;
}

main > section:nth-child(5) > p {
    margin-left: auto;
    margin-right: auto;
}

blockquote {
    position: relative;

    max-width: 800px;

    margin: 35px auto;

    padding: 45px;

    background:
        linear-gradient(
            135deg,
            #cbb88d,
            #9f865c
        );

    color: #302113;

    border: 1px solid #6d522f;

    font-size: 1.2rem;
    font-style: italic;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45);
}

blockquote::before {
    content: "ᛟ";

    display: block;

    margin-bottom: 15px;

    color: #6d4923;

    font-size: 2.3rem;
    font-style: normal;
}


/* =========================
   FINAL JOIN
========================= */

main > section:nth-child(6) {
    padding-top: 120px;
    padding-bottom: 120px;

    background:
        radial-gradient(
            circle,
            rgba(120, 71, 23, 0.24),
            transparent 50%
        ),
        #080605;

    text-align: center;
}

main > section:nth-child(6) > p {
    margin-left: auto;
    margin-right: auto;
}

main > section:nth-child(6) button {
    padding: 15px 35px;

    font-size: 1rem;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 45px 8%;

    background: #050403;

    border-top: 1px solid #4b321b;

    color: #756b5e;

    text-align: center;
}

footer p:first-child {
    margin-bottom: 5px;

    color: #b48a46;

    font-size: 1.3rem;
    font-weight: bold;

    letter-spacing: 5px;
}

footer p:nth-child(2) {
    margin-bottom: 20px;

    color: #8e806d;

    font-style: italic;
}


/* =========================
   SELECTION
========================= */

::selection {
    background: #8c5e29;
    color: #fff2d4;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    header {
        flex-wrap: wrap;
    }

    nav {
        order: 3;

        width: 100%;
    }

    main > section:nth-child(2) article {
        width: calc(50% - 30px);
    }

}


@media (max-width: 750px) {

    section {
        padding: 65px 6%;
    }

    header {
        position: relative;

        justify-content: center;

        text-align: center;
    }

    header > div:last-child {
        justify-content: center;

        width: 100%;
    }

    nav {
        gap: 14px;
    }

    nav a {
        font-size: 0.75rem;
    }

    main > section:first-child {
        min-height: 550px;

        padding-top: 90px;
        padding-bottom: 90px;
    }

    main > section:first-child::after {
        display: none;
    }

    main > section:nth-child(2) article {
        width: 100%;

        margin: 10px 0;
    }

    main > section:nth-child(4) > div {
        grid-template-columns:
            repeat(2, 1fr);
    }

    main > section:nth-child(4) > div p {
        border-bottom: 1px solid #49341e;
    }

}


@media (max-width: 450px) {

    header > div:last-child {
        flex-direction: column;
    }

    header > div:last-child button {
        width: 100%;
    }

    nav {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        width: 100%;
    }

    main > section:first-child h2 {
        font-size: 2.5rem;
    }

    main > section:first-child button {
        width: 100%;
    }

    main > section:nth-child(4) > div {
        grid-template-columns: 1fr;
    }

    main > section:nth-child(4) > div p {
        border-right: none;
    }

    blockquote {
        padding: 30px 22px;
    }

}

/* =========================================================
   FRONT PAGE BACKGROUND OVERRIDES
   Keeps the raven/rune background visible across whole page
========================================================= */

main > section:first-child,
main > section:nth-child(2),
main > section:nth-child(3),
main > section:nth-child(4),
main > section:nth-child(5),
main > section:nth-child(6) {
    background: transparent;
}


/* Dark transparent content areas */

main > section {
    position: relative;
}


/* Soft darkness behind the content without hiding background */

main > section::before {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.20);

    pointer-events: none;

    z-index: 0;
}


/* Keep actual content above overlay */

main > section > * {
    position: relative;
    z-index: 1;
}


/* Header lets some background show through */

header {
    background: rgba(5, 5, 5, 0.88);

    backdrop-filter: blur(8px);
}


/* Footer matches the page */

footer {
    background: rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(5px);
}

/* =========================================================
   MEAD HALL JAVASCRIPT POPUPS
========================================================= */

.mead-message-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.82);

    backdrop-filter: blur(5px);
}

.mead-message-box {
    width: min(560px, 100%);

    padding: 45px;

    background:
        linear-gradient(
            145deg,
            rgba(35, 27, 20, 0.98),
            rgba(8, 7, 6, 0.98)
        );

    border: 1px solid #8a612c;
    border-top: 3px solid #b88942;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 35px rgba(130, 82, 28, 0.08);

    text-align: center;
}

.mead-message-rune {
    margin-bottom: 10px;

    color: #b88942;

    font-size: 2.7rem;
}

.mead-message-box h2 {
    margin-bottom: 18px;

    color: #d8aa50;

    font-size: 2rem;

    text-transform: uppercase;
    letter-spacing: 3px;
}

.mead-message-box p {
    margin-bottom: 28px;

    color: #c8baa4;

    font-size: 1rem;
    line-height: 1.8;
}