/*
Theme Name: RJB Chaos Portal
Theme URI: https://rogerbeaujard.com/
Author: RJB / Codex
Description: A modern mutant portal theme for RogerBeaujard.com.
Version: 0.1.9
Text Domain: rjb-chaos-portal
*/

:root {
    --rjb-bg: #090909;
    --rjb-panel: #151515;
    --rjb-panel-2: #202020;
    --rjb-text: #f2eee7;
    --rjb-muted: #b6aea2;
    --rjb-line: #34302c;
    --rjb-red: #b51f29;
    --rjb-red-2: #ed3b45;
    --rjb-gold: #d99b2b;
    --rjb-cyan: #5fb4b7;
    --rjb-max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--rjb-bg);
    color: var(--rjb-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: 0;
    overflow-x: clip;
}

a {
    color: var(--rjb-gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    overflow-wrap: anywhere;
}

a:hover,
a:focus {
    color: var(--rjb-red-2);
}

img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rjb-wrap {
    width: min(var(--rjb-max), calc(100% - 32px));
    margin: 0 auto;
    min-width: 0;
}

.rjb-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 9, 9, 0.94);
    border-bottom: 1px solid var(--rjb-line);
    backdrop-filter: blur(10px);
}

.rjb-header-banner {
    background: #050505;
    border-bottom: 1px solid var(--rjb-line);
}

.rjb-header-banner a,
.rjb-header-banner-image {
    display: block;
}

.rjb-header-banner a {
    width: min(1260px, 100%);
    margin: 0 auto;
}

.rjb-header-banner-image {
    width: 100%;
    height: auto;
}

.rjb-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.rjb-brand {
    display: inline-flex;
    flex-direction: column;
    flex: 0 1 430px;
    color: var(--rjb-text);
    text-decoration: none;
    min-width: 230px;
    max-width: 100%;
}

.rjb-brand strong {
    font-size: 18px;
    line-height: 1.1;
    text-transform: uppercase;
}

.rjb-brand span {
    color: var(--rjb-muted);
    font-size: 13px;
}

.rjb-site-header nav {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.rjb-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
}

.rjb-menu a {
    display: block;
    padding: 8px 10px;
    color: var(--rjb-text);
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.rjb-menu a:hover,
.rjb-menu .current-menu-item > a {
    background: var(--rjb-panel-2);
    color: var(--rjb-gold);
}

.rjb-announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 16px;
    background: #290d10;
    color: var(--rjb-text);
    border-bottom: 1px solid rgba(237, 59, 69, 0.35);
    text-align: center;
    font-size: 14px;
}

.rjb-announcement a {
    color: var(--rjb-gold);
    font-weight: 700;
}

.rjb-hero {
    min-height: 620px;
    display: flex;
    align-items: stretch;
    background:
        linear-gradient(90deg, rgba(9, 9, 9, 0.94) 0%, rgba(9, 9, 9, 0.84) 45%, rgba(9, 9, 9, 0.56) 100%),
        url('/wp-content/uploads/2016/07/chaosrjb.jpg') center / cover no-repeat;
    border-bottom: 1px solid var(--rjb-line);
}

.rjb-hero-inner {
    width: min(var(--rjb-max), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(240px, 1fr);
    gap: 32px;
    align-items: center;
    padding: 56px 0;
}

.rjb-kicker {
    margin: 0 0 10px;
    color: var(--rjb-gold);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    max-width: 100%;
    overflow-wrap: break-word;
}

.rjb-hero h1,
.rjb-page-title {
    margin: 0;
    color: var(--rjb-text);
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 58px;
    line-height: 0.96;
    text-transform: uppercase;
    letter-spacing: 0;
    max-width: 820px;
    overflow-wrap: break-word;
}

.rjb-hero p {
    max-width: 760px;
    color: var(--rjb-muted);
    font-size: 20px;
    overflow-wrap: anywhere;
}

.rjb-actions,
.rjb-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    max-width: 100%;
}

.rjb-button,
.rjb-actions a,
.rjb-card-actions a,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--rjb-red);
    border-radius: 6px;
    background: var(--rjb-red);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.rjb-actions a:nth-child(even),
