/* armory.dev.paranoidsecurity.de — static styling.
   Design language borrowed from status.dev.paranoidsecurity.de
   (homelab-status dashboard): dark theme, accent-left-border cards,
   system font, uppercase section headers. */

:root {
    --bg: #0f1419;
    --bg-elev: #11171d;
    --fg: #e6e6e6;
    --muted: #6b7280;
    --card: #1a1f24;
    --card-hover: #232a31;
    --border: #2a3138;
    --accent: #4ade80;
    --accent-dim: #22c55e;
    --firefox: #ff9d5c;
    --linux: #fbbf24;
    --macos: #a78bfa;
    --blue: #60a5fa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header / hero ---- */
header {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* subtle accent glow in the corner — the "peppy" touch, but static */
header::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.18), transparent 70%);
    pointer-events: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand .mark {
    display: inline-flex;
    width: 1.6rem;
    height: 1.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #0a0f0a;
    font-size: 1rem;
    font-weight: 800;
}

.brand .host { color: var(--muted); font-weight: 400; font-size: 1.05rem; }

.tagline {
    margin: 0.6rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 46rem;
}

.nav {
    display: flex;
    gap: 1.5rem;
    margin: 1.1rem 0 0;
    font-size: 0.875rem;
}

.nav a {
    color: var(--muted);
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.nav a:hover { color: var(--fg); text-decoration: none; }
.nav a.active { color: var(--fg); border-bottom-color: var(--accent); }

/* ---- Main ---- */
main { padding: 1.5rem 2rem 3rem; max-width: 60rem; }

.section { margin-top: 2.25rem; }

.section h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

/* ---- Artifact grid ---- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.9rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--muted);
    border-radius: 6px;
    padding: 1rem 1.1rem 1.1rem;
    transition: background 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}

.card:hover { background: var(--card-hover); transform: translateY(-2px); }

.card.firefox { border-left-color: var(--firefox); }
.card.linux   { border-left-color: var(--linux); }
.card.macos   { border-left-color: var(--macos); }

.card .icon { font-size: 1.5rem; line-height: 1; }

.card .name { font-weight: 600; margin-top: 0.5rem; font-size: 1.05rem; }

.card .desc { color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; flex: 1; }

.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; }

.badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
}

.badge.ok { color: var(--accent); border-color: rgba(74, 222, 128, 0.4); }

.btn {
    margin-top: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.12s ease;
}

.btn:hover {
    background: var(--accent);
    color: #0a0f0a;
    text-decoration: none;
}

/* ---- Prose (privacy / support) ---- */
.prose { max-width: 46rem; }
.prose h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
.prose p, .prose li { color: #cfd3d7; font-size: 0.95rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.prose code {
    background: #11171d;
    border: 1px solid var(--border);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.85em;
}
.note {
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    background: var(--card);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin: 1.2rem 0;
    font-size: 0.9rem;
}

.updated { color: var(--muted); font-size: 0.8rem; margin-top: 2rem; }

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem 2.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 2rem;
}

@media (max-width: 540px) {
    header, main, footer { padding-left: 1.1rem; padding-right: 1.1rem; }
}
