:root {
    --bg: #0f1115;
    --card: #151922;
    --text: #e6e9ef;
    --muted: #9aa3b2;
    --border: #232a36;
    --accent: #2dd4bf;
    --focus: #60a5fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

header,
footer {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

footer {
    border-top: 1px solid var(--border);
    border-bottom: 0;
    color: var(--muted);
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.disclosure {
    margin-top: 8px;
    padding: 10px 12px;
    background: #10141b;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .9rem;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.card {
    grid-column: span 12;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

@media (min-width:640px) {
    .card {
        grid-column: span 6;
    }
}

@media (min-width:1024px) {
    .card {
        grid-column: span 4;
    }
}

/* White media area; centers any aspect ratio */
.media {
    position: relative;
    aspect-ratio: 4/3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    display: block;
}

.content {
    padding: 14px;
    display: grid;
    gap: 8px;
}

.name {
    font-weight: 700;
    font-size: 1.05rem;
}

.desc {
    color: var(--muted);
    font-size: .95rem;
    min-height: 2.6em;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.tag {
    font-size: .78rem;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 999px;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-top: 1px solid var(--border);
}

.btn {
    appearance: none;
    border: 1px solid var(--border);
    background: #0f141c;
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    border-color: var(--accent);
}

.muted {
    color: var(--muted);
    font-size: .9rem;
}