/* ===== ARCHIVAL DOSSIER THEME ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-paper: #fcfcfc;
    --ink: #0A0A0A;
    --redacted: #ff3b3b;
    --gray-border: #e0e0e0;
}

body {
    background-color: var(--bg-paper);
    /* SUBTLE PAPER TEXTURE */
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    color: var(--ink);
    font-family: 'Source Code Pro', monospace;
    line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Source Sans 3', sans-serif;
    text-transform: uppercase;
    font-weight: 900;
}

/* ===== DOSSIER ELEMENTS ===== */
.stamped {
    border: 3px solid var(--redacted);
    color: var(--redacted);
    display: inline-block;
    padding: 5px 15px;
    font-family: 'Source Sans 3';
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-3deg);
    margin-bottom: 20px;
    opacity: 0.8;
}

/* ===== HEADER ===== */
.main-header {
    border-bottom: 4px double var(--ink);
    padding: 60px 20px;
    text-align: center;
}

.logo {
    max-width: 400px;
    height: auto;
    filter: contrast(1.2);
}

/* ===== THE TRANSMISSION ===== */
.transmission-block {
    max-width: 850px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(0,0,0,0.03);
    border: 1px dashed var(--ink);
    position: relative;
}

.transmission-text {
    font-size: 1.15em;
    font-weight: 500;
    border-left: 4px solid var(--ink);
    padding-left: 25px;
}

/* ===== ACTION HUB ===== */
.action-hub {
    background-color: var(--ink);
    color: var(--bg-paper);
    padding: 50px 20px;
    text-align: center;
}

.hub-link {
    display: inline-block;
    color: var(--bg-paper);
    border: 2px solid var(--bg-paper);
    padding: 12px 25px;
    margin: 10px;
    text-decoration: none;
    font-weight: 900;
    font-family: 'Source Sans 3';
    transition: 0.2s;
}

.hub-link:hover {
    background: var(--bg-paper);
    color: var(--ink);
}

/* ===== CONTENT SECTIONS ===== */
.section {
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 20px;
}

.section-label {
    border-bottom: 2px solid var(--ink);
    margin-bottom: 50px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* ===== THE FIX: IMAGE CLIPPING ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px;
}

.card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    /* FIX: STOP THE CLIPPING */
    aspect-ratio: 2/3;
    object-fit: contain; 
    background-color: #fff;
    border: 1px solid var(--gray-border);
    padding: 10px; /* Gives the books a "physical" feel */
    box-shadow: 2px 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.thumb-1-1 { aspect-ratio: 1/1 !important; }

.item-title {
    font-weight: 900;
    font-size: 1em;
    border-top: 1px solid var(--ink);
    padding-top: 10px;
}

/* ===== ARCHITECT FOOTER ===== */
.architect-footer {
    border-top: 4px double var(--ink);
    background: #f4f4f4;
    padding: 80px 20px;
}

.id-badge-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.id-badge {
    width: 150px;
    border: 2px solid var(--ink);
    filter: grayscale(100%) contrast(1.1);
}

footer {
    padding: 60px;
    text-align: center;
    font-size: 0.8em;
    font-family: 'Source Sans 3';
}
