
/*
Theme Name: Minimal Portfolio
Theme URI: https://example.com/
Author: Custom Theme
Description: Minimal editorial portfolio WordPress theme.
Version: 1.0
Text Domain: minimal-portfolio
*/

:root {
    --black: #111111;
    --white: #ffffff;
    --gray: #e8e8e8;
    --light-gray: #f3f3f3;
    --text: #222222;
    --max-width: 1600px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

.site-container {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 4%;
    margin: 0 auto;
}

/* HEADER */

.site-header {
    width: 100%;
    padding: 28px 0;
    background: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -1px;
}

.site-logo a {
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation a {
    font-size: 13px;
    transition: opacity .2s ease;
}

.main-navigation a:hover {
    opacity: .5;
}

/* GENERAL */

main {
    min-height: 65vh;
}

.section-heading {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 25px;
}

.page-intro {
    max-width: 850px;
    padding: 65px 0 75px;
}

.page-intro h1 {
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -3px;
    margin: 0;
}

/* HOMEPAGE PROJECT GRID */

.projects-section {
    padding: 20px 0 100px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 65px 24px;
}

.project-card {
    display: block;
    min-width: 0;
}

.project-image {
    position: relative;
    overflow: hidden;
    background: var(--gray);
    aspect-ratio: 4 / 3;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: var(--gray);
}

.project-info {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 13px;
}

.project-title {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

.project-category {
    font-size: 12px;
    color: #777;
    margin: 3px 0 0;
}

/* PROJECT DETAIL */

.project-detail {
    padding-bottom: 100px;
}

.project-header {
    padding: 65px 0 35px;
}

.project-header h1 {
    font-size: clamp(38px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -3px;
    font-weight: 400;
    margin: 0 0 18px;
}

.project-subtitle {
    font-size: 15px;
    color: #777;
}

.project-featured {
    width: 100%;
    margin-bottom: 50px;
}

.project-featured img,
.project-featured .project-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--gray);
}

.project-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
    font-size: 16px;
    line-height: 1.8;
}

.project-content h2 {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -1px;
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 50px 0;
}

.gallery-placeholder {
    background: var(--gray);
    aspect-ratio: 4 / 5;
}

.project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PROJECT CREDITS */

.project-meta {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    border-top: 1px solid #ddd;
    padding: 30px 0;
    margin-top: 50px;
}

.project-meta h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin: 0;
}

.project-meta p {
    margin: 0;
}

/* ABOUT PAGE */

.about-page {
    padding-bottom: 100px;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    padding: 30px 0 80px;
}

.about-image {
    aspect-ratio: 4 / 5;
    background: var(--gray);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-copy {
    font-size: 18px;
    line-height: 1.8;
}

.about-copy h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin: 35px 0 12px;
}

.about-copy h2:first-child {
    margin-top: 0;
}

.about-copy p {
    margin: 0 0 20px;
}

/* FOOTER */

.site-footer {
    padding: 35px 0;
    border-top: 1px solid #e5e5e5;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-inner p {
    font-size: 12px;
    color: #777;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
    font-size: 12px;
}

/* WORDPRESS CONTENT */

.entry-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0 100px;
}

.entry-content img {
    margin: 30px 0;
}

.entry-content p {
    margin-bottom: 20px;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .site-header {
        padding: 20px 0;
    }

    .header-inner {
        align-items: flex-start;
        gap: 20px;
    }

    .main-navigation ul {
        gap: 16px;
    }

    .main-navigation a {
        font-size: 12px;
    }

    .site-logo {
        font-size: 18px;
    }

    .page-intro {
        padding: 45px 0 55px;
    }

    .page-intro h1 {
        letter-spacing: -2px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-copy {
        font-size: 16px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {

    .site-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-inner {
        flex-direction: column;
    }

    .main-navigation ul {
        gap: 20px;
    }

    .project-header {
        padding-top: 45px;
    }

    .project-header h1 {
        letter-spacing: -2px;
    }
}
