/* Layout styles: Navbar, Page, Footer, Background glow */

/* Navbar */
.navbar {
    height: 64px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--neutrals-400);
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 48px;
    z-index: 20;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    cursor: pointer;
}

.navbar-logo {
    display: block;
    height: 22px;
    width: auto;
}

.navbar-divider {
    width: 1px;
    height: 24px;
    background-color: var(--neutrals-500);
}

.navbar-text {
    font-size: 20px;
    font-weight: 400;
    color: var(--neutrals-800);
    letter-spacing: -0.01em;
}

.sm-hidden {
    display: block;
}

.sm-block {
    display: none;
}

/* Page */
.page {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 36px 24px 56px;
}

.page-column {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Footer */
.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 14px 48px;
    font-size: 13px;
    color: var(--text-subtle);
    position: relative;
    z-index: 10;
}

.copyright_text {
    margin: 0;
}

.link_list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.link_list li + li::before {
    content: "·";
    padding: 0 6px;
}

.link_list a {
    color: var(--text-subtle);
    text-decoration: none;
}

.link_list a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* Soft brand glow behind the cards */
.background-shadow-wrapper {
    z-index: 0;
    position: fixed;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.background-shadow-circle {
    transform: translate(45%, 35%);
    width: 44rem;
    height: 44rem;
    border-radius: 100%;
    opacity: 0.18;
    background: radial-gradient(circle, #D50C2D 0%, rgba(213, 12, 45, 0) 70%);
    filter: blur(80px);
    animation: glow 10s infinite ease-in-out;
}

@keyframes glow {
    0%, 100% { opacity: 0.16; transform: translate(45%, 35%) scale(1); }
    50% { opacity: 0.24; transform: translate(45%, 35%) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
    .background-shadow-circle {
        animation: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .page {
        padding: 16px 12px 36px;
    }

    .page-column {
        gap: 12px;
    }

    .footer {
        justify-content: center;
        text-align: center;
        padding: 16px 20px 24px;
    }

    .link_list {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .sm-hidden {
        display: none;
    }

    .sm-block {
        display: block;
    }

    .navbar-brand {
        gap: 12px;
    }

    .navbar-text {
        font-size: 18px;
    }
}