.rjb-card-actions a:first-child {
    background: transparent;
    color: var(--rjb-text);
    border-color: var(--rjb-line);
}

.rjb-actions a:hover,
.rjb-card-actions a:hover,
.rjb-button:hover {
    background: var(--rjb-gold);
    border-color: var(--rjb-gold);
    color: #140f0b;
}

.rjb-hero-panel {
    align-self: end;
    padding: 18px;
    border: 1px solid var(--rjb-line);
    border-radius: 8px;
    background: rgba(16, 16, 16, 0.82);
}

.rjb-section {
    padding: 64px 0;
    border-bottom: 1px solid var(--rjb-line);
}

.rjb-section-alt {
    background: #101010;
}

.rjb-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.rjb-section h2,
.rjb-content h2 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.1;
    color: var(--rjb-text);
}

.rjb-section-head p {
    max-width: 720px;
    margin: 0;
    color: var(--rjb-muted);
}

.rjb-project-grid,
.rjb-latest-list,
.rjb-review-list,
.rjb-route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rjb-project-card,
.rjb-latest-item,
.rjb-review-list article,
.rjb-route,
.rjb-card,
.rjb-movie-panel {
    min-width: 0;
    border: 1px solid var(--rjb-line);
    border-radius: 8px;
    background: var(--rjb-panel);
}

.rjb-project-card,
.rjb-latest-item,
.rjb-review-list article,
.rjb-route,
.rjb-card {
    padding: 18px;
}

.rjb-latest-thumb {
    display: block;
    margin: -18px -18px 16px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #050505;
    border-radius: 8px 8px 0 0;
}

.rjb-latest-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rjb-project-card h3,
.rjb-latest-item h3,
.rjb-review-list h3 {
    margin: 0 0 8px;
    font-size: 23px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.rjb-project-card h3 a,
.rjb-latest-item h3 a,
.rjb-review-list h3 a {
    color: var(--rjb-text);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.rjb-project-type,
.rjb-project-card p,
.rjb-latest-item p,
.rjb-review-list p,
.rjb-route span {
    color: var(--rjb-muted);
    overflow-wrap: anywhere;
}

.rjb-project-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -18px -18px 16px;
    min-height: 0;
    padding: 18px;
    overflow: hidden;
    background: #050505;
    border-radius: 8px 8px 0 0;
}

.rjb-project-thumb img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: contain;
}

.rjb-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 32px;
    align-items: start;
}

.rjb-content {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.rjb-content-wide {
    width: min(var(--rjb-max), calc(100% - 32px));
}

.rjb-content p,
.rjb-content li {
    color: var(--rjb-muted);
    overflow-wrap: anywhere;
}

.rjb-content h1,
.rjb-content h2,
.rjb-content h3 {
    color: var(--rjb-text);
    overflow-wrap: anywhere;
}

.rjb-content > *,
.rjb-content figure,
.rjb-content .wp-caption,
.rjb-content .wp-block-embed,
.rjb-content .wp-block-embed__wrapper,
.rjb-content .wp-video {
    max-width: 100% !important;
}

.rjb-content .wp-caption,
.rjb-content .wp-caption img,
.rjb-content .wp-caption-text {
    width: auto !important;
}

.rjb-content iframe,
.rjb-content embed,
.rjb-content object,
.rjb-content video {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
}

.rjb-content iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

.rjb-content pre,
.rjb-content table {
    max-width: 100%;
    overflow-x: auto;
}

.rjb-content article {
    margin-bottom: 28px;
}

.rjb-pagination {
    margin-top: 30px;
}

.rjb-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rjb-pagination .page-numbers {
    min-width: 42px;
    padding: 9px 12px;
    border: 1px solid var(--rjb-line);
    border-radius: 6px;
    background: var(--rjb-panel);
    color: var(--rjb-text);
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.rjb-pagination a.page-numbers:hover,
.rjb-pagination a.page-numbers:focus {
    border-color: var(--rjb-red-2);
    color: #fff;
}

.rjb-pagination .page-numbers.current {
    border-color: var(--rjb-red);
    background: var(--rjb-red);
    color: #fff;
}

.rjb-page-endcap {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--rjb-line);
}

.rjb-page-endcap .rjb-kicker {
    margin: 0 0 8px;
    color: var(--rjb-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rjb-page-endcap h2 {
    margin-bottom: 10px;
}

.rjb-page-hero {
    padding: 56px 0 34px;
    background: #101010;
    border-bottom: 1px solid var(--rjb-line);
}

.rjb-archive-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rjb-archive-links a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--rjb-line);
    border-radius: 6px;
    background: var(--rjb-panel);
    text-decoration: none;
}

.rjb-archive-links span {
    color: var(--rjb-muted);
}

.rjb-newsletter {
    padding: 24px;
    border: 1px solid var(--rjb-line);
    border-radius: 8px;
    background: var(--rjb-panel);
}

.rjb-newsletter input[type="email"] {
    width: 100%;
    margin-top: 6px;
}

.rjb-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}

