@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=UnifrakturMaguntia&display=swap');

:root {
    --rust-1: #0a0203;
    --rust-2: #1e0808;
    --rust-3: #4a1414;
    --rust-4: #8a2c2c;
    --rust-5: #c45050;
    --rust-6: #d4826e;

    --color-bg:      var(--rust-1);
    --color-surface: var(--rust-2);
    --color-border:  var(--rust-3);
    --color-muted:   var(--rust-4);
    --color-heading: var(--rust-5);
    --color-text:    var(--rust-6);
    --color-accent:  var(--rust-6);

    --font-display: 'UnifrakturMaguntia', cursive;
    --font-body:    'IM Fell English', serif;
    --font-mono:    'Courier New', Courier, monospace;

    --col-gap:    1.5rem;
    --page-pad:   1.25rem;
    --border:     1px solid var(--color-border);
    --thick-rule: 3px double var(--color-border);
}

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

html {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
}

body {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--page-pad);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.055) 2px,
        rgba(0, 0, 0, 0.055) 4px
    );
}

a, a:visited {
    color: var(--color-heading);
    text-decoration: underline;
}

a:hover { color: var(--color-accent); }

p {
    line-height: 1.6;
    margin-bottom: 0.75rem;
    text-align: justify;
    hyphens: auto;
}

p:last-child { margin-bottom: 0; }

hr {
    border: none;
    border-bottom: var(--border);
    margin: 1rem 0;
}

hr.thick {
    border-bottom: var(--thick-rule);
    margin: 1.1rem 0;
}

img, video, iframe {
    max-width: 100%;
    display: block;
}

/* ── NAVIGATION ──────────────────────────────────────────── */

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-body);
    font-variant: small-caps;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: var(--thick-rule);
    padding-bottom: 0.6rem;
}

.site-nav a {
    color: var(--color-muted);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.site-nav .dateline {
    font-style: italic;
    font-size: 0.75rem;
    color: var(--color-muted);
    letter-spacing: 0;
}

.nav-button {
    display: block;
    height: 31px;
    width: auto;
    image-rendering: pixelated;
}

/* ── ASCII HERO ──────────────────────────────────────────── */

.hero-zone {
    margin: 0.75rem 0 0;
    overflow: hidden;
}

pre.ascii-hero {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 2vw, 1.4rem);
    line-height: 1.15;
    color: var(--rust-5);
    text-shadow:
        0 0 4px var(--rust-4),
        0 0 14px var(--rust-3),
        0 0 28px rgba(74, 20, 20, 0.5);
    white-space: pre;
    overflow-x: auto;
    text-align: center;
    background: transparent;
    user-select: none;
    letter-spacing: 0;
}

.ascii-ground {
    color: var(--rust-4);
    text-shadow: 0 0 3px var(--rust-3);
}

/* ── MASTHEAD ────────────────────────────────────────────── */

.masthead {
    text-align: center;
    padding: 0.4rem 0 0.1rem;
}

h1.site-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: normal;
    color: var(--color-heading);
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow:
        0 0 20px var(--rust-3),
        0 0 50px rgba(74, 20, 20, 0.6),
        0 0 90px rgba(30, 8, 8, 0.4);
}

.tagline {
    font-style: italic;
    font-size: 0.72rem;
    color: var(--color-muted);
    letter-spacing: 0.18em;
    text-transform: lowercase;
    margin-top: 0.35rem;
}

/* ── LEAD STORY ──────────────────────────────────────────── */

.lead-story {
    padding: 0.9rem 0;
}

.lead-story h2 {
    font-family: var(--font-body);
    font-size: clamp(1.35rem, 3.5vw, 2.1rem);
    font-style: italic;
    font-variant: small-caps;
    color: var(--color-heading);
    line-height: 1.15;
    margin-bottom: 0.3rem;
    border-bottom: var(--border);
    padding-bottom: 0.3rem;
}

.byline {
    font-style: italic;
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

/* ── CONTENT BODY ────────────────────────────────────────── */

.content-body {
    padding-top: 1rem;
}

/* ── ARTICLES ────────────────────────────────────────────── */

.article {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: var(--border);
}

.article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Floating sidebar blocks embedded in content flow */
.sidebar-block.float-right {
    float: right;
    width: 260px;
    margin: 0 0 1rem 1.2rem;
}

.sidebar-block.float-left {
    float: left;
    width: 260px;
    margin: 0 1.2rem 1rem 0;
}

h2.article-head {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.6vw, 1.15rem);
    font-variant: small-caps;
    font-style: italic;
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: 0.2rem;
    border-bottom: var(--border);
    padding-bottom: 0.2rem;
}

