/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0c0c0c;
    --bg-nav: #0a0a0a;
    --text: #c4bfb2;
    --text-muted: #8a8578;
    --text-dim: #555049;
    --accent: #8b3a3a;
    --accent-hover: #a84a4a;
    --heading: #d4cfc2;
    --link: #a84a4a;
    --link-hover: #c86868;
    --border: #1e1e1c;
    --sepia: #b8a878;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.85;
    min-height: 100vh;
    font-size: 17px;
}

::selection {
    background: #3a2020;
    color: #d4cfc2;
}

a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: rgba(168, 74, 74, 0.4);
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

/* ===== TOP NAV BAR ===== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-nav);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-name {
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.08em;
}

.site-name:hover {
    color: var(--heading);
}

.topbar nav {
    display: flex;
    gap: 28px;
}

.topbar nav a {
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
}

.topbar nav a:hover,
.topbar nav a.active {
    color: var(--text);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: grayscale(30%) contrast(1.1);
    opacity: 0.6;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(12, 12, 12, 0.2) 0%,
        rgba(12, 12, 12, 0) 30%,
        rgba(12, 12, 12, 0.4) 70%,
        rgba(12, 12, 12, 0.95) 100%
    );
}

.hero-text {
    position: absolute;
    bottom: 36px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 24px;
}

.hero-text blockquote p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto;
}

.hero-text blockquote cite {
    display: block;
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 10px;
    font-style: normal;
    letter-spacing: 0.12em;
}

/* ===== LAYOUT ===== */
.page-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 50px 24px 80px;
}

/* ===== PAGE TITLE (like "welcome") ===== */
.page-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 36px;
    letter-spacing: 0.02em;
}

/* ===== POST ENTRIES (blog-style, stacked) ===== */
.post {
    margin-bottom: 50px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--border);
}

.post:last-child {
    border-bottom: none;
}

.post-with-image {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: start;
}

.post-image {
    width: 180px;
    border: 1px solid var(--border);
    display: block;
    filter: grayscale(20%) contrast(1.05);
    opacity: 0.75;
    transition: opacity 0.4s ease;
}

.post-image:hover {
    opacity: 0.9;
}

.post-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.3;
    margin-bottom: 4px;
}

.post-title a {
    color: var(--heading);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--accent-hover);
}

.post-date {
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.18em;
    margin-bottom: 14px;
    display: block;
}

.post p {
    margin-bottom: 12px;
    color: var(--text);
}

.post p strong {
    color: var(--heading);
    font-weight: 600;
}

.post p em {
    font-style: italic;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tag {
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    border: 1px solid var(--border);
    padding: 1px 8px;
}

/* ===== ABOUT PAGE ===== */
.about-content {
    max-width: 640px;
}

.about-section {
    margin-bottom: 34px;
}

.about-section h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 10px;
}

.about-section p {
    margin-bottom: 12px;
}

.about-section ul {
    list-style: none;
    padding: 0;
}

.about-section ul li {
    padding-left: 16px;
    margin-bottom: 5px;
    position: relative;
}

.about-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

/* ===== WIDE IMAGE ===== */
.wide-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid var(--border);
    filter: grayscale(20%) contrast(1.05);
    opacity: 0.7;
    margin-bottom: 10px;
}

.figure {
    margin: 24px 0;
}

.figure figcaption {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 6px;
}

/* ===== EPIGRAPH ===== */
.epigraph {
    border-left: 2px solid var(--accent);
    padding: 8px 0 8px 20px;
    margin: 28px 0;
}

.epigraph p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.epigraph cite {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 6px;
    font-style: normal;
}

/* ===== FULL POST PAGE ===== */
.post-full {
    max-width: 720px;
}

.post-header {
    margin-bottom: 36px;
}

.post-full-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.3;
    margin-bottom: 6px;
}

.post-header .post-date {
    margin-bottom: 12px;
}

.post-body p {
    margin-bottom: 16px;
    text-align: justify;
}

.post-body h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--heading);
    margin: 36px 0 14px;
}

.post-body ul,
.post-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.post-body li {
    margin-bottom: 6px;
}

.post-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 5px;
    border: 1px solid var(--border);
    color: var(--accent-hover);
}

.post-body pre {
    background: #0e0e0e;
    border: 1px solid var(--border);
    padding: 18px 20px;
    margin: 20px 0;
    overflow-x: auto;
    line-height: 1.55;
}

.post-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.post-body strong {
    color: var(--heading);
    font-weight: 600;
}

.post-body .epigraph {
    margin-top: 40px;
}

.post-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.post-nav a {
    font-family: 'Cormorant SC', Georgia, serif;
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.post-nav a:hover {
    color: var(--accent-hover);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 28px 24px 36px;
    border-top: 1px solid var(--border);
    max-width: 780px;
    margin: 0 auto;
}

.footer p {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer .footer-quote {
    font-style: italic;
    margin-top: 4px;
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        gap: 10px;
        padding: 14px 20px;
    }

    .topbar nav {
        gap: 18px;
    }

    .hero {
        height: 300px;
    }

    .hero-text blockquote p {
        font-size: 1.1rem;
    }

    .page-body {
        padding: 30px 18px 60px;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .post-with-image {
        grid-template-columns: 1fr;
    }

    .post-image {
        width: 100%;
        max-width: 240px;
    }

    .post-title {
        font-size: 1.35rem;
    }

    .wide-image {
        height: auto;
    }
}

@media (max-width: 480px) {
    .topbar nav {
        gap: 12px;
    }

    .topbar nav a {
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.4rem;
    }
}
