/* =========================================================
   GLOBAL
========================================================= */

:root {
    --background: #ffffff;
    --text: #111111;
    --muted: #6f6f6f;
    --border: #e8e8e8;
    --soft-background: #f7f7f7;

    --content-width: 1100px;
    --section-spacing: 130px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;

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

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

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


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

header {
    width: 100%;

    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar {
    max-width: var(--content-width);
    margin: 0 auto;

    padding: 22px 30px;

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

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 28px;
}

.nav-links a {
    position: relative;

    font-size: 14px;
    color: var(--muted);

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

.nav-links a:hover {
    color: var(--text);
    transform: translateY(-1px);
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

main {
    width: 100%;
}

.section {
    max-width: var(--content-width);
    margin: 0 auto;

    padding: var(--section-spacing) 30px;
}

.section > h2,
.section-heading h2 {
    margin: 0 0 45px;

    font-size: 32px;
    font-weight: 500;

    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 600px;

    margin-top: -25px;
    margin-bottom: 50px;

    color: var(--muted);
}


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

.hero {
    min-height: 82vh;

    max-width: var(--content-width);
    margin: 0 auto;

    padding: 100px 30px;

    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 780px;
}

.hero-intro {
    margin-bottom: 12px;

    font-size: 16px;
    color: var(--muted);
}

.hero h1 {
    margin: 0;

    font-size: clamp(54px, 8vw, 95px);
    font-weight: 500;
    line-height: 0.95;

    letter-spacing: -0.055em;
}

.hero h2 {
    margin: 16px 0 30px;

    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;

    color: var(--muted);
    letter-spacing: -0.03em;
}

.hero-description {
    max-width: 650px;

    font-size: 20px;
    line-height: 1.6;

    color: #333333;
}

.hero-links {
    margin-top: 45px;

    display: flex;
    gap: 16px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button,
.button-secondary {
    display: inline-block;

    padding: 12px 20px;

    border-radius: 7px;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button {
    background: var(--text);
    color: white;
}

.button:hover {
    background: #333333;

    transform: translateY(-2px);
}

.button-secondary {
    border: 1px solid var(--border);
}

.button-secondary:hover {
    background: var(--soft-background);

    transform: translateY(-2px);
}


/* =========================================================
   ABOUT
========================================================= */

#about {
    border-top: 1px solid var(--border);
}

.about-content {
    max-width: 720px;
}

.about-content p {
    margin-bottom: 24px;

    font-size: 19px;
    color: #333333;
}


/* =========================================================
   PROJECTS
========================================================= */

#work {
    max-width: none;

    padding-left: 0;
    padding-right: 0;

    background: var(--soft-background);
}

#work > h2,
#work > .project-grid {
    max-width: var(--content-width);

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

#work > h2 {
    padding-left: 30px;
    padding-right: 30px;
}

.project-grid {
    padding: 0 30px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.project-card {
    padding: 34px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 10px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

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

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

.project-year {
    margin: 0 0 18px;

    font-size: 13px;
    color: var(--muted);
}

.project-card h3 {
    margin: 0 0 8px;

    font-size: 23px;
    font-weight: 500;

    letter-spacing: -0.02em;
}

.project-organisation {
    margin-bottom: 24px;

    color: var(--muted);
}

.project-card p:last-child {
    margin-bottom: 0;

    color: #444444;
}


/* =========================================================
   PHOTOGRAPHY PREVIEW ON HOME PAGE
========================================================= */

.photo-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 35px;
}

.photo-preview a {
    display: block;
    overflow: hidden;
    border-radius: 7px;
    aspect-ratio: 4 / 3;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-preview a:hover img {
    transform: scale(1.03);
}

.photo-placeholder {
    aspect-ratio: 4 / 3;

    background: #eeeeee;

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

    font-size: 15px;
    color: var(--muted);

    border-radius: 7px;

    transition: transform 0.25s ease;
}

.photo-placeholder:hover {
    transform: scale(1.01);
}

.text-link {
    display: inline-block;

    padding-bottom: 2px;

    font-size: 15px;
    font-weight: 500;

    border-bottom: 1px solid var(--text);

    transition: opacity 0.2s ease;
}

.text-link:hover {
    opacity: 0.5;
}


/* =========================================================
   EDUCATION
========================================================= */

#education {
    border-top: 1px solid var(--border);
}

.education-entry {
    padding: 28px 0;

    display: flex;
    justify-content: space-between;

    gap: 30px;

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

.education-entry h3 {
    margin: 0 0 4px;

    font-size: 20px;
    font-weight: 500;
}

.education-entry p {
    margin: 0;
}

.education-detail {
    margin-top: 5px !important;

    font-size: 15px;
    color: var(--muted);
}

.education-date {
    white-space: nowrap;

    color: var(--muted);
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    padding-top: 150px;
    padding-bottom: 150px;

    text-align: center;
}

.contact h2 {
    margin-bottom: 15px;

    font-size: 42px;
}

.contact > p {
    font-size: 18px;
    color: var(--muted);
}

.contact-links {
    margin-top: 35px;

    display: flex;
    justify-content: center;

    gap: 28px;
}

.contact-links a {
    font-size: 15px;

    border-bottom: 1px solid transparent;

    transition: border-color 0.2s ease;
}

.contact-links a:hover {
    border-color: var(--text);
}


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

footer {
    padding: 28px 30px;

    text-align: center;

    font-size: 13px;
    color: var(--muted);

    border-top: 1px solid var(--border);
}


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

.photo-page-header {
    max-width: var(--content-width);
    margin: 0 auto;

    padding: 120px 30px 70px;
}

.photo-page-label {
    margin: 0 0 15px;

    font-size: 14px;
    color: var(--muted);
}

.photo-page-header h1 {
    margin: 0;

    font-size: clamp(48px, 7vw, 82px);
    font-weight: 500;
    line-height: 1;

    letter-spacing: -0.05em;
}

.photo-page-intro {
    max-width: 600px;

    margin-top: 28px;

    font-size: 19px;
    line-height: 1.6;

    color: var(--muted);
}


/* =========================================================
   PHOTO GALLERY
========================================================= */

.gallery-section {
    max-width: 1400px;

    margin: 0 auto;

    padding: 20px 30px 120px;
}

.photo-gallery {
    columns: 3;

    column-gap: 18px;
}

.gallery-item {
    margin: 0 0 18px;

    break-inside: avoid;

    overflow: hidden;

    border-radius: 7px;

    background: var(--soft-background);
}

.gallery-item img {
    width: 100%;
    height: auto;

    display: block;

    cursor: pointer;

    transition:
        transform 0.4s ease,
        opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.015);

    opacity: 0.96;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .photo-gallery {
        columns: 2;
    }
}


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

@media (max-width: 800px) {

    :root {
        --section-spacing: 90px;
    }

    .navbar {
        padding: 18px 20px;

        flex-direction: column;
        align-items: flex-start;

        gap: 14px;
    }

    .nav-links {
        width: 100%;

        gap: 14px 18px;

        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero {
        min-height: 75vh;

        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .project-grid {
        padding-left: 20px;
        padding-right: 20px;

        grid-template-columns: 1fr;
    }

    #work > h2 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .photo-preview {
        grid-template-columns: 1fr;
    }

    .education-entry {
        flex-direction: column;

        gap: 8px;
    }

    .education-date {
        font-size: 14px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 650px) {

    .photo-page-header {
        padding: 90px 20px 50px;
    }

    .gallery-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .photo-gallery {
        columns: 1;
    }
}


@media (max-width: 500px) {

    .hero h1 {
        font-size: 48px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-links {
        flex-direction: column;

        gap: 14px;
    }
}