/* The Parchment Background & Base Font */
body {
    background-color: #f3ecd6;
    color: #1a1a1a;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* The Main Page Container */
.container {
    max-width: 900px;
    background-color: #fbf8f1;
    margin: 40px 20px;
    padding: 40px;
    border: 2px solid #1a1a1a;
    box-shadow: 6px 6px 0px #1a1a1a;
}

/* Classic Bookman/Georgia Headings */
h1, h2, h3 {
    font-family: 'Bookman Old Style', Georgia, serif;
    color: #000;
}

h1 {
    text-align: center;
    font-size: 2.2em;
    border-bottom: 3px double #1a1a1a;
    padding-bottom: 15px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Simple Navigation Menu */
nav {
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}
nav a {
    color: #1a1a1a;
    text-decoration: none;
    margin: 0 15px;
    text-transform: uppercase;
}
nav a:hover {
    text-decoration: underline;
}

/* The Classic 2-Column Rulebook Text */
.rulebook-text {
    column-count: 2;
    column-gap: 40px;
    column-rule: 1px solid #ccc;
    text-align: justify;
}

/* Old-School Drop Cap */
.drop-cap {
    float: left;
    font-size: 4em;
    line-height: 0.8;
    padding-right: 8px;
    padding-top: 4px;
    font-family: 'Bookman Old Style', Georgia, serif;
    font-weight: bold;
}

/* Boxed Adventure Spotlight (Main Page) */
.adventure-box {
    border: 4px double #1a1a1a;
    padding: 25px;
    margin: 40px 0;
    background-color: #fff;
    text-align: center;
    column-span: all;
}
.adventure-box h2 {
    margin-top: 0;
}
.buy-button {
    display: inline-block;
    background-color: #1a1a1a;
    color: #fbf8f1;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Bookman Old Style', Georgia, serif;
    margin-top: 15px;
    border: 2px solid #1a1a1a;
    transition: 0.2s;
}
.buy-button:hover {
    background-color: #fbf8f1;
    color: #1a1a1a;
}

/* Blog Previews (Main Page) */
.blog-post {
    border-top: 1px dashed #666;
    padding-top: 20px;
    margin-top: 20px;
    break-inside: avoid;
}
.blog-date {
    font-style: italic;
    font-size: 0.9em;
    color: #555;
    display: block;
    margin-bottom: 5px;
}
.blog-post h3 a {
    color: #000;
    text-decoration: none;
    border-bottom: 2px dotted #1a1a1a;
    transition: color 0.2s;
}
.blog-post h3 a:hover {
    color: #444;
    border-bottom: 2px solid #1a1a1a;
}
.read-more {
    font-weight: bold;
    font-style: italic;
    color: #1a1a1a;
    text-decoration: none;
}
.read-more:hover {
    text-decoration: underline;
}

/* Full Blog Post Elements */
.post-meta {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-bottom: 40px;
}
.read-aloud {
    background-color: #e8e2cf;
    border: 1px solid #1a1a1a;
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
    break-inside: avoid;
}
table.osr-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    break-inside: avoid;
}
table.osr-table th, table.osr-table td {
    border: 1px solid #1a1a1a;
    padding: 8px;
    text-align: left;
}
table.osr-table th {
    background-color: #1a1a1a;
    color: #f3ecd6;
    font-family: 'Bookman Old Style', Georgia, serif;
    text-transform: uppercase;
}
table.osr-table tr:nth-child(even) {
    background-color: #e8e2cf;
}
.author-box {
    border-top: 3px double #1a1a1a;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    column-span: all;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .rulebook-text {
        column-count: 1;
    }
    .container {
        margin: 10px;
        padding: 20px;
    }
}

/* Module Cover Art */
.module-cover {
    max-width: 250px; /* Adjust this number to make the cover larger or smaller */
    height: auto;
    border: 2px solid #1a1a1a;
    box-shadow: 4px 4px 0px #1a1a1a;
    margin: 10px auto 20px auto;
    display: block;
}

/* On larger screens, float the image to the left so text wraps around it nicely */
@media (min-width: 600px) {
    .module-cover {
        float: left;
        margin: 5px 25px 15px 0;
    }
    .adventure-box {
        text-align: left; /* Changes text from centered to left-aligned to wrap the image */
    }
}

/* The Team / Cabal Section */
.team-section {
    margin-top: 50px;
    border-top: 3px double #1a1a1a;
    padding-top: 20px;
}
.team-section h2 {
    text-align: center;
    margin-bottom: 40px;
}
.cabal-member {
    margin-bottom: 40px;
    clear: both; /* Ensures the next bio drops below the previous one */
    overflow: hidden; /* Clears the floated image */
}
.cabal-portrait {
    width: 200px;
    height: auto;
    float: left; /* Pushes the image to the left so text wraps around it */
    margin: 0 25px 15px 0;
    border: 2px solid #1a1a1a;
    box-shadow: 4px 4px 0px #1a1a1a;
    background-color: #fff;
    padding: 5px; /* Gives it a slight polaroid/photo border look inside the heavy black line */
}

/* Mobile Responsiveness for Portraits */
@media (max-width: 600px) {
    .cabal-portrait {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
    }
    .cabal-member {
        text-align: center;
    }
}

/* Blog Post Images */
.blog-img-full {
    column-span: all; /* Spans across both text columns */
    width: 100%;
    height: auto;
    border: 3px solid #1a1a1a;
    margin: 30px 0 5px 0;
    box-sizing: border-box;
}

.blog-img-single {
    width: 100%;
    height: auto;
    border: 2px solid #1a1a1a;
    margin: 20px 0 5px 0;
    break-inside: avoid; /* Prevents the image from splitting awkwardly across columns */
    box-sizing: border-box;
}

/* Image Captions */
.img-caption {
    text-align: center;
    font-style: italic;
    font-family: 'Bookman Old Style', Georgia, serif;
    font-size: 0.85em;
    color: #333;
    margin-bottom: 25px;
    break-inside: avoid;
}