/* =================================================================
   ARID FORGE // GLOBAL DESIGN SYSTEM 
   ================================================================= */
:root {
    --bg-color: #0a0c10;
    --text-primary: #e2e8f0;
    --text-muted: #64748b;
    --terminal-green: #00ff66;
    --terminal-dim: #00662a;
    --grid-line: #1e293b;
    --font-stack: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 15px;
    line-height: 1.6;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* =================================================================
   STRUCTURAL NAVIGATION & LAYOUT
   ================================================================= */
.return-node {
    margin-bottom: 2rem;
}

.return-node a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.return-node a:hover {
    color: var(--terminal-green);
}

header {
    border-bottom: 2px double var(--terminal-dim);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

header h1 {
    color: var(--terminal-green);
    font-size: 1.8rem;
    letter-spacing: -0.05em;
}

/* Two-Column Grid System */
.content-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Modifier for notes or wider layout */
.content-grid.even {
    grid-template-columns: 1.2fr 1.2fr;
}

.narrative-column section {
    margin-bottom: 2.5rem;
}

.narrative-column h2, .gallery-section h2, .inquiry-section h2, .log-column h2 {
    color: var(--terminal-green);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--grid-line);
    padding-bottom: 0.25rem;
}

.narrative-column p {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    text-align: justify;
}

.data-column {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* =================================================================
   ASSET FRAMEWORK & TERMINAL PLACEHOLDERS
   ================================================================= */
.image-container {
    border: 1px solid var(--grid-line);
    background-color: #0f172a;
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Placeholder fallback base */
    color: var(--terminal-green);
    font-family: var(--font-stack);
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    background-color: #07090e;
}

/* CSS trick to render beautiful placeholder when src is broken */
.image-container img::after {
    content: "[ ASSET PENDING : " attr(alt) " ]";
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #07090e;
    color: var(--terminal-green);
    font-family: var(--font-stack);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 1rem;
    text-align: center;
    box-sizing: border-box;
    border: 1px dashed var(--terminal-dim);
}

.image-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding-left: 0.25rem;
    margin-bottom: 1rem;
}

/* Tidy Bottom Image Grid */
.gallery-section {
    margin-bottom: 3rem;
    border-top: 1px solid var(--grid-line);
    padding-top: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
}

/* =================================================================
   DATA TABLES
   ================================================================= */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    border: 1px solid var(--grid-line);
}

.data-table th {
    background-color: #0f172a;
    color: var(--terminal-green);
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid var(--grid-line);
    font-weight: 600;
}

