:root {
    --bg: #071019;
    --surface: #101d2d;
    --surface-soft: #14263a;
    --text: #edf5f1;
    --muted: #b5c6be;
    --green: #5fffa8;
    --green-dark: #2e8b57;
    --gold: #d8b36a;
    --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top, #13263a 0, var(--bg) 46rem);
    font: 17px/1.75 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--green); }
a:hover { color: #a7ffd0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem max(1rem, calc((100% - 1120px) / 2));
    background: rgba(7, 16, 25, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand { color: var(--text); font-weight: 800; text-decoration: none; letter-spacing: 0.04em; }
.brand span { color: var(--green); }
.site-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); }

main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.hero { padding: 5rem 0 3rem; max-width: 850px; }
.eyebrow { color: var(--gold); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { font-family: Rajdhani, Inter, sans-serif; line-height: 1.18; }
h1 { margin: 0.3rem 0 1.2rem; font-size: clamp(2.4rem, 7vw, 4.8rem); }
h2 { margin-top: 2.6rem; font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { margin-top: 1.8rem; font-size: 1.35rem; }
.lead { color: var(--muted); font-size: 1.18rem; max-width: 760px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin: 1.5rem 0 4rem; }
.card { display: block; padding: 1.4rem; color: var(--text); text-decoration: none; background: linear-gradient(145deg, var(--surface), var(--surface-soft)); border: 1px solid var(--line); border-radius: 16px; }
.card:hover { color: var(--text); border-color: rgba(95, 255, 168, 0.55); transform: translateY(-2px); }
.card p { margin-bottom: 0; color: var(--muted); }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 3.5rem; align-items: start; }
article { padding-bottom: 4rem; }
article p, article li { color: #d4e0da; }
article strong { color: #fff; }
article ul, article ol { padding-left: 1.25rem; }
.article-meta { color: var(--muted); font-size: 0.9rem; }
.article-note { margin: 2rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--gold); background: rgba(216, 179, 106, 0.08); }
.example { padding: 1.2rem; background: rgba(95, 255, 168, 0.07); border: 1px solid rgba(95, 255, 168, 0.2); border-radius: 12px; }
.checklist li { margin: 0.55rem 0; }

aside { position: sticky; top: 5.5rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
aside a { display: block; margin: 0.55rem 0; color: var(--muted); text-decoration: none; }

.site-footer { padding: 2.5rem max(1rem, calc((100% - 1120px) / 2)); color: var(--muted); background: #050b11; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.7rem; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
    .site-header { align-items: flex-start; flex-direction: column; }
    .article-layout { grid-template-columns: 1fr; }
    aside { position: static; }
    .hero { padding-top: 3rem; }
}
