:root {
/* background scale */
--color-bg-primary: #6e1408; /* refined deep red (less brown, more stable) */
--color-bg-surface: #8f2312; /* lifted red for cards/sections */
/* text hierarchy */
--color-text-primary: #f2e8d8; /* main cream */
--color-text-secondary: #e3d6c3; /* softer cream */
--color-text-muted: #cbbca7; /* metadata */
/* accents */
--color-accent-gold: #d4a017; /* controlled gold */
--color-accent-gold-hover: #e6b800;
/* utility */
--color-border-subtle: rgba(242, 232, 216, 0.18);
--color-focus: #d4a017;
}

/* w3-style compatibility classes */
.w3-sevilla-red {
background-color: var(--color-bg-primary) !important;
}
.w3-text-sevilla-cream {
color: var(--color-text-primary) !important;
}

/* base */
html {
background-color: var(--color-bg-primary);
color: var(--color-text-primary);
}
body {
background-color: var(--color-bg-primary);
color: var(--color-text-primary);
font-family: "Merryweather", Georgia, "Times New Roman", serif; /* editorial, Andalusian/Mediterranean feel */
line-height: 1.7; /* increased for readability on dark background */
margin: 0;
padding: 0;
}

/* typography */
h1, h2, h3, h4, h5, h6 {
color: var(--color-accent-gold);
font-family: "Alegreya", serif;
font-weight: 700;
letter-spacing: 0.02em; /* subtle elegance */
}
p {
color: var(--color-text-primary);
}
small, .meta {
color: var(--color-text-muted);
}

/* links */
a {
color: var(--color-accent-gold);
text-decoration: none;
transition: color 0.2s ease-in-out;
}
a:hover {
color: var(--color-accent-gold-hover);
text-decoration: underline;
}
a:focus-visible {
outline: 2px solid var(--color-focus);
outline-offset: 2px;
border-radius: 3px;
}

/* navbar */
.navbar {
background: linear-gradient(to bottom, #8a1d0d, #841800);
color: var(--color-text-primary);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.8rem 1.5rem;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: none;
border-bottom: 1px solid rgba(242, 232, 216, 0.15);
}
/* brand / logo */
.navbar-brand {
font-size: 1.4rem;
font-weight: 600;
color: var(--color-text-primary);
letter-spacing: 0.04em;
text-decoration: none;
}
/* navigation links container */
.navbar-nav {
display: flex;
gap: 1.5rem;
}
/* individual links */
.navbar a {
color: var(--color-text-secondary);
text-decoration: none;
font-size: 0.95rem;
position: relative;
transition: color 0.2s ease;
}
/* hover effect: subtle gold shift */
.navbar a:hover {
color: var(--color-accent-gold);
}
/* underline animation (center-out) */
.navbar a::after {
content: "";
position: absolute;
left: 50%;
bottom: -4px;
width: 0%;
height: 2px;
background-color: var(--color-accent-gold);
transition: all 0.25s ease;
transform: translateX(-50%);
}
.navbar a:hover::after {
width: 100%;
}
/* active link */
.navbar a.active {
color: var(--color-text-primary);
}
.navbar a.active::after {
width: 100%;
background-color: var(--color-text-primary);
}
/* focus accessibility */
.navbar a:focus-visible {
outline: 2px solid var(--color-accent-gold);
outline-offset: 3px;
border-radius: 3px;
}
/* optional divider (for structure) */
.navbar-divider {
width: 1px;
height: 20px;
background-color: rgba(242, 232, 216, 0.25);
}
@media (max-width: 768px) {
.navbar-nav {
display: none;
flex-direction: column;
}
.navbar-nav.open {
display: flex;
}
}

/* articles */
article {
margin-bottom: 3rem;
border-bottom: 1px solid var(--color-border-subtle);
padding-bottom: 2rem;
}
.article {
margin-bottom: 3rem;
}
.article-header {
margin-bottom: 2rem;
}
.article-title {
font-family: "Alegreya", serif;
font-size: 2.4rem;
font-weight: 900;
line-height: 1.2;
margin-bottom: 0.5rem;
}
.article-meta {
color: var(--color-text-muted);
font-size: 0.9rem;
}
.article-content {
font-family: "Merriweather", serif;
font-size: 1.05rem;
line-height: 1.75;
}
.article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 {
margin-top: 2rem;
}
blockquote {
border-left: 3px solid var(--color-accent-gold);
padding-left: 1rem;
margin: 1.5rem 0;
color: var(--color-text-secondary);
font-family: "Alegreya", "Merryweather", serif;
font-style: italic;
}
.article-content p {
margin-bottom: 1.2rem;
}
.article-content p:first-of-type::first-letter { /* drop cap */
font-family: "Alegreya", "Merryweather", serif;
float: left;
font-size: 3.5rem;
line-height: 0.9;
padding-right: 0.4rem;
padding-top: 0.1rem;
color: var(--color-accent-gold);
}
.article-footer {
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 1px solid var(--color-border-subtle);
}
.share {
display: flex;
flex-direction: column;
gap: 0.8rem;
}
.share-label {
font-size: 0.9rem;
color: var(--color-text-muted);
letter-spacing: 0.05em;
text-transform: uppercase;
}
.share-buttons {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.share-btn {
background-color: transparent;
color: var(--color-text-secondary);
border: 1px solid var(--color-border-subtle);
padding: 0.4rem 0.7rem;
font-size: 0.85rem;
border-radius: 20px;
cursor: pointer;
transition: all 0.2s ease;
}
.share-btn:hover {
color: var(--color-accent-gold);
border-color: var(--color-accent-gold);
}
.share-btn:focus-visible {
outline: 2px solid var(--color-accent-gold);
outline-offset: 2px;
}

/* bench grid and cards */
.bench-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
padding: 20px 0;
}
.bench-card {
background-color: var(--color-bg-surface); /* structured depth instead of black overlay */
padding: 18px;
border: 1px solid var(--color-border-subtle);
border-radius: 10px;
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bench-card:hover {
transform: translateY(-4px);
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* lists */
ul {
list-style-type: none;
padding-left: 0;
}

/* layout */
.content-container {
max-width: 70%;
margin: 0 auto;
padding: 2rem 1.5rem;
}
.navbar-inner {
display: flex;
align-items: center;
justify-content: space-between;
/* max-width: 1100px; */
margin: 0 auto;
width: 100%;
}
.main-content {
padding-top: 1rem;
}
.site-footer {
margin-top: 3rem;
padding: 2rem 1.5rem;
border-top: 1px solid var(--color-border-subtle);
}
.footer-inner {
max-width: 70%;
margin: 0 auto;
color: var(--color-text-muted);
}
