/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;700&display=swap');

:root {
    --bg-color: #fcfbf7;
    /* Ancient paper */
    --text-color: #1a1a1a;
    /* Ink black */
    --accent-color: #4a4a4a;
    /* Graphite */
    --border-color: #d1d1cf;
    --header-font: 'Cinzel', serif;
    --body-font: 'Cardo', serif;
}

[data-theme="dark"] {
    --bg-color: #1a1a1c;
    /* Dark slate */
    --text-color: #e0e0e0;
    --accent-color: #a0a0a0;
    --border-color: #333;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Compact Header Styles */
/* Header Styles */
/* Header Styles */
/* Header Styles */
.site-header {
    position: relative;
    width: 100%;
    height: 250px;
    /* Space to show the watercolor */
    margin-bottom: 3rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Soften the painting */
    filter: grayscale(40%) brightness(0.9);
    /* Subtle monochromatic touch */
}

.header-split-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.flourish-part {
    height: 60px;
    /* Adjust for banner height */
    width: auto;
    max-width: 350px;
    object-fit: contain;
    opacity: 0.9;
}

[data-theme="dark"] .flourish-part {
    filter: invert(1);
}

h1.site-title {
    font-family: var(--header-font);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    background-color: rgba(252, 251, 247, 0.8);
    /* Semi-transparent paper mask */
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] h1.site-title {
    background-color: rgba(26, 26, 28, 0.8);
}

h1.site-title a {
    color: var(--text-color) !important;
    text-decoration: none;
    border: none;
}

[data-theme="dark"] h1.site-title a {
    color: var(--text-color) !important;
}

h1.page-title {
    font-family: var(--header-font);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

article {
    margin-bottom: 4rem;
}

/* Typography */
p {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--accent-color);
}


a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
    transition: border-bottom 0.2s;
}

a:hover {
    border-bottom: 1px solid var(--accent-color);
}

.meta {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
    margin-bottom: 2rem;
}

[data-theme="dark"] .meta {
    color: #aaa;
}

/* Toggle Switch */
.theme-toggle {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem;
    cursor: pointer;
    font-family: var(--header-font);
    font-size: 0.8rem;
    z-index: 10;
}

/* Post list */
.post-list {
    list-style: none;
    padding: 0;
}

.post-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.post-item a {
    font-family: var(--header-font);
    font-size: 1.4rem;
    border: none;
}

.post-date {
    font-size: 0.9rem;
    color: #888;
    white-space: nowrap;
    margin-left: 1rem;
}