@font-face {
    font-family: "Minion Pro";
    src: url("/assets/fonts/MinionPro-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Minion Pro";
    src: url("/assets/fonts/MinionPro-It.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Minion Pro";
    src: url("/assets/fonts/MinionPro-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Minion Pro";
    src: url("/assets/fonts/MinionPro-BoldIt.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
}

/* ── Variables ───────────────────────────────────────────── */
:root {
    --text: #243e36;
    --muted: #7ca982;
    --accent: #c2a83e;
    --border: #f1f7ed;
    --bg: #e0eec6;
    --font-body: "Minion Pro", Georgia, serif;
    --font-mono: "Minion Pro", Georgia, serif;
    --font-heading: "Minion Pro", Georgia, serif;
}

/* ── Reset & Base ────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.35;
    padding: 0 1.5rem;
}

/* ── Layout ─────────────────────────────────────────────── */
.site-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    width: 200px;
    min-width: 200px;
    padding: 3rem 2rem 3rem 0;
    border-right: 1px solid var(--border);
}

.sidebar-inner {
    position: sticky;
    top: 3rem;
}

.sidebar h1 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.sidebar h1 a {
    color: var(--text);
    text-decoration: none;
}

.sidebar h1 a:hover {
    color: var(--accent);
}

.sidebar .tagline {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 0.3rem;
    margin-bottom: 1.5rem;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

nav a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-decoration: none;
}

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

/* ── Main Content ────────────────────────────────────────── */
.main-content {
    flex: 1;
    padding: 3rem 0 4rem 3rem;
    min-width: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    max-width: 900px;
    margin: 0 auto;
}

/* ── Publication / Entry List ────────────────────────────── */
.entry-list {
    list-style: none;
    padding: 0;
}

.entry-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.97rem;
}

.entry-list li:first-child {
    border-top: 1px solid var(--border);
}

.entry-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

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

.post-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.post-list li:first-child {
    border-top: 1px solid var(--border);
}

.post-list a {
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
}

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

.post-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    display: block;
    margin-top: 0.2rem;
}

/* ── Individual Post ─────────────────────────────────────── */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.post-header h1 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.35;
}

.post-header .post-date {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

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

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    html {
        font-size: 15px;
    }

    .site-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 2rem 1.25rem 1.5rem;
    }

    .sidebar-inner {
        position: static;
    }

    nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .main-content {
        padding: 2rem 1.25rem 3rem;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 14px;
    }
    .sidebar {
        padding: 1.5rem 1rem;
    }
    .main-content {
        padding: 1.5rem 1rem 3rem;
    }
}

.site-header h1 {
    font-family: var(--font-heading);
}