input,
select,
textarea {
    max-width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--rjb-line);
    border-radius: 6px;
    background: #0f0f0f;
    color: var(--rjb-text);
}

textarea {
    min-height: 110px;
}

.rjb-form-note {
    margin-bottom: 0;
    color: var(--rjb-muted);
    font-size: 14px;
}

.rjb-movie-panel {
    padding: 20px;
    margin: 0 0 24px;
    border-color: rgba(181, 31, 41, 0.6);
}

.rjb-movie-panel h2 {
    margin: 0 0 12px;
}

.rjb-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #270f12;
    color: var(--rjb-text);
}

.rjb-rating strong {
    font-size: 30px;
}

.rjb-verdict {
    display: inline-flex;
    margin: 12px 0 0;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--rjb-gold);
    color: #140f0b;
    font-weight: 700;
}

.rjb-table-wrap {
    overflow-x: auto;
}

.rjb-credit-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--rjb-panel);
}

.rjb-credit-table th,
.rjb-credit-table td {
    padding: 10px;
    border: 1px solid var(--rjb-line);
    text-align: left;
}

.rjb-site-footer {
    padding: 42px 0;
    background: #060606;
    border-top: 1px solid var(--rjb-line);
}

.rjb-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.rjb-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.rjb-footer-links a {
    color: var(--rjb-muted);
}

.rjb-empty {
    color: var(--rjb-muted);
}

@media (max-width: 900px) {
    .rjb-header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .rjb-brand {
        flex-basis: auto;
    }

    .rjb-site-header nav {
        width: 100%;
    }

    .rjb-menu {
        justify-content: flex-start;
        width: 100%;
    }

    .rjb-hero {
        min-height: auto;
    }

    .rjb-hero-inner,
    .rjb-two-col {
        grid-template-columns: 1fr;
    }

    .rjb-hero h1,
    .rjb-page-title {
        font-size: 42px;
    }

    .rjb-project-grid,
    .rjb-latest-list,
    .rjb-review-list,
    .rjb-route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .rjb-wrap,
    .rjb-hero-inner,
    .rjb-content,
    .rjb-content-wide {
        width: min(100% - 24px, var(--rjb-max));
    }

    .rjb-announcement {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
        gap: 6px;
    }

    .rjb-hero-inner {
        padding: 34px 0;
    }

    .rjb-hero h1,
    .rjb-page-title {
        font-size: 34px;
    }

    .rjb-hero p {
        font-size: 17px;
    }

    .rjb-section {
        padding: 42px 0;
    }

    .rjb-section-head,
    .rjb-footer-grid {
        display: block;
    }

    .rjb-project-grid,
    .rjb-latest-list,
    .rjb-review-list,
    .rjb-route-grid,
    .rjb-checks {
        grid-template-columns: 1fr;
    }

    .rjb-footer-links {
        justify-content: flex-start;
        margin-top: 20px;
    }
}

@media (max-width: 420px) {
    .rjb-brand strong {
        font-size: 16px;
    }

    .rjb-menu {
        gap: 4px 6px;
    }

    .rjb-menu a {
        padding: 6px 7px;
        font-size: 13px;
    }

    .rjb-kicker {
        font-size: 12px;
        letter-spacing: 0.04em;
    }

    .rjb-hero h1,
    .rjb-page-title {
        font-size: 28px;
        line-height: 1;
    }

    .rjb-actions {
        align-items: stretch;
    }

    .rjb-actions a {
        width: 100%;
    }
}
