@import url('https://fonts.googleapis.com/css2?family=Saira+Stencil:wght@400;700&family=Inter:wght@400;600;700&display=swap');

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

:root {
    --bg: #1f2410;
    --panel: #2b3017;
    --panel-2: #3a4020;
    --border: #1a1f0c;
    --text: #f5efd9;
    --muted: #c8c2a3;
    --accent: #FCB53B;
    --accent-soft: #FFE08A;
}

.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; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', Verdana, Geneva, Tahoma, sans-serif;
    line-height: 1.5;
    padding: 12px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a, a:visited { color: var(--accent-soft); }
a:hover, a:focus { color: #fff; }

header {
    border: 4px solid #222;
    background: linear-gradient(135deg, #222 0%, #111 100%);
    text-align: center;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 0 12px #000;
}

header h1 {
    font-family: 'Saira Stencil', cursive;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px #000;
}

header h1 span {
    display: block;
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.3em;
    text-shadow: 1px 1px 2px #000;
    font-weight: 400;
}

.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.4);
}
.nav-bar .brand { font-weight: 700; color: #1a1a1a; margin-right: auto; }
.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: 92%;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.album-intro {
    color: var(--muted);
    max-width: 70ch;
    margin: 0 auto 1.5em;
    text-align: center;
    font-style: italic;
}

.album-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5em;
    align-items: start;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6em;
    background-color: var(--panel);
    border: 2px solid #000;
    box-shadow: 0 0 12px rgba(0,0,0,0.55);
    padding: 0.75em;
    border-radius: 6px;
}

.thumb {
    background: none;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.thumb img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.thumb:hover,
.thumb:focus {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    outline: none;
}

.thumb.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(252, 181, 59, 0.35);
}

.display {
    background-color: var(--panel);
    border: 2px solid #000;
    box-shadow: 0 0 14px rgba(0,0,0,0.6);
    padding: 1em;
    border-radius: 6px;
    text-align: center;
    position: sticky;
    top: 12px;
}

#big-image {
    display: block;
    width: 100%;
    max-width: 800px;
    max-height: 70vh;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border: 3px solid #111;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    background-color: #000;
}

#big-caption {
    margin-top: 0.85em;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5em;
}

footer {
    text-align: center;
    padding: 1.25em 1em;
    background-color: #111;
    color: var(--muted);
    margin: 2em -12px 0;
    font-size: 0.9rem;
    border-top: 2px solid var(--accent);
}

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

footer .citations p { margin-bottom: 0.4em; }
footer .citations ul { list-style: disc; margin: 0.25em 0 0.5em 1.5em; }
footer .citations ul li { margin: 0.35em 0; }
footer .citations a, footer .citations a:visited { color: var(--accent-soft); }

@media (max-width: 800px) {
    .album-layout {
        grid-template-columns: 1fr;
    }
    .thumbs {
        grid-template-columns: repeat(4, 1fr);
        order: 2;
    }
    .display {
        position: static;
        order: 1;
    }
    .thumb img { height: 70px; }
    header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .thumbs { grid-template-columns: repeat(3, 1fr); }
}
