/*
Theme Name: JP Portfolio Custom
Theme URI: https://design.jp-ld.com
Author: JP
Description: Clean minimalist portfolio with light typography and airy page spacing.
Version: 1.9
Text Domain: jp-portfolio
*/

/* --- 1. Global Reset & Layout --- */
body {
    background-color: transparent; 
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
    margin: 0;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Header & Branding --- */
.site-header {
    padding: 40px 0 10px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 10px;
}

.site-logo img,
.custom-logo-link img {
    max-height: 70px;
    width: auto;
    display: block;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.branding-top-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1;
}

.site-title a {
    text-decoration: none;
    color: #333;
}

.site-description {
    font-size: 14px;
    color: #777777;
    margin: 8px 0 0 0;
    font-weight: 300;
}

/* --- 3. Navigation --- */
.nav-menu {
    display: flex;
    margin-right: 20px; [cite_start]/* Included your scooted-in margin [cite: 5] */
    gap: 25px;
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

.nav-menu li a {
    font-size: 16px;
    font-weight: 300;
    color: #777777;
    padding-bottom: 4px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-menu li.current-menu-item a,
.nav-menu li a:hover {
    color: #333333;
    border-bottom: 2px solid #333333;
}

/* --- 4. Portfolio Header & Filters --- */
.portfolio-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.page-title-static {
    font-size: 28px;
    font-weight: 300;
    color: #777;
    margin: 0;
}

.portfolio-filters {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portfolio-filters button {
    background: #f2f2f2;
    color: #777;
    border: none;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.portfolio-filters button.active {
    background: #666;
    color: #fff;
}

/* --- 5. Project Grid & Excerpts --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding: 20px 0 80px;
}

.project-card {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.project-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.project-title {
    font-size: 22px;
    font-weight: 300;
    color: #333333;
    margin: 15px 0 5px 0;
    text-align: left;
}

.project-excerpt {
    font-size: 14px;
    font-weight: 300;
    color: #777777;
    line-height: 1.5;
    text-align: left;
}

.project-excerpt p { margin: 0; }

/* --- 6. Standard Page Content (The "Airiness" elements) --- */
.standard-page {
    max-width: 850px;
    margin: 50px auto; 
}

.page-content p {
    font-size: 16px;
    line-height: 1.6; 
    margin-bottom: 1.2em; 
    color: #444;
}

.page-content ul li, 
.page-content ol li {
    line-height: 1.6; 
    margin-bottom: 0.2em; 
    color: #444;
}

.page-content ul, 
.page-content ol {
    margin-bottom: 2em;
}

/* --- 7. Responsive Adjustments --- */
@media only screen and (max-width: 768px) {
    .site-description {
        max-width: 250px; /* Forces tagline wrap sooner on small screens */
    }
}

/* --- 8. Dividers & Footer --- */
hr.header-divider, 
hr.footer-divider {
    border: 0;
    border-top: 1px solid #999999;
    margin: 0 auto;
}

.site-footer {
    padding: 40px 0;
    text-align: center;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
}

.footer-navigation li a, .site-footer p {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}