/*
Theme Name: Rumah Pena Foundation
Theme URI: https://rumahpenafoundation.org/
Author: Rumah Pena Foundation
Description: Tema resmi Rumah Pena Foundation.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rumahpena
*/


/* =========================================================
   ROOT
========================================================= */

:root {
    --rp-black: #000000;
    --rp-dark: #111111;
    --rp-white: #ffffff;

    --rp-text: #111111;
    --rp-muted: #666666;
    --rp-border: #eeeeee;

    --rp-container: 1200px;
    --rp-side-space: 40px;
}


/* =========================================================
   RESET
========================================================= */

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

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--rp-background, #ffffff);
    color: var(--rp-text-color, var(--rp-text));

    font-family: var(
        --rp-body-font,
        Arial,
        sans-serif
    );

    font-size: var(
        --rp-body-size,
        17px
    );

    line-height: var(
        --rp-body-line-height,
        1.7
    );
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   CONTAINER
========================================================= */

.rp-container {
    width: min(
        var(--rp-container-width, 1200px),
        calc(
            100% -
            (var(--rp-container-padding, 40px) * 2)
        )
    );

    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   HEADER
========================================================= */

.rp-header {
    position: relative;

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid var(--rp-border);
}

.rp-header-inner {
    min-height: 82px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.rp-logo {
    flex: 0 0 auto;
}

.rp-logo a {
    display: inline-flex;

    align-items: center;
}

.rp-logo .custom-logo {
    width: auto;
    max-width: 280px;
    max-height: 62px;
}

.rp-site-title {
    display: inline-block;

    color: #111111;

    font-family: var(
        --rp-heading-font,
        Arial,
        sans-serif
    );

    font-size: 22px;
    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   NAVIGATION
========================================================= */

.rp-navigation {
    margin-left: auto;
}

.rp-navigation ul {
    display: flex;

    align-items: center;

    gap: 28px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.rp-navigation li {
    margin: 0;
    padding: 0;
}

.rp-navigation a {
    display: inline-block;

    padding: 8px 0;

    color: #333333;

    font-size: var(
        --rp-menu-size,
        14px
    );

    font-weight: 600;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.rp-navigation a:hover,
.rp-navigation .current-menu-item > a {
    color: #000000;
}

.rp-navigation a:hover {
    opacity: 0.65;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.rp-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    margin: 0;
    padding: 8px;

    border: 0;

    background: transparent;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;
}

.rp-menu-toggle span {
    display: block;

    width: 23px;
    height: 2px;

    background: #111111;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* =========================================================
   HERO
========================================================= */

.rp-hero {
    width: 100%;

    padding: 110px 0 105px;

    background: var(
        --rp-hero-background,
        #111111
    );

    color: var(
        --rp-hero-text,
        #ffffff
    );
}

.rp-hero-content {
    max-width: 900px;
}

.rp-hero-label {
    display: inline-block;

    margin-bottom: 22px;

    color: #aaaaaa;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.rp-hero h1 {
    max-width: 900px;

    margin: 0 0 28px;

    color: var(
        --rp-hero-text,
        #ffffff
    );

    font-family: var(
        --rp-heading-font,
        Arial,
        sans-serif
    );

    font-size: var(
        --rp-h1-size,
        64px
    );

    font-weight: 700;

    line-height: 1.06;

    letter-spacing: -1.8px;
}

.rp-hero p {
    max-width: 760px;

    margin: 0 0 36px;

    color: #cccccc;

    font-size: 18px;

    line-height: 1.7;
}


/* =========================================================
   HERO BUTTON
========================================================= */

.rp-hero-buttons {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}

.rp-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 24px;

    border: 1px solid #ffffff;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.rp-button-primary {
    background: #ffffff;
    color: #111111;
}

.rp-button-primary:hover {
    background: #dddddd;
    border-color: #dddddd;
}

.rp-button-outline {
    background: transparent;
    color: #ffffff;
}

.rp-button-outline:hover {
    background: #ffffff;
    color: #111111;
}


/* =========================================================
   HOMEPAGE WIDGET AREA
========================================================= */

.rp-widget-area {
    width: 100%;

    min-height: 300px;

    padding: 20px 0 100px;

    background: #ffffff;
}


/* =========================================================
   PAGE
========================================================= */

.rp-page {
    width: 100%;

    padding: 90px 0;
}

.rp-page-content {
    max-width: 850px;

    margin-right: auto;
    margin-left: auto;
}

.rp-page-title {
    margin: 0 0 35px;

    font-family: var(
        --rp-heading-font,
        Arial,
        sans-serif
    );

    font-size: var(
        --rp-h1-size,
        52px
    );

    font-weight: 700;

    line-height: 1.1;
}


/* =========================================================
   SINGLE ARTICLE
========================================================= */

.rp-single {
    width: 100%;

    padding: 80px 0;
}

.rp-single-content {
    max-width: 850px;

    margin-right: auto;
    margin-left: auto;
}

.rp-single-title {
    margin: 0 0 18px;

    font-family: var(
        --rp-heading-font,
        Arial,
        sans-serif
    );

    font-size: var(
        --rp-h1-size,
        52px
    );

    font-weight: 700;

    line-height: 1.1;
}

.rp-single-meta {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 35px;

    color: #777777;

    font-size: 14px;
}

.rp-single-featured {
    margin-bottom: 40px;
}

.rp-single-featured img {
    width: 100%;
    height: auto;
}

.rp-single-body {
    font-family: var(
        --rp-body-font,
        Arial,
        sans-serif
    );

    font-size: var(
        --rp-body-size,
        17px
    );

    line-height: var(
        --rp-body-line-height,
        1.8
    );
}

.rp-single-body p {
    margin-top: 0;
    margin-bottom: 1.6em;
}


/* =========================================================
   POST LIST
========================================================= */

.rp-post-list {
    width: 100%;

    padding: 80px 0;
}

.rp-post {
    display: grid;

    grid-template-columns: 320px 1fr;

    gap: 35px;

    padding: 35px 0;

    border-bottom: 1px solid #eeeeee;
}

.rp-post-image img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;
}

.rp-post-title {
    margin: 0 0 10px;

    font-family: var(
        --rp-heading-font,
        Arial,
        sans-serif
    );

    font-size: 28px;

    line-height: 1.2;
}

.rp-post-meta {
    margin-bottom: 15px;

    color: #777777;

    font-size: 13px;
}

.rp-post-excerpt {
    color: #555555;
}

.rp-post-readmore {
    display: inline-block;

    margin-top: 15px;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   ARCHIVE
========================================================= */

.rp-archive {
    width: 100%;

    padding: 80px 0;
}

.rp-archive-header {
    max-width: 850px;

    margin-bottom: 45px;
}

.rp-archive-title {
    margin: 0;

    font-family: var(
        --rp-heading-font,
        Arial,
        sans-serif
    );

    font-size: var(
        --rp-h1-size,
        52px
    );

    line-height: 1.1;
}


/* =========================================================
   CATEGORY
========================================================= */

.rp-category {
    width: 100%;

    padding: 80px 0;
}

.rp-category-header {
    max-width: 850px;

    margin-bottom: 50px;
}

.rp-category-title {
    margin: 0 0 15px;

    font-family: var(
        --rp-heading-font,
        Arial,
        sans-serif
    );

    font-size: var(
        --rp-h1-size,
        52px
    );

    line-height: 1.1;
}

.rp-category-post {
    display: grid;

    grid-template-columns: 320px 1fr;

    gap: 35px;

    padding: 35px 0;

    border-bottom: 1px solid #eeeeee;
}


/* =========================================================
   PAGINATION
========================================================= */

.rp-pagination {
    padding-top: 45px;
}


/* =========================================================
   FOOTER
========================================================= */

.rp-footer {
    width: 100%;

    padding: 70px 0 25px;

    background: #000000 !important;

    color: #ffffff;
}

.rp-footer-content {
    display: flex;

    justify-content: space-between;

    gap: 60px;
}

.rp-footer-brand {
    max-width: 450px;
}

.rp-footer-brand .custom-logo {
    width: auto;

    max-width: 280px;
    max-height: 65px;

    margin-bottom: 20px;
}

.rp-footer-brand p {
    margin: 0;

    color: #bbbbbb;

    line-height: 1.7;
}

.rp-footer-menu ul {
    display: flex;

    flex-direction: column;

    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.rp-footer-menu a {
    color: #ffffff;

    font-size: 14px;
}

.rp-footer-bottom {
    margin-top: 50px;

    padding-top: 20px;

    border-top: 1px solid #333333;
}

.rp-footer-bottom p {
    margin: 0;

    color: #999999;

    font-size: 13px;
}


/* =========================================================
   404
========================================================= */

.rp-error-page {
    width: 100%;

    min-height: 60vh;

    display: flex;

    align-items: center;

    padding: 100px 0;

    background: #ffffff;
}

.rp-error-content {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;

    text-align: center;
}

.rp-error-number {
    margin-bottom: 15px;

    font-family: var(
        --rp-heading-font,
        Arial,
        sans-serif
    );

    font-size: 110px;
    font-weight: 700;

    line-height: 1;
}

.rp-error-title {
    margin: 0 0 18px;

    font-family: var(
        --rp-heading-font,
        Arial,
        sans-serif
    );

    font-size: var(
        --rp-h1-size,
        52px
    );

    line-height: 1.1;
}

.rp-error-description {
    max-width: 600px;

    margin: 0 auto 35px;

    color: #666666;
}


/* =========================================================
   WORDPRESS
========================================================= */

.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;
}

.aligncenter {
    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {

    .rp-container {
        width: min(
            calc(100% - 30px),
            var(--rp-container-width, 1200px)
        );

        margin-left: auto;
        margin-right: auto;
    }


    /* HEADER */

    .rp-header-inner {
        min-height: 70px;

        gap: 15px;
    }

    .rp-logo .custom-logo {
        max-width: 190px;
        max-height: 48px;
    }


    /* HERO */

    .rp-hero {
        padding: 70px 0 65px;
    }

    .rp-hero h1 {
        font-size: var(
            --rp-h1-mobile-size,
            38px
        );

        line-height: 1.08;

        letter-spacing: -0.8px;
    }

    .rp-hero p {
        font-size: 16px;
    }


    /* BUTTON */

    .rp-hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .rp-button {
        width: 100%;
    }


    /* PAGE */

    .rp-page {
        padding: 55px 0;
    }

    .rp-page-title {
        font-size: var(
            --rp-h1-mobile-size,
            34px
        );
    }


    /* SINGLE */

    .rp-single {
        padding: 55px 0;
    }

    .rp-single-title {
        font-size: var(
            --rp-h1-mobile-size,
            34px
        );
    }


    /* POSTS */

    .rp-post-list {
        padding: 55px 0;
    }

    .rp-post {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .rp-post-title {
        font-size: 23px;
    }


    /* ARCHIVE */

    .rp-archive {
        padding: 55px 0;
    }

    .rp-archive-title {
        font-size: 34px;
    }


    /* CATEGORY */

    .rp-category {
        padding: 55px 0;
    }

    .rp-category-title {
        font-size: 34px;
    }

    .rp-category-post {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    /* 404 */

    .rp-error-page {
        min-height: 55vh;

        padding: 70px 0;
    }

    .rp-error-number {
        font-size: 80px;
    }

    .rp-error-title {
        font-size: 34px;
    }


    /* FOOTER */

    .rp-footer {
        padding: 50px 0 25px;
    }

    .rp-footer-content {
        flex-direction: column;

        gap: 35px;
    }

}