:root {
    --ink: #1c2b36;
    --ink-soft: #425765;
    --paper: #f9f5ee;
    --sand: #efe3d1;
    --accent: #b74d2f;
    --accent-2: #315a7a;
    --card: rgba(255, 255, 255, 0.8);
    --line: rgba(28, 43, 54, 0.15);
    --shadow: 0 16px 40px rgba(28, 43, 54, 0.15);
    --radius: 20px;
    --wrap: min(1100px, 92vw);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1300px 700px at 10% -5%, #f5dfcb 0%, rgba(245, 223, 203, 0) 70%),
        radial-gradient(1100px 600px at 100% 0%, #d7e7f6 0%, rgba(215, 231, 246, 0) 65%),
        var(--paper);
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", sans-serif;
    line-height: 1.5;
}

h1,
h2,
h3,
.brand {
    font-family: "Georgia", "Times New Roman", serif;
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.6rem 1rem;
    background: #fff;
    z-index: 999;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    background: rgba(249, 245, 238, 0.85);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: var(--wrap);
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.8rem);
}

.brand small {
    display: block;
    font-size: 0.72em;
    color: var(--ink-soft);
    font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    font-size: 0.95rem;
    color: var(--ink-soft);
    padding: 0.35rem 0.2rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--ink);
    border-color: var(--accent);
    outline: none;
}

.button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.06);
    outline: none;
}

main {
    width: var(--wrap);
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
}

.kicker {
    margin: 0 0 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--accent-2);
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2rem, 1.3rem + 3vw, 4rem);
    margin-bottom: 1rem;
}

.hero p {
    margin: 0;
    color: var(--ink-soft);
    max-width: 48ch;
    font-size: 1.05rem;
}

.hero-actions {
    margin-top: 1.4rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.button.ghost {
    background: transparent;
    color: var(--accent-2);
    border: 1px solid rgba(49, 90, 122, 0.35);
}

.hero-art {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

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

section {
    margin-top: 4rem;
}

section h2 {
    font-size: clamp(1.55rem, 1.3rem + 1.3vw, 2.5rem);
    margin-bottom: 0.55rem;
}

.section-intro {
    margin: 0;
    color: var(--ink-soft);
    max-width: 65ch;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.card {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--card);
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(28, 43, 54, 0.08);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    margin: 0;
    color: var(--ink-soft);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.gallery figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

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

.gallery img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery button:hover img,
.gallery button:focus-visible img {
    transform: scale(1.04);
}

.gallery button:focus-visible {
    outline: 3px solid rgba(49, 90, 122, 0.45);
    outline-offset: -3px;
}

.gallery figcaption {
    padding: 0.7rem 0.85rem 0.85rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.join {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
    align-items: stretch;
}

.join-panel,
.join-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    padding: 1.1rem;
    box-shadow: 0 8px 24px rgba(28, 43, 54, 0.08);
}

.join-panel ul {
    margin: 0.75rem 0 0;
    padding-left: 1rem;
    color: var(--ink-soft);
}

.join-form label {
    display: block;
    margin-top: 0.8rem;
    font-weight: 700;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.join-form input,
.join-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.68rem 0.75rem;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

.join-form textarea {
    min-height: 110px;
    resize: vertical;
}

.status {
    margin-top: 0.75rem;
    min-height: 1.4em;
    color: var(--accent-2);
    font-weight: 700;
}

.site-footer {
    width: var(--wrap);
    margin: 0 auto;
    border-top: 1px solid var(--line);
    padding: 1.25rem 0 2.2rem;
    color: var(--ink-soft);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 18, 0.88);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox[open] {
    display: flex;
}

.lightbox-panel {
    width: min(1100px, 96vw);
    max-height: 92vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.6rem;
    color: #e8eef3;
}

.lightbox-top {
    display: flex;
    justify-content: flex-end;
}

.lightbox-close {
    border: 1px solid rgba(232, 238, 243, 0.35);
    border-radius: 999px;
    background: rgba(18, 29, 39, 0.7);
    color: #fff;
    font: inherit;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
}

.lightbox-view {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(232, 238, 243, 0.24);
    background: rgba(18, 29, 39, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-view img {
    display: block;
    max-width: 100%;
    max-height: 74vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-caption {
    margin: 0;
    color: #d7e2eb;
    font-size: 0.95rem;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal-up 0.65s ease forwards;
    animation-delay: calc(var(--stagger, 0) * 110ms);
}

@keyframes reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 930px) {

    .hero,
    .join {
        grid-template-columns: 1fr;
    }

    .cards,
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .header-inner {
        min-height: 84px;
        align-items: flex-start;
        padding: 0.6rem 0;
    }

    .cards,
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery img {
        height: auto;
    }
}
