:root {
    --gold: #c7a66a;
    --ivory: #f5e4c4;
    --text: #f1e5d3;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #111;
    background-image: url('../images/Wall.png');
    background-repeat: repeat-y;
    background-position: top center;
    background-size: 100% auto;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    width: 100%;
    background: transparent;
    border: none;
}

.header-inner {
    width: min(100% - 40px, 1400px);
    margin: 0 auto;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.site-brand {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    color: var(--ivory);
    text-decoration: none;
}

.brand-name {
    font-size: 36px;
    line-height: 1.1;
    font-weight: bold;
}

.brand-tagline {
    font-size: 18px;
    line-height: 1.4;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 28px;
}

.main-nav a {
    color: var(--ivory);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--gold);
}

.site-main {
    width: min(100% - 40px, 1400px);
    margin: 0 auto;
    flex: 1;
    min-height: 60vh;
}

.site-footer {
    background: transparent;
    border: none;
}

.footer-inner {
    width: min(100% - 40px, 1400px);
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
}

.footer-inner p {
    margin: 0;
    color: var(--ivory);
    font-size: 16px;
}

@media (max-width: 1100px) {
    .header-inner {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        padding: 18px 0;
    }

    .site-brand {
        align-items: center;
        text-align: center;
    }

    .main-nav {
        justify-content: center;
        gap: 14px 22px;
    }

    .main-nav a {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header-inner,
    .site-main,
    .footer-inner {
        width: calc(100% - 24px);
    }

    .brand-name {
        font-size: 32px;
    }

    .brand-tagline {
        font-size: 17px;
    }

    .main-nav {
        gap: 12px 18px;
    }

    .main-nav a {
        font-size: 14px;
    }
}
