#header {
    background-image: url('images/head.jpg');
    background-repeat: no-repeat;
    background-position: center;
    height: 480px;
    width: 1200px;
    margin: 40px auto 0 auto; /* top margin, horizontal auto for centering */
    position: relative;
    z-index: 0;
    border: 6px dashed #98928B;
    box-shadow: 
        inset 0 -20px 30px rgba(200, 180, 160, 0.15),
        inset 0 20px 30px rgba(255, 250, 240, 0.08),
        0 6px 30px rgba(80, 60, 40, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 95% 98%, 5% 98%, 0 92%);
    opacity: 0.96;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&family=Libre+Baskerville&family=Noto+Sans+Runic&family=Alumni+Sans+Pinstripe&display=swap');

body {
    background: #f9f6f3;
    margin: 0;
    padding: 0;
    font-family: 'Libre Baskerville', serif;
    color: #5f534a;
}

#navigation {
    width: 70%;
    margin-top: 20px;
    padding: 28px 24px;
    background: linear-gradient(145deg, #fdfcf9, #e9e2da);
    border: 2px solid #dcd3c8;
    border-radius: 80px / 25px; /* smooth pill-curve, like unfurling scroll */
    box-shadow: 0 6px 30px rgba(190, 180, 170, 0.25);
    font-family: 'Cinzel Decorative', serif;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0.94;
    position: relative;
}

#navigation a {
    padding: 12px 22px;
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
    color: #5c4f3b;
    background: linear-gradient(to right, #f4ede5, #e8ded3);
    border: 1.5px solid #c3b8a9;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(210, 200, 190, 0.2);
    position: relative;
}

#navigation a:hover {
    background: linear-gradient(to right, #e8ded3, #f4ede5);
    color: #3f3529;
    box-shadow: 0 0 14px rgba(180, 170, 160, 0.4);
    transform: translateY(-2px);
}


#navigation a::before {
    content: "☥";
    font-family: 'Noto Sans Runic', serif;
    font-size: 20px;
    margin-right: 8px;
    color: #998675;
}

#navigation a:hover::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    background: radial-gradient(ellipse at center, rgba(255, 240, 220, 0.2), transparent);
    z-index: -1;
    animation: pulseGlow 2.8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.03);
    }
}

#content {
    margin-top: 20px;
    padding-bottom: 10px;
    position: relative;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.contentx {
    margin-bottom: 60px;
    padding: 35px;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 1.2px;
    border-radius: 20px;
    background: linear-gradient(to bottom right, rgba(245, 240, 235, 0.6), rgba(230, 220, 210, 0.4));
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(180, 170, 160, 0.2);
    position: relative;
}

.contentx::before {
    content: "☥ ☥ ☥ ☥ ☥";
    font-family: 'Noto Sans Runic', serif;
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 18px;
    color: rgba(150, 130, 110, 0.3);
    letter-spacing: 10px;
}

.contentx::after {
    content: "☥ ☥ ☥ ☥ ☥";
    font-family: 'Noto Sans Runic', serif;
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 18px;
    color: rgba(150, 130, 110, 0.3);
    letter-spacing: 10px;
}

