body {
    background-color: #eff0eb;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #32331c;
}

::selection {
    background: #b2b564;
    color: #eff0eb;
}

.nav {
    display: block;
    text-align: center;
}

.nav a {
    font-size: 24px;
    margin-left: 10px;
    margin-right: 10px;
    text-decoration: none;
    cursor: pointer;
}

.nav-layer {
    display: inline;
    position: relative;
} 

.nav-closed:not(:hover) {
    display: none;
}

.nav-open, .nav-closed:hover {
    border: 4px solid #b2b564;
    background: #eff0eb;
    border-radius: 10px;
    width: fit-content;
    padding: 10px;
    position: absolute;
    left: 0px;
    top: 30px;
    outline: none;
    z-index: 1;
}

.nav-open a, .nav-closed:hover a {
    display: block;
    width: max-content;
}

.nav-sep {
    display: inline;
    font-size: 24px;
    margin-left: 10px;
    margin-right: 10px;
    text-decoration: none;
    color: #7d7f46;
}

.article-box {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(125, 127, 70, 0.2);
    transition: border-color 0.2s ease;
    width: calc(100% - 3.5rem);
    margin-left: auto;
    margin-right: auto;
}

.article-box:hover {
    border-color: #b2b564;
}

.article-box-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.3rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.article-box:hover .article-box-title {
    text-decoration: underline;
}

.article-box-date {
    font-size: 0.85rem;
    color: #7d7f46;
    display: block;
    margin-bottom: 0.75rem;
}

.article-box .s1 {
    margin-top: 0.5rem;
    color: #4a4b2e;
    font-size: 0.95rem;
}

.article-box .s1:first-of-type {
    margin-top: 0;
}

.article-title {
    font-size: 32px;
    color: #32331c;
    text-align: center;
    margin-top: 20px;
}

.article-subtitle {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #4a4b2e;
    margin: 1.4rem;
    text-align: center;
}

.article-content {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.article-content .paragraph {
    text-indent: 30px;
    margin-top: 5px;
}

.article-content ul {
    margin-top: 0px;
    margin-bottom: 0px;
}

.section-header {
    font-size: 24px;
    font-family: 'Libre Baskerville', Georgia, serif;
    color: #32331c;
    margin-top: 20px;
    border-bottom: 2px solid #b2b564;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.header-1 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: 'Libre Baskerville', Georgia, serif;
    border-bottom: 2px solid #b2b564;
    width: fit-content;
}

.s1 {
    margin-top: 20px;
}

span {
    color: #32331c;
    display: block;
}

a {
    color: #7d7f46;
}

.link-button {
    align-items: center;
    gap: 0.4rem;
    background: #7d7f46;
    color: #eff0eb;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #b2b564;
}

.stats-table {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(125, 127, 70, 0.2);
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: max-content;
}

.stats-table table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table .stats-table-key {
    font-weight: 600;
    color: #7d7f46;
    width: 100px;
    padding: 0.4rem 0;
    padding-right: 1rem;
    vertical-align: top;
}

.stats-table .stats-table-value {
    padding-right: 1rem;
    color: #32331c;
}

.blockquote {
    border-left: 4px solid #b2b564;
    margin-top: 1.5rem;
    padding-left: 1rem;
    color: #4a4b2e;
    font-style: italic;
}

/* Media card grid within sections */
.section:has(.media-card) {
    display: block;
}

.section:has(.media-card) .section-header {
    display: block;
}

.section:has(.media-card) > .media-card {
    display: inline-block;
    vertical-align: top;
}

.media-card {
    display: inline-block;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.5rem;
    border: 1px solid rgba(125, 127, 70, 0.2);
    transition: border-color 0.2s ease, transform 0.2s ease;
    width: 160px;
    height: 270px;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
}

.media-card:hover {
    border-color: #b2b564;
    transform: translateY(-2px);
}

.media-card-art {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin: 0 auto 0.5rem auto;
}

.media-card-info {
    display: block;
}

.media-card-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.85rem;
    text-decoration: none;
    display: block;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    color: #32331c;
}

.media-card:hover .media-card-title {
    text-decoration: underline;
}

.media-card-subtitle {
    font-size: 0.8rem;
    color: #7d7f46;
    display: block;
}