/*
 * BRJ-inspired typography for the OJS journal.
 *
 * Hand-tuned palette / type system distilled from bostonresearch.org:
 *   accent:        #ee9982  (coral)
 *   text:          #090909
 *   heading:       #343434
 *   muted:         #898989
 *   light bg:      #f7f7f7
 *   border:        #ebebeb
 *
 * Applied journal-wide. Scopes most rules to OJS content containers
 * (.page, .obj_static_page, .pkp_structure_content, article) so we don't
 * disturb the OJS chrome (header/nav/sidebar/login forms).
 */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap");

:root {
    --brj-accent: #ee9982;
    --brj-accent-dark: #d97e66;
    --brj-text: #090909;
    --brj-heading: #343434;
    --brj-muted: #898989;
    --brj-bg-soft: #f7f7f7;
    --brj-border: #ebebeb;
    --brj-link: #2b6cb0;
    --brj-link-hover: var(--brj-accent-dark);
    --brj-font-body: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --brj-font-display: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body,
body .page,
body .obj_static_page,
body .pkp_structure_content,
body p {
    font-family: var(--brj-font-body) !important;
    color: var(--brj-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-size: 16px;
}

/* === Content typography === */

.page h1, .page h2, .page h3, .page h4, .page h5, .page h6,
.obj_static_page h1, .obj_static_page h2, .obj_static_page h3,
.obj_static_page h4, .obj_static_page h5, .obj_static_page h6,
.pkp_structure_content h1, .pkp_structure_content h2,
.pkp_structure_content h3, .pkp_structure_content h4,
.pkp_structure_content h5, .pkp_structure_content h6,
body h1, body h2, body h3, body h4, body h5, body h6 {
    font-family: var(--brj-font-display) !important;
    color: var(--brj-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    letter-spacing: -0.005em;
}

.page h1,
.obj_static_page h1,
.pkp_structure_content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 0;
}

.page h2,
.obj_static_page h2,
.pkp_structure_content h2 {
    font-size: 1.6rem;
}

.page h3,
.obj_static_page h3,
.pkp_structure_content h3 {
    font-size: 1.25rem;
    color: var(--brj-text);
}

.page h4,
.obj_static_page h4,
.pkp_structure_content h4 {
    font-size: 1.1rem;
    color: var(--brj-text);
}

.page p,
.obj_static_page p,
.pkp_structure_content p {
    margin: 0 0 1em;
    color: var(--brj-text);
}

.page strong,
.obj_static_page strong,
.pkp_structure_content strong {
    color: var(--brj-heading);
    font-weight: 700;
}

.page ul,
.page ol,
.obj_static_page ul,
.obj_static_page ol,
.pkp_structure_content ul,
.pkp_structure_content ol {
    margin: 0 0 1.25em;
    padding-left: 1.4em;
}

.page li,
.obj_static_page li,
.pkp_structure_content li {
    margin-bottom: 0.45em;
}

.page blockquote,
.obj_static_page blockquote,
.pkp_structure_content blockquote {
    border-left: 4px solid var(--brj-accent);
    background: var(--brj-bg-soft);
    margin: 1.5em 0;
    padding: 1em 1.25em;
    color: var(--brj-heading);
    font-style: italic;
}

.page hr,
.obj_static_page hr,
.pkp_structure_content hr {
    border: 0;
    border-top: 1px solid var(--brj-border);
    margin: 2em 0;
}

.page table,
.obj_static_page table,
.pkp_structure_content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
}

.page th,
.obj_static_page th,
.pkp_structure_content th {
    background: var(--brj-bg-soft);
    text-align: left;
    padding: 0.6em 0.8em;
    border-bottom: 2px solid var(--brj-border);
    color: var(--brj-heading);
    font-weight: 700;
}

.page td,
.obj_static_page td,
.pkp_structure_content td {
    padding: 0.6em 0.8em;
    border-bottom: 1px solid var(--brj-border);
}

/* === Links === */

.page a,
.obj_static_page a,
.pkp_structure_content a {
    color: var(--brj-link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.page a:hover,
.obj_static_page a:hover,
.pkp_structure_content a:hover {
    color: var(--brj-link-hover);
    border-bottom-color: var(--brj-accent);
}

/* Links that look like buttons (uppercase short text used in original site) */
.page a[href*="join-"],
.page a[href*="-board"],
.obj_static_page a[href*="join-"],
.obj_static_page a[href*="-board"] {
    display: inline-block;
    background: var(--brj-accent);
    color: #fff !important;
    padding: 0.6em 1.4em;
    margin: 0.4em 0.4em 0.4em 0;
    border: 0;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 2px;
}

.page a[href*="join-"]:hover,
.page a[href*="-board"]:hover,
.obj_static_page a[href*="join-"]:hover,
.obj_static_page a[href*="-board"]:hover {
    background: var(--brj-accent-dark);
    border-bottom-color: transparent;
}

/* === Images === */

.page img,
.obj_static_page img,
.pkp_structure_content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

/* === Static page wrapper polish === */

.obj_static_page {
    max-width: 920px;
    margin: 0 auto;
}

/* The OJS page title gets a coral underline accent. */
.page > h1:first-child::after,
.obj_static_page > h1:first-child::after,
.pkp_structure_content > h1.page_title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    background: var(--brj-accent);
    margin-top: 0.5em;
}

/* =====================================================================
 * About-page layout: hero, intro, mission/vision band, journal card grid
 * ===================================================================== */

.brj-hero,
.brj-intro,
.brj-mv,
.brj-journals,
.brj-collab {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(24px, 6vw);
    padding-right: max(24px, 6vw);
    box-sizing: border-box;
}

/* --- Hero --- */
.brj-hero {
    background: #fff;
    padding-top: 64px;
    padding-bottom: 40px;
    text-align: center;
}

.brj-hero-inner {
    max-width: 980px;
    margin: 0 auto;
}

.brj-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brj-accent);
    margin: 0 0 1.5em;
}

