:root {
    --turquoise: #23bbc0;
    --turquoise-dark: #0e7c76;
    --turquoise-deep: #0a5551;
    --turquoise-light: #dff6f4;
    --cream: #fbfdfc;
    --ink: #1f2d2c;
    --muted: #5a6b6a;
    --radius: 14px;
    --shadow: 0 6px 20px rgba(10, 85, 81, 0.12);
    --heading: "Playfair Display", Georgia, serif;
    --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
}

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

a { color: var(--turquoise-dark); }

h1, h2, h3 {
    font-family: var(--heading);
    color: var(--turquoise-deep);
    line-height: 1.2;
    margin: 0 0 0.5em;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--turquoise-deep);
    color: #fff;
    padding: 8px 14px;
    z-index: 10;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
    background: #fff;
    border-bottom: 4px solid var(--turquoise);
}
.site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--turquoise-deep);
}
.brand img { width: 52px; height: 52px; }

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    display: block;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    color: var(--ink);
}
.site-nav a:hover { background: var(--turquoise-light); }
.site-nav a[aria-current="page"] {
    background: var(--turquoise);
    color: #fff;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 64px 0 72px;
}
.hero h1 { margin-bottom: 16px; }
.hero-logo {
    width: clamp(170px, 40vw, 240px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 8px 18px rgba(6, 45, 43, 0.35));
}
.hero p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.15rem;
    opacity: 0.95;
}

/* Page heading on gallery pages */
.page-head {
    background: var(--turquoise-light);
    padding: 40px 0 32px;
}
.page-head p { margin: 0; color: var(--muted); max-width: 700px; }

main { padding-bottom: 56px; }

section.collections { padding-top: 48px; }
section.collections > .container > h2 { text-align: center; }

/* Category cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover, .card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(10, 85, 81, 0.2);
}
.card-cover {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--turquoise-light), #bdeeea);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover svg { width: 64px; height: 64px; color: var(--turquoise-dark); opacity: 0.6; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin-bottom: 0.25em; }
.card-body p { margin: 0; color: var(--muted); }

/* Gallery grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 32px;
    padding: 0;
    list-style: none;
}
.gallery button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: zoom-in;
    font: inherit;
    text-align: left;
}
.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--turquoise-light);
    transition: transform 0.25s ease;
}
.gallery button:hover img { transform: scale(1.03); }
.gallery .caption {
    display: block;
    padding: 10px 14px 12px;
    font-weight: 600;
    color: var(--ink);
}
.gallery-status {
    margin-top: 32px;
    padding: 40px 16px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 2px dashed var(--turquoise);
    border-radius: var(--radius);
}

/* Lightbox */
.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(6, 30, 29, 0.94);
    color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lightbox figure {
    margin: 0;
    padding: 56px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}
.lightbox img {
    max-width: min(100%, 1400px);
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: 6px;
}
.lightbox figcaption { margin-top: 12px; font-weight: 600; text-align: center; }
.lightbox button {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox button:hover, .lightbox button:focus-visible { background: var(--turquoise); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Footer */
.site-footer {
    background: var(--turquoise-deep);
    color: #d6efed;
    text-align: center;
    padding: 24px 0;
    font-size: 0.95rem;
}
.site-footer p { margin: 0; }

/* 404 */
.not-found { text-align: center; padding-top: 72px; }

@media (max-width: 640px) {
    .site-header .container { justify-content: center; }
    .site-nav ul { justify-content: center; }
    .site-nav a { padding: 5px 10px; font-size: 0.95rem; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery .caption { padding: 8px 10px; font-size: 0.9rem; }
    .hero { padding: 44px 0 52px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
