@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/opensans.woff2') format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-text: #333333;
    --color-muted: #666666;
    --color-border: #e0e0e0;
    --color-surface: #ffffff;
    --color-dark: #4D4D4D;
    --color-accent: #009999;
    --color-accent-dark: #007777;
    --color-accent-light: #00FFCC;
    --gradient-accent: linear-gradient(95deg, #009999 36.31%, #009D9B 49.1%, #00A9A1 61.68%, #00BDAB 74.18%, #00D8B9 86.64%, #00FCCA 98.95%, #00FFCC 100%);
    --font-heading: 'Montserrat', Arial, sans-serif;
    --font-accent: 'Open Sans', Arial, sans-serif;
    --font-text: 'Inter', Arial, sans-serif;
    --shadow: 4px 4px 10px rgba(0, 0, 0, 0.25);
    --content-width: 1200px;
    --gutter: 16px;
}

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

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

body {
    margin: 0;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.5;
}

h1,
h2,
h3 {
    margin: 0 0 0.75em;
    color: var(--color-text);
    font-family: var(--font-accent);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--color-accent);
}

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

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

h1:focus {
    outline: none;
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.message-page {
    padding-top: 2rem;
    padding-bottom: 2rem;
    font-family: var(--font-heading);
}

    .message-page h1 {
        color: #2c3e50;
        font-family: var(--font-heading);
        font-weight: 600;
    }

    .message-page p {
        font-size: 14px;
    }

.message-page-note {
    color: var(--color-muted);
    font-style: italic;
}

.lightbox {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    max-height: 100vh;
    padding: 1rem;
    border: 0;
    background: transparent;
    cursor: zoom-out;
}

    .lightbox[open] {
        display: flex;
        align-items: center;
        justify-content: center;
        animation: lightbox-in 0.25s ease-out;
    }

    .lightbox::backdrop {
        background: rgba(0, 0, 0, 0.8);
    }

    .lightbox figure {
        display: flex;
        flex-direction: column;
        max-width: 90vw;
        max-height: 90vh;
        margin: 0;
    }

    .lightbox img {
        display: block;
        max-width: 100%;
        max-height: 75vh;
        margin: 0 auto;
        object-fit: contain;
        border-radius: 4px 4px 0 0;
        box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.4);
    }

    .lightbox figcaption {
        padding: 5px 10px;
        background: rgba(0, 0, 0, 0.85);
        border-radius: 0 0 4px 4px;
        color: #fff;
        font-family: var(--font-accent);
        font-size: 16px;
        line-height: 22px;
    }

        .lightbox figcaption strong {
            display: block;
        }

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

@keyframes lightbox-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
