:root {
    --bg: #090407;
    --panel: rgba(31, 10, 19, .82);
    --panel-hover: rgba(58, 13, 29, .95);

    --text: #fff1f5;
    --muted: #c58a9b;

    --violet: #d2185b;
    --pink: #ff2d72;
    --gold: #e6aa67;

    --line: rgba(255, 72, 127, .22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);

    background:
        radial-gradient(
            ellipse at 50% -10%,
            rgba(180, 0, 55, .42),
            transparent 32rem
        ),
        radial-gradient(
            circle at 5% 50%,
            rgba(255, 24, 92, .14),
            transparent 25rem
        ),
        radial-gradient(
            circle at 95% 75%,
            rgba(128, 0, 40, .20),
            transparent 28rem
        ),
        linear-gradient(
            180deg,
            #16070d 0%,
            #090407 45%,
            #050204 100%
        );

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;

    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;

    opacity: .45;

    background-image:
        repeating-linear-gradient(
            115deg,
            transparent 0 46px,
            rgba(255, 62, 119, .025) 47px,
            transparent 48px
        );

    mask-image:
        linear-gradient(to bottom, black, transparent 90%);
}


/* ---------- Background glow ---------- */

.ambient {
    position: fixed;
    z-index: -1;

    width: 28rem;
    height: 28rem;

    border-radius: 50%;
    filter: blur(110px);
    opacity: .22;
}

.ambient::after {
    display: none;
}

.ambient-one {
    top: -15rem;
    right: -8rem;
    background: #e00048;
}

.ambient-two {
    bottom: -16rem;
    left: -10rem;
    background: #8c002d;
}


/* ---------- Layout ---------- */

.page-shell {
    width: min(1000px, calc(100% - 36px));
    margin: 0 auto;
}

.hero {
    display: flex;

    min-height: 34vh;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 42px 0 28px;
}


/* ---------- Logo ---------- */

.guide-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 26px;
}

.guide-mark img {
    display: block;

    width: min(150px, 34vw);
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 8px 20px rgba(0, 0, 0, .55))
        drop-shadow(0 0 14px rgba(255, 35, 100, .22));
}


/* ---------- Navigation ---------- */

.link-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 13px;

    width: min(650px, 100%);
}

.nav-card {
    display: grid;

    grid-template-columns: 32px 1fr auto;

    gap: 12px;
    align-items: center;

    min-height: 66px;

    padding: 12px 18px;

    border: 1px solid var(--line);
    border-radius: 18px;

    color: var(--text);

    background:
        linear-gradient(
            135deg,
            rgba(87, 14, 37, .96),
            rgba(38, 7, 19, .96)
        );

    box-shadow:
        0 14px 40px rgba(0, 0, 0, .32),
        inset 0 1px rgba(255, 255, 255, .05);

    text-decoration: none;

    backdrop-filter: blur(18px);

    transition:
        transform .22s ease,
        background .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.nav-card:hover,
.nav-card:focus-visible {

    border-color: rgba(255, 55, 112, .58);

    background:
        linear-gradient(
            135deg,
            rgba(87, 14, 37, .96),
            rgba(38, 7, 19, .96)
        );

    box-shadow:
        0 16px 42px rgba(0, 0, 0, .40),
        0 0 22px rgba(255, 35, 99, .12);

    outline: none;

    transform: translateY(-3px);
}


/* ---------- Navigation icon ---------- */

.nav-card__mark {
    position: relative;

    display: block;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #ff3f79,
            #8f163d
        );

    box-shadow:
        0 0 14px rgba(255, 42, 104, .22);
}

.nav-card__mark::after {
    content: "";

    position: absolute;
    inset: 10px;

    border: 2px solid #ffd6df;
    border-radius: 50%;
}

.nav-card__arrow {
    color: #ff719a;

    font-size: 26px;
    line-height: 1;
}


/* ---------- Gallery ---------- */

.memories {
    padding: 22px 0 80px;
}

.gallery-wall {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    width: 100%;
    max-width: 960px;

    margin: 0 auto;

    overflow: hidden;

    border: 3px solid rgba(255, 75, 125, .18);
    border-radius: 26px;

    background: #14070d;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .55),
        0 0 40px rgba(165, 0, 48, .10);
}

.gallery-photo {
    position: relative;

    margin: 0;

    overflow: hidden;

    aspect-ratio: 4 / 5;

    background: #16070d;

    opacity: 0;

    transform:
        translateY(16px)
        scale(.97);

    transition:
        opacity .5s ease,
        transform .5s ease;
}

.gallery-photo.is-visible {
    opacity: 1;
    transform: none;
}

.gallery-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .4s ease,
        filter .4s ease;
}

.gallery-photo:hover img {
    transform: scale(1.035);

    filter:
        brightness(1.04)
        saturate(1.08);
}

.empty-state {
    min-height: 180px;
}


/* ---------- Mobile ---------- */

@media (max-width: 720px) {

    .page-shell {
        width: min(100% - 26px, 560px);
    }

    .hero {
        min-height: auto;
        padding-top: 38px;
    }

    .guide-mark img {
        width: min(135px, 38vw);
    }

    .link-grid {
        grid-template-columns: 1fr;
    }

    .memories {
        margin-inline: -13px;
    }

    .gallery-wall {
        border-width: 2px;
        border-radius: 20px;
    }
}


/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
