/* --- Core Medieval Canvas --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #F5EFEB; /* Soft base background */
    font-family: 'Lora', serif;
    color: #2C2523; /* Warm off-black text */
    line-height: 1.6;
}

h1, h2, h3, h4, .site-title, .nav-links a {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

/* --- Shared Structure Container --- */
.parchment-section, .form-scroll {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: #FDFBF7; /* Aged parchment scroll look */
    border: 4px double #D4AF37; /* Gold manuscript border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-radius: 4px;
}

h2 {
    color: #5A1827; /* Rich royal burgundy */
    font-size: 2.2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 10px;
}

.intro-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #61524E;
    margin-bottom: 30px;
}

/* --- Header Styling --- */
header {
    background: #231B19;
    color: #FDFBF7;
}

.banner-accent {
    height: 6px;
    background: linear-gradient(90deg, #5A1827, #D4AF37, #5A1827);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.medieval-crest {
    font-size: 2.5rem;
}

.site-title h1 {
    font-size: 2.4rem;
    color: #D4AF37;
    letter-spacing: 1px;
}

.site-subtitle {
    font-size: 0.95rem;
    color: #C5B2AE;
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 25px;
    border-top: 1px solid #443532;
    padding-top: 15px;
    width: 100%;
    justify-content: center;
}

.nav-links a {
    color: #FDFBF7;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #D4AF37;
}

/* --- Marketplace Grid --- */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.vendor-card {
    background: #FAF6EE;
    border: 1px solid #E2D4C5;
    padding: 25px;
    border-radius: 4px;
    position: relative;
    border-top: 4px solid #5A1827;
}

.vendor-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background: #D4AF37;
    color: #231B19;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: sans-serif;
}

.vendor-card h3 {
    color: #5A1827;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* --- Acts Layout --- */
.act-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.act-block {
    background: #FAF6EE;
    border: 1px solid #E2D4C5;
    border-left: 5px solid #D4AF37;
    padding: 25px;
    border-radius: 4px;
}

.act-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: bold;
    color: #5A1827;
    margin-bottom: 10px;
    border-bottom: 1px dashed #E2D4C5;
    padding-bottom: 5px;
}

.act-block h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Markdown Schedule Table Support --- */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #FAF6EE;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #E2D4C5;
}

th {
    background-color: #5A1827;
    color: #FDFBF7;
    font-family: 'Cinzel', serif;
}

tr:nth-child(even) td {
    background-color: #F5EFEB;
}

/* --- Image Gallery Blocks --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background: #FAF6EE;
    border: 2px solid #D4AF37;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
    text-align: center;
}

.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid #5A1827;
}

.gallery-caption {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #5A1827;
    margin-top: 8px;
    font-weight: bold;
}

/* --- Contact Proclamations --- */
.medieval-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    color: #5A1827;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    border: 1px solid #C5B2AE;
    background: #FAF6EE;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 4px;
}

.form-group input:focus, .form-group select:focus, .form-guess textarea:focus {
    outline: none;
    border-color: #D4AF37;
    background: #FDFBF7;
}

.scroll-btn, .medieval-btn {
    background: #5A1827;
    color: #FDFBF7;
    border: 2px solid #D4AF37;
    padding: 15px 30px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s;
}

.scroll-btn:hover, .medieval-btn:hover {
    background: #7A2235;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- Footer Area --- */
footer {
    background: #1C1514;
    color: #C5B2AE;
    margin-top: 60px;
    padding: 40px 20px 20px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid #2C2523;
    padding-bottom: 30px;
}

.footer-info { max-width: 450px; }
.footer-info h3 { color: #D4AF37; margin-bottom: 10px; }

.footer-links h4 { color: #FDFBF7; margin-bottom: 10px; }
.footer-links a {
    display: block;
    color: #C5B2AE;
    text-decoration: none;
    margin-bottom: 8px;
}
.footer-links a:hover { color: #D4AF37; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
}

/* --- Responsive Adjustments --- */
@media(max-width: 600px) {
    .nav-links { flex-direction: column; gap: 10px; }
    .parchment-section, .form-scroll { padding: 20px; margin: 15px; }
    .act-meta { flex-direction: column; gap: 5px; }
}