.brj-hero-title {
    font-family: var(--brj-font-display) !important;
    font-weight: 700 !important;
    font-style: italic;
    font-size: clamp(1.85rem, 3.4vw, 2.85rem);
    line-height: 1.25;
    color: var(--brj-heading);
    margin: 0;
    letter-spacing: -0.01em;
}

/* --- Intro paragraphs --- */
.brj-intro {
    padding-top: 32px;
    padding-bottom: 56px;
    background: #fff;
    max-width: none;
}

.brj-intro p {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.25em;
}

/* --- Mission / Vision two-column band --- */
.brj-mv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    margin-top: 24px;
    margin-bottom: 24px;
}

.brj-mv-card {
    padding: 56px max(24px, 4vw);
    color: #fff;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brj-mv-card h3 {
    font-family: var(--brj-font-display) !important;
    font-style: italic;
    font-weight: 700;
    font-size: 1.85rem;
    color: #fff !important;
    margin: 0 0 0.6em;
    line-height: 1.2;
}

.brj-mv-card p {
    color: rgba(255, 255, 255, 0.94);
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
}

.brj-mv-mission { background: var(--brj-accent); }
.brj-mv-vision  { background: #4a4a4a; }

/* --- Journals section --- */
.brj-journals {
    padding-top: 64px;
    padding-bottom: 80px;
    background: #fff;
    text-align: center;
}

.brj-section-title {
    font-family: var(--brj-font-display) !important;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    color: var(--brj-heading);
    margin: 0 0 0.5em !important;
}

.brj-section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--brj-accent);
    margin: 0.6em auto 0;
}

.brj-section-lede {
    max-width: 900px;
    margin: 0 auto 3em;
    text-align: center;
    color: var(--brj-text);
    line-height: 1.7;
}

.brj-journals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1280px;
    margin: 0 auto;
}

.brj-journal-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    background-color: #2c2c2c;
    overflow: hidden;
    border-bottom: 0 !important;
    text-decoration: none !important;
    border-radius: 2px;
}

.brj-journal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.18) 0%, rgba(20, 20, 20, 0.55) 60%, rgba(20, 20, 20, 0.78) 100%);
    transition: background 0.25s ease;
}

.brj-journal-card:hover::before {
    background: linear-gradient(180deg, rgba(238, 153, 130, 0.28) 0%, rgba(20, 20, 20, 0.55) 60%, rgba(20, 20, 20, 0.85) 100%);
}

.brj-journal-card .brj-journal-title {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 22px;
    font-family: var(--brj-font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #fff !important;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.brj-journal-card .brj-journal-cta {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 1;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--brj-accent);
}

.brj-journal-card-current {
    outline: 3px solid var(--brj-accent);
    outline-offset: -3px;
}

.brj-journal-card-current::after {
    content: "Current journal";
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brj-accent);
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 1px;
    z-index: 2;
    font-weight: 600;
}

/* --- Scope of the journal (replaces multi-journal grid) --- */
.brj-scope {
    padding-top: 64px;
    padding-bottom: 72px;
    background: #fff;
    text-align: center;
}

.brj-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto 2.5em;
    text-align: left;
}

.brj-scope-card {
    background: var(--brj-bg-soft);
    border: 1px solid var(--brj-border);
    border-left: 3px solid var(--brj-accent);
    padding: 22px 22px 18px;
    border-radius: 2px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brj-scope-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(20, 20, 20, 0.18);
}

.brj-scope-card h3 {
    font-family: var(--brj-font-display) !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.4em !important;
    color: var(--brj-heading);
}

.brj-scope-card p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.55;
    color: #444;
}

.brj-scope-footnote {
    max-width: 880px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: var(--brj-muted);
    line-height: 1.7;
}

@media (max-width: 960px) {
    .brj-scope-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .brj-scope-grid { grid-template-columns: 1fr; }
}

/* --- Closing collab band --- */
.brj-collab {
    background: var(--brj-bg-soft);
    padding-top: 64px;
    padding-bottom: 64px;
    text-align: center;
}

.brj-collab h2 {
    font-family: var(--brj-font-display) !important;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    max-width: 900px;
    margin: 0 auto 0.6em !important;
    color: var(--brj-heading);
    line-height: 1.25;
}

.brj-collab p {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.75;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .brj-journals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .brj-mv {
        grid-template-columns: 1fr;
    }
    .brj-journals-grid {
        grid-template-columns: 1fr;
    }
    .brj-hero {
        padding-top: 40px;
        padding-bottom: 24px;
    }
    .brj-intro {
        padding-bottom: 32px;
    }
}
