/* --------------------------------------------------
   80S EDITORIAL MAGAZINE & FALL ESTHETIC ARCHITECTURE
----------------------------------------------------- */

/* Centralizing your design colors across the entire magazine */
:root {
    --pumpkin: #d97443;
    --matcha: #768956;
    --cream: #fbf7f0;
    --espresso: #2b1f1d;
    --blush-fall: #e5b299;
}

/* Base Document Configuration */
body {
    background-color: #fbf7f0;
    /* Creates a subtle retro newsprint print/halftone texture */
    background-image: radial-gradient(#e5b299 1px, transparent 1px);
    background-size: 24px 24px;
    color: #2b1f1d;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    padding: 30px 15px;
    line-height: 1.4;
}

/* Master Structure Container */
.magazine-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: #fbf7f0;
    border: 5px solid #2b1f1d;
    box-shadow: 14px 14px 0px #2b1f1d;
    padding: 35px;
    position: relative;
}

/* --------------------------------------------------
   MASTHEAD & HEADER LOGIC (Authentic Print Look)
----------------------------------------------------- */
.masthead {
    text-align: center;
    border-bottom: 5px double #2b1f1d;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.issue-data {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #d97443;
    border-bottom: 2px solid #2b1f1d;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.magazine-title {
    font-family: 'DM+Serif+Display', serif;
    font-size: 6rem;
    text-transform: uppercase;
    margin: 5px 0;
    line-height: 0.85;
    letter-spacing: -3px;
    font-style: italic;
    color: #2b1f1d;
    text-shadow: 4px 4px 0px #e5b299;
}

.tagline {
    font-size: 1.05rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    background: #e5b299;
    display: inline-block;
    padding: 4px 15px;
    border: 2px solid #2b1f1d;
    margin-top: 10px;
}

/* --------------------------------------------------
   NAVIGATION DECK
----------------------------------------------------- */
.magazine-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 35px;
    border-bottom: 2px solid #2b1f1d;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.magazine-nav a {
    flex: 1;
    text-align: center;
    min-width: 130px;
    font-weight: bold;
    text-decoration: none;
    color: #2b1f1d;
    background: #fbf7f0;
    padding: 8px 10px;
    border: 2px solid #2b1f1d;
    box-shadow: 4px 4px 0px #2b1f1d;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.1s ease-in-out;
}

.magazine-nav a:hover, 
.magazine-nav a.active {
    background: #d97443;
    color: #fbf7f0;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2b1f1d;
}

/* --------------------------------------------------
   THE MAGAZINE COVER MATRIX GRID
----------------------------------------------------- */
.magazine-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 35px;
}

/* Adaptive Layout for Mobile Screens */
@media (max-width: 820px) {
    .magazine-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Cover Feature Layout (Left Column) */
.cover-feature {
    border-right: 2px dashed #2b1f1d;
    padding-right: 35px;
}

@media (max-width: 820px) {
    .cover-feature {
        border-right: none;
        padding-right: 0;
        border-bottom: 2px dashed #2b1f1d;
        padding-bottom: 35px;
    }
}

.badge {
    background: #2b1f1d;
    color: #fbf7f0;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    display: inline-block;
    padding: 2px 10px;
    margin-bottom: 10px;
}

.headline-primary {
    font-family: 'DM+Serif+Display', serif;
    font-size: 3.4rem;
    margin: 0 0 10px 0;
    line-height: 1.05;
    color: #2b1f1d;
}

.author-line {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--matcha);
    margin: 0 0 20px 0;
}

