/* LOGICENGINE SYSTEM SPECIFICATION
   VERSION: 2026.03.08
   AESTHETIC: RATIONALIST / ARTIFEX / SUBTLE
   A BAUGH GALACTICA COMPANY
*/

:root {
    --bg: #0a0a0a;
    --text: #e0e0e0;
    --accent: #00ff66;
    /* Cyber Green */
    --border: #262626;
    --card-bg: #111111;
    --muted: #888888;
    --grid-size: 40px;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 0.9;
    margin-bottom: 1rem;
}

h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--accent);
}

p.manifesto {
    font-size: 1.25rem;
    max-width: 800px;
    margin-bottom: 4rem;
    color: var(--muted);
}

.breadcrumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    display: block;
}

/* NAVIGATION */
nav {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-weight: 900;
    text-decoration: none;
    color: var(--text);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent);
}

.nav-motto {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--muted);
}

.sub-nav {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
    background: #000;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    white-space: nowrap;
}

.sub-nav a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-decoration: none;
    color: var(--muted);
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.sub-nav a:hover,
.sub-nav a.active {
    color: var(--accent);
}

.sub-nav a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* WORKBENCH GRID */
main {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1px;
    background-color: var(--border);
    border: 1px solid var(--border);
}

.work-card {
    background-color: var(--card-bg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.status-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

/* INLINE CONTINUITY SPEC-LIST */
.spec-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
}

.spec-list li {
    display: inline;
}

.spec-list li:not(:last-child)::after {
    content: " / ";
    margin: 0 8px;
    opacity: 0.4;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    margin-top: 4rem;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
}

/* Flex balancing for centering signature */
.status-bar span,
.status-bar a {
    flex: 1;
}

.status-bar span:last-child {
    text-align: right;
}

.root-link {
    text-align: center;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.root-link:hover {
    color: var(--accent);
    /* Subtle hint of the active system color on hover */
}
