/* ==========================================
   TEMA & VARIABEL UTAMA
   ========================================== */
:root {
    --bg-color: #faf9f5;         /* Kertas Cream Editorial */
    --text-primary: #1a1918;    /* Hitam Tinta */
    --text-muted: #555555;      /* Abu-abu Mesin Tik */
    --border-color: #e2e0d8;    
    
    --postit-bg: #fffa78;
    --postit-shadow: rgba(0, 0, 0, 0.08);
    --postit-text: #111111;
    
    --font-heading: "Georgia", "Garamond", serif;
    --font-mono: "Courier New", Courier, monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.fiction-mode {
    --bg-color: #121314;
    --text-primary: #e0e0e0;
    --text-muted: #999999;
    --border-color: #2a2a2a;
    --postit-bg: #d4cc46;
    --postit-text: #050505;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column; /* Mengubah body menjadi ke bawah agar header di atas dan konten di bawah */
    min-height: 100vh;
    padding: 30px 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================
   TOP HEADER & NAVBAR HORIZONTAL (DI ATAS)
   ========================================== */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: auto;
    border-right: none;
    padding: 0;
}

.sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem; /* Font kecil sesuai permintaan */
    font-family: var(--font-mono);
    transition: color 0.2s;
    padding: 2px 0;
}

.sidebar a:hover,
.sidebar a.active {
    color: var(--text-primary);
    font-weight: 700;
}

.sidebar a.active::before {
    content: "■ ";
    color: #e6c600;
}

/* Navbar Pengubah Bahasa (EN | ID) */
.ul-navbar {
    list-style: none;
    display: flex;
    align-items: center;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 2px 4px;
}

.lang-btn.active {
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: underline;
}

.lang-divider {
    color: var(--border-color);
}

/* ==========================================
   MAIN WRAPPER
   ========================================== */
.main-wrapper {
    flex: 1;
    width: 100%;
}

/* ==========================================
   HEADER GRID (INTRO 2 KOLOM)
   ========================================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.intro-left, 
.intro-right {
    width: 100%;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.intro-meta-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Post-it Note */
.contact-status {
    background-color: var(--postit-bg);
    color: var(--postit-text);
    padding: 16px 20px;
    font-size: 0.82rem;
    line-height: 1.5;
    font-family: var(--font-mono);
    border-radius: 2px;
    box-shadow: 4px 4px 10px var(--postit-shadow);
    transform: rotate(-1deg);
    position: relative;
    margin-top: 10px;
}

.contact-status::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 35%;
    width: 35px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.intro-right p {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ==========================================
   KUNCI LAYOUT MAJALAH / KORAN (GRID KORAN)
   ========================================== */
.essays-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 35px 30px;
    border-top: 1px dashed var(--border-color);
    padding-top: 40px;
    align-items: start;
}

.essay-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.essay-item h2 {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.essay-item p {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* ==========================================
   RESPONSIF (TAMPILAN MOBILE)
   ========================================== */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sidebar {
        gap: 10px;
    }

    .essays-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-status {
        transform: rotate(0deg);
    }
} 


.archive-links {
    margin-bottom: 40px;
}

.archive-links h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.archive-title {
    margin-top: 25px;
}

.link-group {
    display: flex;
    flex-direction: row;  
    flex-wrap: wrap;      
    gap: 20px;            
    margin-top: 8px;
    margin-bottom: 15px;
    font-family: var(--font-mono);
}

.link-group a {
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.link-group a:hover {
    text-decoration: underline;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}