/* Big Graphic Cover Block Container */
.cover-art-frame {
    width: 100%;
    height: 380px;
    background: #e5b299;
    border: 3px solid #2b1f1d;
    box-shadow: 8px 8px 0px var(--matcha);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.placeholder-text {
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* True Print Newspaper Multi-Column Prose Layout */
.newspaper-columns {
    column-count: 2;
    column-gap: 25px;
    column-rule: 1px solid #2b1f1d;
    text-align: justify;
    font-size: 0.98rem;
    line-height: 1.5;
}

/* Big Decorative Initial Drop-Cap */
.newspaper-columns::first-letter {
    font-family: 'DM+Serif+Display', serif;
    font-size: 4.2rem;
    float: left;
    line-height: 0.75;
    padding-right: 10px;
    color: #d97443;
    font-weight: bold;
}

/* --------------------------------------------------
   THE EDITORIAL SIDEBAR (Right Column)
----------------------------------------------------- */
.magazine-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-box {
    background: #fbf7f0;
    border: 3px solid #2b1f1d;
    padding: 20px;
    box-shadow: 6px 6px 0px #2b1f1d;
}

.sidebar-box.tint-blush {
    background: #f6e6df;
    box-shadow: 6px 6px 0px var(--matcha);
}

.box-title {
    font-family: 'DM+Serif+Display', serif;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    border-bottom: 2px solid #2b1f1d;
    padding-bottom: 5px;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullet-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #2b1f1d;
    font-size: 0.9rem;
}

.box-prose {
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    text-align: justify;
}

.magazine-link-btn {
    display: inline-block;
    text-decoration: none;
    color: #2b1f1d;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    border: 2px solid #2b1f1d;
    padding: 4px 10px;
    background: #e5b299;
    box-shadow: 2px 2px 0px #2b1f1d;
}

.magazine-link-btn:hover {
    background: #d97443;
    color: #fbf7f0;
}

/* Punchy retro 80s sticker alert block */
.sticker-banner {
    background: #2b1f1d;
    color: #fbf7f0;
    padding: 15px;
    text-align: center;
    border: 2px dashed #d97443;
}

/* Retro Blink Component */
.blink {
    animation: textBlinker 1.4s linear infinite;
    color: #d97443;
    font-weight: bold;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
}
@keyframes textBlinker {
    50% { opacity: 0; }
}

/* --------------------------------------------------
   CUSTOM INTERACTIVE RETRO SCROLLBAR
----------------------------------------------------- */
::-webkit-scrollbar {
    width: 14px;
}
::-webkit-scrollbar-track {
    background: #fbf7f0;
    border-left: 3px solid #2b1f1d;
}
::-webkit-scrollbar-thumb {
    background: #d97443;
    border: 3px solid #2b1f1d;
}
/* --------------------------------------------------
   POSTS INDEX TABLE OF CONTENTS ADDITIONS
----------------------------------------------------- */

/* Layout matrix for the article list */
.diary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    border-top: 5px solid #2b1f1d;
    padding-top: 35px;
}

/* Individual Magazine Snip Blocks */
.post-card {
    border: 3px solid #2b1f1d;
    padding: 25px 20px 20px 20px;
    background: #fbf7f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 6px 6px 0px #2b1f1d;
    transition: 0.15s ease-in-out;
}

.post-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px #d97443;
}

/* Faux Page Counter Numbers */
.page-num {
    position: absolute;
    top: -14px;
    right: 20px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    background: #2b1f1d;
    color: #fbf7f0;
    padding: 0px 10px;
    border: 2px solid #2b1f1d;
}

.post-card-content {
    margin-bottom: 20px;
}

.post-date {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #768956;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.post-card h3 {
    font-family: 'DM+Serif+Display', serif;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    line-height: 1.15;
    color: #2b1f1d;
}

.post-card p {
    font-size: 0.9rem;
    margin: 0;
    color: #4a3b32;
    text-align: justify;
}
/* --------------------------------------------------
   ICON REGISTRY / SHRINE GALLERY ARCHITECTURE
----------------------------------------------------- */

/* The multi-row auto grid for your character shrine items */
.shrine-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    border-top: 5px solid var(--espresso);
    padding-top: 35px;
}

/* Clickable Gallery Block Cards */
.gallery-card {
    text-decoration: none;
    color: var(--espresso);
    background: var(--cream);
    border: 3px solid var(--espresso);
    padding: 20px 15px 15px 15px;
    position: relative;
    box-shadow: 6px 6px 0px var(--espresso);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px var(--pumpkin);
}

/* Floating Retro File Tag Label */
.card-num {
    position: absolute;
    top: -14px; 
    left: 20px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    background: var(--matcha);
    color: var(--cream);
    padding: 0px 10px;
    border: 2px solid var(--espresso);
}

/* Inner frame specifically constructed to isolate photos or GIFs */
.char-img-frame {
    width: 100%;
    height: 220px;
    background: #f6e6df;
    border: 2px solid var(--espresso);
    margin: 15px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Image behavior rule once assets are dropped inside */
.char-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card h3 {
    font-family: 'DM+Serif+Display', serif;
    font-size: 1.9rem;
    margin: 10px 0 5px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* Magazine small caption styling */
.char-tagline {
    font-size: 0.88rem;
    font-style: italic;
    color: #555;
    margin: 5px 0 0 0;
    text-align: left;
    line-height: 1.4;
}