/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme for The Harvey Project
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */


/* ==================================================
   THE HARVEY PROJECT — COLOR SYSTEM
   ================================================== */

:root {
    /* Main site */
    --hp-bg: #111315;
    --hp-bg-secondary: #191c1f;
    --hp-surface: #22262a;

    --hp-text: #f2f2f2;
    --hp-text-muted: #a9adb1;

    --hp-orange: #d96300;
    --hp-orange-hover: #f07818;

    --hp-border: #34383c;

    /* Project-note paper */
    --hp-paper: #f1ead8;
    --hp-paper-text: #242424;
    --hp-paper-orange: #b44f00;

    /* Blocksy palette */
    --theme-palette-color-1: #d96300;
    --theme-palette-color-2: #f07818;
    --theme-palette-color-3: #f2f2f2;
    --theme-palette-color-4: #a9adb1;
    --theme-palette-color-5: #34383c;
    --theme-palette-color-6: #22262a;
    --theme-palette-color-7: #191c1f;
    --theme-palette-color-8: #111315;
}


/* ==================================================
   GLOBAL SITE STYLES
   ================================================== */

html,
body,
#main-container,
.site-main {
    background-color: var(--hp-bg);
}

body,
.entry-content,
.pagelayer-text-holder {
    color: var(--hp-text);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.pagelayer-heading-holder {
    color: var(--hp-text);
}


/* ---------- CONTENT LINKS ---------- */

.entry-content a:not(.wp-element-button):not(.button),
.pagelayer-text-holder a {
    color: var(--hp-orange);
}

.entry-content a:not(.wp-element-button):not(.button):hover,
.entry-content a:not(.wp-element-button):not(.button):focus,
.pagelayer-text-holder a:hover,
.pagelayer-text-holder a:focus {
    color: var(--hp-orange-hover);
}


/* ==================================================
   PROJECT NOTES / INDEX CARD
   ================================================== */

.hp-project-card {
    position: relative;

    max-width: 1100px;
    margin: 30px 0 50px;
    padding: 30px 38px;

    background-color: var(--hp-paper);

    background-image:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 31px,
            rgba(70, 95, 110, 0.13) 32px
        );

    border: 1px solid #c8bea6;
    border-radius: 2px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.28),
        2px 3px 0 rgba(255, 255, 255, 0.08);

    color: var(--hp-paper-text);

    transform: rotate(-0.15deg);
}


/* ---------- CARD DEFAULT INK ---------- */

/*
 * Explicitly override the site's light text while inside
 * the cream project-note card.
 */

.hp-project-card,
.hp-project-card p,
.hp-project-card li,
.hp-project-card span,
.hp-project-card div {
    color: var(--hp-paper-text);
}


/* ---------- CARD HEADER ---------- */

.hp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding-bottom: 15px;

    border-bottom: 2px solid rgba(35, 35, 35, 0.65);
}

.hp-card-file {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #333;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hp-card-file-label {
    color: #333;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}


/* ---------- PROJECT NUMBER ---------- */

.hp-project-number {
    display: inline-block;

    padding: 4px 8px;

    border: 2px solid var(--hp-paper-orange);
    border-radius: 2px;

    color: var(--hp-paper-orange) !important;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;

    transform: rotate(-1deg);
}


/* ---------- PROJECT TYPE ---------- */

.hp-card-types {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hp-card-types a {
    padding: 5px 10px;

    border: 2px solid var(--hp-orange);
    border-radius: 2px;

    color: var(--hp-paper-orange) !important;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;

    text-decoration: none;
    text-transform: uppercase;

    transform: rotate(1deg);
}


/* ---------- CARD SECTIONS ---------- */

.hp-card-section {
    padding: 20px 0;

    border-bottom: 1px solid rgba(60, 60, 60, 0.28);
}

.hp-card-label {
    margin-bottom: 8px;

    color: #8c4200 !important;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;

    text-transform: uppercase;
}

.hp-card-text {
    max-width: 950px;

    color: #252525 !important;

    font-size: 17px;
    line-height: 1.75;
}


/* ---------- EQUIPMENT + MATERIALS ---------- */

.hp-card-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 45px;
}

.hp-card-values {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.hp-project-card .hp-card-values a {
    color: #252525;

    font-weight: 700;
    text-decoration: none;
}

.hp-project-card .hp-card-values a:hover {
    color: var(--hp-paper-orange);
}


/* ---------- TOPICS / FILED UNDER ---------- */

.hp-card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hp-project-card .hp-card-topics a {
    padding: 4px 9px;

    background: rgba(0, 0, 0, 0.04);

    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 2px;

    color: #333;

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

    text-decoration: none;
    text-transform: uppercase;
}

.hp-project-card .hp-card-topics a:hover {
    border-color: var(--hp-paper-orange);
    color: var(--hp-paper-orange);
}


/* ---------- CARD ACTION BUTTONS ---------- */

.hp-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    padding-top: 22px;
}

.hp-project-card .hp-card-button {
    display: inline-block;

    padding: 10px 17px;

    background: transparent;

    border: 2px solid #333;
    border-radius: 2px;

    color: #222 !important;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;

    text-decoration: none !important;

    transform: rotate(-0.5deg);
}

.hp-project-card .hp-card-button:hover {
    background: #222;

    color: var(--hp-paper) !important;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 689px) {

    .hp-project-card {
        padding: 22px 20px;

        transform: none;
    }

    .hp-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hp-card-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hp-card-text {
        font-size: 16px;
    }

    .hp-card-actions {
        flex-direction: column;
    }

    .hp-card-button {
        text-align: center;
    }
}

/* ==================================================
   PROJECT LIBRARY
   ================================================== */

.hp-library {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 10px 0 90px;
}


/* ---------- LIBRARY HEADER ---------- */

.hp-library-header {
    max-width: 760px;
    margin-bottom: 50px;
}

.hp-library-eyebrow {
    margin-bottom: 8px;

    color: var(--hp-orange);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hp-library-header h1 {
    margin: 0 0 14px;

    color: var(--hp-text);

    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
}

.hp-library-header p {
    margin: 0;

    color: var(--hp-text-muted);

    font-size: 18px;
    line-height: 1.65;
}


/* ---------- GRID ---------- */

.hp-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}


/* ---------- PROJECT CARD ---------- */

.hp-library-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--hp-bg-secondary);

    border: 1px solid var(--hp-border);
    border-radius: 4px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hp-library-card:hover {
    transform: translateY(-4px);

    border-color: var(--hp-orange);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}


