/* main.css - The "Physical Intelligence" Aesthetic (Clean, No Boxes) */

:root {
    --bg-cream: #f6f5f0; 
    --text-main: #000000;
    --text-muted: #666666;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-main);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 15px;
    line-height: 1.6;
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
    overflow-y: scroll;
}

.spline-container {
    display: none;
}

/* Layout for the top header area */
nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline; 
    margin-bottom: 4rem;
}

.logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    font-weight: 400; 
    cursor: pointer;
    letter-spacing: -0.5px;
}

/* Clean, static navigation links */
.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--text-main); 
    transition: opacity 0.2s ease; 
}

.nav-links a:hover {
    opacity: 0.5; 
}

/* The Smooth Slide-Up Section Logic */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: slideUpReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpReveal {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Typography & Spacing */
h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Clean List Items (No Boxes) */
.job, .blog-list-item, .random-block {
    margin-bottom: 2.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.2rem;
}

.item-title {
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1rem;
}

.item-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.item-description {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Journal Specifics */
.blog-list-item {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.blog-list-item:hover {
    opacity: 0.5;
}

#post-reader {
    display: none; /* Hidden by default until a post is clicked */
}

.back-btn {
    display: inline-block;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-main);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    padding-bottom: 2px;
    margin-bottom: 2rem;
    transition: opacity 0.2s ease;
}

.back-btn:hover {
    opacity: 0.5;
}

/* Random Section Images */
.random-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: grayscale(100%);
    margin-top: 1rem;
    margin-bottom: 2rem;
}