@import url('https://fonts.googleapis.com/css2?family=Saira+Stencil:ital,wght@0,100..900;1,100..900&display=swap');

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

/* Skip-to-content link (visible on keyboard focus) ----------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    background: #222;
    color: #fff;
    padding: 8px 12px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 4px;
}
.skip-link:focus {
    top: 8px;
    color: #fff;
}

/* About Me bullet list -------------------------------------- */
.about-list {
    list-style: disc;
    margin: 0.5em 0 0.5em 1.5em;
    text-align: left;
    color: #ffffff;
}
.about-list li {
    text-align: left;
    margin: 0.4em 0;
    color: #ffffff;
}

body {
    background-color: #50662b;
    color: #ffffff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    padding: 12px;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a, a:visited {
    color: #FFE08A;
    text-decoration: underline;
}

a:hover {
    color: #ffffff;
}

header {
    border: 4px solid #222;
    text-align: center;
    background-color: #222;
    padding: 12px;
    margin: 0 0 12px 0;
    box-shadow: 0 0 12px #a5a2a2;
    font-weight: bold;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 900;
}

h1, h2 {
    color: #ffffff;
    font-family: 'Saira Stencil', cursive;
    text-shadow: 2px 2px 4px #222;
    padding: 12px;
}

h1 span {
    color: #FCB53B;
    text-shadow: 1px 2px 2px #222;
    text-transform: uppercase;
    letter-spacing: 3px;
}

h3 {
    padding: 12px;
    color: #ffffff;
}

img {
    border-radius: 8px;
    box-shadow: 2px 2px 5px #aaa;
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
}

/* Horizontal cream nav strip ---------------------------------- */
.nav-bar {
    background-color: #ece5cc;
    padding: 0.9em 1.5em;
    margin: 0 -12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.nav-bar .brand {
    font-weight: 700;
    color: #1a1a1a;
    margin-right: auto;
    font-size: 1rem;
}

.nav-bar a,
.nav-bar a:visited {
    color: #444;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
}

.nav-bar a:hover,
.nav-bar a:focus {
    color: #b22222;
    text-decoration: underline;
}

.nav-bar a.active {
    color: #1a1a1a;
    font-weight: 600;
}

main {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hometown main {
    width: 90%;
    max-width: 900px;
    margin-bottom: 80px;
}

.hometown main p {
    max-width: 70ch;
}

.hometown-content {
    background-color: #65690e;
    border: 2px solid #000000;
    box-shadow: 0 0 12px #a5a2a2;
    padding: 1em 1.25em;
}

.hometown-images {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin: 1.5em 0;
}

.hometown-images figure {
    width: 100%;
    text-align: center;
}

.image-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.image-pair figure {
    flex: 1 1 0;
    min-width: 280px;
}

.image-pair img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.hometown-images img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.hometown-images figcaption {
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 0.5em;
    text-align: center;
}

footer .citations {
    font-size: 0.78rem;
    color: #bbb;
    margin-top: 8px;
    line-height: 1.5;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

footer .citations p { margin-bottom: 0.5em; }

footer .citations ul {
    list-style: disc;
    margin: 0.25em 0 0.5em 1.5em;
    color: #bbb;
    text-align: left;
}

footer .citations ul li {
    color: #bbb;
    text-align: left;
    margin: 0.4em 0;
}

footer .citations a,
footer .citations a:visited {
    color: #FCB53B;
}

.introduction {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #65690e 0%, #4a4d09 100%);
    border: 2px solid #000000;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.04);
    padding: 18px;
    border-radius: 6px;
}

.introduction .portrait {
    flex: 0 0 auto;
    margin: 0;
    text-align: center;
}

.introduction .portrait img {
    margin: 0;
    max-width: 200px;
    border: 3px solid #FCB53B;
    box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

.introduction .portrait figcaption {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #FFE08A;
    font-style: italic;
}

.introduction .intro-text {
    flex: 1 1 auto;
}

.introduction .intro-text p {
    margin-bottom: 10px;
    line-height: 1.55;
}

.introduction .intro-text p:last-child {
    margin-bottom: 0;
}

/* Snapshot grid (mini-gallery on home) ---------------------- */
.snapshot {
    width: 100%;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 12px 16px 16px;
}

.snapshot-grid figure {
    margin: 0;
    text-align: center;
}

.snapshot-grid img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0;
    border: 2px solid #222;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.snapshot-grid a:hover img,
.snapshot-grid a:focus img {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.55);
}

.snapshot-grid figcaption {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #FFE08A;
}

.content-box {
    display: flex;
    gap: 12px;
}

main .content-box > section {
    border: 2px solid #000000;
    background-color: #65690e;
    box-shadow: 0 0 12px #a5a2a2;
    flex: 1 1 50%;
}

section p {
    padding: 12px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}
main nav a {
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    padding: 8px 12px;
    text-align: center;
}

body ul {
    list-style-type: square;
    margin-left: 20px;
    color: #ffffff;
    text-align: center;
}

main li {
    margin: 8px 0 8px 20px;
    color: #ffffff;
    text-align: center;
}
body div.content-box {
    text-align: center;
}
footer {
    text-align: center;
    padding: 16px;
    background-color: #222;
    color: #EEE;
    font-size: 14px;
    margin-top: 20px;

}

/* tablet: shrink the snapshot grid and give main a little more room */
@media (max-width: 1024px) {
    main {
        width: 92%;
    }
    .snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    header h1 {
        font-size: 2.2rem;
    }
}

/* mobile: stack everything, one column */
@media (max-width: 600px) {
    main {
        width: 95%;
    }
    .content-box {
        flex-direction: column;
    }
    .introduction {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .introduction .intro-text {
        text-align: left;
    }
    .snapshot-grid {
        grid-template-columns: 1fr;
    }
    header h1 {
        font-size: 1.7rem;
    }
    .nav-bar {
        gap: 0.75em 1em;
        padding: 0.75em 1em;
    }
    .nav-bar .brand {
        flex-basis: 100%;
        margin-right: 0;
    }
    body {
        font-size: 15px;
    }
}

