
:root {
    --ofj-black: #06100d;
    --ofj-panel: #0d1915;
    --ofj-white: #f7f5ef;
    --ofj-muted: #aeb8b3;
    --ofj-lime: #c7ff00;
    --ofj-orange: #ff6a1a;
    --ofj-border: rgba(255,255,255,.13);
}

.ofj-magazine,
.ofj-magazine * {
    box-sizing: border-box;
}

.ofj-magazine {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 88px;
    color: var(--ofj-white);
}

/* FEATURED */
.ofj-featured {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 510px;
    margin-bottom: 28px;
    overflow: hidden;
    background: var(--ofj-black);
    border: 1px solid var(--ofj-border);
}

.ofj-featured__media {
    position: relative;
    display: block;
    min-height: 510px;
    overflow: hidden;
    background: #111;
}

.ofj-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.ofj-featured:hover .ofj-featured__image {
    transform: scale(1.025);
}

.ofj-featured__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 62px);
    border-left: 8px solid var(--ofj-lime);
}

.ofj-label {
    color: var(--ofj-orange);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ofj-category-link {
    display: inline-block;
    width: fit-content;
    margin-top: 12px;
    color: var(--ofj-orange);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.ofj-featured__title {
    margin: 12px 0 16px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: .94;
    letter-spacing: -.05em;
    font-weight: 900;
}

.ofj-featured__title a,
.ofj-card__title a {
    color: inherit;
    text-decoration: none;
}

.ofj-featured__excerpt {
    margin: 0 0 18px;
    color: #c5cdc9;
    font-size: 17px;
    line-height: 1.6;
}

.ofj-featured__meta {
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
    color: var(--ofj-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ofj-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-height: 48px;
    padding: 13px 18px;
    text-decoration: none;
    font-weight: 900;
    transition: transform .2s ease, filter .2s ease;
}

.ofj-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.ofj-button--lime {
    background: var(--ofj-lime);
    color: #07100d;
}

/* CATEGORY NAV */
.ofj-category-nav {
    margin: 0 0 42px;
    padding: 18px 0;
    border-top: 1px solid var(--ofj-border);
    border-bottom: 1px solid var(--ofj-border);
}

.ofj-category-nav__label {
    display: block;
    margin-bottom: 12px;
    color: var(--ofj-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.ofj-category-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ofj-category-nav__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--ofj-panel);
    color: var(--ofj-white);
    border: 1px solid var(--ofj-border);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ofj-category-nav__links a span {
    color: var(--ofj-lime);
    font-size: 10px;
}

.ofj-category-nav__links a:hover {
    background: var(--ofj-orange);
    color: #111;
    border-color: var(--ofj-orange);
}

.ofj-category-nav__links a:hover span {
    color: #111;
}

/* SECTION HEADER */
.ofj-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 24px;
}

.ofj-section-head h2 {
    margin: 7px 0 6px;
    color: var(--ofj-white);
    font-size: clamp(32px, 4vw, 56px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 900;
}

.ofj-section-head p {
    margin: 0;
    color: var(--ofj-muted);
    font-size: 15px;
}

.ofj-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
}

.ofj-sort > span {
    color: var(--ofj-muted);
    margin-right: 4px;
}

.ofj-sort a {
    padding: 9px 11px;
    border: 1px solid var(--ofj-border);
    color: var(--ofj-white);
    text-decoration: none;
    font-weight: 800;
}

.ofj-sort a.is-active {
    background: var(--ofj-lime);
    border-color: var(--ofj-lime);
    color: #08100d;
}

/* GRID */
.ofj-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ofj-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--ofj-panel);
    border: 1px solid var(--ofj-border);
}

.ofj-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #101513;
}

.ofj-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.ofj-card:hover .ofj-card__image {
    transform: scale(1.03);
}

.ofj-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 220px;
    place-items: center;
    color: rgba(255,255,255,.22);
    letter-spacing: .2em;
    font-weight: 900;
}

.ofj-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.ofj-card__topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ofj-card__topline .ofj-category-link {
    margin-top: 0;
}

.ofj-date {
    color: var(--ofj-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
}

.ofj-card__title {
    margin: 11px 0 12px;
    color: var(--ofj-white);
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1;
    letter-spacing: -.035em;
    font-weight: 900;
}

.ofj-card__excerpt {
    margin: 0 0 24px;
    color: #c0c8c4;
    font-size: 14px;
    line-height: 1.58;
}

.ofj-card__footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.ofj-card__meta {
    display: flex;
    gap: 10px;
    color: var(--ofj-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ofj-card__cta {
    color: var(--ofj-lime);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

/* PAGINATION */
.ofj-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--ofj-border);
}

.ofj-pagination__arrow {
    color: var(--ofj-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.ofj-pagination__arrow:last-child {
    text-align: right;
}

.ofj-pagination__pages {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ofj-pagination__pages a,
.ofj-pagination__pages span {
    min-width: 38px;
    min-height: 38px;
    padding: 9px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--ofj-border);
    color: var(--ofj-white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.ofj-pagination__pages .is-current {
    background: var(--ofj-orange);
    border-color: var(--ofj-orange);
    color: #111;
}

.ofj-empty {
    padding: 28px;
    border: 1px solid var(--ofj-border);
    background: var(--ofj-panel);
    color: var(--ofj-white);
}

@media (max-width: 900px) {
    .ofj-featured {
        grid-template-columns: 1fr;
    }

    .ofj-featured__media {
        min-height: 360px;
    }

    .ofj-featured__content {
        border-left: 0;
        border-top: 8px solid var(--ofj-lime);
    }

    .ofj-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ofj-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .ofj-magazine {
        width: min(100% - 22px, 620px);
        padding-bottom: 58px;
    }

    .ofj-featured__media {
        min-height: 260px;
    }

    .ofj-featured__content {
        padding: 26px 22px 30px;
    }

    .ofj-featured__title {
        font-size: clamp(34px, 11vw, 50px);
    }

    .ofj-grid {
        grid-template-columns: 1fr;
    }

    .ofj-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .ofj-pagination__pages {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-content: center;
        flex-wrap: wrap;
    }

    .ofj-pagination__arrow {
        grid-row: 2;
    }
}


/* v2.1 visual polish */
.ofj-featured {
    position: relative;
}
.ofj-featured::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 110px;
    height: 8px;
    background: var(--ofj-orange);
    z-index: 2;
}
.ofj-section-head {
    padding-top: 10px;
}
.ofj-section-head::before {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    background: var(--ofj-orange);
    position: absolute;
}
.ofj-section-head {
    position: relative;
}
.ofj-section-head > div:first-child {
    padding-top: 16px;
}
.ofj-card {
    transition: transform .2s ease, border-color .2s ease;
}
.ofj-card:hover {
    transform: translateY(-3px);
    border-color: rgba(199,255,0,.35);
}


/* v2.2 requested tweaks: featured kicker + full-height image */
.ofj-featured__kicker {
    color: var(--ofj-lime);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.05;
    margin-bottom: 10px;
}

.ofj-featured__media {
    height: 100%;
    display: flex;
    align-items: stretch;
}

.ofj-featured__image {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
}

.ofj-featured__media .ofj-placeholder {
    min-height: 100%;
    flex: 1 1 auto;
}

@media (max-width: 900px) {
    .ofj-featured__kicker {
        font-size: clamp(18px, 4.5vw, 24px);
    }
}
