:root {
    --bg-concrete: #CCCCCC;
    --bg-light: #E6E6E6;
    --bg-black: #000000;
    --text-main: #000000;
    --text-inverse: #FFFFFF;
    --accent-red: #FF0000;
    --accent-yellow: #FFFF00;
    --border-thick: 2px solid var(--bg-black);
    --border-thin: 1px solid var(--bg-black);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-concrete);
    color: var(--text-main);
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    cursor: default;
}

a {
    color: blue;
    text-decoration: none;
    cursor: default;
}

a:hover {
    background-color: var(--bg-black);
    color: var(--text-inverse);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    border-left: var(--border-thick);
    border-right: var(--border-thick);
    min-height: 100vh;
    background-color: var(--bg-light);
}

/* Typography */
h1,
h2,
h3 {
    text-transform: uppercase;
    margin: 0;
    font-weight: bold;
    letter-spacing: -1px;
}

/* Header */
.site-header {
    padding: 20px;
    border-bottom: var(--border-thick);
    background-color: var(--bg-concrete);
}

.site-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.slogan {
    font-size: 1.2rem;
    font-weight: bold;
    background-color: var(--accent-yellow);
    display: inline-block;
    padding: 2px 5px;
}

/* Sections */
section {
    border-bottom: var(--border-thick);
    padding: 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    background-color: var(--bg-black);
    color: var(--text-inverse);
    display: inline-block;
    padding: 5px 10px;
}

/* Manifesto */
.manifesto-block {
    background-color: var(--bg-black);
    color: var(--text-inverse);
    padding: 40px;
}

.manifesto-block p {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: justify;
}

/* Recent Inputs */
.feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: var(--border-thin);
}

.feed-list li {
    padding: 10px;
    border-bottom: var(--border-thin);
}

.feed-list li:last-child {
    border-bottom: none;
}

.log-date {
    font-weight: bold;
    background-color: var(--bg-concrete);
}

.log-type {
    color: var(--accent-red);
    font-weight: bold;
}

/* Concrete Archive */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0;
    border: var(--border-thin);
    background-color: var(--bg-black);
}

.gallery-item {
    border: var(--border-thin);
    background-color: var(--bg-light);
    padding: 10px;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    filter: grayscale(100%) contrast(120%);
    border: var(--border-thin);
}

.placeholder-img {
    width: 100%;
    height: 200px;
    background-color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    margin-bottom: 10px;
    filter: grayscale(100%) contrast(120%);
}

.caption {
    font-size: 0.9rem;
    border-top: var(--border-thin);
    padding-top: 5px;
}

/* Human Resources */
.terminal-window {
    background-color: var(--bg-black);
    color: #00FF00;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    border: 5px double var(--bg-concrete);
}

.terminal-entry {
    margin-bottom: 20px;
    border-bottom: 1px dashed #00FF00;
    padding-bottom: 10px;
}

.entry-title {
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Personal Stories */
.story-form-container {
    border: var(--border-thin);
    padding: 20px;
    background-color: var(--bg-concrete);
    margin-bottom: 20px;
}

.form-instruction {
    font-weight: bold;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--bg-light);
    border: var(--border-thick);
    padding: 10px;
    font-family: inherit;
    color: inherit;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: #fff;
}

.submit-btn {
    background-color: var(--bg-black);
    color: var(--text-inverse);
    border: none;
    padding: 10px 20px;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    cursor: default;
    border: 2px solid transparent;
}

.submit-btn:hover {
    background-color: var(--accent-red);
    color: var(--bg-black);
    border: 2px solid var(--bg-black);
}

.stories-output {
    border-top: var(--border-thick);
    padding-top: 20px;
}

.user-story {
    border: var(--border-thin);
    padding: 10px;
    margin-bottom: 10px;
    background-color: #fff;
}

.story-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    border-bottom: 1px dotted #000;
    padding-bottom: 2px;
}

/* Footer */
.anti-footer {
    padding: 20px;
    text-align: center;
    background-color: var(--bg-concrete);
    border-top: var(--border-thick);
}

.footer-links a {
    color: var(--text-main);
    font-weight: bold;
    margin: 0 5px;
}

.inefficiency-tag {
    margin-top: 20px;
    font-size: 0.7rem;
    opacity: 0.5;
    text-align: right;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border: var(--border-thin);
    background-color: var(--bg-light);
}

.data-table th,
.data-table td {
    padding: 10px;
    border: var(--border-thin);
    text-align: left;
}

.data-table th {
    background-color: var(--bg-black);
    color: var(--text-inverse);
    font-weight: bold;
}

.data-table tbody tr:nth-child(even) {
    background-color: var(--bg-concrete);
}

/* Raw Data Block */
.raw-data-block {
    border: var(--border-thin);
    background-color: var(--bg-black);
    padding: 10px;
}

.data-entry {
    margin-bottom: 20px;
    background-color: var(--bg-light);
    padding: 10px;
    border: var(--border-thin);
}

.data-entry:last-child {
    margin-bottom: 0;
}

.data-label {
    font-weight: bold;
    background-color: var(--accent-yellow);
    padding: 2px 5px;
    display: inline-block;
    margin-bottom: 5px;
}

.data-entry pre {
    margin: 0;
    padding: 10px;
    background-color: var(--bg-concrete);
    border: var(--border-thin);
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.85rem;
}

/* Responsive - Tablet and Mobile */
@media (max-width: 768px) {

    /* Container */
    .container {
        border-left: none;
        border-right: none;
    }

    /* Typography */
    .site-title {
        font-size: 1.8rem;
        word-break: break-word;
    }

    .slogan {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .section-title {
        font-size: 1.3rem;
        word-break: break-word;
    }

    /* Header */
    .site-header {
        padding: 15px;
    }

    /* Sections */
    section {
        padding: 15px;
    }

    /* Manifesto */
    .manifesto-block {
        padding: 20px 15px;
    }

    .manifesto-block p {
        font-size: 1.1rem;
    }

    /* Gallery */
    .grid-gallery {
        grid-template-columns: 1fr;
    }

    /* Table - Horizontal Scroll */
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
        font-size: 0.85rem;
    }

    /* Raw Data - Better wrapping */
    .data-entry pre {
        font-size: 0.7rem;
        white-space: pre-wrap;
        word-break: break-all;
    }

    /* Form */
    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 1rem;
    }

    .submit-btn {
        width: 100%;
        padding: 12px;
    }

    /* Footer */
    .footer-links {
        font-size: 0.8rem;
        word-break: break-word;
    }

    .footer-links a {
        display: inline-block;
        margin: 5px 2px;
    }
}

/* Extra small devices - Phones */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .slogan {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.1rem;
        padding: 4px 8px;
    }

    .manifesto-block p {
        font-size: 1rem;
    }

    section {
        padding: 10px;
    }

    .data-entry pre {
        font-size: 0.65rem;
        padding: 5px;
    }

    .data-table th,
    .data-table td {
        padding: 5px;
        font-size: 0.75rem;
    }
}