:root {
    --paper: #f5f3ee;
    --ink: #252522;
    --muted: #77766f;
    --line: #dcd9d1;
    --accent: #67705d;
    --page-width: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    pointer-events: none;
    -webkit-touch-callout: none;
}

.site-header,
main,
.site-footer {
    width: min(100% - 64px, var(--page-width));
    margin-inline: auto;
}

.site-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.wordmark {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

nav {
    display: flex;
    gap: 28px;
    color: var(--muted);
    font-size: 0.9rem;
}

nav a:hover,
.text-link:hover {
    color: var(--accent);
}

.intro {
    padding-block: clamp(56px, 9vw, 120px);
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: clamp(32px, 7vw, 100px);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

h1 {
    max-width: 550px;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.intro-copy {
    max-width: 380px;
    margin-top: 24px;
    color: var(--muted);
}

.featured-image {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
}

.work-section {
    padding-block: 40px 100px;
}

.section-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2,
.about-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-note {
    margin: 0 0 4px;
    color: var(--muted);
}

/* Masonry-style gallery: images keep their natural proportions */
.gallery-grid {
    columns: 2;
    column-gap: 12px;
}

.gallery-card {
    display: block;
    break-inside: avoid;
    margin: 0 0 28px;
}

.gallery-card img {
    display: block;
    width: 80%;
    height: auto;
    aspect-ratio: auto;
    object-fit: initial;
    background: transparent;
}

.card-caption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    font-size: 0.9rem;
}

.card-caption span:last-child {
    color: var(--muted);
}

@media (max-width: 700px) {
    .gallery-grid {
        columns: 1;
    }
}

.about-section {
    max-width: 680px;
    padding-block: 60px 110px;
    border-top: 1px solid var(--line);
}

.about-section > p:not(.eyebrow) {
    max-width: 540px;
    margin-block: 24px;
    color: var(--muted);
}

.text-link {
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--accent);
}

.site-footer {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8rem;
}

@media (min-width: 901px) {
    img {
        pointer-events: none;
        -webkit-touch-callout: none;
    }
}

@media (max-width: 700px) {
    .site-header,
    main,
    .site-footer {
        width: min(100% - 36px, var(--page-width));
    }

    .site-header {
        min-height: 68px;
    }

    nav {
        gap: 16px;
    }

    .intro {
        grid-template-columns: 1fr;
        padding-block: 56px 72px;
    }

    .featured-image {
        max-height: 500px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .work-section {
        padding-bottom: 72px;
    }

    .about-section {
        padding-block: 48px 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
