:root {
    --bg-color: #2C2C2C;
    --surface-color: #34343A;
    --text-color: #E4E4E4;
    --accent-color: #A8DADC;
    --accent-soft: #FFC1CC;
    --button-color: #B39CD0;
    --border-color: rgba(228, 228, 228, 0.12);
}

* {
    font-family: Garamond, serif;
    color: var(--text-color);
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html {
    background:
        radial-gradient(circle at top left, rgba(168, 218, 220, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 193, 204, 0.12), transparent 24%),
        var(--bg-color);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin-left: 0;
}

img, a {
    user-select: none;
}

header {
    width: min(100%, 960px);
    padding: 24px 28px 10px;
    margin-bottom: 18px;
}

.header-shell {
    background: linear-gradient(135deg, rgba(179, 156, 208, 0.2), rgba(168, 218, 220, 0.16));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.eyebrow {
    margin: 0 0 8px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.pg-title {
    font-size: clamp(72px, 11vw, 110px);
    margin: 0;
    color: var(--text-color);
    text-shadow: 0 0 24px rgba(168, 218, 220, 0.2);
}

.tagline {
    margin: 18px auto 0;
    max-width: 640px;
    padding: 16px 20px;
    border: 1px solid rgba(168, 218, 220, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tagline ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    text-align: left;
}

.tagline li {
    margin: 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.55;
    color: rgba(228, 228, 228, 0.9);
}

.tagline li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
    line-height: 1;
}

.action-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.action-btn {
    border: 1px solid rgba(228, 228, 228, 0.18);
    background: rgba(168, 218, 220, 0.15);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
    font-size: 0.95rem;
    font-weight: 700;
}

.action-btn:hover {
    transform: translateY(-2px);
    background: rgba(168, 218, 220, 0.24);
    border-color: rgba(168, 218, 220, 0.45);
}

main {
    width: min(100%, 960px);
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 24px;
    padding: 8px 0 0;
}

main.small-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 18px;
}

.item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: linear-gradient(145deg, rgba(52, 52, 58, 0.95), rgba(44, 44, 44, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 18px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    align-items: center;
}

.item:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 218, 220, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
    cursor: pointer;
}

.image-wrap {
    background: linear-gradient(135deg, rgba(168, 218, 220, 0.18), rgba(179, 156, 208, 0.18));
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 14px;
}

.item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.02);
}

.item h2 {
    margin: 4px 0 8px;
    font-size: 1.7rem;
    color: var(--accent-color);
}

.item p {
    margin: 0 0 12px;
    line-height: 1.55;
    color: rgba(228, 228, 228, 0.8);
}

.pill {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--button-color), rgba(255, 193, 204, 0.85));
    color: #2b2b2b;
    font-weight: 700;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 24, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 50;
}

.modal-backdrop.active {
    display: flex;
}

.modal {
    width: min(100%, 480px);
    background: linear-gradient(180deg, rgba(52, 52, 58, 0.98), rgba(44, 44, 44, 0.98));
    border: 1px solid rgba(228, 228, 228, 0.16);
    border-radius: 24px;
    padding: 28px 26px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
    position: relative;
}

.modal h2 {
    margin: 0 0 8px;
    color: var(--accent-color);
    font-size: 1.9rem;
}

.modal p {
    margin: 0 0 22px;
    color: rgba(228, 228, 228, 0.78);
}

.modal .close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(228, 228, 228, 0.1);
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.modal form {
    display: grid;
    gap: 16px;
}

.modal label {
    display: grid;
    gap: 6px;
    font-size: 0.95rem;
    color: rgba(228, 228, 228, 0.84);
}

.modal input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(228, 228, 228, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    outline: none;
}

.modal input:focus {
    border-color: rgba(168, 218, 220, 0.7);
    box-shadow: 0 0 0 4px rgba(168, 218, 220, 0.08);
}

.modal button.submit-btn {
    border: none;
    background: linear-gradient(135deg, var(--accent-color), var(--button-color));
    color: #1e1e1e;
    padding: 14px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 160ms ease, opacity 160ms ease;
}

.modal button.submit-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.modal .form-switch {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
    font-size: 0.94rem;
    color: rgba(228, 228, 228, 0.74);
}

.modal .form-switch button {
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 700;
}

.sidebar-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(228, 228, 228, 0.16);
    background: linear-gradient(135deg, rgba(168, 218, 220, 0.2), rgba(179, 156, 208, 0.2));
    color: var(--accent-color);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 160ms ease, background 160ms ease;
}

body.sidebar-closed .sidebar-toggle {
    display: flex;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(168, 218, 220, 0.3), rgba(179, 156, 208, 0.3));
}

.sidebar-toggle.hidden {
    display: none;
}

body.sidebar-closed {
    margin-left: 0;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100%;
    background: linear-gradient(180deg, rgba(52, 52, 58, 0.98), rgba(44, 44, 44, 0.98));
    border-right: 1px solid rgba(228, 228, 228, 0.16);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 45;
    transition: none;
}

body.sidebar-transition-ready .sidebar {
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-close {
    display: flex;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(228, 228, 228, 0.1);
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.6rem;
    transition: background 160ms ease;
    line-height: 1;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    background: rgba(228, 228, 228, 0.2);
}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 44;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar_brand {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(228, 228, 228, 0.12);
}

.sidebar_brand h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--accent-color);
}

.sidebar_nav {
    flex: 1;
}

.sidebar_nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar_nav li {
    margin: 0;
}

.sidebar_nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(228, 228, 228, 0.8);
    transition: background 160ms ease, color 160ms ease;
    font-size: 0.95rem;
}

.sidebar_nav a:hover {
    background: rgba(168, 218, 220, 0.15);
    color: var(--accent-color);
}

@media (max-width: 700px) {
    body {
        padding: 16px;
        margin-left: 0;
    }

    main, main.small-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        width: 240px;
    }
}