:root {
    /* Palette - Refined Monochrome */
    --bg-color: #faf9f6; /* Off-white/Eggshell */
    --text-color: #2c2c2c; /* Charcoal, softer than black */
    --accent-color: #707070; /* Muted grey */
    --link-color: #1a1a1a;
    --border-color: #e5e5e5;

    /* Spacing */
    --spacing-unit: 1.5rem;
    --content-width: 720px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Container --- */
.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header (Minimal) --- */
header {
    padding: 4rem 0 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.site-title:hover {
    border-color: var(--text-color);
}

/* --- Breadcrumbs --- */
.breadcrumb-nav {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    font-size: 0.7rem;
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

/* --- Main Article --- */
article {
    margin-bottom: 6rem;
}

h1.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Optional subhead styling */
.post-subhead {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

/* Typography for Content */
.post-content {
    font-size: 1.125rem; /* 18px */
    font-weight: 300;
}

.post-content p {
    margin-bottom: 1.5rem;
}

/* Drop cap for the first letter of the first paragraph */
.post-content > p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 6px;
}

.post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.post-content blockquote {
    border-left: 2px solid var(--text-color);
    padding-left: 20px;
    margin: 2rem 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #444;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    h1.post-title { font-size: 2.5rem; }
    .post-content { font-size: 1rem; }
    .breadcrumb-nav { font-size: 0.75rem; }
}

/* =========================================================
   Archive / Accordion Layout
   (exactly the template CSS you pasted)
   ========================================================= */

.archive-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    padding-left: 0.15rem;
}

.archive-root {
    margin-bottom: 6rem;
}

/* Reset default details marker and bullets */
details > summary {
    list-style: none;
    cursor: pointer;
}
details > summary::-webkit-details-marker {
    display: none;
}

/* Base Accordion Item */
.accordion-item {
    width: 100%;
    display: block;
}

/* Level 1 (Year) */
.accordion-item.level-1 {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item.level-1 > summary {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

/* Level 2 (Month) */
.accordion-item.level-2 {
    margin-left: 1.5rem; /* indentation */
    border-left: 1px solid var(--border-color); /* vertical guide line */
}

.accordion-item.level-2 > summary {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 0 1rem 1.5rem;
    color: var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Level 3 (Day) */
.accordion-item.level-3 {
    margin-left: 1.5rem;
}

.accordion-item.level-3 > summary {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem 0 0.8rem 1rem;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Level 4 (Content links) */
.accordion-content {
    padding: 0.5rem 0 1.5rem 2.5rem;
}

.archive-link {
    display: block;
    text-decoration: none;
    color: var(--accent-color);
    font-size: 1rem;
    padding: 5px 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.archive-link:hover {
    color: var(--text-color);
    transform: translateX(5px);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* Toggle icon (+ / -) */
summary::after {
    content: '+';
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* State: open */
details[open] > summary::after {
    content: '−';
    color: var(--text-color);
}

/* Subtle fade-in animation */
details[open] > div,
details[open] > details {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}
