:root {
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #1f2a35;
    --muted: #5f6b77;
    --accent: #0a8f7a;
    --accent-2: #115e8a;
    --shadow: 0 14px 34px rgba(25, 33, 46, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, #d9f4ee 0%, #eef3f8 45%, #f7f8fb 100%);
    color: var(--text);
    font-family: "Manrope", sans-serif;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 24px 20px 90px;
    background: linear-gradient(130deg, #0e2d40 0%, #145c79 45%, #1da58b 100%);
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 900ms ease;
    z-index: 0;
}

.hero-bg.active {
    opacity: 1;
}

.topbar,
.top-simple {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.brand {
    font-family: "Sora", sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
}

.actions,
.top-simple div {
    display: flex;
    gap: 16px;
}

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

.btn-link {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 14px;
    border-radius: 999px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 72px auto 0;
}

h1, h2, h3 {
    font-family: "Sora", sans-serif;
    margin: 0;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    margin-bottom: 14px;
}

.hero-content p {
    max-width: 700px;
    opacity: 0.95;
}

.cta {
    display: inline-block;
    margin-top: 22px;
    background: #fff;
    color: #0a3852;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 24px auto 40px;
    padding: 0 20px;
    display: grid;
    gap: 20px;
}

.card {
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-head span,
.section-head a,
.top-simple a,
small {
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 14px;
}

.members {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.memories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-item,
.memory-item {
    border: 1px solid #e6ebef;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.thumb,
.memory-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e9edf1;
}

.member-item h3,
.member-item small,
.member-item p,
.memory-item .meta {
    padding: 0 12px;
}

.member-item h3,
.memory-item h3 {
    margin-top: 12px;
    margin-bottom: 4px;
}

.member-item p,
.memory-item p {
    color: var(--muted);
    margin-top: 8px;
    margin-bottom: 14px;
}

.placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--muted);
}

.gallery-page .top-simple {
    padding: 24px 20px 12px;
}

.gallery-page .container {
    margin: 24px auto 40px;
}

.gallery-page .memory-item img {
    aspect-ratio: auto;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: #f1f4f7;
}

.landing-page .memory-item img {
    aspect-ratio: auto;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: #f1f4f7;
    display: block;
}

.landing-page .member-item .thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.landing-page .member-item .thumb a {
    width: 100%;
    height: 100%;
}

.landing-page .member-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb a,
.memory-item a {
    display: block;
    cursor: zoom-in;
}

.site-footer {
    margin-top: 20px;
    background: #0f2435;
    color: #dbe7f0;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #8ee9d8;
    font-weight: 600;
}

@media (max-width: 768px) {
    .topbar,
    .top-simple {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .members,
    .memories {
        grid-template-columns: 1fr;
    }
}