/* ── FLOAT MEDIA ─────────────────────────────────────────── */

.media-left {
    float: left;
    margin: 0.2rem 0.9rem 0.5rem 0;
    max-width: 42%;
    border: var(--border);
}

.media-right {
    float: right;
    margin: 0.2rem 0 0.5rem 0.9rem;
    max-width: 42%;
    border: var(--border);
}

.media-full {
    clear: both;
    width: 100%;
    margin: 0.75rem 0;
    border: var(--border);
}

.media-tall {
    float: right;
    margin: 0.2rem 0 0.5rem 0.9rem;
    max-width: 32%;
    border: var(--border);
}

.media-wide {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    margin: 0.75rem 0;
    border: var(--border);
}

.media-centerfold {
    column-span: all;
    clear: both;
    width: 100%;
    margin: 1rem 0;
    border: var(--border);
}

.media-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: var(--border);
    margin: 0.75rem 0;
    background: var(--color-surface);
}

.media-embed iframe,
.media-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.media-caption {
    font-style: italic;
    font-size: 0.72rem;
    color: var(--color-muted);
    margin-top: 0.2rem;
    text-align: center;
    text-align-last: center;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ── PULL QUOTE ──────────────────────────────────────────── */

.pull-quote {
    border-top: var(--thick-rule);
    border-bottom: var(--thick-rule);
    margin: 1.2rem 0;
    padding: 0.7rem 0.4rem;
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(0.95rem, 1.6vw, 1.25rem);
    color: var(--color-accent);
    text-align: center;
    break-inside: avoid;
    line-height: 1.45;
}

.pull-quote cite {
    display: block;
    font-size: 0.7rem;
    font-style: normal;
    color: var(--color-muted);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ── SIDEBAR BLOCKS ──────────────────────────────────────── */

.sidebar-block {
    border: var(--border);
    background: var(--color-surface);
    padding: 0.75rem;
    margin-bottom: 0.9rem;
    break-inside: avoid;
}

.sidebar-block h3 {
    font-family: var(--font-body);
    font-variant: small-caps;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    border-bottom: var(--border);
    margin-bottom: 0.45rem;
    padding-bottom: 0.25rem;
    color: var(--color-heading);
}

.sidebar-block p {
    font-size: 0.8rem;
    text-align: left;
    hyphens: none;
    line-height: 1.5;
}

.sidebar-block ul {
    list-style: none;
    padding: 0;
}

.sidebar-block ul li {
    font-size: 0.8rem;
    padding: 0.12rem 0;
    line-height: 1.45;
}

.sidebar-block ul li::before {
    content: '† ';
    color: var(--color-muted);
}

/* ── BOTTOM STRIP ────────────────────────────────────────── */

.bottom-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--col-gap);
    padding: 1rem 0 0.5rem;
}

.bottom-col h3 {
    font-family: var(--font-body);
    font-variant: small-caps;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    border-bottom: var(--border);
    margin-bottom: 0.45rem;
    padding-bottom: 0.2rem;
    color: var(--color-heading);
}

.bottom-col p {
    font-size: 0.8rem;
    text-align: left;
    hyphens: auto;
    line-height: 1.5;
}

/* ── FOOTER ──────────────────────────────────────────────── */

.site-footer {
    padding: 0.75rem 0 1.5rem;
    text-align: center;
}


.site-footer p {
    font-style: italic;
    font-size: 0.72rem;
    color: var(--color-muted);
    text-align: center;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 850px) {
    .sidebar-block.float-right,
    .sidebar-block.float-left {
        float: none;
        width: 100%;
        margin: 0 0 1rem 0;
    }

    .bottom-strip {
        grid-template-columns: 1fr 1fr;
    }

    pre.ascii-hero {
        font-size: clamp(0.55rem, 4vw, 0.9rem);
    }
}

@media (max-width: 500px) {
    .media-left,
    .media-right,
    .media-tall {
        float: none;
        max-width: 100%;
        margin: 0.5rem 0;
    }

    .bottom-strip {
        grid-template-columns: 1fr;
    }

    pre.ascii-hero {
        font-size: clamp(0.45rem, 6vw, 0.75rem);
    }
}
