/* =========================================================
   RANTS ARCHIVE
   Supplemental styles for /rants/
   ========================================================= */

.rants-page-wrap {
    max-width: 1680px;
}

.rants-intro {
    max-width: 980px;
    margin: 18px 0 30px;
    padding: 20px 24px;
    background: rgba(247, 239, 227, 0.92);
    border: 2px solid rgba(17, 17, 17, 0.75);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.13);
    transform: rotate(-0.15deg);
}

.rants-intro h1 {
    margin: 0 0 10px;
    font-family: "Permanent Marker", cursive;
    font-size: clamp(1.7rem, 2.8vw, 2.65rem);
    line-height: 1.12;
}

.rants-intro p {
    margin: 0;
    max-width: 880px;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* =========================================================
   RANTS HEADER FEATURE ROW
   Keeps rants banner and mood image on the same line
   ========================================================= */

.rants-page .header-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    align-items: start;
    margin-top: 8px;
    width: 100%;
}

.rants-page .header-banner,
.rants-page .header-mood {
    line-height: 0;
    min-width: 0;
}

.rants-page .header-banner img {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.24));
}

.rants-page .header-mood {
    width: 260px;
}

.rants-page .header-mood img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.22));
}

.rants-content-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.rant-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 300px));
    gap: 30px 26px;
    align-items: stretch;
    justify-content: center;
    margin: 10px auto 32px;
}

.rant-card {
    width: 300px;
    display: flex;
    flex-direction: column;
    background: #f3e7d2;
    border: 1px solid rgba(57, 38, 24, 0.55);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.rant-card:hover {
    transform: translateY(-5px) rotate(-0.35deg);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
}

.rant-card-image-link {
    display: block;
    line-height: 0;
}

.rant-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.rant-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 17px 17px;
    border-top: 2px solid rgba(96, 37, 32, 0.48);
    background:
        linear-gradient(rgba(247, 239, 227, 0.93), rgba(240, 225, 201, 0.96));
}

.rant-card-copy h2 {
    margin: 0 0 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    line-height: 1.18;
}

.rant-card-copy h2 a:hover,
.rant-card-copy h2 a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.rant-card-copy p {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.96rem;
    line-height: 1.48;
}

.rant-read-more {
    margin-top: auto;
    display: inline-block;
    width: fit-content;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 2px solid #111;
    padding-bottom: 2px;
}

.rant-read-more:hover,
.rant-read-more:focus-visible {
    transform: translateX(2px);
}

.rant-card a:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

/* Keep the ad column usable with the shared ad-box include. */
.rants-page .sidebar-ads {
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: sticky;
    top: 20px;
    min-width: 0;
}

.rants-page .sidebar-ads .ad-box {
    width: 300px;
    min-width: 300px;
    min-height: 600px;
}

.rants-page .sidebar-ads .ad-box-inner {
    width: 100%;
    min-width: 0;
    min-height: inherit;
}

@media (max-width: 1680px) {
    .rants-content-layout {
        grid-template-columns: 1fr;
    }

    .rants-page .sidebar-ads {
        flex-direction: row;
        justify-content: center;
        position: static;
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .rants-page .header-feature-row {
        grid-template-columns: 1fr;
    }

    .rants-page .header-mood {
        width: 260px;
        max-width: 100%;
    }
}

@media (max-width: 1320px) {
    .rant-grid {
        grid-template-columns: repeat(3, minmax(0, 300px));
    }
}

@media (max-width: 980px) {
    .rant-grid {
        grid-template-columns: repeat(2, minmax(0, 300px));
    }
}

@media (max-width: 700px) {
    .rants-intro {
        padding: 17px 18px;
    }

    .rant-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .rant-card {
        width: min(300px, 100%);
    }

    .rants-page .sidebar-ads {
        flex-direction: column;
        align-items: center;
    }

    .rants-page .sidebar-ads .ad-box {
        width: min(300px, 100%);
        min-width: 0;
        min-height: 250px;
    }
}
