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

:root {
    --deep-navy: #0f1b2d;
    --navy-shifted: #162035;
    --metallic-silver: #8a9bb0;
    --star-white: #e8eef5;
    --botanical-rose: #c4786a;
    --gold-accent: #c8a84b;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--deep-navy);
    color: var(--star-white);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: var(--navy-shifted);
    border-right: 1px solid rgba(138, 155, 176, 0.2);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(138, 155, 176, 0.15);
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold-accent);
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--metallic-silver);
    transition: background 0.3s, color 0.3s;
}

.nav-item:hover {
    background: rgba(200, 168, 75, 0.08);
    color: var(--star-white);
}

.nav-item.active {
    background: rgba(200, 168, 75, 0.12);
    color: var(--gold-accent);
}

.nav-icon {
    flex-shrink: 0;
    animation: pulse-attention 3s ease-in-out infinite;
}

@keyframes pulse-attention {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav-label {
    font-size: 0.9rem;
    font-weight: 400;
}

/* Main Content */
.content {
    margin-left: 220px;
    flex: 1;
    min-height: 100vh;
}

.section {
    display: none;
    min-height: 100vh;
    padding: 4rem 3rem;
    clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 calc(100% - 3vw));
    background: var(--deep-navy);
}

.section.active {
    display: block;
}

.section:nth-child(even) {
    background: var(--navy-shifted);
}

.section-inner {
    max-width: 720px;
    margin: 0 auto;
}

.constellation-header {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2.8rem;
    color: var(--star-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--metallic-silver);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2.2rem;
    color: var(--star-white);
    margin-bottom: 2rem;
}

/* Entry Cards */
.entry-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.entry-card {
    background: rgba(22, 32, 53, 0.6);
    border: 1px solid rgba(138, 155, 176, 0.15);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

.entry-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-2px);
}

.entry-constellation {
    margin-bottom: 1rem;
}

.entry-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--gold-accent);
    margin-bottom: 0.75rem;
}

.entry-card p {
    color: var(--metallic-silver);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Journal Entry */
.journal-entry {
    border-left: 2px solid var(--gold-accent);
    padding-left: 2rem;
}

.journal-entry p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--star-white);
    font-size: 1rem;
}

.entry-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--botanical-rose);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.data-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(200, 168, 75, 0.06);
    border: 1px solid rgba(200, 168, 75, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.data-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--metallic-silver);
}

.data-value {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--gold-accent);
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 1rem 0.5rem;
    }
    .sidebar-title,
    .nav-label {
        display: none;
    }
    .sidebar-header {
        justify-content: center;
    }
    .nav-item {
        justify-content: center;
        padding: 0.75rem;
    }
    .content {
        margin-left: 60px;
    }
    .section {
        padding: 3rem 1.5rem;
    }
    .page-title {
        font-size: 2rem;
    }
}
