html,
body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

body {
    background: #101010;
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    line-height: 1.9;
    color: #e6d7bd;
    text-align: center;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.15;
    text-align: center;
    position: relative;
    margin-bottom: 38px;
    text-transform: uppercase;
    background: linear-gradient(
        135deg,
        #5b3716 0%,
        #a06a2c 35%,
        #e3c088 55%,
        #7a4a1e 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 14px rgba(255, 190, 110, 0.12),
        0 2px 6px rgba(0,0,0,0.6);
}

h1::after {
    content: "";
    display: block;
    width: 140px;
    height: 2px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 145, 73, 0.95),
        transparent
    );
    box-shadow: 0 0 12px rgba(201,145,73,0.4);
}

#header {
    width: 100%;
    height: 692px;
    background-image: url('images/head.jpg');
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#container {
    width: min(900px, 88%);
    margin: -10px auto 40px auto;
    position: relative;
    z-index: 3;
}

#container .box {
    opacity: 0.7;
    color: #dcc7a3;
    padding: 55px;
    margin-bottom: 40px;
    border-radius: 20px;
    text-align: justify;
    line-height: 2;
    position: relative;
    overflow: hidden;
}

#container .box::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 260px;
    height: 260px;
    background: radial-gradient(
        circle,
        rgba(210, 140, 65, 0.16) 0%,
        rgba(130, 80, 30, 0.08) 45%,
        transparent 75%
    );
    pointer-events: none;
}

#container .box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.02),
        transparent 25%,
        rgba(0,0,0,0.18)
    );
    pointer-events: none;
}

.contentcontainer {
    font-size: 1rem;
    line-height: 2.1;
    letter-spacing: 0.2px;
    color: #d7c3a0;
}

.contentcontainer b,
.contentcontainer strong {
    color: #f0d7aa;
    font-weight: 700;
}

.contentcontainer i,
.contentcontainer em {
    color: #b88953;
}

.contentcontainer a {
    color: #d0a065;
    text-decoration: none;
    transition: 0.25s ease;
}

.contentcontainer a:hover {
    color: #f5d7a7;
    text-shadow: 0 0 10px rgba(255,190,80,0.4);
}

blockquote {
    position: relative;
    margin: 42px 0;
    padding: 34px 38px 34px 42px;
    background: linear-gradient(
        145deg,
        rgba(42, 26, 15, 0.96) 0%,
        rgba(28, 16, 9, 0.98) 100%
    );
    border: 1px solid rgba(145, 98, 52, 0.35);
    border-left: 5px solid #a56d37;
    border-radius: 8px;
    color: #dbc4a0;
    font-style: italic;
    font-size: 1rem;
    line-height: 2;
    text-align: justify;
    box-shadow:
        0 12px 30px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,220,180,0.05),
        inset 0 -8px 18px rgba(0,0,0,0.35);
    overflow: hidden;
}

blockquote::before {
    content: "❦";
    position: absolute;
    top: 14px;
    left: 16px;
    color: rgba(212, 164, 104, 0.3);
    font-size: 1.6rem;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255,180,90,0.08);
}

blockquote::after {
    content: "";
    position: absolute;
    left: 40px;
    bottom: 14px;
    width: 120px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(201,150,90,0.6),
        transparent
    );
}

blockquote p {
    margin: 0;
}

blockquote cite {
    display: block;
    margin-top: 22px;
    color: #b98a56;
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

input,
textarea,
select {
    width: 40%;
    max-width: 420px;
    min-width: 220px;
    padding: 14px 18px;
    background: rgba(32, 20, 14, 0.92);
    border: 1px solid rgba(150,100,50,0.4);
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    color: #ead8bb;
    outline: none;
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.45),
        0 4px 18px rgba(0,0,0,0.2);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(205,145,75,0.8);
    box-shadow:
        0 0 0 4px rgba(190,120,60,0.14),
        0 8px 24px rgba(0,0,0,0.35);
    transform: translateY(-1px);
}

textarea {
    width: 50%;
    min-height: 140px;
    resize: vertical;
}

#navigation {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 18px;
    background: linear-gradient(
        180deg,
        rgba(62, 39, 20, 0.96) 0%,
        rgba(34, 20, 10, 0.98) 100%
    );
    border: 2px solid #6e4824;
    border-radius: 14px;
    box-shadow:
        0 0 0 2px rgba(20, 10, 4, 0.85),
        0 14px 40px rgba(0,0,0,0.72),
        inset 0 1px 0 rgba(255,220,170,0.08),
        inset 0 -2px 8px rgba(0,0,0,0.45);
    z-index: 9999;
}

#navigation::before,
#navigation::after {
    content: "✠";
    color: #c89a58;
    font-size: 1.2rem;
    padding: 0 10px;
    text-shadow: 0 0 10px rgba(255,180,90,0.2);
}

#navigation a {
    position: relative;
    padding: 16px 28px;
    color: #ead6b2;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    background: linear-gradient(
        180deg,
        rgba(92, 58, 30, 0.25) 0%,
        rgba(20, 12, 6, 0.08) 100%
    );
    border-left: 1px solid rgba(201,150,90,0.16);
    border-right: 1px solid rgba(0,0,0,0.45);
    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        text-shadow 0.25s ease;
    overflow: hidden;
}

#navigation a:first-of-type {
    border-left: none;
}

#navigation a:last-of-type {
    border-right: none;
}

#navigation a::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 7px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,220,170,0.18),
        transparent
    );
}

#navigation a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #c99654;
    box-shadow: 0 0 10px rgba(255,190,100,0.45);
    transition: width 0.25s ease;
}

#navigation a:hover {
    color: #fff1d0;
    background: linear-gradient(
        180deg,
        rgba(140, 90, 40, 0.34) 0%,
        rgba(52, 28, 12, 0.22) 100%
    );
    text-shadow: 0 0 10px rgba(255,210,120,0.3);
    transform: translateY(-2px);
}

#navigation a:hover::after {
    width: 68%;
}

#navigation a:active {
    transform: translateY(1px);
}

#navigation a.active {
    color: #fff4df;
    background: linear-gradient(
        180deg,
        rgba(160, 105, 50, 0.45) 0%,
        rgba(70, 38, 16, 0.35) 100%
    );
    box-shadow: inset 0 0 18px rgba(255,180,90,0.08);
}

#footer {
    padding: 80px 20px 140px;
    font-size: 14px;
    line-height: 2;
    color: rgba(225,205,180,0.7);
}

#footer a {
    color: #cf9960;
}

.clear,
.clearfooter {
    clear: both;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    #container {
        width: 92%;
        margin-top: -40px;
    }

    #container .box {
        padding: 32px;
    }

    #navigation {
        width: calc(100% - 30px);
        overflow-x: auto;
        justify-content: center;
        padding: 10px;
    }

    #navigation a {
        padding: 12px 18px;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    #navigation::before,
    #navigation::after {
        display: none;
    }

    input,
    textarea,
    select {
        width: 100%;
        min-width: unset;
    }

    textarea {
        width: 100%;
    }
}