/* ---------- IMAGE ---------- */

.hp-library-image {
    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: var(--hp-surface);
}

.hp-library-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.hp-library-card:hover .hp-library-image img {
    transform: scale(1.025);
}

.hp-library-image-placeholder {
    height: 100%;

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

    color: var(--hp-text-muted);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}


/* ---------- CARD BODY ---------- */

.hp-library-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 22px;
}


/* ---------- PROJECT NUMBER + TYPE ---------- */

.hp-library-meta {
    min-height: 29px;
    margin-bottom: 17px;

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

.hp-library-number {
    padding: 3px 7px;

    border: 1px solid var(--hp-orange);
    border-radius: 2px;

    color: var(--hp-orange);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.hp-library-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.hp-library-types span {
    display: inline-block;

    padding: 3px 7px;

    border: 1px solid var(--hp-orange);
    border-radius: 2px;

    color: var(--hp-orange);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
}


/* ---------- TITLE ---------- */

.hp-library-title {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.3;
}

.hp-library-title a {
    color: var(--hp-text);

    text-decoration: none;
}

.hp-library-title a:hover {
    color: var(--hp-orange);
}


/* ---------- DESCRIPTION ---------- */

.hp-library-description {
    margin: 0 0 18px;

    color: var(--hp-text-muted);

    font-size: 14px;
    line-height: 1.65;
}


/* ---------- TOPICS ---------- */

.hp-library-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-bottom: 22px;
}

.hp-library-topics a {
    padding: 4px 7px;

    background: var(--hp-surface);

    border: 1px solid var(--hp-border);
    border-radius: 2px;

    color: var(--hp-text-muted);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;

    text-decoration: none;
    text-transform: uppercase;
}

.hp-library-topics a:hover {
    border-color: var(--hp-orange);
    color: var(--hp-orange);
}


/* ---------- OPEN PROJECT ---------- */

.hp-library-open {
    margin-top: auto;

    color: var(--hp-orange);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;

    text-decoration: none;
}

.hp-library-open:hover {
    color: var(--hp-orange-hover);
}


/* ---------- PAGINATION ---------- */

.hp-library-pagination {
    margin-top: 50px;
}

/* ==================================================
   PROJECT LIBRARY — PAGINATION
   ================================================== */

.hp-library-pagination {
    margin-top: 50px;
}

.hp-library-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Page numbers + previous/next */

.hp-library-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding: 0 11px;

    background: var(--hp-bg-secondary);
    border: 1px solid var(--hp-border);
    border-radius: 2px;

    color: var(--hp-text-muted);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;

    text-decoration: none;

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

/* Hover */

.hp-library-pagination a.page-numbers:hover {
    border-color: var(--hp-orange);
    color: var(--hp-orange);
}

/* Current page */

.hp-library-pagination .page-numbers.current {
    background: transparent;
    border-color: var(--hp-orange);

    color: var(--hp-orange);
}

/* Previous / Next */

.hp-library-pagination .prev,
.hp-library-pagination .next {
    padding: 0 15px;

    color: var(--hp-text);
}

/* Dots between page numbers */

.hp-library-pagination .dots {
    min-width: auto;

    background: transparent;
    border-color: transparent;

    color: var(--hp-text-muted);
}
/* ---------- TAXONOMY ARCHIVE ---------- */

.hp-library-back {
    display: inline-block;

    margin-top: 20px;

    color: var(--hp-orange);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;

    text-decoration: none;
}

.hp-library-back:hover {
    color: var(--hp-orange-hover);
}

/* ==================================================
   PROJECT LIBRARY — MOBILE PAGINATION
   ================================================== */

@media (max-width: 689px) {

    .hp-library-pagination {
        margin-top: 35px;
    }

    .hp-library-pagination .nav-links {
        gap: 6px;
    }

    /* Compact numbered buttons */
    .hp-library-pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;

        font-size: 10px;
        letter-spacing: 0.4px;
    }

    /* Keep Previous / Next readable */
    .hp-library-pagination .prev,
    .hp-library-pagination .next {
        padding: 0 10px;

        font-size: 9px;
        letter-spacing: 0.5px;
    }

    /* Ellipsis doesn't need a box */
    .hp-library-pagination .dots {
        min-width: 18px;
        padding: 0 2px;
    }
}

@media (max-width: 400px) {

    .hp-library-pagination .nav-links {
        gap: 4px;
    }

    .hp-library-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
    }

    .hp-library-pagination .prev,
    .hp-library-pagination .next {
        padding: 0 7px;
    }
}
/* ==================================================
   PROJECT LIBRARY — TABLET
   ================================================== */

@media (max-width: 1024px) {

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


/* ==================================================
   PROJECT LIBRARY — MOBILE
   ================================================== */

@media (max-width: 689px) {

    .hp-library {
    width: min(100% - 30px, 1280px);
    padding: 45px 0 65px;
}

    .hp-library-header {
        margin-bottom: 32px;
    }

    .hp-library-header p {
        font-size: 16px;
    }

    .hp-library-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}