:root {
    --bg: #0a0e27;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-border: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #c6d0e2;
    --accent: #70d6ff;
    --accent-2: #7f8cff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 15% 20%, rgba(112, 214, 255, 0.2), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(127, 140, 255, 0.2), transparent 40%),
        linear-gradient(180deg, #0a0e27 0%, #101736 100%);
    line-height: 1.7;
}

main {
    width: min(900px, 92vw);
    margin: 0 auto;
    padding: 3.5rem 0 4rem;
}

.top-link {
    display: inline-block;
    text-decoration: none;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    border: 1px solid var(--panel-border);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.top-link:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

article {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

h1 {
    margin-top: 0;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1.2;
}

.subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    color: var(--accent);
}

p, li {
    color: var(--text-secondary);
}

ul {
    padding-left: 1.25rem;
}

.callout {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(112, 214, 255, 0.35);
    background: rgba(112, 214, 255, 0.08);
    color: var(--text-primary);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

.resources-sidebar {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 2rem;
}

.resources-sidebar h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--accent);
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    margin-bottom: 0.8rem;
    padding-left: 0;
}

.resource-list a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.resource-list a:hover {
    color: var(--accent);
}

.resource-category {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .resources-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 640px) {
    article {
        padding: 1.3rem;
    }

    main {
        padding-top: 2rem;
    }
    
    .resources-sidebar {
        padding: 1rem;
    }
}
