* {
    box-sizing: border-box;
}


:root {
    --background: #f5f5f2;
    --surface: #ffffff;
    --text: #171717;
    --muted: #666666;
    --line: #deded8;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

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

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}


.container {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
}


/* HEADER */

.site-header {
    border-bottom: 1px solid var(--line);
}


.header-inner {
    min-height: 72px;

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

    gap: 24px;
}


.logo {
    color: var(--text);

    text-decoration: none;

    font-weight: 800;
    letter-spacing: 0.12em;
}


.main-nav {
    display: flex;
    gap: 20px;

    flex-wrap: wrap;
}


.main-nav a {
    color: var(--muted);

    text-decoration: none;

    font-size: 0.95rem;
}


.main-nav a:hover {
    color: var(--text);
}


/* INTRO */

.intro {
    padding: 96px 0 72px;

    max-width: 720px;
}


.eyebrow {
    margin: 0 0 10px;

    color: var(--muted);

    font-size: 0.75rem;
    font-weight: 750;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


h1,
h2 {
    line-height: 1.1;
}


h1 {
    margin: 0 0 20px;

    font-size: clamp(2.5rem, 8vw, 5.5rem);

    letter-spacing: -0.045em;
}


.intro-text {
    margin: 0;

    max-width: 620px;

    color: var(--muted);

    font-size: 1.15rem;
}


/* PHOTO OF THE DAY */

.photo-of-the-day {
    margin-bottom: 72px;
}


.photo-of-the-day h2 {
    margin: 0 0 20px;

    font-size: 2rem;
}


.photo-frame {
    width: 100%;

    background: var(--surface);

    border: 1px solid var(--line);

    overflow: hidden;
}


.photo-frame img {
    display: block;

    width: 100%;
    height: auto;

    min-height: 350px;

    object-fit: cover;
}


/* CARDS */

.cards {
    display: grid;

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

    gap: 16px;

    padding-bottom: 96px;
}


.card {
    min-height: 220px;

    padding: 28px;

    background: var(--surface);

    border: 1px solid var(--line);

    color: var(--text);

    text-decoration: none;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease;
}


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

    border-color: #999999;
}


.card-number {
    color: var(--muted);

    font-size: 0.8rem;

    letter-spacing: 0.1em;
}


.card h2 {
    margin: 48px 0 10px;

    font-size: 1.5rem;
}


.card p {
    margin: 0;

    color: var(--muted);
}


/* FOOTER */

.site-footer {
    border-top: 1px solid var(--line);

    padding: 28px 0;

    color: var(--muted);

    font-size: 0.85rem;
}


/* MOBILE */

@media (max-width: 700px) {

    .header-inner {
        align-items: flex-start;

        padding: 18px 0;

        flex-direction: column;
    }


    .intro {
        padding: 64px 0 48px;
    }


    .photo-frame img {
        min-height: 250px;
    }


    .cards {
        grid-template-columns: 1fr;

        padding-bottom: 64px;
    }

}

/* PHOTOGRAPHY PAGE */

.photo-gallery {
    padding-bottom: 64px;
}

.photo-card {
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
}

.photo-info {
    padding: 28px;
}

.photo-info h2 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.photo-info p:last-child {
    margin: 0;
    color: var(--muted);
}

.back-home {
    padding-bottom: 96px;
}

.back-home a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.back-home a:hover {
    text-decoration: underline;
}
/* PHOTO ARCHIVE DATA */
.latest-photo-info {
    padding: 18px 0 0;
}

.latest-photo-info p {
    margin: 0 0 4px;
}

.latest-photo-info p:last-child,
.photo-location {
    color: var(--muted);
}

.photo-gallery {
    display: grid;
    gap: 28px;
}
