:root {
    --color-forest: #014939;
    --color-forest-dark: #1a443a;
    --color-gold: #bb9860;
    --color-copper: #c66f1a;
    --color-mist: #bac7c8;
    --color-surface: #f5f7f4;
    --color-sidebar: #e4ebea;
    --color-text-light: #f5f7f4;

    font-family: Georgia, serif;
    line-height: 1.4;
    color: var(--color-forest-dark);
    background: var(--color-surface);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    height: 6rem;
    padding: 0 2rem;
    background: var(--color-forest);
    color: var(--color-text-light);
    border-bottom: 0.25rem solid var(--color-gold);
}

.site-logo {
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.site-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: left;
}

.site-brand {
    color: inherit;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.site-tagline {
    color: var(--color-text-light);
    font-family: Georgia, serif;
    font-style: italic;
    text-align: right;
}

.store-layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    flex: 1;
}

.sidebar {
    padding: 2rem;
    background: var(--color-sidebar);
    border-right: 1px solid var(--color-mist);
}

.sidebar h2 {
    margin: 0;
    font-size: 1.1rem;
}

.sidebar > * + * {
    margin-top: 1.5rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.sidebar .social-links a {
    display: inline-flex;
    padding: 0.25rem;
}

.social-links svg {
    display: block;
    width: 2rem;
    height: 2rem;
}

.sidebar .social-links a:hover,
.sidebar .social-links a:focus-visible {
    color: var(--color-copper);
}

.store-content {
    padding: 2rem;
    line-height: 1.65;
}

.store-content li + li {
    margin-top: 0.4rem;
}

.store-content h1 {
    margin-top: 0;
    color: var(--color-forest);
}

.home-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 2rem;
    align-items: start;
}

.home-hero {
    display: block;
    width: 100%;
    height: auto;
}

.content-card {
    box-sizing: border-box;
    max-width: 42rem;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border: 1px solid var(--color-mist);
    border-top: 0.3rem solid var(--color-gold);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(26, 68, 58, 0.1);
}

.store-announcement {
    text-align: center;
    line-height: 1.6;
}

.content-card a {
    color: var(--color-forest);
}

.contact-field {
    margin-bottom: 1rem;
}

.contact-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--color-mist);
    border-radius: 0.25rem;
    font: inherit;
}

.contact-form button {
    padding: 0.7rem 1.2rem;
    border: 0;
    border-radius: 0.25rem;
    background: var(--color-forest);
    color: var(--color-text-light);
    font: inherit;
    cursor: pointer;
}

.errorlist {
    color: #a12616;
}

.sidebar a {
    color: var(--color-forest);
    text-decoration: none;
}

.sidebar > nav > a {
    font-weight: bold;
}

.sidebar a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.sidebar a:hover,
.sidebar a:focus-visible {
    color: var(--color-copper);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, min(100%, 18rem));
    gap: 1.5rem;
}

.gallery-grid figure {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.gallery-grid figcaption {
    order: -1;
    text-align: center;
}

.gallery-grid img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 18rem;
    object-fit: contain;
}

.gallery-grid img[hidden] {
    display: none;
}

.gallery-images {
    position: relative;
}

.gallery-enlarge {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-dialog {
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 3rem;
    border: 0;
    background: rgba(0, 0, 0, 0.9);
}

.gallery-dialog::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-grid .gallery-dialog img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    pointer-events: none;
}

.gallery-dialog-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 0;
    background: transparent;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.gallery-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
}

.gallery-images:hover .gallery-controls,
.gallery-images:focus-within .gallery-controls {
    opacity: 1;
}

.gallery-dialog-controls {
    opacity: 1;
}

.gallery-controls button {
    pointer-events: auto;
    border: 0;
    padding: 0.25rem 0.5rem;
    background: rgba(1, 73, 57, 0.8);
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (hover: none) {
    .gallery-controls {
        opacity: 1;
    }
}

.gallery-controls[hidden] {
    display: none;
}

.gallery-grid figcaption {
    margin-top: 0.5rem;
}

.site-footer {
    padding: 0.5rem 2rem;
    background: var(--color-forest);
    color: var(--color-text-light);
    border-top: 0.25rem solid var(--color-gold);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-brand:hover {
    color: var(--color-gold);
}

.site-brand:focus-visible {
    outline: 2px solid var(--color-copper);
    outline-offset: 0.25rem;
}

@media (max-width: 600px) {
    .store-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--color-mist);
    }

    .site-header {
        height: 4.5rem;
        gap: 0.25rem;
        padding: 0 0.5rem;
    }

    .site-brand {
        font-size: clamp(1.1rem, 5vw, 2rem);
    }

    .site-tagline {
        font-size: 0.7rem;
    }
}