:root {
    --ink-black: #0d0d0f;       /* Deep, soot/ink base */
    --ledger-grey: #16161a;     /* Panel background, dark slate */
    --bone-white: #e6e4de;      /* Muted, antique paper/bone text */
    --rot-brown: #8c8275;       /* Earthy, dried-leaf text color for metadata */
    --oxblood: #8a1a1a;         /* The alchemical/destructive crimson accent */
    --border-fine: #2a2a30;     /* Thin ink line for grid layouts */
}

body {
    background-color: var(--ink-black);
    color: var(--bone-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

#observatory-frame {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Hickman-Style Minimalist Occult Header */
header {
    border-bottom: 1px solid var(--oxblood);
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.classification-tag {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.7em;
    color: var(--oxblood);
    letter-spacing: 3px;
    display: block;
}

header h1 {
    margin: 5px 0 20px 0;
    /* Apply your new vintage font here exclusively */
    font-family: "Jim Nightshade", cursive;
    font-weight: 400;
    font-style: normal;
    
    /* Adjusted formatting for this specific display font */
    font-size: 3.5em;       /* Raised the size since script fonts tend to look smaller */
    letter-spacing: 1px;    /* Reduced spacing so the script letters connect naturally */
}

#station-nav a {
    color: var(--rot-brown);
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
    font-weight: bold;
    margin-right: 25px;
    transition: color 0.2s;
}

#station-nav a:hover, #station-nav a.active {
    color: var(--bone-white);
    border-bottom: 1px solid var(--oxblood);
    padding-bottom: 2px;
}

/* Sovereign Grid System */
#station-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
}

/* The Data Ledger (Sidebar) */
#data-ledger {
    background-color: var(--ledger-grey);
    border: 1px solid var(--border-fine);
    padding: 30px;
    height: fit-content;
}

.ledger-section {
    margin-bottom: 40px;
}

.ledger-section h3 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8em;
    color: var(--oxblood);
    border-bottom: 1px solid var(--border-fine);
    padding-bottom: 10px;
    margin-top: 0;
    letter-spacing: 2px;
}

/* Lifecycle Progress Bars */
.lifecycle-item {
    margin-bottom: 25px;
}
.lifecycle-item label {
    display: block;
    font-size: 0.85em;
    margin-bottom: 8px;
    color: var(--bone-white);
}
.ink-bar {
    background-color: var(--ink-black);
    border: 1px solid var(--border-fine);
    height: 6px;
}
.ink-fill {
    background-color: var(--oxblood);
    height: 100%;
}
.matrix-status {
    font-size: 0.7em;
    color: var(--rot-brown);
    font-family: monospace;
    display: block;
    margin-top: 5px;
}

.metrics-list {
    list-style: none;
    padding: 0;
    font-size: 0.8em;
    font-family: monospace;
    color: var(--rot-brown);
}
.metrics-list li {
    margin-bottom: 12px;
}
.metrics-list strong {
    color: var(--bone-white);
}

/* Specimen Vault (Main Workspace) */
#specimen-vault {
    background-color: var(--ledger-grey);
    border: 1px solid var(--border-fine);
    padding: 40px;
}

.vault-header h2 {
    font-family: 'Georgia', serif;
    font-weight: 400;
    margin-top: 0;
    letter-spacing: 1px;
}
.vault-header p {
    color: var(--rot-brown);
    font-size: 0.95em;
}

/* Portfolio Cards */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.specimen-card {
    background-color: var(--ink-black);
    border: 1px solid var(--border-fine);
    transition: border-color 0.3s;
}

.specimen-card:hover {
    border-color: var(--oxblood);
}

.ink-placeholder {
    height: 200px;
    background-color: #111114;
    border-bottom: 1px solid var(--border-fine);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: var(--rot-brown);
    text-align: center;
    padding: 15px;
    position: relative;
}

.card-id {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: monospace;
    font-size: 0.75em;
    color: var(--oxblood);
}

.specimen-meta {
    padding: 20px;
}
.specimen-meta h4 {
    margin: 0 0 8px 0;
    font-family: 'Georgia', serif;
    font-weight: 400;
    color: var(--bone-white);
    letter-spacing: 1px;
}
.specimen-meta p {
    margin: 0;
    font-size: 0.85em;
    color: var(--rot-brown);
}

.ink-rule {
    border: 0;
    height: 1px;
    background: var(--border-fine);
    margin: 50px 0;
}

/* Technical Field Logs */
.ledger-post {
    display: flex;
    gap: 30px;
}
.post-timestamp {
    font-family: monospace;
    color: var(--oxblood);
    font-size: 0.85em;
    white-space: nowrap;
}
.post-body h3 {
    margin: 0 0 8px 0;
    font-family: 'Georgia', serif;
    font-weight: 400;
}
.post-body h3 a {
    color: var(--bone-white);
    text-decoration: none;
}
.post-body h3 a:hover {
    color: var(--oxblood);
}
.post-body p {
    margin: 0;
    color: var(--rot-brown);
    font-size: 0.9em;
}

footer {
    text-align: center;
    padding: 40px 0 10px 0;
    font-size: 0.75em;
    color: var(--rot-brown);
    font-family: monospace;
    letter-spacing: 1px;
}

/* Mobile Balance */
@media (max-width: 950px) {
    #station-grid {
        grid-template-columns: 1fr;
    }
}