:root {
    color: #1c1916;
    background: #efe6d8;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
    margin: 0;
    background:
        radial-gradient(90% 42% at 100% 0%, rgba(139, 26, 43, 0.16), transparent 46%),
        #efe6d8;
}

.wrap {
    width: min(880px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 64px;
}

.kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 6px 0 8px;
    font-size: 40px;
    line-height: 1;
}

h2 { margin: 0 0 8px; font-size: 20px; }

.lead, .meta, .empty { color: #514b43; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
}

.note, .token {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fbf6ee;
}

.token {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    word-break: break-all;
}

.top, .nav, .filters, .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.top {
    justify-content: space-between;
    gap: 16px;
}

.nav a, .filters a, .star, .danger {
    padding: 6px 10px;
    border-radius: 999px;
    color: #1c1916;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.nav a.is-on, .filters a.is-on {
    background: #1c1916;
    color: #f8f2e8;
}

.who { font-size: 13px; font-weight: 700; }

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.filters { margin-top: 22px; }

.nav .login, .actions .download { margin-top: 0; }

.catalog .empty { grid-column: 1 / -1; margin: 0; }

.danger { color: #8B1A2B; }

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 18px 0 28px;
}

.card, .panel {
    padding: 16px;
    border: 1px solid rgba(28, 25, 22, 0.12);
    border-radius: 14px;
    background: #fbf6ee;
}

.type {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card p { margin: 0 0 8px; }

.download, button.primary, .login {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: #8B1A2B;
    color: #f8f2e8;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.star, .danger {
    margin: 0;
    border: 1px solid rgba(28, 25, 22, 0.16);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.star.is-on {
    background: #8B1A2B;
    border-color: transparent;
    color: #f8f2e8;
}

.actions form { margin: 0; }

.preview, .swatches {
    width: 100%;
    height: 92px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #fff;
}

.preview { object-fit: contain; }

.swatches { display: flex; overflow: hidden; }

.swatches span { flex: 1; }

.stack { display: grid; gap: 10px; }

label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(28, 25, 22, 0.16);
    border-radius: 10px;
    background: #fff;
    color: #1c1916;
    font: inherit;
}

button { justify-self: start; }
