:root {
    --bg: #0f1115;
    --bg-soft: #13161c;
    --card: #1a1d24;
    --card-hover: #21252e;
    --text: #e8e8ea;
    --text-muted: #9aa0ab;
    --accent: #d9a441;
    --accent-soft: rgba(217, 164, 65, 0.12);
    --border: #2a2e37;
    --radius: 14px;
}

* {
    box-sizing: border-box;
    font-family: "Inter", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) 4rem;
}

/* ---------- Hero ---------- */

.hero {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero h1::after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    margin: 0.8rem auto 0;
    border-radius: 3px;
    background: var(--accent);
}

.hero-sub {
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 45ch;
}

/* ---------- Grid of cards ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.4rem;
    min-height: 9.5rem;
    text-decoration: none;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.card:hover {
    background: var(--card-hover);
    border-color: #3a4150;
    transform: translateY(-3px);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    flex: 1;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

/* ---------- Badges ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3em 0.7em;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-public {
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-private {
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(217, 164, 65, 0.35);
}

.badge-private .lock {
    font-size: 0.85em;
}

.card-private:hover {
    border-color: rgba(217, 164, 65, 0.45);
}

/* ---------- Legend ---------- */

.legend {
    margin: 2.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.legend strong {
    color: var(--accent);
    font-weight: 600;
}

/* ---------- Footer ---------- */

footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.4rem clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    gap: 1.2rem;
}

.footer-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

/* ---------- About page content ---------- */

.content {
    color: var(--text);
    max-width: 65ch;
}

.content p {
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 1.2rem;
}

.content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(217, 164, 65, 0.4);
}

.content a:hover {
    border-bottom-color: var(--accent);
}

@media (max-width: 540px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