blockquote {
    font-family: 'Georgia', serif;
    font-size: 22px;
    color: #5c4f3b;
    background: linear-gradient(145deg, #fdfcf9, #e9e2da);
    padding: 40px 50px;
    margin: 60px auto;
    border: 2px solid #dcd3c8;
    border-radius: 60px / 20px; /* match h1/nav curves */
    box-shadow: 0 4px 25px rgba(180, 170, 160, 0.25);
    max-width: 900px;
    position: relative;
    line-height: 1.8;
    letter-spacing: 0.8px;
    text-align: center;
    clip-path: none; /* remove polygon for softer shape */
    transition: box-shadow 0.3s ease;
}

blockquote:hover {
    box-shadow: 0 6px 35px rgba(190, 180, 170, 0.4);
}

blockquote::before,
blockquote::after {
    content: "𓆣"; /* Egyptian scarab symbol */
    font-family: 'Segoe UI Symbol', serif;
    font-size: 36px;
    color: rgba(150, 130, 110, 0.2);
    position: absolute;
    opacity: 0.25;
}

blockquote::before {
    top: 10px;
    left: 20px;
}

blockquote::after {
    bottom: 10px;
    right: 20px;
}
textarea,
input,
select {
    width: 40%;
    max-width: 500px;
    padding: 16px 20px;
    margin: 16px 0;
    font-family: 'Tahoma', sans-serif;
    font-size: 18px;
    color: #6e5c50;
    background: linear-gradient(145deg, #f3eee7, #e1d6cb);
    border: 2px solid #cbbdad;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    caret-color: #9f8f83;
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
    border-color: #b9a391;
    background-color: #f8f5f0;
    box-shadow: 0 0 14px rgba(200, 180, 160, 0.6), inset 0 0 6px rgba(255, 255, 255, 0.08);
}

h1 {
    display: inline-block;
    padding: 24px 48px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 30px;
    text-transform: uppercase;
    color: #5c4f3b;
    letter-spacing: 2px;
    background: linear-gradient(145deg, #fdfcf9, #e9e2da);
    border: 2px solid #dcd3c8;
    border-radius: 60px / 20px; /* soft arch like nav */
    box-shadow: 0 4px 20px rgba(180, 170, 160, 0.25);
    text-shadow: 1px 1px 3px rgba(220, 210, 200, 0.5);
    position: relative;
    opacity: 0.96;
}

h1::before {
    content: "𓂀";
    font-family: 'Segoe UI Symbol', serif;
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 22px;
    color: rgba(100, 80, 60, 0.2);
}

h1::after {
    content: "𓆣";
    font-family: 'Segoe UI Symbol', serif;
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 22px;
    color: rgba(100, 80, 60, 0.2);
}

#footer {
    position: relative;
    font-family: 'Tahoma', sans-serif;
    font-size: 16px;
    color: #7b6c61;
    text-align: center;
    padding: 80px 25px 40px;
    margin-top: 100px;
    background: linear-gradient(to top, #f0e8e0, #ddd0c5);
    box-shadow: inset 0 10px 20px rgba(100, 85, 70, 0.1);
    clip-path: polygon(0 0, 5% 20px, 10% 0, 15% 20px, 20% 0, 25% 20px, 30% 0, 35% 20px, 40% 0, 45% 20px, 50% 0, 55% 20px, 60% 0, 65% 20px, 70% 0, 75% 20px, 80% 0, 85% 20px, 90% 0, 95% 20px, 100% 0, 100% 100%, 0 100%);
}

#footer::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #ddd0c5, transparent);
    opacity: 0.2;
    pointer-events: none;
}

#footer a {
    color: #a38c75;
    text-decoration: none;
    border-bottom: 1px dashed #c6b5a1;
    transition: all 0.3s ease;
}

#footer a:hover {
    color: #6e5b4d;
    border-bottom: 1px solid #e0d3c5;
    text-shadow: 0 0 8px rgba(240, 220, 200, 0.5);
    transform: scale(1.05);
}

a:link,
a:visited {
    color: #8a7663;
    font-size: 24px;
    text-decoration: none;
    font-family: 'Alumni Sans Pinstripe', sans-serif;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    position: relative;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px #eee7df; 
}

a:hover {
    color: #5c4a3b; 
    border-bottom: 2px solid #c2a98b;
    background: linear-gradient(to right, rgba(230, 210, 180, 0.3), transparent);
    transform: translateY(-1px);
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, #d4bfa9, #bfa68d); 
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

i, em {
    color: #a68e79; 
    font-style: italic;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #f2ebe4, #e9e0d8); 
    padding: 4px 7px;
    border-radius: 4px;
    box-shadow: inset 0 0 4px rgba(200, 190, 180, 0.2);
    transition: all 0.3s ease;
}

i:hover, em:hover {
    background: linear-gradient(to right, #e9e0d8, #e0d7cf);
    color: #A08C81;
}

b, strong {
    color: #fdfaf6;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    background-color: #d8c6b4;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 6px rgba(230, 210, 190, 0.2),
                inset 0 0 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

b:hover, strong:hover {
    background-color: #e9d8c7;
    color: #A08C81;
}
