:root {
    --cloud-dancer: #f0ede9;
    --moss: #4a5d4e;
    --soil: #3c2f2f;
    --clay: #a37b6f;
    --terminal: #00ff41;
}

* { box-sizing: border-box; }

body {
    background-color: var(--cloud-dancer);
    color: var(--soil);
    font-family: 'Garamond', 'Georgia', serif;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.mono-terminal {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Optimized Header Container */
.status-container {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
    padding: 10px 0;
    margin-bottom: 20px;
    border-top: 1px solid var(--clay);
    border-bottom: 1px solid var(--clay);
}

/* The Ticker Animation: Keeps things clean even with 20 statuses */
.status-scroll {
    display: flex;
    white-space: nowrap;
    animation: status-ticker 30s linear infinite;
}

.status-scroll span {
    padding: 0 40px;
    opacity: 0.7;
}

@keyframes status-ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Ensure the title doesn't get squished */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Keeps the hero area consistent */
    padding: 40px 5%;
}

.system-status {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0.6;
}

.oversized {
    margin: 20px 0;
    /* Prevent title from breaking on small screens */
    word-break: keep-all; 
}

.tagline {
    font-size: 1.2rem;
    margin: 20px 0;
    font-style: italic;
}

.random-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--clay);
    color: var(--clay);
    cursor: pointer;
    transition: all 0.3s;
}

.random-btn:hover {
    background: var(--clay);
    color: white;
}

#content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 60px 10%;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover { transform: translateY(-8px); }

.card-header { margin-bottom: 20px; }
.card h2 { margin: 10px 0; font-size: 2rem; font-weight: 400; }

.action-bar { margin-top: 30px; }

.cta-btn {
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 2px solid var(--soil);
    color: var(--soil);
}

.gnome-card { border-top: 5px solid var(--moss); background: #f9faf9; }
.chakra-card { border-top: 5px solid var(--clay); background: #fffcfb; }
.retro-card { background: #1a1a1a; color: var(--terminal); }
.retro-card h2 { color: white; }
.retro-card .cta-btn { color: var(--terminal); border-color: var(--terminal); }

.architect-log {
    background: var(--moss);
    color: white;
    padding: 80px 10%;
    text-align: center;
}

.log-container { max-width: 600px; margin: 0 auto; }

footer {
    padding: 40px;
    text-align: center;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .hero { padding: 60px 5%; }
    .oversized { font-size: 18vw; }
}