.data-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #1e293b;
    color: var(--text-primary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Dignified Action Node */
.inquiry-section {
    border-top: 1px solid var(--grid-line);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.inquiry-box {
    border: 1px solid var(--terminal-dim);
    padding: 1.5rem;
    background-color: #07090e;
    border-radius: 3px;
}

/* =================================================================
   NOTES & LEDGER STYLES
   ================================================================= */
.category-tag {
    font-size: 0.8rem;
    color: var(--terminal-green);
    background-color: #0f172a;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    border: 1px solid var(--terminal-dim);
    font-weight: bold;
}

.log-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.log-entry {
    border-left: 2px solid var(--grid-line);
    padding-left: 1rem;
}

.log-entry.pending {
    border-left-color: var(--terminal-dim);
    opacity: 0.6;
}

.log-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.log-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.log-title a:hover {
    color: var(--terminal-green);
    text-decoration: underline;
}

.log-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.status-banner {
    border: 1px dashed var(--terminal-dim);
    padding: 1rem;
    background-color: #07090e;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border-radius: 3px;
}

/* =================================================================
   INDEX PAGE ELEMENTS
   ================================================================= */
.brand-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.logo-frame {
    width: 80px;
    height: 80px;
    border: 1px solid var(--terminal-green);
    background-image: var(--logo-url, url('./logo.png'));
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.brand-text h1 {
    color: var(--terminal-green);
    font-size: 1.8rem;
    letter-spacing: -0.05em;
}

.manifesto {
    color: var(--text-primary);
    max-width: 700px;
    border-left: 3px solid var(--terminal-dim);
    padding-left: 1rem;
}

.spoke-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.spoke-item a {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--grid-line);
    padding: 1rem;
    border-radius: 3px;
    transition: all 0.15s ease-in-out;
}

.spoke-item a:hover {
    border-color: var(--terminal-green);
    background-color: #0f172a;
}

.spoke-id {
    color: var(--terminal-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

.spoke-title {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.spoke-description {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    color: var(--terminal-green);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-column p, .footer-column ul {
    list-style: none;
}

footer {
    border-top: 1px solid var(--grid-line);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
/* =================================================================
   HOMEPAGE REDESIGN LAYOUT
   ================================================================= */
.hero-section {
    margin-bottom: 3.5rem;
}

.hero-subtitle {
    color: var(--terminal-green);
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin: 1.2rem 0 0.4rem 0;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.hero-paragraph {
    max-width: 750px;
    border-left: 3px solid var(--terminal-dim);
    padding-left: 1.2rem;
    color: var(--text-primary);
    text-align: justify;
    line-height: 1.7;
}

.pillars-section {
    margin-bottom: 3.5rem;
}

.section-title {
    color: var(--terminal-green);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed var(--grid-line);
    padding-bottom: 0.25rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.pillar-card {
    border: 1px solid var(--grid-line);
    padding: 1.5rem;
    background-color: #07090e;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.2s ease-in-out;
}

.pillar-card:hover {
    border-color: var(--terminal-green);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.07);
    transform: translateY(-2px);
}

.pillar-header h3 {
    color: var(--terminal-green);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--terminal-dim);
    padding-bottom: 0.3rem;
}

.pillar-card p {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pillar-links {
    list-style: none;
    margin-top: auto;
    border-top: 1px dashed var(--grid-line);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pillar-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: color 0.15s ease-in-out;
}

.pillar-links li a::before {
    content: "-> ";
    color: var(--terminal-green);
    margin-right: 0.5rem;
    font-weight: bold;
}

.pillar-links li a:hover {
    color: var(--text-primary);
}

.generalist-section {
    margin-bottom: 3.5rem;
}

.generalist-box {
    border: 2px double var(--terminal-dim);
    padding: 2rem;
    background-color: #07090e;
    border-radius: 4px;
}

.generalist-box h2 {
    color: var(--terminal-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.generalist-box p {
    color: var(--text-primary);
    line-height: 1.7;
    text-align: justify;
}

.notes-shortcut {
    margin-bottom: 3.5rem;
}

.notes-box a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px dashed var(--terminal-dim);
    padding: 1rem 1.5rem;
    background-color: #07090e;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
}

.notes-box a:hover {
    border-color: var(--terminal-green);
    background-color: #0f172a;
}

.notes-title {
    font-weight: bold;
    letter-spacing: 0.05em;
}

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

/* =================================================================
   TELEMETRY STRIP — COMPACT TICKER
   ================================================================= */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

@keyframes scan-line {
    0%   { background-position: 0 -100%; }
    100% { background-position: 0 200%; }
}

.telemetry-section {
    margin-bottom: 2.5rem;
}

.telemetry-strip {
    position: relative;
    border: 1px solid var(--terminal-dim);
    background-color: #07090e;
    border-radius: 3px;
    overflow: hidden;
    font-family: var(--font-stack);
    font-size: 0.78rem;
}

/* Subtle repeating scan shimmer */
.telemetry-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 102, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 60%;
    animation: scan-line 4s linear infinite;
    pointer-events: none;
}

.strip-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.75rem;
    background-color: #050709;
    border-bottom: 1px solid var(--terminal-dim);
}

.strip-label {
    color: var(--terminal-green);
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.strip-dot {
    color: var(--terminal-green);
    animation: pulse-dot 2s ease-in-out infinite;
    font-size: 0.65rem;
    line-height: 1;
}

.strip-dot.offline {
    color: #ef4444;
    animation: none;
}

.strip-status {
    color: var(--terminal-green);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.strip-status.offline {
    color: #ef4444;
}

.strip-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0;
    padding: 0.45rem 0.75rem;
    row-gap: 0.2rem;
}

.strip-metric {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0 0.7rem;
    border-right: 1px solid var(--grid-line);
    white-space: nowrap;
}

.strip-metric:first-child {
    padding-left: 0;
}

.strip-metric:last-child {
    border-right: none;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.metric-value {
    color: var(--terminal-green);
    font-weight: bold;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.strip-footer {
    padding: 0.25rem 0.75rem;
    border-top: 1px dashed var(--grid-line);
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-muted);
    background-color: #050709;
}

.console-timestamp { letter-spacing: 0.02em; }
.console-source    { font-style: italic; }

/* =================================================================
   MOBILE RESPONSIVENESS
   ================================================================= */
@media (max-width: 768px) {
    body { padding: 1rem; }
    .content-grid, .content-grid.even { grid-template-columns: 1fr; gap: 2rem; }
    .data-column { position: static; }
    .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
    .brand-container { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pillars-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .generalist-box { padding: 1.5rem; }
    .console-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .strip-metrics { row-gap: 0.35rem; }
}
