/*
Theme Name:  Ksenija Portfolio
Theme URI:   https://example.com
Author:      Ksenija Tomm
Description: Minimal photography portfolio theme with Customizer support.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: ksenija-portfolio
*/

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

:root {
    --red: #c8001e;
    --black: #0f0f0f;
    --white: #fff;
    --gray-light: #f4f4f2;
    --gray-mid: #e0e0de;
    --gray-text: #888;
    --text: #111;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    mix-blend-mode: difference;
    transition:
        background 0.3s,
        padding 0.3s;
}

.nav-logo {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    color: #fff;
}

/* ── HERO ── */
#hero {
    position: relative;
    height: 100vh;
    background: var(--black);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 60px 40px;
}

#hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}

.hero-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--red);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-name {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.hero-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 60px;
    right: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 32px;
    height: 1px;
    background: var(--red);
}

/* ── SECTIONS ── */
section {
    padding: 80px 40px;
    border-top: 0.5px solid var(--gray-mid);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-meta {
    font-size: 11px;
    color: var(--red);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── WORKS ── */
#works {
    background: var(--white);
}

.work-list {
    margin-bottom: 40px;
}

.work-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 0.5px solid var(--gray-mid);
    cursor: pointer;
    transition: padding-left 0.2s;
}

.work-item:hover {
    padding-left: 8px;
}
.work-item:hover .work-name {
    color: var(--red);
}

.work-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.work-num {
    font-size: 11px;
    color: var(--red);
    letter-spacing: 0.06em;
    width: 24px;
    flex-shrink: 0;
}

.work-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
}

.work-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.work-cat {
    font-size: 10px;
    color: var(--gray-text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.work-year {
    font-size: 10px;
    color: var(--gray-mid);
    letter-spacing: 0.06em;
}

/* photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 6px;
}

.photo-grid .ph-main {
    grid-row: 1 / 3;
    aspect-ratio: 2/3;
    background: var(--gray-light);
    overflow: hidden;
}

.photo-grid .ph-sm {
    aspect-ratio: 4/3;
    background: var(--gray-light);
    overflow: hidden;
}

.photo-grid .ph-main,
.photo-grid .ph-sm {
    width: 100%;
    height: 100%;
    display: block;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ── ABOUT ── */
#about {
    background: var(--gray-light);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text-block p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 24px;
}

.about-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 10px;
    padding: 4px 14px;
    border: 0.5px solid var(--gray-mid);
    color: var(--gray-text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tag.accent {
    border-color: var(--red);
    color: var(--red);
}

.about-photo {
    aspect-ratio: 3/4;
    background: var(--gray-mid);
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── CONTACT ── */
#contact {
    background: var(--black);
    border-top: none;
}

#contact .section-title {
    color: #fff;
}
#contact .section-meta {
    color: var(--red);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-rows {
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.c-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.c-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.c-val {
    font-size: 13px;
    color: #fff;
    text-decoration: none;
}

.c-val.red {
    color: var(--red);
}
.c-val:hover {
    color: var(--red);
}

.contact-photo {
    aspect-ratio: 3/4;
    background: #1e1e1e;
    overflow: hidden;
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.7;
}

/* ── FOOTER ── */
footer {
    background: var(--black);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.06em;
}

.footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

/* ── MOBILE ── */
@media (max-width: 680px) {
    nav {
        padding: 18px 20px;
    }
    .nav-links {
        gap: 20px;
    }

    #hero {
        padding: 40px 20px;
    }
    .hero-scroll {
        right: 20px;
        bottom: 40px;
    }

    section {
        padding: 60px 20px;
    }

    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-photo,
    .contact-photo {
        aspect-ratio: 4/3;
        order: -1;
    }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
    }
    .photo-grid .ph-main {
        grid-row: auto;
        aspect-ratio: 4/3;
    }

    footer {
        padding: 16px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* ── PROJECTS (archive & single) ── */
#works-archive .section-title,
.project-single .section-title {
    font-size: clamp(28px, 6vw, 48px);
}

.project-list {
    display: grid;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.project-item {
    background: transparent;
}

.project-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.project-title a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
}

.project-title a:hover {
    color: var(--red);
}

.project-excerpt {
    font-size: 15px;
    color: #444;
    margin-bottom: 16px;
    max-width: 900px;
}

.project-thumb {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    background: var(--gray-light);
    border-radius: 2px;
}

.project-single {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.project-single-media {
    margin-bottom: 24px;
}

.project-single-thumb {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 680px) {
    .project-list {
        gap: 28px;
        padding: 0 20px;
    }
    .project-title {
        font-size: 20px;
    }
    .project-excerpt {
        font-size: 14px;
    }
}
