/* Caption Grid - A Free Design by Bryant Smith (bryantsmith.com)
   The colours, type and spacing for the whole page live here.
   Follow the section headings below to find the part you want to change. */


/* ---- TYPE SCALE ----
   h1 46px  |  lead 21px  |  figure title 17px
   body 16px  |  caption 14px  |  eyebrow/menu 12px

   The sizes step down in a clear order so the page reads
   top-to-bottom without any single thing shouting. */

:root {
    --bg: #f5f3ee;
    --card: #ffffff;
    --ink: #202327;
    --muted: #6d727a;
    --accent: #bf5a36;
    --line: #e4e0d6;
}


/* ---- BODY: the pale wall the gallery hangs on ---- */

body {
    background: var(--bg);
    color: var(--ink);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    padding: 48px 20px;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, p, ul, figure {
    margin: 0;
    padding: 0;
}

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


/* ---- PAGE: the wide sheet that holds everything ---- */

#page {
    background: var(--card);
    border-top: 5px solid var(--accent);
    box-shadow: 0 1px 2px rgba(32, 35, 39, 0.05), 0 18px 40px rgba(32, 35, 39, 0.08);
    margin: 0 auto;
    max-width: 960px;
    padding: 56px 56px 40px 56px;
}


/* ---- MASTHEAD: title, tagline and menu ---- */

#masthead {
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
    padding-bottom: 26px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#masthead h1 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 46px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-top: 10px;
}

.tagline {
    color: var(--muted);
    font-size: 15px;
    margin-top: 12px;
}


/* ---- MENU: the row of text links ---- */

#menu {
    margin-top: 26px;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-right: 24px;
    padding-bottom: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: var(--accent);
    color: var(--accent);
    outline: none;
}


/* ---- TEXT: intro and body copy ---- */

.lead {
    color: #33373d;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 21px;
    line-height: 1.6;
}

.note {
    background: #faf1ec;
    border-left: 3px solid var(--accent);
    color: #4a4e55;
    font-size: 14px;
    line-height: 1.65;
    margin-top: 26px;
    padding: 16px 20px;
}

h2 {
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin: 48px 0 24px 0;
    padding-bottom: 12px;
    text-transform: uppercase;
}


/* ---- GALLERY: the three-column grid of photographs ---- */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}

.shot {
    transition: transform 0.2s ease;
}

.shot:hover {
    transform: translateY(-4px);
}


/* ---- PHOTO: the picture frame (gradients stand in for photos) ---- */

.photo {
    aspect-ratio: 4 / 3;
    background-color: #d9d5cb;
    background-position: center;
    background-size: cover;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(32, 35, 39, 0.12);
    overflow: hidden;
    transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.shot:hover .photo {
    box-shadow: 0 10px 22px rgba(32, 35, 39, 0.18);
    filter: saturate(1.12) brightness(1.02);
}

.photo--1 { background-image: linear-gradient(160deg, #8fa9b8, #3d6070 70%); }
.photo--2 { background-image: linear-gradient(150deg, #9fb49a, #4a6b52 75%); }
.photo--3 { background-image: linear-gradient(200deg, #7d86a8, #2b3350 75%); }
.photo--4 { background-image: linear-gradient(135deg, #d6c39a, #a8834e 75%); }
.photo--5 { background-image: linear-gradient(170deg, #c3cdd2, #6f7f88 75%); }
.photo--6 { background-image: linear-gradient(140deg, #d29a7e, #a2412c 78%); }


/* ---- CAPTION: the title and one-line note under each photo ---- */

.shot h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    font-weight: normal;
    letter-spacing: -0.2px;
    margin-top: 14px;
}

.shot h3::after {
    background: var(--accent);
    content: "";
    display: block;
    height: 2px;
    margin-top: 8px;
    transition: width 0.2s ease;
    width: 22px;
}

.shot:hover h3::after {
    width: 44px;
}

.shot p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}


/* ---- TIPS: the short how-to list at the end ---- */

.tips {
    list-style: none;
}

.tips li {
    border-bottom: 1px solid var(--line);
    color: #4a4e55;
    font-size: 14px;
    line-height: 1.65;
    padding: 14px 0 14px 22px;
    position: relative;
}

.tips li:last-child {
    border-bottom: none;
}

.tips li::before {
    background: var(--accent);
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    top: 22px;
    width: 6px;
}

code {
    background: #f1efe9;
    border-radius: 3px;
    color: #7a3a22;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    padding: 1px 5px;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 56px;
    padding-top: 22px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #565b62;
    text-decoration: none;
}

#footer a:hover {
    color: var(--accent);
}


/* ---- TABLETS: three columns become two ---- */

@media (max-width: 860px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---- PHONES: two columns become one, and the type eases down ---- */

@media (max-width: 640px) {
    body {
        padding: 24px 12px;
    }

    #page {
        padding: 36px 24px 28px 24px;
    }

    #masthead h1 {
        font-size: 34px;
    }

    .lead {
        font-size: 18px;
    }

    .gallery {
        gap: 28px;
        grid-template-columns: 1fr;
    }

    h2 {
        margin-top: 40px;
    }
}


/* ---- PRINT: drop the shadows and the menu for a clean sheet ---- */

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }

    #page {
        border-top: none;
        box-shadow: none;
        max-width: 100%;
        padding: 0;
    }

    #menu {
        display: none;
    }
}
